/* ============================================================
   Sahni & Sons — Global Stylesheet
   Warm · Minimal · Editorial   (inspired by legalpanda.in)
   Type: Libre Baskerville (headings) + Source Serif 4 (body)
   Interaction: horizontal, section-by-section deck on desktop
                (panels fit one screen — no vertical scroll);
                vertical fallback <= 980px.
   Tune global spacing/insets via the tokens in :root.
   ============================================================ */

:root {
    /* Warm palette */
    --cream:      #F5EFDC;   /* primary background */
    --cream-dk:   #EDE6CB;   /* alt panels / hover */
    --paper:      #FBF8F1;   /* cards */
    --ink:        #1C1A17;   /* primary text */
    --ink-60:     rgba(28, 26, 23, 0.60);
    --ink-40:     rgba(28, 26, 23, 0.40);
    --ink-30:     rgba(28, 26, 23, 0.30);
    --ink-14:     rgba(28, 26, 23, 0.14);
    --ink-06:     rgba(28, 26, 23, 0.06);
    --green:      #3A6648;   /* accent */
    --green-dk:   #2C4D37;
    --green-lt:   rgba(58, 102, 72, 0.08);

    /* Typography — editorial serif headings, clean sans body (per brand brief) */
    --font-heading: 'Libre Baskerville', Georgia, 'Times New Roman', Times, serif;
    --font-body: 'Source Serif 4', Georgia, 'Times New Roman', Times, serif;
    --font: var(--font-body); /* back-compat alias */

    /* ---- Global layout controls (edit these to tune the whole site) ---- */
    --container: 1180px;        /* max content width */
    --header-h: 78px;           /* fixed header height */
    --gutter: 40px;             /* base left/right padding inside a panel */
    --content-inset: clamp(24px, 7vw, 120px); /* extra LEFT indent for editorial offset */

    /* Panel vertical rhythm (content is sized to FIT — no vertical scroll).
       Non-hero panels use symmetric top/bottom (= --panel-pad-top) for a true
       vertical centre; --panel-pad-bottom is the hero's shorter bottom only. */
    --panel-pad-top: calc(var(--header-h) + 14px);
    --panel-pad-bottom: 26px;

    /* Component spacing (compact so each panel fits one screen) */
    --section-head-mb: 24px;    /* gap under a section heading block */
    --card-pad-y: 22px;
    --card-pad-x: 30px;
    --split-gap: 56px;

    /* Hero title — sized + widened so every hero heading fits within 3 lines */
    --hero-max: 1120px;                              /* hero content width */
    --hero-title-size: clamp(2.4rem, 4.4vw, 3.8rem); /* hero heading size */
    --hero-title-width: 32ch;                        /* line-wrap width of the title */

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow: hidden;            /* native page scroll is disabled; .h-scroll handles motion */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--ink);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 400; }

p  { margin: 0 0 1.1em; color: var(--ink-60); }
a  { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

/* ---------- Layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 22px;
}

.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    color: var(--ink-60);
    line-height: 1.7;
}

.eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--green);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 1000;
    background: transparent;
    border-bottom: 0;
}

.nav-wrapper {
    height: 100%;
    max-width: 1360px;   /* wider than --container so logo/CTA sit closer to the edges */
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { display: inline-flex; align-items: center; }
.logo-img { height: 26px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 40px; }

/* Menu group is absolutely centred in the header — logo stays flush left,
   Contact CTA flush right; menu sits in the true centre between them. */
.menu-list {
    display: flex;
    align-items: center;
    gap: 38px;
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
}

.menu-list a {
    position: relative;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-60);
    padding: 6px 0;
}
.menu-list a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--green);
    transition: width 0.3s var(--ease);
}
.menu-list a:hover,
.menu-list a.active { color: var(--ink); }
.menu-list a:hover::after,
.menu-list a.active::after { width: 100%; }

