/*
 * einvoicing.pk — single site stylesheet.
 *
 * Visual world: The Compliance Register (DESIGN.md).
 * Paper ground, slate ink, hairline rules, tabular figures, exhibit plates,
 * dark cover sections for the record and the demo. Orange is reserved for
 * transient/hot states and is absent from the page at rest.
 *
 * Token groups:
 *   Color   --c-* locked palette + --ink/--ink-2/--rule/--accent-ink/--on-dark
 *   Type    --font-sans --fs-display --fs-h2 --fs-h3 --fs-lead --fs-body
 *           --fs-sm --fs-xs --fs-label --tracking-display
 *   Space   --sp-1 … --sp-11, --container, --gutter, --section-y
 *   Shape   --radius-xs --radius-sm --radius --radius-pill
 *   Depth   --shadow-header --shadow-lift --shadow-float
 *   Motion  --ease-out --ease-in-out --ease-drawer --dur-1 --dur-2 --dur-3
 *   Layout  --header-h --z-header --z-menu --z-float
 *
 * Class inventory for reuse (A2 pages + F0):
 *   Layout      .container .section .section--tight .section--soft .section--dark
 *               .section-intro .section-head .section-head--left .band-head .eyebrow
 *   Actions     .btn .btn--primary .btn--ghost .btn--sm .btn--lg .btn--block
 *               .btn__label .btn__spinner .btn__arrow
 *   Register    .hero .hero__grid .hero__copy .hero__title .hero__lead .hero__actions
 *               .hero__call .record-line .exhibit .record-line .statement .spec
 *               .safeguard .setup__step .connections
 *   Components  .card .icon-badge .icon-badge--sm .logo-row .logo-row--partners
 *               .feature-row .feature-grid .feature-card .steps .step .pillar .pillar-grid
 *               .faq-item .faq-answer .faq-chevron .demo-form .form-grid .form-field
 *               .form-field--full .form-status .form-note .check-list .cta__inner
 *   Chrome      .site-header .site-nav .mobile-menu .site-footer .footer-grid .footer-col
 *   Utilities   .icon .icon--fill .visually-hidden .skip-link
 */

/* ---------- Fonts (self-hosted, latin subset, OFL) ---------- */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/public/fonts/inter-latin-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/public/fonts/inter-latin-600.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/public/fonts/inter-latin-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
    --c-teal: #4db6ac;
    --c-teal-dark: #26a69a;
    --c-teal-deep: #1d8e84;
    --c-teal-ink: #1a7d74;
    --c-teal-ink-strong: #145e58;
    --c-teal-light: #80cbc4;
    --c-teal-ultra: #e0f2f1;
    --c-cyan: #26c6da;
    --c-orange: #ff7043;
    --c-slate: #263238;
    --c-slate-deep: #1c262b;
    --c-gray: #546e7a;
    --c-gray-light: #90a4ae;
    --c-offwhite: #fafafa;
    --c-white: #ffffff;

    --paper: var(--c-white);
    --paper-soft: var(--c-offwhite);
    --ink: var(--c-slate);
    --ink-2: var(--c-gray);
    --rule: rgba(38, 50, 56, 0.13);
    --rule-strong: rgba(38, 50, 56, 0.3);
    --rule-on-dark: rgba(255, 255, 255, 0.17);
    --on-dark: var(--c-white);
    --on-dark-2: rgba(255, 255, 255, 0.76);
    --bg-dark: var(--c-slate);
    --accent: var(--c-teal-dark);
    --accent-ink: var(--c-teal-ink);
    --accent-press: var(--c-teal-ink-strong);
    --hot: var(--c-orange);
    --success: var(--c-teal-ink);
    --danger: #c8502f;

    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --fs-display: clamp(2.6rem, 1.9rem + 3vw, 4.35rem);
    --fs-h2: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem);
    --fs-h3: clamp(1.15rem, 1.08rem + 0.3vw, 1.35rem);
    --fs-lead: clamp(1.08rem, 1rem + 0.5vw, 1.3rem);
    --fs-body: 1rem;
    --fs-sm: 0.9375rem;
    --fs-xs: 0.8125rem;
    --fs-page: clamp(2.1rem, 1.5rem + 2.4vw, 3.25rem);
    --fs-num: 1.5rem;
    --fs-stat: clamp(1.35rem, 1.1rem + 1vw, 2rem);
    --tracking-display: -0.035em;

    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-7: 2.5rem;
    --sp-8: 3rem;
    --sp-9: 4rem;
    --sp-10: 5rem;
    --sp-11: 6rem;

    --container: 76rem;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section-y: clamp(4.25rem, 8vw, 7rem);
    --section-y-tight: clamp(2.5rem, 5vw, 3.75rem);

    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius: 6px;
    --radius-pill: 999px;

    --shadow-header: 0 14px 30px -28px rgba(38, 50, 56, 0.55);
    --shadow-lift: 0 26px 50px -36px rgba(38, 50, 56, 0.5);
    --shadow-float: 0 12px 26px -14px rgba(38, 50, 56, 0.42);

    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
    --dur-1: 160ms;
    --dur-2: 220ms;
    --dur-3: 320ms;

    --header-h: 4.5rem;
    --z-header: 50;
    --z-menu: 40;
    --z-float: 60;
}

