/* Carried over from the original homepage: tokens, glass top bar, language menu, nav, footer. */
/* ----------------------------------------------------------------
   ZiliWorks — design tokens
   A small, deliberate palette. Hairlines, tabular nums, one easing
   curve, and an editorial rhythm. Light mode is the canvas;
   dark mode is the OPC after hours.
----------------------------------------------------------------- */
:root {
    --ink:           #111113;
    --ink-soft:      #4a4a52;
    --ink-mute:      #8a8a92;
    --ink-faint:     #c8c8cf;
    --paper:         #f7f7f5;
    --paper-edge:    #efefea;
    --line:          rgba(17, 17, 19, 0.10);
    --line-strong:   rgba(17, 17, 19, 0.18);
    --signal:        #1d6f5c;

    --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", monospace;

    /* ---------- motion system ----------
       A small, deliberate vocabulary of curves and tempos.
       Display motion (large, slow, long-distance) uses quint;
       UI micro-interactions (small, snappy) use soft/emphasized.
       Everything composes through these tokens — never raw bezier in rules. */
    --ease-out-quint:  cubic-bezier(0.22, 1, 0.36, 1);   /* signature display */
    --ease-out-quart:  cubic-bezier(0.25, 1, 0.5, 1);    /* secondary display */
    --ease-out-expo:   cubic-bezier(0.16, 1, 0.3, 1);    /* deep arrival */
    --ease-soft:       cubic-bezier(0.4, 0, 0.2, 1);     /* UI standard */
    --ease-emph:       cubic-bezier(0.2, 0, 0, 1);       /* emphasised UI */
    --ease-glide:      cubic-bezier(0.32, 0.72, 0, 1);   /* iOS-like glide */
    --ease: var(--ease-out-expo);                         /* legacy alias */

    --dur-xs: 180ms;     /* hover state changes */
    --dur-sm: 280ms;     /* small popovers, chips */
    --dur-md: 420ms;     /* nav underlines, tilt */
    --dur-lg: 720ms;     /* image lift, larger UI */
    --dur-xl: 1100ms;    /* scroll reveals, hero arrival */

    --rail: 1440px;
    --gutter: clamp(20px, 4vw, 56px);

    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink:         #f2f2f0;
        --ink-soft:    #c4c4c2;
        --ink-mute:    #8a8a88;
        --ink-faint:   #4a4a48;
        --paper:       #0c0c0d;
        --paper-edge:  #131315;
        --line:        rgba(242, 242, 240, 0.10);
        --line-strong: rgba(242, 242, 240, 0.20);
        --signal:      #6fd3b8;
    }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Anchor scrolling — the browser does it better than we can.
   Native scroll-behavior: smooth on modern Safari/Chrome has
   a tasteful ease-in-out, scales tempo with distance, and
   remains fully interruptible (trackpad flick, scrollbar drag,
   keyboard, screen-reader nav). scroll-padding-top mirrors the
   floating glass topbar so headers land below it, not under it.
   This is the same pattern Apple uses on apple.com. */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
html, body { max-width: 100%; overflow-x: hidden; }

body {
    font-family: var(--font-sans);
    background: var(--paper);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.55;
    font-feature-settings: "ss01", "cv11", "kern", "liga";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Tabular numerals everywhere they earn their keep. */
.num, time, .price, .stamp, .index {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum", "ss01";
}

/* True hairlines on retina. */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .hairline { border-width: 0.5px !important; }
    .hairline-t { border-top-width: 0.5px !important; }
    .hairline-b { border-bottom-width: 0.5px !important; }
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
    border-radius: 2px;
}

::selection { background: var(--ink); color: var(--paper); }

/* ---------------- scroll progress hairline ----------------
   GPU-only: scaleX from a 0,50% origin, smoothed with a short
   quart curve so micro-jitter from rAF reads as one continuous line. */
.progress {
    position: fixed; top: 0; left: 0; right: 0;
    height: 1px; z-index: 60; pointer-events: none;
    background: transparent;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-quint);
}
html.is-ready .progress { opacity: 1; }
.progress::after {
    content: "";
    display: block; height: 100%; width: 100%;
    background: var(--ink);
    transform: scaleX(var(--p, 0));
    transform-origin: 0 50%;
    transition: transform 0.16s var(--ease-out-quart);
    will-change: transform;
}

/* ---------------- top bar ----------------
   Compact liquid-glass pill. Four layers (refraction, tint,
   convex rim, content) after sohumsuthar/liquid-glass and
   LeonardSEO/liquid-glass-react. Hugs its contents.
----------------------------------------------- */
.topbar {
    --mx: 50%;
    --my: 50%;
    position: fixed;
    top: 12px;
    left: 50%;
    z-index: 50;
    width: max-content;
    max-width: calc(100vw - 24px);
    border-radius: 999px;
    isolation: isolate;
    background: transparent;
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        0 0 0 0.5px rgba(0, 0, 0, 0.04),
        0 10px 32px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.04);
    transform: translate3d(-50%, calc(-100% - 24px), 0);
    opacity: 0;
    transition:
        transform 1s var(--ease-out-quint),
        opacity 0.7s var(--ease-out-quint),
        box-shadow 0.4s var(--ease-soft);
    will-change: transform;
}
html.is-ready .topbar {
    transform: translate3d(-50%, 0, 0);
    opacity: 1;
}
.topbar.is-scrolled {
    box-shadow:
        0 0 0 0.5px rgba(0, 0, 0, 0.06),
        0 14px 36px rgba(0, 0, 0, 0.12),
        0 4px 10px rgba(0, 0, 0, 0.06);
}

/* Layer 0 — live backdrop, lightly blurred. Chromium JS
   appends url(#lg-refract) so the rim actually bends. */
.glass-effect {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    backdrop-filter: blur(2px) saturate(180%) brightness(1.06) contrast(1.04);
    -webkit-backdrop-filter: blur(2px) saturate(180%) brightness(1.06) contrast(1.04);
}
/* Layer 1 — low-alpha tint. Glass should show the page, not paint. */
.glass-tint {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.18);
}
/* Layer 2 — convex bezel: bright top rim, darker underside. */
.glass-shine {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    pointer-events: none;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.62),
        inset 0 0 6px 0 rgba(255, 255, 255, 0.28),
        inset 0 2px 4px -2px rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px -2px rgba(0, 0, 0, 0.06);
}
.glass-shine::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s var(--ease-soft);
    background: radial-gradient(
        160px circle at var(--mx) var(--my),
        rgba(255, 255, 255, 0.22),
        rgba(255, 255, 255, 0.06) 40%,
        transparent 70%
    );
    mix-blend-mode: soft-light;
}
.topbar:hover .glass-shine::after { opacity: 1; }
/* Layer 3 — content sits above the material. */
.glass-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 5px 6px 5px 14px;
    white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
    .topbar {
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow:
            0 0 0 0.5px rgba(0, 0, 0, 0.3),
            0 10px 32px rgba(0, 0, 0, 0.28);
    }
    .topbar.is-scrolled {
        box-shadow:
            0 0 0 0.5px rgba(0, 0, 0, 0.4),
            0 14px 36px rgba(0, 0, 0, 0.4);
    }
    .glass-tint { background: rgba(28, 28, 32, 0.22); }
    .glass-shine {
        box-shadow:
            inset 0 0 0 1px rgba(255, 255, 255, 0.08),
            inset 0 0 6px 0 rgba(255, 255, 255, 0.04),
            inset 0 2px 4px -2px rgba(255, 255, 255, 0.2),
            inset 0 -2px 4px -2px rgba(0, 0, 0, 0.28);
    }
    .glass-shine::after {
        background: radial-gradient(
            160px circle at var(--mx) var(--my),
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.02) 40%,
            transparent 70%
        );
        mix-blend-mode: screen;
    }
}
@media (prefers-reduced-transparency: reduce) {
    .topbar { background: var(--paper); }
    .glass-effect,
    .glass-tint,
    .glass-shine { display: none; }
}
@media (hover: none), (pointer: coarse) {
    .glass-shine::after { display: none; }
}

.wordmark {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: -0.005em;
    color: var(--ink);
    text-transform: none;
}
/* Brand mark — full square logo (icon + "ziliworks" wordmark),
   displayed in full and clipped into a circular badge. The PNG's
   own field colour (white in light, black in dark) becomes the
   circle's fill, so no blend tricks are needed.                 */