.nav-cta {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 11px 22px;
    border: 1px solid var(--ink);
    color: var(--ink);
}
.nav-cta:hover { background: var(--ink); color: var(--cream); }

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    width: 30px; height: 22px;
    background: none; border: 0; padding: 0;
    cursor: pointer;
    position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%; height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after  { top: 8px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span::after  { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   Horizontal scroll engine
   ============================================================ */
.h-scroll {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    height: 100vh;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }

.panel {
    position: relative;
    flex: 0 0 100vw;
    width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    /* No vertical scroll anywhere — content is sized to fit one screen. */
    overflow: hidden;
    display: flex;
    align-items: center;
    /* Symmetric top/bottom padding → the content group sits at the true
       vertical centre (the top pad also clears the fixed header). The hero
       overrides the bottom below to keep its original rhythm. */
    padding: var(--panel-pad-top) 0;
}

/* Editorial left inset — ONLY the hero keeps its offset-left treatment; every
   other panel centres its content group instead (see "Centred content" below). */
.hero > .panel-inner > .container {
    padding-left: calc(var(--gutter) + var(--content-inset));
}

/* Scroll regions are programmatically focused on snap/deep-link; suppress their
   focus ring (position is already communicated by the dots + progress bar).
   Interactive elements keep their focus-visible outline below. */
.h-scroll:focus,
.panel:focus { outline: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/* Default panel background. Shade variants below win by source order (equal
   specificity) regardless of the panel's position — do NOT use :nth-child here,
   as its higher specificity would override --alt / footer on even panels. */
.panel { background: var(--cream); }
.panel--alt  { background: var(--cream-dk); }
.panel--paper { background: var(--paper); }

/* content reveal on activation */
.panel-inner {
    width: 100%;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.panel.is-active .panel-inner { opacity: 1; transform: none; }

/* ============================================================
   Hero
   ============================================================ */
/* Hero opts out of the site-wide centring: it keeps the editorial left inset
   (above) and its original shorter bottom padding (all other panels are
   symmetric / centred). */
.hero { padding-bottom: var(--panel-pad-bottom); }
.hero .panel-inner { max-width: var(--hero-max); }
.hero-kicker {
    display: inline-block;
    font-size: 0.74rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 20px;
}
.hero h1 { margin-bottom: 22px; }
.hero-title { max-width: var(--hero-title-width); font-size: var(--hero-title-size); }
.hero-subtitle {
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    color: var(--ink-60);
    max-width: 60ch;
    line-height: 1.7;
    margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font);
    font-size: 0.82rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 15px 30px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.28s var(--ease);
}
.btn-primary {
    background: var(--green);
    color: var(--cream);
    border-color: var(--green);
}
.btn-primary:hover { background: var(--green-dk); border-color: var(--green-dk); }
.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--cream); }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
}
.text-link::after { content: "→"; transition: transform 0.25s var(--ease); }
.text-link:hover::after { transform: translateX(5px); }

/* Inline prose link — underlines a word (e.g. Karyalay) inside body copy */
.inline-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--ink-30);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}
.inline-link:hover {
    color: var(--green);
    text-decoration-color: var(--green);
}

/* ============================================================
   Section heads
   ============================================================ */
.section-head { max-width: 720px; margin-bottom: var(--section-head-mb); }
.section-head--wide { max-width: 1100px; }
.section-head h2 { margin-bottom: 12px; font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.section-head p { font-size: clamp(0.98rem, 1.2vw, 1.08rem); line-height: 1.55; margin: 0; }

/* ============================================================
   Editorial cards / grids
   ============================================================ */
.grid { display: grid; gap: 1px; background: var(--ink-14); border: 1px solid var(--ink-14); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.editorial-card {
    background: var(--cream);
    padding: var(--card-pad-y) var(--card-pad-x);
    transition: background 0.3s var(--ease);
}
.editorial-card:hover { background: var(--paper); }
.card-kicker {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 12px;
}
.card-num {
    display: block;
    font-size: 0.85rem;
    color: var(--ink-30);
    margin-bottom: 12px;
}
.editorial-card h3 { margin-bottom: 10px; font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
.editorial-card p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--ink-60); }

/* Cards laid out in their own scroll region when many */
.cards-scroll { width: 100%; }

/* ============================================================
   Quote / philosophy
   ============================================================ */
.quote .panel-inner { max-width: 940px; text-align: center; }
.quote blockquote {
    margin: 0 0 32px;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.25;
    color: var(--ink);
}
.quote blockquote::before { content: "\201C"; }
.quote blockquote::after  { content: "\201D"; }
.quote .attribution { color: var(--ink-60); max-width: 64ch; margin: 0 auto; }

/* ============================================================
   Two-column editorial (about / detail)
   ============================================================ */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--split-gap); align-items: start; }
.split .col-head h2 { margin-bottom: 0; }
.founder-note {
    border-left: 2px solid var(--green);
    padding: 4px 0 4px 24px;
    margin: 0 0 28px;
    color: var(--ink-60);
}
.check-list { display: grid; gap: 14px; margin-top: 8px; }
.check-list li {
    position: relative;
    padding-left: 30px;
    color: var(--ink-60);
}
.check-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--green);
}

/* ============================================================
   Knowledge cards
   ============================================================ */