@media (max-width: 40rem) {
    :root {
        --header-h: 4rem;
    }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scrollbar-color: var(--c-gray-light) var(--paper-soft);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: 1.62;
    color: var(--ink);
    background: var(--paper);
    caret-color: var(--accent-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }

img,
svg,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
figcaption {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-underline-offset: 0.22em;
    text-decoration-thickness: 1px;
    transition: color var(--dur-2) ease, text-decoration-color var(--dur-2) ease;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

input::placeholder,
textarea::placeholder {
    color: var(--ink-2);
    opacity: 1;
}

h1,
h2 {
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: var(--tracking-display);
    text-wrap: balance;
}

h1 {
    font-size: var(--fs-display);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.012em;
}

p {
    text-wrap: pretty;
}

::selection {
    background: var(--c-teal-light);
    color: var(--c-slate);
}

::-webkit-scrollbar {
    width: 0.75rem;
    height: 0.75rem;
}

::-webkit-scrollbar-track {
    background: var(--paper-soft);
}

::-webkit-scrollbar-thumb {
    background: var(--c-gray-light);
    border: 2px solid var(--paper-soft);
    border-radius: var(--radius-sm);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

main [id] {
    scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

/* ---------- Utilities ---------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: calc(var(--z-header) + 10);
    padding: 0.6rem 1rem;
    background: var(--c-slate);
    color: var(--c-white);
    font-size: var(--fs-sm);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    transition: top var(--dur-2) var(--ease-out), background-color var(--dur-2) ease;
}

.skip-link:focus {
    top: 0;
    background: var(--accent-press);
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon--fill {
    fill: currentColor;
    stroke: none;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ---------- Sections ---------- */

.section {
    padding-block: var(--section-y);
    border-top: 1px solid var(--rule);
}

.section--tight {
    padding-block: var(--section-y-tight);
}

.section--soft {
    background: var(--paper-soft);
}

.section--dark {
    background: var(--bg-dark);
    color: var(--on-dark);
    border-top: 0;
}

.section--dark .section-intro p {
    color: var(--on-dark-2);
}

.section-intro {
    display: grid;
    gap: var(--sp-3);
    max-width: 48rem;
}

.section-intro p {
    max-width: 44rem;
    font-size: var(--fs-lead);
    line-height: 1.55;
    color: var(--ink-2);
}

.section-intro + * {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* Labels kept for the frozen A2 pages; no kicker sits above a heading here. */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--accent-ink);
}

.eyebrow .icon {
    width: 1rem;
    height: 1rem;
}

.section--dark .eyebrow {
    color: var(--c-teal-light);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.35rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-2) ease,
        color var(--dur-2) ease, border-color var(--dur-2) ease;
}

.btn:active {
    transform: scale(0.97);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.btn .icon {
    width: 1.05em;
    height: 1.05em;
    transition: transform var(--dur-2) var(--ease-out);
}

.btn--primary {
    background: var(--accent-ink);
    color: var(--c-white);
}

.btn--ghost {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--rule-strong);
}

.btn--sm {
    padding: 0.55rem 0.95rem;
    font-size: var(--fs-sm);
}

.btn--lg {
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
}

.btn--block {
    width: 100%;
}

.btn__spinner {
    display: none;
    stroke-dasharray: 44;
    stroke-dashoffset: 24;
    animation: spin 0.7s linear infinite;
}

.btn[data-loading='true'] .btn__spinner {
    display: inline-block;
}

.btn[data-loading='true'] .btn__arrow {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (hover: hover) and (pointer: fine) {
    .btn:not(:disabled):hover {
        transform: translateY(-1px);
    }

    .btn:not(:disabled):active {
        transform: scale(0.97);
    }

    .btn--primary:not(:disabled):hover {
        background: var(--accent-press);
    }

    .btn--primary:not(:disabled):hover .icon {
        transform: translateX(2px);
    }

    .btn--ghost:not(:disabled):hover {
        border-color: var(--accent);
        color: var(--accent-ink);
        background: var(--c-teal-ultra);
    }
}

/* ---------- Header / navigation ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: var(--z-header);
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    transition: box-shadow var(--dur-2) ease;
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-header);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    height: var(--header-h);
}

.site-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--dur-2) ease;
}

.site-logo img {
    height: 2.125rem;
    width: auto;
}

.site-nav {
    display: none;
    gap: clamp(1.25rem, 2.5vw, 2.25rem);
    margin-inline: auto;
}

.site-nav a {
    padding: 0.35rem 0;
    font-size: var(--fs-sm);
    color: var(--ink-2);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.45rem;
    transition: color var(--dur-2) ease, text-decoration-color var(--dur-2) ease;
}

.site-nav a[aria-current='page'] {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.45rem;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform var(--dur-1) var(--ease-out), border-color var(--dur-2) ease,
        color var(--dur-2) ease, background-color var(--dur-2) ease;
}

.nav-toggle:active {
    transform: scale(0.96);
}

.nav-toggle .icon {
    width: 1.4rem;
    height: 1.4rem;
}

.nav-toggle__close {
    display: none;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__open {
    display: none;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__close {
    display: block;
}

@media (hover: hover) and (pointer: fine) {
    .site-nav a:hover {
        color: var(--ink);
        text-decoration-color: var(--accent);
    }

    .site-logo:hover {
        opacity: 0.82;
    }

    .nav-toggle:hover {
        border-color: var(--accent);
        color: var(--accent-ink);
        background: var(--c-teal-ultra);
    }
}

.mobile-menu {
    /* Absolute, not fixed: it stays anchored to the fixed header. */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    z-index: var(--z-menu);
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    padding: var(--sp-6) var(--gutter) var(--sp-8);
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-3) var(--ease-drawer),
        visibility 0s linear var(--dur-3);
}

@supports (height: 100dvh) {
    .mobile-menu {
        height: calc(100dvh - var(--header-h));
    }
}

html.menu-open {
    overflow: hidden;
}

html.menu-open .mobile-menu {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-3) var(--ease-drawer), visibility 0s;
}