.wordmark .glyph {
    display: inline-block;
    width: 24px; height: 24px;
    background-image: url('../images/ZLOGO1-dark.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    transform: translateY(-1px);
}
@media (prefers-color-scheme: dark) {
    .wordmark .glyph {
        background-image: url('../images/ZLOGO2-light.png');
    }
}

.status {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.02em;
    color: var(--ink-mute);
    text-transform: none;
}
.status .dot {
    position: relative;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--signal);
    animation: dot-breath 3.6s var(--ease-out-quart) infinite;
}
.status .dot::before,
.status .dot::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 color-mix(in oklab, var(--signal) 55%, transparent);
    animation: dot-halo 3.6s var(--ease-out-quart) infinite;
}
.status .dot::after { animation-delay: 1.2s; }
@keyframes dot-breath {
    0%, 100% { transform: scale(1);    opacity: 1;    }
    50%      { transform: scale(0.92); opacity: 0.92; }
}
@keyframes dot-halo {
    0%   { box-shadow: 0 0 0 0   color-mix(in oklab, var(--signal) 55%, transparent); opacity: 1; }
    70%  { box-shadow: 0 0 0 10px color-mix(in oklab, var(--signal) 0%,  transparent); opacity: 0; }
    100% { box-shadow: 0 0 0 0   color-mix(in oklab, var(--signal) 0%,  transparent); opacity: 0; }
}

.topbar-right {
    position: relative;
    display: inline-flex; align-items: center; gap: 12px;
}

.colophon {
    display: inline-flex; align-items: center; gap: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.02em;
    color: var(--ink-mute);
    text-transform: none;
}

/* ---------------- language picker ----------------
   Plain text in the top-right, matching the colophon.
   Click reveals a popover listing all bundled locales.
----------------------------------------------- */
.lang {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 8px 0 0;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--ink-mute);
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    transition: color var(--dur-sm) var(--ease-soft);
}
.lang:hover,
.lang:focus-visible,
.lang[aria-expanded="true"] {
    color: var(--ink);
}
.lang .chev {
    width: 8px; height: 8px;
    transition: transform var(--dur-md) var(--ease-out-quint);
}
.lang[aria-expanded="true"] .chev { transform: rotate(180deg); }

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(2px) saturate(180%) brightness(1.06) contrast(1.04);
    -webkit-backdrop-filter: blur(2px) saturate(180%) brightness(1.06) contrast(1.04);
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.55),
        0 10px 32px rgba(0, 0, 0, 0.08),
        0 20px 48px rgba(0, 0, 0, 0.05);
    display: grid;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.97);
    transform-origin: top right;
    filter: blur(4px);
    transition:
        opacity var(--dur-sm) var(--ease-out-quint),
        transform var(--dur-sm) var(--ease-out-quint),
        filter var(--dur-sm) var(--ease-out-quint),
        visibility var(--dur-sm);
    z-index: 55;
}
.lang-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    filter: blur(0);
}
/* Items cascade in once the menu has opened.
   Per-property delays so the entrance staggers, but hover
   feedback (background, colour) stays instant. */
.lang-menu a {
    opacity: 0;
    transform: translateY(-4px);
    transition:
        opacity 0.32s var(--ease-out-quint) calc(var(--si, 0) * 24ms + 40ms),
        transform 0.32s var(--ease-out-quint) calc(var(--si, 0) * 24ms + 40ms),
        background var(--dur-xs) var(--ease-soft),
        color var(--dur-xs) var(--ease-soft);
}
.lang-menu.is-open a {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-color-scheme: dark) {
    .lang-menu {
        background: rgba(28, 28, 32, 0.22);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow:
            inset 0 0 0 1px rgba(255, 255, 255, 0.08),
            0 10px 32px rgba(0, 0, 0, 0.35),
            0 20px 48px rgba(0, 0, 0, 0.25);
    }
}
@media (prefers-reduced-transparency: reduce) {
    .lang-menu { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.lang-menu a {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 16px;
    padding: 9px 12px;
    background: transparent;
    border: 0;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--ink);
    cursor: pointer;
    border-radius: 8px;
}
.lang-menu a:hover,
.lang-menu a:focus-visible {
    background: var(--paper-edge);
    outline: none;
    transform: translateY(0);
}
.lang-menu a[aria-current="true"] {
    color: var(--ink);
    background: var(--paper-edge);
}
.lang-menu a .tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    color: var(--ink-mute);
    font-variant-numeric: tabular-nums;
}
/* Beta marker: small mono pill next to non-stable locales.
   Sits inline with the language name; never affects baseline. */
.lang-menu a .name {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}
.beta-badge[hidden] { display: none; }
.beta-badge {
    display: inline-block;
    padding: 1px 5px 2px;
    font-family: var(--font-mono);
    font-size: 9px;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    color: var(--ink-mute);
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    vertical-align: 0.18em;
}
span.sep {
    display: inline-block; width: 2px; height: 2px; background: var(--ink-faint);
    vertical-align: 0.15em;
}

/* ---------------- section nav ----------------
   Text pills sitting on the glass, matching the .lg-nav-link
   treatment from sohumsuthar/liquid-glass.
----------------------------------------------- */
.nav {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--ink-mute);
}
.nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 11px;
    color: var(--ink-mute);
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0.02em;
    border-radius: 999px;
    transition:
        color 0.2s var(--ease-glide),
        background 0.2s var(--ease-glide),
        transform 0.1s var(--ease-glide);
}
.nav a:hover,
.nav a:focus-visible {
    color: var(--ink);
    background: rgba(0, 0, 0, 0.06);
}
.nav a:active { transform: scale(0.96); }
.nav a.is-active {
    color: var(--ink);
    background: rgba(0, 0, 0, 0.1);
}
@media (prefers-color-scheme: dark) {
    .nav a:hover,
    .nav a:focus-visible { background: rgba(255, 255, 255, 0.08); }
    .nav a.is-active { background: rgba(255, 255, 255, 0.12); }
}

@media (max-width: 960px) {
    .topbar {
        width: calc(100vw - 24px);
        max-width: none;
    }
    .glass-content {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }
    .nav {
        display: inline-flex;
        flex: 1;
        justify-content: center;
        min-width: 0;
    }
    .nav a {
        flex: 1;
        padding: 0 6px;
    }
    .colophon { display: none; }
    .topbar-right { gap: 0; }
}
/* Phones: the glyph carries the brand on its own so the nav can breathe. */
@media (max-width: 520px) {
    .glass-content { padding-left: 8px; }
    .wordmark .wordmark-text {
        position: absolute; width: 1px; height: 1px; overflow: hidden;
        clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
    }
    .wordmark .glyph { width: 28px; height: 28px; transform: none; }
    .lang { padding-left: 4px; }
}
.nowrap { white-space: nowrap; }

/* ---------------- shared layout rail ---------------- */
.rail {
    max-width: var(--rail);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--ink-mute);
}
.eyebrow .index {
    color: var(--ink);
    font-weight: 500;
}
.eyebrow .rule {
    display: inline-block;
    width: 6px; height: 1px;
    background: var(--ink-faint);
}

/* ---------------- footer ---------------- */
footer.foot {
    border-top: 1px solid var(--line);
    padding: 32px 0 28px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.03em;
    text-transform: none;
    color: var(--ink-mute);
}
footer.foot .rail {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
}
footer.foot .left { justify-self: start; }
footer.foot .right { justify-self: end; display: inline-flex; gap: 18px; align-items: center; }
footer.foot .brand {
    text-transform: none;
}
footer.foot .dash {
    display: inline-block;
    width: 2px;
    height: 2px;
    background: currentColor;
    opacity: 0.55;
    vertical-align: middle;
    margin: 0 0.42em;
    transform: translateY(-0.08em);
}