.knowledge-card {
    background: var(--cream);
    padding: var(--card-pad-y) var(--card-pad-x);
    display: flex;
    flex-direction: column;
    height: 250px;
    overflow: hidden;
    transition: background 0.3s var(--ease);
}
.knowledge-card:hover { background: var(--paper); }
.knowledge-meta {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 14px;
}
.knowledge-card h3 { margin-bottom: 12px; flex: 0 0 auto; }
.knowledge-card p {
    font-size: 0.98rem;
    flex: 0 1 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Hover: drop the title/meta and let the full note fill the same card footprint */
.knowledge-card:hover .knowledge-meta,
.knowledge-card:hover h3 {
    display: none;
}
.knowledge-card:hover p {
    -webkit-line-clamp: unset;
    overflow-y: auto;
}
.knowledge-soon {
    align-self: flex-start;
    margin-top: 4px;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-40);
    border: 1px solid var(--ink-14);
    padding: 5px 12px;
}

/* ============================================================
   Contact / forms
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
/* Two-column field layout keeps the form short enough to fit one screen. */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--ink-14);
    padding: 13px 16px;
    transition: border-color 0.25s var(--ease);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--green); }
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form input.error,
.contact-form textarea.error { border-color: #a8423f; }
.contact-form .field { display: grid; gap: 6px; }
.contact-form .field--full { grid-column: 1 / -1; }
.contact-form .btn { grid-column: 1 / -1; justify-self: start; }
.contact-form label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-60);
}
.contact-form .req { color: var(--green); }
.contact-form .opt { text-transform: none; letter-spacing: 0; color: var(--ink-40); }

/* Honeypot — off-screen, never shown to real users */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* Form status messages */
.form-status {
    padding: 14px 16px;
    margin: 0 0 22px;
    border: 1px solid;
    font-size: 0.95rem;
}
.form-status--ok {
    color: var(--green-dk);
    border-color: rgba(58, 102, 72, 0.4);
    background: var(--green-lt);
}
.form-status--err {
    color: #8a2f2c;
    border-color: rgba(168, 66, 63, 0.4);
    background: rgba(168, 66, 63, 0.06);
}

/* ---------- OTP verification modal ---------- */
body.modal-open { overflow: hidden; }

.otp-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.otp-modal[hidden] { display: none; }
.otp-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 26, 23, 0.55);
    backdrop-filter: blur(2px);
}
.otp-dialog {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--paper);
    border: 1px solid var(--ink-14);
    box-shadow: 0 24px 60px rgba(28, 26, 23, 0.28);
    padding: 34px 34px 30px;
    animation: otp-in 0.28s var(--ease);
}
@keyframes otp-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.otp-dialog h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin: 6px 0 10px;
}
.otp-lead { color: var(--ink-60); font-size: 0.98rem; margin: 0 0 20px; }
.otp-lead strong { color: var(--ink); }
.otp-dialog .field { display: grid; gap: 6px; margin-bottom: 22px; }
.otp-dialog label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-60);
}
.otp-dialog input {
    width: 100%;
    font-family: var(--font);
    font-size: 1.5rem;
    letter-spacing: 0.4em;
    text-align: center;
    color: var(--ink);
    background: var(--cream);
    border: 1px solid var(--ink-14);
    padding: 14px 16px;
    transition: border-color 0.25s var(--ease);
}
.otp-dialog input:focus { outline: none; border-color: var(--green); }
.otp-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.otp-actions .btn { flex: 1 1 auto; }
.otp-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--ink-40);
    cursor: pointer;
    transition: color 0.2s var(--ease);
}
.otp-close:hover { color: var(--ink); }
.otp-status {
    padding: 11px 14px;
    margin: 0 0 18px;
    border: 1px solid;
    font-size: 0.92rem;
}
.otp-status[hidden] { display: none; }
.otp-status--err {
    color: #8a2f2c;
    border-color: rgba(168, 66, 63, 0.4);
    background: rgba(168, 66, 63, 0.06);
}
.otp-status--ok {
    color: var(--green-dk);
    border-color: rgba(58, 102, 72, 0.4);
    background: var(--green-lt);
}

.contact-list { display: grid; gap: 32px; }
.contact-item .info-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 8px;
}
.contact-item p { margin: 0; color: var(--ink); }

/* ============================================================
   Long-form (legal / terms)
   ============================================================ */
.longform { max-width: 760px; }
.longform h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 40px 0 16px; }
.longform h2:first-child { margin-top: 0; }
.longform ul { display: grid; gap: 12px; margin: 0 0 8px; }
.longform ul li { position: relative; padding-left: 26px; color: var(--ink-60); }
.longform ul li::before { content: "—"; position: absolute; left: 0; color: var(--green); }