.mobile-menu__nav {
    display: grid;
}

.mobile-menu__nav a {
    padding: 0.9rem 0;
    font-size: var(--fs-h3);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    transition: color var(--dur-2) ease;
}

.mobile-menu__nav a[aria-current='page'] {
    color: var(--accent-ink);
}

.mobile-menu__nav a:active,
.mobile-menu__contact a:active {
    color: var(--accent-press);
}

.mobile-menu__contact {
    display: grid;
    gap: 0.35rem;
    font-size: var(--fs-sm);
}

.mobile-menu__contact a {
    color: var(--ink-2);
    text-decoration: none;
    transition: color var(--dur-2) ease;
}

@media (hover: hover) and (pointer: fine) {
    .mobile-menu__nav a:hover,
    .mobile-menu__contact a:hover {
        color: var(--accent-ink);
    }
}

@media (max-width: 30rem) {
    .site-header__cta {
        display: none;
    }
}

@media (min-width: 56rem) {
    .site-nav {
        display: flex;
    }

    .nav-toggle,
    .mobile-menu {
        display: none;
    }
}

/* ---------- Hero ---------- */

.hero {
    padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4.25rem));
    padding-bottom: clamp(3rem, 6vw, 5rem);
    background: var(--paper);
}

.hero__grid {
    display: grid;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
}

.hero__copy {
    display: grid;
    gap: var(--sp-5);
    justify-items: start;
    max-width: 34rem;
}

.hero__title {
    font-size: var(--fs-display);
}

.hero__lead {
    max-width: 33rem;
    font-size: var(--fs-lead);
    line-height: 1.55;
    color: var(--ink-2);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-3) var(--sp-5);
}

.hero__call {
    font-size: var(--fs-sm);
    color: var(--ink-2);
    text-decoration-color: var(--rule-strong);
    transition: color var(--dur-2) ease, text-decoration-color var(--dur-2) ease;
}

.hero__call:active {
    color: var(--accent-press);
}

.record-line {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2) clamp(0.9rem, 2vw, 1.5rem);
    width: 100%;
    padding-top: var(--sp-4);
    border-top: 1px solid var(--rule);
    font-size: var(--fs-sm);
    font-variant-numeric: tabular-nums;
    color: var(--ink-2);
}

.record-line li {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.record-line li + li {
    padding-left: clamp(0.9rem, 2vw, 1.5rem);
    border-left: 1px solid var(--rule);
}

/* DESIGN.md: the strip wraps without side stripes on mobile. A wrapped row
   would otherwise open with a dangling rule on its first item. */
@media (max-width: 40rem) {
    .record-line li + li {
        padding-left: 0;
        border-left: 0;
    }
}

.record-line strong {
    font-weight: 700;
    color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
    .hero__call:hover {
        color: var(--accent-ink);
        text-decoration-color: var(--accent);
    }
}

/* ---------- Exhibit (hero video) ---------- */

.exhibit {
    position: relative;
}

.exhibit__video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--c-teal-ultra);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}

@media (min-width: 62rem) {
    .hero__grid {
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
    }

    .hero__copy {
        grid-column: 1;
        grid-row: 1;
    }

    .exhibit {
        grid-column: 2;
        grid-row: 1;
    }

    .record-line {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: var(--sp-3);
    }
}

/* ---------- Safeguards ---------- */