.foot-link {
    color: var(--ink-mute);
    transition: color var(--dur-xs) var(--ease-soft);
}
.foot-link:hover, .foot-link:focus-visible { color: var(--ink); }
.privacy { position: relative; }
.privacy .pop {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    min-width: 240px; max-width: 280px;
    padding: 12px 14px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.5;
    border-radius: 6px;
    opacity: 0; visibility: hidden;
    transform: translateY(6px) scale(0.98);
    transform-origin: bottom right;
    filter: blur(2px);
    transition:
        opacity var(--dur-sm) var(--ease-out-quint),
        transform var(--dur-sm) var(--ease-out-quint),
        filter var(--dur-sm) var(--ease-out-quint),
        visibility var(--dur-sm);
    pointer-events: none;
    z-index: 20;
}
.privacy:hover .pop, .privacy:focus-visible .pop {
    opacity: 1; visibility: visible;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

@media (max-width: 720px) {
    footer.foot .rail { grid-template-columns: 1fr; justify-items: start; }
    footer.foot .left, footer.foot .right { justify-self: start; }
}


/* =====================================================================
   ZiliWorks homepage — v3
   Layered on base.css. Structure:
     1. Animatable theme tokens + per-product "scenes"
     2. Global overrides, buttons, reveal
     3. Hero   4. Philosophy   5. Showcase (appended at the end)
     6. FAQ    7. Contact      8. Footer   9. Motion preferences
   ===================================================================== */

/* ---------- 1. tokens ------------------------------------------------
   Registered as real colours so the whole page cross-fades when the
   scene changes (html[data-scene]) instead of snapping. */
@property --paper       { syntax: '<color>'; inherits: true; initial-value: #f7f7f5; }
@property --paper-edge  { syntax: '<color>'; inherits: true; initial-value: #efefea; }
@property --ink         { syntax: '<color>'; inherits: true; initial-value: #111113; }
@property --ink-soft    { syntax: '<color>'; inherits: true; initial-value: #4a4a52; }
@property --ink-mute    { syntax: '<color>'; inherits: true; initial-value: #8a8a92; }
@property --ink-faint   { syntax: '<color>'; inherits: true; initial-value: #c8c8cf; }
@property --line        { syntax: '<color>'; inherits: true; initial-value: rgba(17, 17, 19, 0.10); }
@property --line-strong { syntax: '<color>'; inherits: true; initial-value: rgba(17, 17, 19, 0.18); }
@property --accent      { syntax: '<color>'; inherits: true; initial-value: #1d6f5c; }
@property --card        { syntax: '<color>'; inherits: true; initial-value: rgba(255, 255, 255, 0.6); }

:root {
    --accent: #1d6f5c;
    --card: rgba(255, 255, 255, 0.6);
    --font-serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --scene-fade: 0.9s;
    interpolate-size: allow-keywords;
}
@media (prefers-color-scheme: dark) {
    :root { --accent: #6fd3b8; --card: rgba(255, 255, 255, 0.05); }
}
html {
    transition:
        --paper var(--scene-fade) var(--ease-soft), --paper-edge var(--scene-fade) var(--ease-soft),
        --ink var(--scene-fade) var(--ease-soft), --ink-soft var(--scene-fade) var(--ease-soft),
        --ink-mute var(--scene-fade) var(--ease-soft), --ink-faint var(--scene-fade) var(--ease-soft),
        --line var(--scene-fade) var(--ease-soft), --line-strong var(--scene-fade) var(--ease-soft),
        --accent var(--scene-fade) var(--ease-soft), --card var(--scene-fade) var(--ease-soft);
}

/* The showcase (the line) is a dark stage in either mode: while it
   sits under the top bar, the page cross-fades to stage black. */
html[data-scene="dark"] {
    --paper: #060607; --paper-edge: #101012;
    --ink: #f4f2ee; --ink-soft: #c9c6c0; --ink-mute: #8b8984; --ink-faint: #3d3c3a;
    --line: rgba(255, 255, 255, 0.10); --line-strong: rgba(255, 255, 255, 0.22);
    --accent: #f4f2ee; --card: rgba(255, 255, 255, 0.05);
}
html[data-scene="dark"] .topbar { border-color: rgba(255, 255, 255, 0.08); }
html[data-scene="dark"] .glass-tint { background: rgba(28, 28, 32, 0.22); }
html[data-scene="dark"] .glass-shine {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 0 6px 0 rgba(255, 255, 255, 0.04),
        inset 0 2px 4px -2px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px -2px rgba(0, 0, 0, 0.28);
}
html[data-scene="dark"] .wordmark .glyph { background-image: url('../images/ZLOGO2-light.png'); }
html[data-scene="dark"] .nav a:hover,
html[data-scene="dark"] .nav a:focus-visible { background: rgba(255, 255, 255, 0.08); }
html[data-scene="dark"] .nav a.is-active { background: rgba(255, 255, 255, 0.12); }
html[data-scene="dark"] .lang-menu { background: rgba(28, 28, 32, 0.6); border-color: rgba(255, 255, 255, 0.08); }
.wordmark .glyph { background-image: url('../images/ZLOGO1-dark.png'); }
@media (prefers-color-scheme: dark) {
    .wordmark .glyph { background-image: url('../images/ZLOGO2-light.png'); }
}

/* ---------- 2. global overrides -------------------------------------- */
html, body { overflow-x: clip; }
html { scroll-padding-top: 88px; }
::selection { background: var(--accent); color: var(--paper); }

.skip {
    position: fixed; top: 10px; left: 10px; z-index: 100;
    padding: 10px 14px; border-radius: 10px;
    background: var(--ink); color: var(--paper); font-size: 13px;
    transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Top bar + progress no longer wait for JS. */
.progress { opacity: 1; }
.progress::after { background: var(--accent); }
.topbar {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
    animation: bar-in 1.1s var(--ease-out-quint) 0.15s both;
}
@keyframes bar-in {
    from { opacity: 0; transform: translate3d(-50%, calc(-100% - 24px), 0); }
    to   { opacity: 1; transform: translate3d(-50%, 0, 0); }
}
.lang-menu { background: color-mix(in oklab, var(--paper) 78%, transparent); backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%); }
.lang-menu a { text-decoration: none; }
.lang-menu a .name { color: var(--ink); }
.lang-menu a:hover, .lang-menu a:focus-visible, .lang-menu a[aria-current="true"] { background: color-mix(in oklab, var(--ink) 8%, transparent); }

/* Buttons */
.btn {
    --btn-h: 44px;
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: var(--btn-h); padding: 0 20px;
    border-radius: 999px; border: 1px solid transparent;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em;
    cursor: pointer; white-space: nowrap;
    transition: transform var(--dur-sm) var(--ease-out-quint), background var(--dur-sm) var(--ease-soft),
                color var(--dur-sm) var(--ease-soft), border-color var(--dur-sm) var(--ease-soft);
}
.btn svg { width: 12px; height: 12px; transition: transform var(--dur-md) var(--ease-out-quint); }
.btn:hover svg { transform: translate(2px, 0); }
.btn:active { transform: scale(0.97); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    height: 32px; padding: 0 13px; border-radius: 999px;
    border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.03em;
    cursor: pointer; user-select: none; -webkit-user-select: none;
    transition: background var(--dur-xs) var(--ease-soft), border-color var(--dur-xs) var(--ease-soft),
                color var(--dur-xs) var(--ease-soft), transform 0.1s var(--ease-glide);
}
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(0.95); }
.chip[aria-pressed="true"], .chip-accent { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.chip-accent:hover { border-color: var(--accent); filter: brightness(1.06); }

/* Reveal on scroll (only when JS is running). */
html.js .rv {
    opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(6px);
    transition: opacity 1s var(--ease-out-quint), transform 1s var(--ease-out-quint), filter 1s var(--ease-out-quint);
    transition-delay: calc(var(--d, 0) * 80ms);
}
html.js .rv.in { opacity: 1; transform: none; filter: none; }

/* Secondary voice in headings: the same sans, in soft grey. */
.soft { color: var(--ink-mute); }

.section { padding: clamp(96px, 13vw, 190px) 0; position: relative; }
.hero h1, .display, .contact h2 { text-wrap: balance; }
.display {
    font-family: var(--font-display); font-weight: 500;
    font-size: clamp(34px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -0.035em;
    max-width: 18ch; margin-top: 28px;
}

/* ---------- 3. hero --------------------------------------------------- */
.hero .pin-stage {
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center; gap: clamp(40px, 6vh, 72px);
    padding: 128px 0 48px;
    position: relative;
}
.hero-grid {
    display: grid; width: 100%;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(24px, 4vw, 72px);
    align-items: center;
}
.hero .pin-stage > .rail { width: 100%; }
.hero-copy { display: grid; row-gap: clamp(24px, 3.4vh, 40px); justify-items: start; }
.hero h1 {
    font-family: var(--font-display); font-weight: 500;
    font-size: clamp(46px, 7.3vw, 116px);
    line-height: 0.97; letter-spacing: -0.045em;
}
.hero h1 .line { display: block; overflow: hidden; padding: 0.06em 0 0.16em; margin: -0.06em 0 -0.16em; }
.hero h1 .line-in {
    display: block;
    animation: line-up 1.2s var(--ease-out-quint) both;
    animation-delay: calc(var(--d, 0) * 110ms + 150ms);
}
@keyframes line-up { from { transform: translate3d(0, 110%, 0) rotate(2deg); } to { transform: none; } }

.hero-in { animation: rise 1.1s var(--ease-out-quint) both; animation-delay: calc(var(--d, 0) * 110ms + 150ms); }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 20px, 0); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

.hero .lede {
    font-family: var(--font-display);
    font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; letter-spacing: -0.012em;
    color: var(--ink-soft); max-width: 40ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* The three apps, fanned. Each item composes four independent motions:
   static tilt (rotate), pointer + scroll parallax (translate), entrance
   (transform keyframes) and an idle float on the image itself. */
.hero-stage {
    position: relative; width: 100%; max-width: 600px; justify-self: end;
    aspect-ratio: 1 / 1.08;
    perspective: 1400px;
    --px: 0; --py: 0; --hs: 0;
}
.fan { position: absolute; inset: 0; transform-style: preserve-3d; }
.fan-item {
    position: absolute;
    translate: calc(var(--px) * var(--depth) * 1px) calc(var(--py) * var(--depth) * 1px - var(--hs) * var(--lift) * 1px);
    animation: fan-in 1.6s var(--ease-out-quint) both;
    animation-delay: calc(var(--i) * 140ms + 350ms);
    will-change: translate;
}
.fan-item img {
    width: 100%; height: auto; display: block;
    border-radius: 13% / 6%;
    box-shadow: 0 50px 100px -30px rgba(17, 17, 19, 0.45), 0 18px 40px -18px rgba(17, 17, 19, 0.3), 0 0 0 1px rgba(17, 17, 19, 0.06);
    animation: float 9s ease-in-out infinite;
    animation-delay: calc(var(--i) * -2.4s);
}
@media (prefers-color-scheme: dark) {
    .fan-item img { box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.8), 0 18px 40px -18px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08); }
}
.f1 { --i: 0; --depth: 10; --lift: 40;  --dir: -1; --rot: -8deg; width: 38%; left: 1%;  top: 19%; rotate: -8deg; z-index: 1; }
.f3 { --i: 1; --depth: 16; --lift: 70;  --dir: 1;  --rot: 8deg;  width: 38%; right: 0;  top: 24%; rotate: 8deg;  z-index: 2; }
.f2 { --i: 2; --depth: 26; --lift: 120; --dir: 0;  --rot: -1deg; width: 44%; left: 28%; top: 3%;  rotate: -1deg; z-index: 3; }
@keyframes fan-in {
    from { opacity: 0; transform: translate3d(0, 90px, -120px) rotateX(18deg) scale(0.92); filter: blur(10px); }
    to   { opacity: 1; transform: none; filter: none; }
}
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -10px, 0); } }

.legend {
    display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 14px clamp(28px, 5vw, 80px);
    padding-top: 22px; border-top: 1px solid var(--line);
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em;
}
.legend > div { display: grid; row-gap: 6px; }
.legend dt { color: var(--ink-mute); }
.legend dd { color: var(--ink); font-weight: 500; }

@media (max-width: 960px) {
    .hero { padding-top: 112px; }
    .hero-grid { grid-template-columns: 1fr; row-gap: 40px; }
    .hero-stage { justify-self: center; max-width: 440px; aspect-ratio: 1 / 1.02; }
    .legend { grid-template-columns: 1fr; }
    .legend > div { grid-template-columns: 96px 1fr; }
}

/* ---------- 4. philosophy --------------------------------------------- */
.statement {
    font-family: var(--font-display); font-weight: 500;
    font-size: clamp(42px, 8.4vw, 136px); line-height: 0.98; letter-spacing: -0.048em;
    margin: clamp(28px, 4vw, 56px) 0 clamp(56px, 9vw, 128px);
    max-width: 17ch; text-wrap: balance;
}
/* Words light up as the statement travels through the viewport. */
.statement .w { color: var(--ink-faint); transition: color 0.5s var(--ease-soft); }
.statement .w.on { color: var(--ink); }

/* The three principles: titles on the left, the current one's words on the right.
   Static page: each title with its words underneath, all in ink. */
.principles {
    display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(32px, 6vw, 110px); align-items: center;
}
.tenets { list-style: none; display: grid; gap: clamp(22px, 3.4vh, 40px); }
.tenets > li { display: grid; grid-template-columns: 3.4ch minmax(0, 1fr); column-gap: 10px; row-gap: 10px; align-items: baseline; }
.tenets .num-cell { font-family: var(--font-mono); font-size: clamp(12px, 0.9vw, 14px); color: var(--ink-mute); }
.tenets .title {
    font-family: var(--font-display); font-weight: 500;
    font-size: clamp(30px, 3.6vw, 60px); line-height: 1.02; letter-spacing: -0.04em;
}
.tenets .copy { grid-column: 2; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--ink-soft); max-width: 46ch; }
.principle-words { display: none; }
@media (max-width: 860px) {
    .principles { grid-template-columns: 1fr; }
}

/* ---------- 6. FAQ ------------------------------------------------------ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: clamp(20px, 2.4vw, 30px) 0; cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(19px, 1.9vw, 26px); letter-spacing: -0.02em; line-height: 1.2; }
.faq-list summary i { position: relative; flex: none; width: 14px; height: 14px; transition: transform var(--dur-md) var(--ease-out-quint); }
.faq-list summary i::before, .faq-list summary i::after { content: ""; position: absolute; left: 0; top: 6.25px; width: 14px; height: 1.5px; background: var(--ink); }
.faq-list summary i::after { transform: rotate(90deg); transition: transform var(--dur-md) var(--ease-out-quint); }
.faq-list details[open] summary i::after { transform: rotate(0deg); }
.faq-list summary:hover h3 { color: var(--accent); }
.faq-list .answer p { padding: 0 40px clamp(22px, 2.6vw, 32px) 0; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }
.faq-list .answer a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.faq-list .answer a:hover { text-decoration-color: var(--accent); }
.faq-list details::details-content { block-size: 0; overflow: clip; transition: block-size 0.5s var(--ease-out-quint), content-visibility 0.5s allow-discrete; }
.faq-list details[open]::details-content { block-size: auto; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- 7. contact -------------------------------------------------- */
.contact { border-top: 1px solid var(--line); }
.contact h2 {
    font-family: var(--font-display); font-weight: 500;
    font-size: clamp(38px, 7vw, 112px); line-height: 0.98; letter-spacing: -0.045em;
    max-width: 15ch; margin: 28px 0 clamp(36px, 5vw, 64px);
}
.contact h2 .email-line { white-space: nowrap; display: inline-block; }
.contact h2 .soft { white-space: nowrap; }
.contact h2 a {
    background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 0.06em no-repeat;
    transition: background-size var(--dur-lg) var(--ease-out-quint), color var(--dur-sm);
    padding-bottom: 0.04em;
}
.contact h2 a:hover { background-size: 100% 0.06em; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.contact-row .aside { margin-left: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-mute); }
@media (max-width: 600px) {
    .contact h2 { font-size: clamp(30px, 9vw, 44px); }
    .contact-row .aside { margin-left: 0; flex-basis: 100%; margin-top: 8px; }
}

/* ---------- 8. footer --------------------------------------------------- */
footer.foot { padding: clamp(48px, 6vw, 80px) 0 28px; }
footer.foot .foot-cols {
    display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 40px clamp(24px, 4vw, 64px); align-items: start;
}
.foot-brand .wordmark { font-size: 22px; }
.foot-brand p { margin-top: 14px; font-family: var(--font-sans); font-size: 14px; letter-spacing: 0; color: var(--ink-mute); max-width: 26ch; line-height: 1.5; }
footer.foot nav { display: grid; row-gap: 9px; justify-items: start; }
footer.foot nav h2 { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.04em; color: var(--ink-mute); margin-bottom: 6px; }
footer.foot nav .foot-link { font-family: var(--font-sans); font-size: 14px; letter-spacing: 0; color: var(--ink-soft); }
footer.foot nav .foot-link:hover, footer.foot nav .foot-link[aria-current="true"] { color: var(--ink); }
footer.foot .foot-base { display: block; margin-top: clamp(40px, 6vw, 72px); padding-top: 20px; border-top: 1px solid var(--line); }
.privacy .pop { left: 0; right: auto; transform-origin: bottom left; }
@media (max-width: 860px) {
    footer.foot .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-brand { grid-column: 1 / -1; }
}

/* CJK: full-height glyphs need looser leading and no negative tracking. */
html:is([lang^="zh"], [lang^="ja"], [lang^="ko"]) :is(.hero h1, .statement, .display, .contact h2) { line-height: 1.2; letter-spacing: 0; }
html:is([lang^="zh"], [lang^="ja"], [lang^="ko"]) :is(.tenets .title, .faq-list summary h3) { line-height: 1.4; letter-spacing: 0; }
html:is([lang^="zh"], [lang^="ja"], [lang^="ko"]) :is(.hero .lede, .act .blurb, .faq-list .answer p) { line-height: 1.75; letter-spacing: 0; }
html:is([lang^="zh"], [lang^="ja"], [lang^="ko"]) .hero h1 { font-size: clamp(36px, 5.3vw, 84px); }
html:is([lang^="zh"], [lang^="ja"], [lang^="ko"]) .display { font-size: clamp(30px, 4.4vw, 64px); max-width: none; }
html:is([lang^="zh"], [lang^="ja"], [lang^="ko"]) .display .soft { display: block; }
html:is([lang^="zh"], [lang^="ja"], [lang^="ko"]) .statement { font-size: clamp(36px, 6.6vw, 104px); max-width: none; }

/* Cross-fade between language pages (browsers with cross-document view transitions). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.28s var(--ease-out-quint) both; }
::view-transition-new(root) { animation: vt-in 0.45s var(--ease-out-quint) 0.05s both; }
@keyframes vt-out { to { opacity: 0; filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; filter: blur(6px); } }

/* ---------- 9. motion preferences --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
    html.js .rv { opacity: 1; transform: none; filter: none; }
    .fan-item { translate: none; }
    .fan-item img, .live-dot { animation: none; }
    .statement .w { color: var(--ink); }
    @view-transition { navigation: none; }
}

/* =====================================================================
   v5 showcase — carried over from the v4 "One line" exploration:
   the noisy-apps subtraction and the line that becomes each app. Colours are fixed (a dark stage) in both modes.
   ===================================================================== */
:root {
    --black: #060607;
    --mosso: #ff4fa3; --zlift: #ff7a1a; --snow: #5fe3c0;
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tone-dark {
    --bg: var(--black);
    --ink: #f4f2ee; --ink-soft: rgba(244, 242, 238, 0.72); --ink-mute: rgba(244, 242, 238, 0.46);
    --ink-faint: rgba(244, 242, 238, 0.22); --line: rgba(244, 242, 238, 0.10); --line-strong: rgba(244, 242, 238, 0.2);
    --chip: rgba(255, 255, 255, 0.06);
    background: var(--bg); color: var(--ink); color-scheme: dark;
}
@keyframes ping { from { transform: scale(0.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.philo { padding-top: clamp(40px, 8vh, 120px); padding-bottom: clamp(96px, 13vw, 190px); }
.philosophy .eyebrow .index, .story .eyebrow .index { color: var(--ink); }

/* v4 buttons and chips inside the showcase */
.story .btn { font-family: var(--font-sans); letter-spacing: -0.005em; }
.story .btn { height: 46px; padding: 0 22px; font-size: 14px; font-weight: 500; border: 0; }
.story .btn-solid { background: var(--accent); color: #0b0b0d; }
.story .btn-solid:hover { background: var(--accent); box-shadow: 0 14px 44px -12px var(--accent); }
.story .btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.story .btn-ghost:hover { background: var(--chip); }

/* =====================================================================
   01 SUBTRACTION
   ===================================================================== */
.subtract { position: relative; }
.sub-track { position: relative; }
html.motion .sub-track { height: 360vh; }
.sub-stage {
    position: relative; overflow: hidden;
    display: grid; place-items: center;
    min-height: 70vh; padding: 120px var(--gutter);
}
html.motion .sub-stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; padding: 0 var(--gutter); }

.sub-copy { position: relative; z-index: 1; display: grid; justify-items: center; gap: 22px; text-align: center; max-width: 1100px; }
.sub-line {
    font-family: var(--font-display); font-weight: 650;
    font-size: clamp(36px, 6.6vw, 116px); line-height: 0.98; letter-spacing: -0.052em;
    text-wrap: balance;
}
.sub-b { color: var(--ink); }
:lang(zh) .sub-line, :lang(ja) .sub-line, :lang(ko) .sub-line { letter-spacing: -0.02em; line-height: 1.14; font-size: clamp(32px, 5.4vw, 96px); }
.strike {
    background: linear-gradient(currentColor, currentColor) no-repeat 0 56% / 0% 0.07em;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
    transition: background-size 0.9s var(--ease-out-quint), color 0.9s var(--ease-soft);
}
html.motion .sub-stage .sub-b { opacity: 0; transform: translate3d(0, 24px, 0); filter: blur(10px); transition: opacity 1s var(--ease-out-quint), transform 1s var(--ease-out-quint), filter 1s var(--ease-out-quint); }
html.motion .sub-stage.is-clear .strike { background-size: 100% 0.07em; color: var(--ink-faint); }
html.motion .sub-stage.is-clear .sub-b { opacity: 1; transform: none; filter: none; transition-delay: 0.35s; }

.sub-meter {
    position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 28px;
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute);
}
.sub-hint { transition: opacity 0.5s var(--ease-soft); }
.sub-stage.is-clear .sub-hint { opacity: 0; }
.sub-count b { color: var(--ink); font-weight: 500; display: inline-block; min-width: 2ch; text-align: right; }
.sub-count .of { opacity: 0.6; }
html:not(.motion) .sub-meter, html:not(.js) .sub-meter { display: none; }

/* ---- the noise ---- */
.noise { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
html:not(.motion) .noise { display: none; }
.nz {
    position: absolute; left: var(--x); top: var(--y);
    --s: 1;
    transform: translate(-50%, -50%) rotate(var(--r)) scale(var(--s));
    font-family: var(--font-sans); font-size: 13px; line-height: 1.25; color: #111;
    white-space: nowrap;
    opacity: 0; --s: 0.6; filter: blur(6px);
    transition: opacity 0.5s var(--ease-out-quint), transform 0.75s var(--ease-spring), filter 0.5s var(--ease-out-quint);
}
.sub-stage.is-in .nz { opacity: 1; --s: 1; filter: none; transition-delay: calc(var(--o) * 28ms); }
.sub-stage.is-settled .nz { transition-delay: 0s; }
.sub-stage .nz.gone {
    opacity: 0; filter: blur(12px);
    transform: translate(-50%, -50%) translateY(-30px) rotate(calc(var(--r) * 4)) scale(0.3);
    transition-duration: 0.45s, 0.6s, 0.45s; transition-delay: 0s;
}
.nz b { font-weight: 600; }
.nz small { font-size: 11px; opacity: 0.55; }
.nz .pri { font-style: normal; }
.nz-emoji { font-size: 18px; line-height: 1; }

.nz-alert, .nz-cookie, .nz-notif, .nz-stars, .nz-toggle, .nz-modal, .nz-invite {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.06), inset 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}
.nz-alert { width: 280px; text-align: center; white-space: normal; border-radius: 18px; background: rgba(246, 246, 248, 0.97); }
.nz-alert b { display: block; padding: 22px 18px 18px; font-size: 16px; }
.nz-alert .nz-btns { display: grid; grid-template-columns: 1fr 1fr; border-top: 0.5px solid rgba(0,0,0,.18); }
.nz-alert .nz-btns i { padding: 12px; color: #007aff; font-style: normal; font-size: 16px; }
.nz-alert .nz-btns i + i { border-left: 0.5px solid rgba(0,0,0,.18); font-weight: 600; }

.nz-cookie { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 18px; background: #1c1c1e; color: #fff; border-radius: 18px; }
.nz-cookie .pri { padding: 8px 18px; border-radius: 999px; background: #0a84ff; font-weight: 600; }

.nz-notif { display: flex; align-items: center; gap: 12px; padding: 11px 16px 11px 11px; border-radius: 18px; background: rgba(250, 250, 250, 0.9); backdrop-filter: blur(10px); }
.nz-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--c); box-shadow: inset 0 -8px 14px rgba(0,0,0,.15); }
.nz-txt { display: grid; gap: 2px; }

.nz-badge {
    display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 15px;
    background: #ff3b30; color: #fff; font-weight: 700; font-size: 14px;
    box-shadow: 0 6px 18px -4px rgba(255, 59, 48, 0.6), 0 0 0 3px var(--paper);
}
.sub-stage.is-in .nz-badge { animation: throb 1.4s ease-in-out infinite; }
@keyframes throb { 50% { --s: 1.14; } }
@property --s { syntax: "<number>"; inherits: false; initial-value: 1; }

.nz-sale { padding: 12px 18px; border-radius: 6px; background: #ffd60a; color: #000; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: -0.01em; box-shadow: 0 0 0 2px #000, 6px 6px 0 #000; }
.nz-timer { display: grid; justify-items: center; gap: 2px; padding: 12px 18px; border-radius: 12px; background: #d70015; color: #fff; box-shadow: 0 14px 30px -10px rgba(215, 0, 21, 0.55); }
.nz-timer b { font-family: var(--font-mono); font-size: 24px; letter-spacing: 0.02em; }
.nz-timer small { opacity: 0.85; }
.nz-stars { display: grid; gap: 4px; padding: 12px 16px; }
.nz-stars b { color: #ffb800; font-size: 22px; letter-spacing: 2px; }
.nz-streak { display: flex; align-items: center; gap: 8px; padding: 10px 18px 10px 14px; border-radius: 999px; background: linear-gradient(90deg, #ff9500, #ff2d55); color: #fff; box-shadow: 0 14px 30px -10px rgba(255, 45, 85, 0.6); }
.nz-pill { padding: 12px 22px; border-radius: 999px; background: #007aff; color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 14px 30px -10px rgba(0, 122, 255, 0.6); }
.nz-toggle { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px; }
.nz-toggle i { position: relative; width: 46px; height: 28px; border-radius: 14px; background: #34c759; }
.nz-toggle i::after { content: ""; position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.nz-ad {
    display: flex; flex-direction: column; justify-content: space-between;
    width: 170px; height: 110px; padding: 8px; border-radius: 6px;
    background: repeating-linear-gradient(45deg, #ececec 0 10px, #f7f7f7 10px 20px);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 10px 24px -10px rgba(0,0,0,.2);
    color: #888;
}
.nz-ad em { align-self: flex-start; padding: 1px 6px; border-radius: 3px; background: #fbbc04; color: #000; font-style: normal; font-weight: 700; font-size: 10px; }
.nz-spin i { display: block; width: 38px; height: 38px; border-radius: 50%; border: 4px solid rgba(0,0,0,.1); border-top-color: #007aff; }
.sub-stage.is-in .nz-spin i { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nz-sticker {
    display: grid; place-items: center; width: 86px; height: 86px;
    background: #ff2d55; color: #fff; font-weight: 900; font-size: 17px; letter-spacing: -0.02em;
    clip-path: polygon(50% 0%, 61% 15%, 79% 9%, 79% 28%, 98% 32%, 88% 50%, 98% 68%, 79% 72%, 79% 91%, 61% 85%, 50% 100%, 39% 85%, 21% 91%, 21% 72%, 2% 68%, 12% 50%, 2% 32%, 21% 28%, 21% 9%, 39% 15%);
}
.nz-chat { display: flex; gap: 5px; padding: 14px 16px; border-radius: 20px 20px 20px 6px; background: #e9e9eb; box-shadow: 0 10px 24px -10px rgba(0,0,0,.2); }
.nz-chat i { width: 8px; height: 8px; border-radius: 50%; background: #8e8e93; }
.sub-stage.is-in .nz-chat i { animation: bob 1.2s ease-in-out infinite; }
.nz-chat i:nth-child(2) { animation-delay: 0.15s !important; }
.nz-chat i:nth-child(3) { animation-delay: 0.3s !important; }
@keyframes bob { 30% { transform: translateY(-5px); opacity: 0.6; } 60% { transform: none; } }
.nz-coins { display: flex; align-items: center; gap: 8px; padding: 11px 18px 11px 14px; border-radius: 999px; background: linear-gradient(90deg, #5e5ce6, #bf5af2); color: #fff; box-shadow: 0 14px 30px -10px rgba(94, 92, 230, 0.6); }
.nz-invite { display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; }
.nz-modal { display: grid; gap: 8px; width: 210px; padding: 16px; white-space: normal; }
.nz-modal .field { display: block; height: 30px; border-radius: 8px; background: #f0f0f2; }
.nz-modal .pri { justify-self: end; display: grid; place-items: center; width: 38px; height: 30px; border-radius: 8px; background: #111; color: #fff; }
.nz-toast { display: flex; align-items: center; gap: 8px; padding: 11px 18px 11px 14px; border-radius: 999px; background: rgba(28, 28, 30, 0.9); color: #fff; box-shadow: 0 14px 30px -10px rgba(0,0,0,.4); }
.nz-dot { width: 14px; height: 14px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 3px var(--paper); }
.nz-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #ff3b30; }
.sub-stage.is-in .nz-dot::after { animation: ping 1.6s var(--ease-out-quint) infinite; }

@media (max-width: 760px) {
    .nz { font-size: 11px; }
    .nz.nz-wide { display: none; }
    .nz-alert { width: 230px; }
    .nz-alert b { padding: 16px 14px 14px; font-size: 14px; }
    .nz-cookie { gap: 10px; }
    .nz-sticker { width: 68px; height: 68px; font-size: 14px; }
    .nz-ad { width: 130px; height: 84px; }
    .sub-meter { bottom: 20px; }
    .sub-hint { display: none; }
    .sub-meter { justify-content: center; }
}


/* =====================================================================
   02 THE LINE (work)
   ===================================================================== */
.story { position: relative; }
.story-track { position: relative; }
html.motion .story-track { height: 560vh; }
.story-stage { position: relative; }
html.motion .story-stage {
    position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
    background: var(--stage-bg, var(--black));
}
.story .line { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
html:not(.motion) .story .line { display: none; }

.act { --accent: #f4f2ee; position: relative; z-index: 1; padding: 14vh 0; }
.act[data-act="mosso"] { --accent: var(--mosso); }
.act[data-act="zlift"] { --accent: var(--zlift); }
.act[data-act="snowtrail"] { --accent: var(--snow); }
html.motion .act {
    position: absolute; inset: 0; padding: 0;
    display: grid; align-items: start;
    padding-top: clamp(96px, 15vh, 150px);
    visibility: hidden;
    transition: visibility 0s linear 0.8s;
}
html.motion .act.is-on { visibility: visible; transition-delay: 0s; }

.act > .rail { width: 100%; }
.act-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; gap: 40px; height: 100%; }
.act-copy { max-width: 620px; }
.act-title {
    margin-top: 18px;
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(56px, 8.4vw, 150px); line-height: 0.86; letter-spacing: -0.065em;
}
.act-title .soft { display: block; margin-top: 0.1em; font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 0.4em; letter-spacing: -0.02em; color: var(--accent); }
.act-say { margin-top: 20px; font-family: var(--font-serif); font-style: italic; font-size: clamp(22px, 2.2vw, 34px); line-height: 1.15; color: var(--accent); }
.act .blurb { margin-top: 14px; max-width: 40ch; font-size: clamp(16px, 1.2vw, 18px); color: var(--ink-soft); text-wrap: pretty; }
.act-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 26px; }
.act .btn-solid { background: var(--accent); color: #0b0b0d; --accent-glow: var(--accent); }
.act .btn-solid:hover { box-shadow: 0 14px 44px -12px var(--accent); }
.platform { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); }

.act-device {
    justify-self: center; align-self: center;
    width: clamp(200px, 19vw, 320px);
    margin-top: -4vh;
}
.act-device img {
    width: 100%; border-radius: 13% / 6%;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 0 7px #0c0c0e,
        0 0 0 8px rgba(255, 255, 255, 0.10),
        0 50px 120px -30px color-mix(in oklab, var(--accent) 70%, transparent),
        0 30px 60px -20px rgba(0, 0, 0, 0.8);
}

/* choreography: each act's parts arrive in sequence */
html.motion .act .act-copy > * ,
html.motion .act .act-device {
    opacity: 0; transform: translate3d(0, 34px, 0); filter: blur(8px);
    transition: opacity 0.6s var(--ease-out-quint), transform 0.8s var(--ease-out-quint), filter 0.6s var(--ease-out-quint);
}
html.motion .act .act-device { transform: translate3d(0, 90px, 0) rotate(4deg) scale(0.92); transition-duration: 0.7s, 1.1s, 0.7s; }
html.motion .act.is-on .act-copy > *,
html.motion .act.is-on .act-device { opacity: 1; transform: none; filter: none; }
html.motion .act.is-on .act-copy > :nth-child(1) { transition-delay: 0.05s; }
html.motion .act.is-on .act-copy > :nth-child(2) { transition-delay: 0.12s; }
html.motion .act.is-on .act-copy > :nth-child(3) { transition-delay: 0.22s; }
html.motion .act.is-on .act-copy > :nth-child(4) { transition-delay: 0.3s; }
html.motion .act.is-on .act-copy > :nth-child(5) { transition-delay: 0.38s; }
html.motion .act.is-on .act-device { transition-delay: 0.15s; }
html.motion .act.is-on .act-device img { animation: act-float 7s ease-in-out infinite; }
@keyframes act-float { 50% { transform: translate3d(0, -12px, 0) rotate(-1deg); } }

.act-intro { text-align: center; }
html.motion .act-intro { align-items: center; padding-top: 0; }
.act-intro .rail { display: grid; justify-items: center; }
.story-kicker {
    margin-top: 22px;
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(52px, 10vw, 184px); line-height: 0.88; letter-spacing: -0.065em;
    text-wrap: balance;
}
:lang(zh) .story-kicker, :lang(ja) .story-kicker, :lang(ko) .story-kicker { letter-spacing: -0.03em; line-height: 1.05; font-size: clamp(44px, 8vw, 150px); }
.story-heading { margin-top: 24px; max-width: 34ch; font-size: clamp(16px, 1.3vw, 20px); font-weight: 400; line-height: 1.5; color: var(--ink-soft); }
.story-heading .soft { display: block; }
html.motion .act-intro .rail > * { opacity: 0; transform: translate3d(0, 30px, 0); filter: blur(8px); transition: opacity 0.7s var(--ease-out-quint), transform 0.9s var(--ease-out-quint), filter 0.7s var(--ease-out-quint); }
html.motion .act-intro.is-on .rail > * { opacity: 1; transform: none; filter: none; }
html.motion .act-intro.is-on .rail > :nth-child(2) { transition-delay: 0.1s; }
html.motion .act-intro.is-on .rail > :nth-child(3) { transition-delay: 0.22s; }
html.motion .act-intro { margin-top: -18vh; }

.story-steps {
    position: absolute; z-index: 2; right: var(--gutter); top: 50%; transform: translateY(-50%);
    list-style: none; display: grid; gap: 14px;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-mute);
    opacity: 0; transition: opacity 0.5s var(--ease-soft);
}
.story-stage.has-steps .story-steps { opacity: 1; }
html:not(.motion) .story-steps { display: none; }
.story-steps li { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-direction: row-reverse; transition: color 0.4s var(--ease-soft); }
.story-steps i { width: 18px; height: 2px; border-radius: 1px; background: var(--ink-faint); transition: width 0.5s var(--ease-out-quint), background 0.4s var(--ease-soft); }
.story-steps li.is-on { color: var(--ink); }
.story-steps li.is-on i { width: 34px; background: var(--step, #fff); }
.story-steps li[data-step="mosso"] { --step: var(--mosso); }
.story-steps li[data-step="zlift"] { --step: var(--zlift); }
.story-steps li[data-step="snowtrail"] { --step: var(--snow); }

/* static fallback: each act gets its own glow */
html:not(.motion) .act { overflow: hidden; }
html:not(.motion) .act::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 75% 60%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 70%); }

@media (max-width: 860px) {
    html.motion .act { padding-top: 92px; }
    .act-grid { grid-template-columns: 1fr; gap: 0; }
    .act-title { font-size: clamp(52px, 15vw, 96px); }
    .act-say { font-size: 21px; margin-top: 12px; }
    .act .blurb { font-size: 15px; margin-top: 10px; }
    .act-actions { margin-top: 18px; }
    .act-actions .btn { height: 40px; padding: 0 16px; font-size: 13px; }
    .platform { display: none; }
    html.motion .act-device { position: absolute; right: 6vw; bottom: -14vh; width: 42vw; max-width: 240px; margin: 0; }
    html:not(.motion) .act-device { width: 60vw; margin-top: 40px; }
    .story-steps { top: auto; bottom: 22px; right: auto; left: 50%; transform: translateX(-50%); grid-auto-flow: column; gap: 18px; }
    .story-steps li { flex-direction: column-reverse; gap: 8px; }
    .story-steps span { display: none; }
}
@media (max-height: 760px) and (min-width: 861px) {
    .act-title { font-size: clamp(56px, 7vw, 120px); }
    .act-say { margin-top: 14px; }
}




/* =====================================================================
   One screen at a time
   Every section is a pinned stage (.pin > .pin-stage). While it is on
   screen, scrolling plays it: the script writes --p (0 → 1 across the
   pin) and step classes onto each .pin, and the rules below turn those
   into motion. Without motion every stage is ordinary,
   static content.
   ===================================================================== */
.pin { position: relative; }
html.motion .pin { height: calc(var(--len) * 1vh); }

/* One screen. Every stage is fixed in place; the tracks only give the scroll
   its length. The live stage fades in on top while the last one blurs away,
   and its parts (.enter) rise in one after another, as the app acts do. */
html.motion .pin > .pin-stage {
    position: fixed; inset: 0; z-index: 1;
    height: 100vh; height: 100svh; overflow: clip;
    background: var(--paper);
    opacity: 0; visibility: hidden;
    transition: opacity 0.7s var(--ease-out-quint), visibility 0s linear 0.7s;
}
html.motion .pin.is-live > .pin-stage {
    z-index: 2; opacity: 1; visibility: visible;
    transition: opacity 0.7s var(--ease-out-quint) 0.1s, visibility 0s;
}
html.motion .story .pin-stage { background: var(--stage-bg, var(--black)); }
html.motion .pin .enter {
    opacity: 0; transform: translate3d(0, 34px, 0); filter: blur(8px);
    transition: opacity 0.6s var(--ease-out-quint), transform 0.8s var(--ease-out-quint), filter 0.6s var(--ease-out-quint);
}
html.motion .pin.is-live .enter {
    opacity: 1; transform: none; filter: none;
    transition-delay: calc(0.18s + var(--en, 0) * 0.1s);
}
/* The footer slides up over the last stage like a curtain. */
html.motion footer.foot { position: relative; z-index: 5; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -40px 80px -40px rgba(0, 0, 0, 0.18); }

/* Like the showcase, scrolling only decides which moment is on stage;
   each change then plays as a timed transition (.s1, .s2 … are added by
   the script as the visitor passes each step), so the stage stays still
   and the motion stays smooth whatever the scroll wheel does. */

/* ---- 00 hero ---- */
@media (min-width: 961px) {
    html.motion .hero .pin-stage { min-height: 0; padding-top: 104px; padding-bottom: 36px; }
}
@media (max-width: 960px) {
    /* Phones: the hero fits one screen — smaller fan, no legend. */
    html.motion .hero .pin-stage { min-height: 0; padding-top: 92px; padding-bottom: 20px; gap: 0; justify-content: flex-start; }
    html.motion .hero-grid { row-gap: 20px; }
    html.motion .hero-copy { row-gap: 18px; }
    html.motion .hero-stage { width: auto; height: min(36vh, 360px); max-width: none; }
    html.motion .hero .pin-stage > .rail:last-child { display: none; }
}

/* ---- 01 philosophy: the statement lights up, then the three principles in turn ----
   s1  the statement rises; principle i.
   s2  principle ii.
   s3  principle iii.
   Each handover is the app-act transition: the old words blur away, the new rise in. */
html.motion .philo {
    height: 100%;
    display: grid; grid-template-rows: auto minmax(0, 1fr); align-content: center;
    padding-top: clamp(84px, 11vh, 120px); padding-bottom: clamp(28px, 5vh, 56px);
}
html.motion .philo .statement {
    font-size: clamp(40px, 6.2vw, 104px);
    margin: 0;
    transform-origin: 0 0;
    transform: translate3d(0, 24vh, 0) scale(1.12);
    transition: transform 1.2s var(--ease-out-quint);
}
html.motion .philo-pin.s1 .philo .statement { transform: none; }
html.motion .principles {
    align-self: stretch;
    opacity: 0; transform: translate3d(0, 40px, 0); filter: blur(8px);
    transition: opacity 0.7s var(--ease-out-quint), transform 1s var(--ease-out-quint), filter 0.7s var(--ease-out-quint);
}
html.motion .philo-pin.s1 .principles { opacity: 1; transform: none; filter: none; transition-delay: 0.25s; }

/* titles: the current principle in ink, the others waiting (tap one to go to it) */
html.motion .tenets > li { cursor: pointer; border-radius: 8px; -webkit-tap-highlight-color: transparent; }
html.motion .tenets > li:hover :is(.title, .num-cell) { color: var(--ink-mute); }
html.motion .tenets > li:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
html.motion .tenets .copy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html.motion .tenets :is(.title, .num-cell) { color: var(--ink-faint); transition: color 0.7s var(--ease-soft); }
html.motion .philo-pin.s1:not(.s2) .tenets > li:nth-child(1) :is(.title, .num-cell),
html.motion .philo-pin.s2:not(.s3) .tenets > li:nth-child(2) :is(.title, .num-cell),
html.motion .philo-pin.s3 .tenets > li:nth-child(3) :is(.title, .num-cell) { color: var(--ink); }

/* the words: one principle at a time, in the same place */
html.motion .principle-words { display: grid; align-items: center; }
html.motion .principle-words .pw {
    grid-area: 1 / 1;
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(26px, 2.7vw, 46px); line-height: 1.18; letter-spacing: -0.025em;
    color: var(--ink); max-width: 22ch; text-wrap: balance;
    opacity: 0; visibility: hidden;
    transform: translate3d(0, 34px, 0); filter: blur(8px);
    transition: opacity 0.6s var(--ease-out-quint), transform 0.8s var(--ease-out-quint), filter 0.6s var(--ease-out-quint), visibility 0s linear 0.6s;
}
html.motion .philo-pin.s1:not(.s2) .pw:nth-child(1),
html.motion .philo-pin.s2:not(.s3) .pw:nth-child(2),
html.motion .philo-pin.s3 .pw:nth-child(3) {
    opacity: 1; visibility: visible; transform: none; filter: none;
    transition-delay: 0.3s, 0.3s, 0.3s, 0s;
}

@media (max-width: 860px) {
    html.motion .philo .statement { font-size: clamp(36px, 10.5vw, 56px); transform: translate3d(0, 18vh, 0) scale(1.06); }
    html.motion .principles { gap: 22px; align-content: center; }
    /* all three titles stay, compact, so any of them can be tapped */
    html.motion .tenets { gap: 10px; }
    html.motion .tenets .title { font-size: clamp(24px, 6.8vw, 32px); }
    html.motion .principle-words .pw { font-size: clamp(21px, 5.8vw, 28px); }
}

/* ---- 03 FAQ: one question at a time ---- */
html:not(.motion) .faq-pin { padding: clamp(96px, 13vw, 190px) 0; }
.faq-index { display: none; }
html.motion .faq-pin .faq-grid { height: 100%; align-content: center; align-items: center; padding-top: 64px; }
html.motion .faq-head .display { margin-top: 20px; }
html.motion .faq-index {
    display: grid; gap: 2px; margin-top: clamp(28px, 5vh, 56px); list-style: none; counter-reset: q;
}
html.motion .faq-index li {
    counter-increment: q;
    display: grid; grid-template-columns: 30px 1fr; align-items: baseline;
    padding: 9px 0; cursor: pointer;
    font-size: 14px; line-height: 1.35; color: var(--ink-mute);
    transition: color 0.35s var(--ease-soft);
}
html.motion .faq-index li::before { content: counter(q, decimal-leading-zero); font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); transition: color 0.35s; }
html.motion .faq-index li span { position: relative; }
html.motion .faq-index li span::after {
    content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 100%;
    background: var(--ink); transform: scaleX(0); transform-origin: 0 50%;
    transition: transform 0.6s var(--ease-out-quint);
}
html.motion .faq-index li:hover { color: var(--ink-soft); }
html.motion .faq-index li.is-on { color: var(--ink); }
html.motion .faq-index li.is-on::before { color: var(--ink); }
html.motion .faq-index li.is-on span::after { transform: scaleX(1); }

html.motion .faq-pin .faq-list { display: grid; align-items: center; }
html.motion .faq-pin .faq-list details {
    grid-area: 1 / 1; border: 0 !important;
    opacity: 0; visibility: hidden;
    transform: translate3d(0, 40px, 0); filter: blur(8px);
    transition: opacity 0.6s var(--ease-out-quint), transform 0.8s var(--ease-out-quint), filter 0.6s var(--ease-out-quint), visibility 0s linear 0.6s;
}
html.motion .faq-pin .faq-list details.is-on { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: 0.12s, 0.12s, 0.12s, 0s; }
html.motion .faq-pin .faq-list details.was { transform: translate3d(0, -40px, 0); }
html.motion .faq-pin .faq-list details::details-content { block-size: auto; }
html.motion .faq-pin .faq-list summary { padding: 0 0 clamp(18px, 3vh, 30px); cursor: default; pointer-events: none; }
html.motion .faq-pin .faq-list summary i { display: none; }
html.motion .faq-pin .faq-list summary h3 {
    font-size: clamp(32px, 3.8vw, 60px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance;
}
html.motion .faq-pin .faq-list .answer p { padding: 0; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.55; max-width: 46ch; }
@media (max-width: 860px) {
    html.motion .faq-pin .faq-grid { align-content: start; padding-top: 100px; gap: 28px; }
    html.motion .faq-head .display { font-size: clamp(30px, 8vw, 40px); }
    html.motion .faq-index { grid-auto-flow: column; grid-template-columns: none; gap: 6px; margin-top: 22px; }
    html.motion .faq-index li { display: block; padding: 0; height: 3px; border-radius: 2px; background: var(--line-strong); font-size: 0; }
    html.motion .faq-index li::before, html.motion .faq-index li span { display: none; }
    html.motion .faq-index li.is-on { background: var(--ink); }
    html.motion .faq-pin .faq-list { align-items: start; }
    html.motion .faq-pin .faq-list summary h3 { font-size: clamp(26px, 7.4vw, 36px); }
    html.motion .faq-pin .faq-list .answer p { font-size: 16px; }
}

/* ---- 04 contact: one screen that comes into focus ---- */
html:not(.motion) .contact-pin { padding: clamp(96px, 13vw, 190px) 0; }
html.motion .contact-pin .pin-stage { display: grid; align-items: center; }
html.motion .contact :is(.c-1, .c-2, .c-3) {
    opacity: 0; transform: translate3d(0, 40px, 0); filter: blur(12px);
    transition: opacity 0.7s var(--ease-out-quint), transform 1s var(--ease-out-quint), filter 0.7s var(--ease-out-quint);
}
html.motion .contact .c-2 { transform: translate3d(0, 60px, 0) scale(0.96); transform-origin: 0 50%; transition-delay: 0.1s; }
html.motion .contact-pin.is-live :is(.c-1, .c-2),
html.motion .contact-pin.is-live.s1 .c-3 { opacity: 1; transform: none; filter: none; }
html.motion .contact h2 a { background-size: 0 0.06em; transition: background-size 1.1s var(--ease-out-quint) 0.2s, color var(--dur-sm); }
html.motion .contact-pin.is-live.s1 h2 a,
html.motion .contact h2 a:hover { background-size: 100% 0.06em; }

@media (prefers-reduced-motion: reduce) {
    .fan-item { rotate: var(--rot); }
}