/* ============================================================
   CTA panel
   ============================================================ */
.cta .panel-inner { text-align: center; max-width: 760px; }
.cta h2 { margin-bottom: 28px; }
.cta p { margin-bottom: 36px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

/* ============================================================
   Centred content — every panel EXCEPT the hero centres its content group on
   both axes. Vertical centring comes from the symmetric .panel padding above;
   horizontal centring comes from dropping the editorial left inset, which lets
   each max-width .container sit in the middle via its own margin:auto. The
   rules below centre the few blocks that are narrower than the container and
   would otherwise hug its left edge.
   ============================================================ */
/* CTA + quote inners are width-constrained, so margin:auto centres them. */
.cta .panel-inner,
.quote .panel-inner { margin-left: auto; margin-right: auto; }

/* Long-form (legal / terms) is a narrow reading column — centre the block. */
.longform { margin-left: auto; margin-right: auto; }

/* ============================================================
   Footer panel
   ============================================================ */
.panel-footer {
    background: var(--green);
    color: var(--cream);
    align-items: stretch;
}
.panel-footer .panel-inner { display: flex; flex-direction: column; justify-content: center; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(245, 239, 220, 0.18);
}
.footer-logo-img {
    display: block;
    width: min(220px, 100%);
    height: auto;
    margin-bottom: 18px;
    filter: brightness(0) invert(1);
}
.footer-brand p { color: rgba(245, 239, 220, 0.7); max-width: 38ch; }
.footer-contact { margin-top: 4px; }
.footer-contact a { color: rgba(245, 239, 220, 0.85); }
.footer-contact a:hover { color: var(--cream); }
.footer-col h4 {
    color: rgba(245, 239, 220, 0.6);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 20px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: rgba(245, 239, 220, 0.85); font-size: 0.95rem; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 28px;
    color: rgba(245, 239, 220, 0.6);
    font-size: 0.85rem;
}
.footer-legal { display: inline-flex; gap: 24px; flex-wrap: wrap; }
.footer-legal a { color: rgba(245, 239, 220, 0.75); }
.footer-legal a:hover { color: var(--cream); }

/* ============================================================
   Scroll UI : progress, dots, hint
   ============================================================ */
.scroll-progress {
    position: fixed;
    left: 0; bottom: 0;
    height: 3px;
    width: 0;
    background: var(--green);
    z-index: 1100;
    transition: width 0.2s linear;
}

.scroll-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.scroll-dots button {
    width: 18px; height: 18px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--ink-30);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}
.scroll-dots button:hover { border-color: var(--green); }
.scroll-dots button.active {
    background: var(--green);
    border-color: var(--green);
    transform: scale(1.25);
}

.scroll-hint {
    position: fixed;
    right: 30px;
    bottom: 26px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-40);
    cursor: pointer;
    transition: opacity 0.4s var(--ease), color 0.3s var(--ease);
}
.scroll-hint:hover { color: var(--green); }
.scroll-hint .arrow { animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(6px); }
}
.scroll-hint.hide { opacity: 0; pointer-events: none; }

/* ============================================================
   Link cards (hub pages) — editorial cards that navigate
   ============================================================ */
a.editorial-card { display: block; color: inherit; }
.editorial-card.card-link { position: relative; padding-right: 56px; }
.editorial-card.card-link::after {
    content: "\2192";
    position: absolute;
    top: var(--card-pad-y); right: var(--card-pad-x);
    color: var(--green);
    transition: transform 0.25s var(--ease);
}
.editorial-card.card-link:hover::after { transform: translateX(6px); }
.editorial-card .card-more {
    display: inline-block;
    margin-top: 18px;
    color: var(--green);
    font-size: 0.86rem;
    letter-spacing: 0.04em;
}

/* Four-up grid (e.g. service clusters) */
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   Tag row — product / service chips
   ============================================================ */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.tag {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    background: var(--green-lt);
    border: 1px solid rgba(58, 102, 72, 0.18);
    padding: 7px 14px;
}

/* ============================================================
   Status badge — product lifecycle / availability
   ============================================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 6px 12px;
    border: 1px solid var(--ink-14);
    color: var(--ink-60);
    background: transparent;
}
.status-badge::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ink-30);
    flex: none;
}
.status-badge--live {
    color: var(--green);
    background: var(--green-lt);
    border-color: rgba(58, 102, 72, 0.18);
}
.status-badge--live::before { background: var(--green); }
.status-badge--soon {
    color: var(--green-dk);
    border-color: rgba(58, 102, 72, 0.28);
    border-style: dashed;
}
.status-badge--soon::before { background: var(--green); }
.status-badge--merged { color: var(--ink-40); border-style: dashed; }

/* Space a status badge from an adjacent "explore" link inside a card */
.status-badge + .card-more { margin-left: 14px; }