.safeguards__list {
    border-top: 1px solid var(--rule);
}

.safeguard {
    display: grid;
    gap: var(--sp-2);
    padding-block: clamp(1.5rem, 3vw, 2.25rem);
    border-bottom: 1px solid var(--rule);
}

.safeguard p {
    max-width: 62ch;
    color: var(--ink-2);
}

.safeguards__partners {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-top: var(--sp-6);
    border-top: 1px solid var(--rule);
}

.safeguards__partners h3 {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-2);
}

@media (min-width: 48rem) {
    .safeguard {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
        gap: var(--sp-6);
        align-items: baseline;
    }
}

/* ---------- Proof statement ---------- */

.statement {
    border-top: 1px solid var(--rule-on-dark);
}

.statement__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: var(--sp-2) var(--sp-6);
    padding-block: clamp(1.4rem, 3vw, 2rem);
    border-bottom: 1px solid var(--rule-on-dark);
}

.statement dt {
    font-size: 1.05rem;
}

.statement dd {
    font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.75rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.statement dd.statement__word {
    font-size: var(--fs-stat);
}

.statement__state {
    grid-column: 2;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--c-teal-light);
}

.statement__state .icon {
    width: 0.95rem;
    height: 0.95rem;
}

.statement__state--plain {
    color: var(--on-dark-2);
}

.proof__note {
    margin-top: var(--sp-5);
    font-size: var(--fs-xs);
    color: var(--on-dark-2);
}

/* ---------- Features spec sheet ---------- */

.spec__panel {
    display: grid;
    gap: var(--sp-5);
    padding-block: clamp(2.25rem, 4vw, 3.25rem);
    border-top: 1px solid var(--rule);
}

.spec__panel > .spec__entry {
    padding-block: 0;
    border-top: 0;
}

.spec__entry {
    display: grid;
    gap: var(--sp-5);
    padding-block: clamp(2.25rem, 4vw, 3.25rem);
    border-top: 1px solid var(--rule);
}

.spec__field {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    color: var(--ink-2);
}

.spec__body h3 {
    margin-bottom: var(--sp-2);
}

.spec__body p {
    max-width: 60ch;
    color: var(--ink-2);
}

.spec__plate img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--c-teal-ultra);
}

.spec__plate figcaption {
    margin-top: var(--sp-2);
    font-size: var(--fs-xs);
    color: var(--ink-2);
    text-align: center;
}

.spec__pair {
    display: grid;
    gap: clamp(2rem, 4vw, 3rem);
}

.spec__entry--pair {
    border-top: 1px solid var(--rule);
    padding-top: clamp(1.75rem, 3vw, 2.5rem);
}

.spec__entry--pair .spec__plate {
    order: -1;
}

@media (min-width: 56rem) {
    .spec__entry {
        grid-template-columns: 8.5rem minmax(0, 1fr) minmax(0, 1fr);
        gap: clamp(1.5rem, 3vw, 2.5rem);
        align-items: start;
    }

    .spec__panel {
        grid-template-columns: 8.5rem minmax(0, 1fr) minmax(0, 1fr);
        gap: clamp(1.5rem, 3vw, 2.5rem);
        align-items: start;
    }

    .spec__panel > .spec__entry {
        grid-column: 1 / 3;
        grid-template-columns: 8.5rem minmax(0, 1fr);
        gap: clamp(1.5rem, 3vw, 2.5rem);
        align-items: start;
    }

    .spec__panel > .spec__plate {
        grid-column: 3;
    }
}