/* Availability note beneath a product card kicker */
.card-avail {
    display: block;
    margin-top: 6px;
    font-size: 0.74rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink-40);
    font-style: italic;
}

/* ============================================================
   Feature list — label + description rows
   ============================================================ */
.feature-list { display: grid; gap: 26px; }
.feature-list .feature-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 8px;
}
.feature-list p { margin: 0; color: var(--ink-60); }
/* Separate a following action button from the feature list above it. */
.feature-list + .hero-actions { margin-top: 30px; }

/* ============================================================
   FAQ — reuses the editorial grid language
   ============================================================ */
.faq-list { display: grid; gap: 1px; background: var(--ink-14); border: 1px solid var(--ink-14); }
.faq-list.faq-2 { grid-template-columns: repeat(2, 1fr); }
.faq-item { background: var(--cream); padding: var(--card-pad-y) var(--card-pad-x); transition: background 0.3s var(--ease); }
.faq-item:hover { background: var(--paper); }
.faq-item h3 { font-size: clamp(1.05rem, 1.7vw, 1.28rem); margin-bottom: 10px; }
.faq-item p  { margin: 0; font-size: 0.98rem; color: var(--ink-60); }

/* ============================================================
   Responsive
   ============================================================ */
/* --- Tablet and below --------------------------------------------------
   The horizontal, fit-to-screen deck is a desktop (>=981px) experience.
   At smaller sizes content cannot reliably fit one screen, so the layout
   falls back to natural vertical scrolling. (JS also disables the deck.) */
@media (max-width: 980px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .faq-list.faq-2 { grid-template-columns: 1fr; }
    .split,
    .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }

    /* Vertical-scroll fallback */
    html, body { height: auto; overflow: visible; }
    body { overflow-x: hidden; }

    .h-scroll {
        display: block;
        height: auto;
        width: 100%;
        overflow: visible;
        scroll-snap-type: none;
    }
    .panel {
        flex: none;
        width: 100%;
        height: auto;
        min-height: auto;
        overflow: visible;
        scroll-snap-align: none;
        scroll-snap-stop: normal;
        align-items: flex-start;
        padding: calc(var(--header-h) + 24px) 0 48px;
    }
    /* Smaller left inset when stacked vertically */
    .panel > .panel-inner > .container { padding-left: var(--gutter); }
    /* Reveal content without the JS activation cycle */
    .panel-inner { opacity: 1; transform: none; }

    /* Desktop scroll chrome has no meaning in the vertical flow */
    .scroll-dots,
    .scroll-hint,
    .scroll-progress { display: none; }
}

/* Hamburger nav: shown on narrow viewports AND on any touch device regardless
   of width. A phone using "Request Desktop Site" reports a wide viewport but
   still has a coarse pointer / no hover, so it keeps the hamburger drawer
   instead of falling back to a cramped horizontal desktop menu. */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
    /* Header bar sits over content on mobile — keep it translucent, not
       fully transparent, so the logo/toggle stay legible while scrolling. */
    .site-header {
        background: rgba(245, 239, 220, 0.85); /* --cream @ 85% */
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }

    /* Mobile navigation drawer */
    .nav-toggle { display: block; z-index: 1002; }
    .main-nav {
        position: fixed;
        top: 0; right: 0; bottom: 0; left: 0;
        width: 100%;
        height: 100vh;
        z-index: 1001;
        background: var(--cream);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
    }
    .main-nav.open { transform: translateX(0); }
    .menu-list { position: static; transform: none; flex-direction: column; gap: 26px; text-align: center; }
    .menu-list a { font-size: 1rem; }
    .nav-cta { font-size: 0.9rem; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .container { padding: 0 22px; }
    .nav-wrapper { padding: 0 22px; }
    .panel > .panel-inner > .container { padding-left: 22px; }

    .grid-2,
    .grid-3,
    .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { gap: 24px 20px; }
    .contact-form { grid-template-columns: 1fr; }

    .panel { padding: calc(var(--header-h) + 16px) 0 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .h-scroll { scroll-behavior: auto; }
    .panel-inner { transition: none; opacity: 1; transform: none; }
    .scroll-hint .arrow { animation: none; }
}