@media (min-width: 48rem) {
    .spec__pair {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .spec__entry--pair {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Pinned spec stage. site.js adds .spec--pinned on desktop only. The wrapper
   supplies the scroll distance, the stage sticks, and one panel shows at a
   time; text and image are two children of the panel and share one transition
   so they never desync. The track is one viewport for the pinned frame plus a
   short step per remaining panel, so the approach and the tail stay tight. */

@media (min-width: 62rem) {
    /*
     * The pinned stage carries the scroll rhythm, so the section keeps a short
     * frame: the pin engages soon after the intro, and the space between the
     * released stage and the next section stays close.
     */
    #features {
        padding-block: clamp(2.5rem, 4vw, 3.5rem) var(--section-y-tight);
    }

    .spec--pinned {
        --spec-swap: 450ms;
        position: relative;
        height: calc(100vh + 5 * 84vh);
        height: calc(100svh + 5 * 84svh);
    }

    .spec--pinned .spec__stage {
        position: sticky;
        top: 0;
        height: 100vh;
        height: 100svh;
        overflow: clip;
    }

    .spec--pinned .spec__panels {
        position: relative;
        height: 100%;
    }

    .spec--pinned .spec__panel {
        position: absolute;
        inset: 0;
        grid-template-columns: 8.5rem minmax(0, 1fr) minmax(0, 1fr);
        gap: clamp(1.5rem, 3vw, 2.5rem);
        align-content: center;
        align-items: center;
        padding-block: var(--header-h) var(--sp-5);
        border-top: 0;
        visibility: hidden;
        pointer-events: none;
        transition: visibility 0s linear var(--spec-swap);
    }

    .spec--pinned .spec__panel.is-active {
        visibility: visible;
        pointer-events: auto;
        transition: visibility 0s;
    }

    .spec--pinned .spec__panel > .spec__entry,
    .spec--pinned .spec__panel > .spec__plate {
        opacity: 0;
        transform: translateY(1.25rem);
        transition:
            opacity var(--spec-swap) var(--ease-out),
            transform var(--spec-swap) var(--ease-out);
    }

    .spec--pinned .spec__panel.is-active > .spec__entry,
    .spec--pinned .spec__panel.is-active > .spec__plate {
        opacity: 1;
        transform: translateY(0);
    }

    .spec--pinned .spec__panel [data-reveal] {
        animation: none;
        animation-timeline: auto;
    }

    .spec--pinned .spec__plate img {
        max-height: calc(100svh - var(--header-h) - 8rem);
        object-fit: contain;
    }

    .spec--pinned .spec__field::after {
        content: '';
        display: block;
        width: 2rem;
        height: 2px;
        margin-top: var(--sp-2);
        background: var(--accent-ink);
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform var(--dur-2) var(--ease-out);
    }

    .spec--pinned .spec__panel.is-active .spec__field::after {
        transform: scaleX(1);
    }

    .spec--pinned .spec__panel.is-active .spec__field {
        color: var(--ink);
    }
}

/* ---------- Connections ---------- */

.connections {
    background: var(--c-teal-ultra);
}

.connections__grid {
    display: grid;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}

.connections__copy {
    max-width: 34rem;
}

.connections__copy p {
    margin-top: var(--sp-3);
    font-size: var(--fs-lead);
    line-height: 1.55;
    color: var(--ink-2);
}

.connections__logos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-5) var(--sp-6);
    align-items: center;
    justify-items: center;
    margin-top: 0;
}

@media (min-width: 56rem) {
    .connections__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .connections__logos {
        justify-items: end;
    }
}

/* ---------- Setup steps ---------- */

.setup__steps {
    border-top: 1px solid var(--rule);
}

.setup__step {
    display: grid;
    gap: var(--sp-2);
    padding-block: clamp(1.75rem, 3vw, 2.5rem);
    border-bottom: 1px solid var(--rule);
}

.setup__num {
    font-size: var(--fs-num);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--accent-ink);
}

.setup__step p {
    max-width: 60ch;
    color: var(--ink-2);
}

@media (min-width: 52rem) {
    .setup__steps {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .setup__step {
        padding-block: 0 0;
        padding-top: clamp(1.75rem, 3vw, 2.5rem);
        padding-inline: clamp(1.25rem, 2.5vw, 2rem);
        border-bottom: 0;
        border-right: 1px solid var(--rule);
    }

    .setup__step:first-child {
        padding-left: 0;
    }

    .setup__step:last-child {
        padding-right: 0;
        border-right: 0;
    }
}

/* ---------- FAQ ---------- */

.faq-list {
    max-width: 54rem;
    border-top: 1px solid var(--rule);
}

.faq-item {
    border-bottom: 1px solid var(--rule);
    transition: border-color var(--dur-2) ease;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding-block: clamp(1.1rem, 2vw, 1.4rem);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    transition: color var(--dur-2) ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    content: '';
}

.faq-item[open] summary {
    color: var(--accent-ink);
}

.faq-item summary:active {
    color: var(--accent-press);
}

.faq-chevron {
    width: 1.15rem;
    height: 1.15rem;
    color: var(--ink-2);
    transition: transform var(--dur-2) var(--ease-out), color var(--dur-2) ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent-ink);
}

@media (hover: hover) and (pointer: fine) {
    .faq-item:hover {
        border-color: var(--rule-strong);
    }

    .faq-item summary:hover {
        color: var(--accent-ink);
    }

    .faq-item summary:hover .faq-chevron {
        color: var(--accent-ink);
    }
}

.faq-answer {
    padding-bottom: clamp(1.1rem, 2vw, 1.4rem);
}

.faq-answer p {
    max-width: 65ch;
    font-size: var(--fs-sm);
    color: var(--ink-2);
}

@supports (interpolate-size: allow-keywords) {
    :root {
        interpolate-size: allow-keywords;
    }

    details::details-content {
        block-size: 0;
        overflow: hidden;
        opacity: 0;
        transition: block-size var(--dur-3) var(--ease-out), opacity var(--dur-2) ease,
            content-visibility var(--dur-3);
        transition-behavior: allow-discrete;
    }

    details[open]::details-content {
        block-size: auto;
        opacity: 1;
    }
}

/* ---------- Demo ---------- */

.demo__grid {
    display: grid;
    gap: clamp(2.5rem, 5vw, 4.5rem);
}

.demo__intro {
    display: grid;
    gap: var(--sp-5);
    justify-items: start;
    max-width: 33rem;
}

.demo__intro p {
    color: var(--on-dark-2);
}

.demo__points {
    display: grid;
    gap: 0.6rem;
}

.demo__points li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: var(--fs-sm);
    color: var(--on-dark-2);
}

.demo__points .icon {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.25rem;
    color: var(--c-teal-light);
}

.demo__contact a {
    color: var(--c-teal-light);
    text-decoration-color: rgba(128, 203, 196, 0.5);
}

@media (hover: hover) and (pointer: fine) {
    .demo__contact a:hover {
        text-decoration-color: var(--c-teal-light);
    }
}

.demo__form {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--paper);
    color: var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
}

@media (min-width: 56rem) {
    .demo__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        align-items: start;
    }
}

/* ---------- Form ---------- */

.demo-form {
    display: grid;
    gap: var(--sp-5);
}

.form-grid {
    display: grid;
    gap: var(--sp-4);
}

.form-field {
    display: grid;
    gap: 0.4rem;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: var(--fs-xs);
    font-weight: 600;
    transition: color var(--dur-2) ease;
}

.form-field label span {
    color: var(--danger);
}

.form-field:focus-within label {
    color: var(--accent-ink);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    font-size: var(--fs-sm);
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    transition: border-color var(--dur-2) ease, box-shadow var(--dur-2) ease;
}

.form-field textarea {
    min-height: 6rem;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(77, 182, 172, 0.25);
}

.form-field input:focus:invalid,
.form-field textarea:focus:invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(200, 80, 47, 0.18);
}

@media (hover: hover) and (pointer: fine) {
    .form-field input:hover:not(:focus),
    .form-field select:hover:not(:focus),
    .form-field textarea:hover:not(:focus) {
        border-color: var(--accent);
    }
}

.form-status {
    min-height: 1.25rem;
    font-size: var(--fs-sm);
    font-weight: 600;
}

.form-status[data-state='success'] {
    color: var(--success);
}

.form-status[data-state='error'] {
    color: var(--danger);
}

.form-note {
    margin-top: calc(var(--sp-2) * -1);
    font-size: 0.8rem;
    color: var(--ink-2);
}

@media (min-width: 36rem) {
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Footer ---------- */

.site-footer {
    padding: clamp(3rem, 6vw, 4.5rem) 0 var(--sp-6);
    background: var(--c-slate-deep);
    color: var(--on-dark-2);
}

.footer-grid {
    display: grid;
    gap: var(--sp-7);
}

.footer-brand {
    display: grid;
    gap: var(--sp-4);
    max-width: 22rem;
}

.footer-brand img {
    height: 2rem;
    width: auto;
}

.footer-brand p {
    font-size: var(--fs-sm);
}

.footer-col h3 {
    margin-bottom: var(--sp-4);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--on-dark);
}

.footer-col ul {
    display: grid;
    gap: 0.55rem;
}

.footer-col a {
    font-size: var(--fs-sm);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: color var(--dur-2) ease, text-decoration-color var(--dur-2) ease;
}

.footer-col a:active {
    color: var(--c-white);
}

@media (hover: hover) and (pointer: fine) {
    .footer-col a:hover {
        color: var(--c-white);
        text-decoration-color: var(--c-teal-light);
    }
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--sp-2) var(--sp-5);
    margin-top: var(--sp-8);
    padding-top: var(--sp-5);
    font-size: 0.8rem;
    color: var(--on-dark-2);
    border-top: 1px solid var(--rule-on-dark);
}

@media (min-width: 40rem) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: var(--sp-6);
    }
}

/* ---------- Floating controls ---------- */

.whatsapp-button {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: var(--z-float);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    color: var(--c-white);
    background: var(--accent-ink);
    border-radius: 50%;
    box-shadow: var(--shadow-float);
    transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-2) ease,
        box-shadow var(--dur-2) ease;
}

.whatsapp-button:active {
    transform: scale(0.95);
}

.whatsapp-button .icon {
    width: 1.5rem;
    height: 1.5rem;
}

@media (hover: hover) and (pointer: fine) {
    .whatsapp-button:hover {
        background: var(--accent-press);
        box-shadow: var(--shadow-lift);
        transform: translateY(-2px);
    }
}

@media (max-width: 30rem) {
    .whatsapp-button {
        right: 0.9rem;
        bottom: 0.9rem;
        width: 3rem;
        height: 3rem;
    }
}

/* ---------- Motion ---------- */

@keyframes hero-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes exhibit-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes reveal-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes plate-in {
    from {
        opacity: 0;
        clip-path: inset(0 0 14% 0);
    }

    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-anim > * {
        animation: hero-in 0.55s var(--ease-out) both;
    }

    .hero-anim > *:nth-child(1) {
        animation-delay: 40ms;
    }

    .hero-anim > *:nth-child(2) {
        animation-delay: 100ms;
    }

    .hero-anim > *:nth-child(3) {
        animation-delay: 160ms;
    }

    .hero-anim > *:nth-child(4) {
        animation-delay: 220ms;
    }

    .hero-anim > *:nth-child(5) {
        animation-delay: 280ms;
    }

    .hero .exhibit {
        animation: exhibit-in 0.65s var(--ease-out) 140ms both;
    }

    @supports (animation-timeline: view()) {
        [data-reveal] {
            animation: reveal-in both linear;
            animation-timeline: view();
            animation-range: entry 10% entry 42%;
        }

        [data-reveal='plate'] {
            animation-name: plate-in;
            animation-range: entry 4% entry 38%;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    [data-reveal],
    .hero-anim > *,
    .hero .exhibit {
        animation: none !important;
    }

    .btn:not(:disabled):hover,
    .whatsapp-button:hover {
        transform: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Inner pages (/features/, /about/, /contact/) ---------- */

.page-hero {
    padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4rem));
    padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
    background: var(--c-teal-ultra);
}

.page-hero__inner {
    display: grid;
    gap: var(--sp-4);
    justify-items: start;
    max-width: 46rem;
}

.page-hero h1 {
    font-size: var(--fs-page);
}

.page-hero__lead {
    max-width: 42rem;
    font-size: var(--fs-lead);
    line-height: 1.55;
    color: var(--ink-2);
}

.breadcrumbs {
    font-size: var(--fs-xs);
    color: var(--ink-2);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.55rem;
}

.breadcrumbs li + li::before {
    content: '/';
    margin-right: 0.55rem;
    color: var(--ink-2);
}

.breadcrumbs a {
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: color var(--dur-2) ease, text-decoration-color var(--dur-2) ease;
}

.breadcrumbs a:active {
    color: var(--accent-press);
}

.breadcrumbs [aria-current='page'] {
    color: var(--ink);
    font-weight: 600;
}

.cta__inner {
    display: grid;
    gap: var(--sp-4);
    justify-items: center;
    max-width: 46rem;
    margin-inline: auto;
    text-align: center;
}

.cta__inner p {
    font-size: var(--fs-lead);
    color: var(--on-dark-2);
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-3);
    margin-top: var(--sp-2);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--accent-ink);
    text-decoration: underline;
    text-decoration-color: transparent;
    overflow-wrap: anywhere;
    transition: color var(--dur-2) ease, text-decoration-color var(--dur-2) ease;
}

.contact-link:active {
    color: var(--accent-press);
}

main p a:not([class]):not(.demo__contact a) {
    text-decoration-color: var(--rule-strong);
}

@media (hover: hover) and (pointer: fine) {
    main p a:not([class]):not(.demo__contact a):hover {
        color: var(--accent-ink);
        text-decoration-color: var(--accent);
    }
}

.logo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
}

.logo-row li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-row img {
    height: 2.25rem;
    width: auto;
    filter: grayscale(1);
    opacity: 0.68;
    transition: filter var(--dur-2) ease, opacity var(--dur-2) ease;
}

.logo-row--partners {
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-top: var(--sp-5);
}

/*
 * The partner wordmark files are white or light-toned on transparency, so on
 * the paper ground they disappear with the default grayscale filter. Darken
 * them into ink marks everywhere they appear (homepage and About).
 */
.logo-row--partners img {
    height: 2.25rem;
    filter: grayscale(1) brightness(0.42);
    opacity: 0.8;
}

@media (hover: hover) and (pointer: fine) {
    .logo-row img:hover {
        filter: grayscale(0);
        opacity: 1;
    }

    .logo-row--partners img:hover {
        filter: grayscale(1) brightness(0.42);
        opacity: 1;
    }

    .breadcrumbs a:hover {
        color: var(--accent-ink);
        text-decoration-color: var(--accent);
    }

    .contact-link:hover {
        text-decoration-color: var(--accent);
    }
}

.partner-groups {
    display: grid;
    gap: var(--sp-8);
}

.partner-group h3 {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.partner-groups .logo-row {
    margin-top: var(--sp-5);
}

@media (min-width: 52rem) {
    .partner-groups {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

/* ---------- D2 subpage overrides (/features/, /about/, /contact/) ---------- */

/*
 * Register page hero: the same paper ground and rhythm as the homepage hero,
 * so a subpage reads as another page of the same ruled record.
 */
.page-hero {
    background: var(--paper);
    padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4rem));
    padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.page-hero__inner {
    max-width: 48rem;
}

/*
 * The homepage grid assigns the record strip to the hero's second row. Reset
 * that inside the subpage hero so the strip stays after the actions, in source
 * order, and sits flush instead of picking up the homepage margin.
 */
.page-hero .record-line {
    grid-row: auto;
    grid-column: auto;
    margin-top: 0;
}

/* Ruled contact rows: the channel link sits on its own line in the body cell. */
.safeguard__body {
    display: grid;
    gap: var(--sp-3);
    justify-items: start;
}

/* The closing cover is left-aligned like every other section intro. */
.cta__inner {
    justify-items: start;
    max-width: 44rem;
    margin-inline: 0;
    text-align: left;
}

.cta__actions {
    justify-content: flex-start;
}

/* ---------- A-FEATURES: Features submenu navigation ---------- */

.nav-item {
    position: relative;
}

.nav-item__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0;
    font-size: var(--fs-sm);
    font-weight: 400;
    color: var(--ink-2);
    background: none;
    border: 0;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.45rem;
    transition: color var(--dur-2) ease, text-decoration-color var(--dur-2) ease;
}

.nav-item__toggle.is-current {
    color: var(--ink);
    text-decoration-color: var(--accent);
}

.nav-item--menu.is-open .nav-item__toggle {
    color: var(--ink);
}

.nav-item__chevron {
    width: 0.85rem;
    height: 0.85rem;
    transition: transform var(--dur-2) var(--ease-out);
}

.nav-item--menu.is-open .nav-item__chevron {
    transform: rotate(180deg);
}

.nav-submenu {
    position: absolute;
    top: 100%;
    left: -0.9rem;
    z-index: var(--z-menu);
    min-width: 13.5rem;
    padding: 0.6rem 0.35rem 0.35rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-header);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.35rem);
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-drawer),
        visibility 0s linear var(--dur-2);
}

.nav-item--menu.is-open .nav-submenu {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-drawer), visibility 0s;
}

.nav-submenu a {
    display: block;
    padding: 0.6rem 0.85rem;
    font-size: var(--fs-sm);
    color: var(--ink-2);
    border-radius: var(--radius-xs);
    transition: color var(--dur-2) ease, background-color var(--dur-2) ease;
}

.nav-submenu a[aria-current='page'] {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.35rem;
}

.nav-submenu a:active {
    color: var(--accent-press);
    background: var(--c-teal-ultra);
}

.mobile-menu__group {
    display: grid;
}

.mobile-menu__group-label {
    padding: 0.9rem 0 0.1rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-2);
}

@media (hover: hover) and (pointer: fine) {
    .nav-item__toggle:hover {
        color: var(--ink);
        text-decoration-color: var(--accent);
    }

    .nav-submenu a:hover {
        color: var(--accent-press);
        background: var(--c-teal-ultra);
    }
}

/* Final review: immediate content, readable marks and restrained motion. */
.page-hero { padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4.5rem)); }
.page-hero__inner, .page-hero h1 { max-width: 52rem; }
h1, h2 { text-wrap: balance; }
.hero__title { font-size: clamp(2.5rem, 1.8rem + 2.4vw, 3.75rem); line-height: 1.08; }
.logo-row img { filter: none; opacity: 1; }
.logo-row--partners { gap: 1.5rem 2rem; }
.logo-row--partners li { width: 10rem; height: 5rem; overflow: hidden; flex: 0 0 10rem; }
.logo-row--partners img { width: 15rem; max-width: none; height: auto; flex-shrink: 0; filter: brightness(.2); opacity: 1; }
@media (hover: hover) and (pointer: fine) {
    .logo-row--partners img:hover { filter: brightness(.2); }
}
@media (prefers-reduced-motion: no-preference) {
    .hero-anim > *, .hero .exhibit { animation-duration: 240ms; animation-delay: 0ms; }
    [data-reveal] { animation: none; }
}
@keyframes hero-in { from { opacity: .8; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes exhibit-in { from { opacity: .8; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (min-width: 62rem) {
    .spec--pinned { --spec-swap: 220ms; height: calc(100svh + 5 * 48svh); }
}
@media (max-width: 40rem) {
    .page-hero { padding-top: calc(var(--header-h) + 2rem); }
    .hero { padding-top: calc(var(--header-h) + 2rem); }
    .hero__grid { gap: 2rem; }
    .hero__copy { gap: 1.25rem; }
}
.logo-row--partners img[src*="memon"], .logo-row--partners img[src*="domin"], .logo-row--partners img[src*="zam_"], .logo-row--partners img[src*="alphaventure"] { width: 12.5rem; }
.exhibit__toggle { position: absolute; right: .65rem; bottom: .65rem; min-height: 2.75rem; padding: .5rem .8rem; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius-sm); font: 600 .8125rem var(--font-sans); cursor: pointer; }
.exhibit__toggle[hidden] { display: none; }
.exhibit__toggle:hover { background: var(--c-teal-ultra); }
.exhibit__toggle:active { transform: scale(.97); }
.exhibit__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius); pointer-events: none; transition: opacity 160ms ease; }
.exhibit.is-playing .exhibit__poster { opacity: 0; }
.exhibit__toggle { z-index: 1; }
