/* ==========================================================================
   Ivy Devs LLC — Cinematic scroll-driven experience
   Dark luxury · Liquid glass · Premium tech
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
    /* Palette — deep ink with warm amber + electric blue accents */
    --bg-0: #07070a;            /* near-black */
    --bg-1: #0c0c11;            /* slightly lifted */
    --bg-2: #14141b;
    --ink-0: #f5f5f7;           /* primary text */
    --ink-1: #c7c8d1;           /* secondary text */
    --ink-2: #8a8b96;           /* muted */
    --ink-3: #5a5b66;           /* very muted */
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);

    /* Accents */
    --amber: #ffb547;           /* the warm garage glow */
    --amber-soft: rgba(255, 181, 71, 0.18);
    --neon: #ff3b6f;            /* taillight pink */
    --ice: #6cf2ff;             /* cool tech accent */

    /* Glass tokens */
    --glass-bg: rgba(255, 255, 255, 0.045);
    --glass-bg-strong: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.10);
    --glass-blur: blur(22px) saturate(140%);

    /* Type */
    --font-display: "Syncopate", "Space Grotesk", system-ui, sans-serif;
    --font-sans: "Space Grotesk", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
    /* Premium display — cinematic chapters 01–04 only (Fraunces reads clearly vs Space Grotesk) */
    --font-premium: "Fraunces", "Georgia", "Times New Roman", serif;
    /* Cool cyan + silver (chapter treatment; final beat keeps amber) */
    --cinema-ch-cyan: #6fffa8;
    --cinema-ch-cyan-deep: #27c96b;
    --cinema-ch-cyan-glow: rgba(111, 255, 168, 0.5);
    --cinema-ch-silver: #f2f6fb;
    --cinema-ch-frost: rgba(111, 255, 168, 0.14);
    --cinema-ch-line: rgba(111, 255, 168, 0.38);
    --cinema-ch-signal: rgba(39, 201, 107, 0.55);

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    background: var(--bg-0);
    color: var(--ink-0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    overscroll-behavior-y: none; /* prevent bounce/pull-to-refresh on mobile */
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-1);
    background: var(--bg-0);
    overflow-x: hidden;
}

img,
video,
canvas {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 200ms var(--ease-soft);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

.mono {
    font-family: var(--font-mono);
    font-weight: 400;
    letter-spacing: 0.04em;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

::selection {
    background: var(--amber);
    color: var(--bg-0);
}

/* ---------- Subtle starfield gradient on body ---------- */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% -10%, rgba(255, 181, 71, 0.08), transparent 50%),
        radial-gradient(ellipse at 100% 0%, rgba(108, 242, 255, 0.05), transparent 55%),
        radial-gradient(ellipse at 50% 100%, rgba(255, 59, 111, 0.04), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* ==========================================================================
   LOADER — "Trace & Bloom"
   A glowing dot traces the ivy leaf outline (~1.1s), the interior fills
   with a soft radial glow, the PNG logo fades in inside the trace, and
   the wordmark types out below. Total: ~2.5s. The `.is-done` class is
   added by script.js (after preload completes OR immediately if a per-
   session cookie says we've already shown this loader).
   ========================================================================== */
.loader {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, #06140a 0%, #000 70%);
    z-index: 200;
    display: grid;
    place-items: center;
    transition: opacity 700ms var(--ease-out), visibility 0s linear 700ms;
}

.loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.loader__stage {
    position: relative;
    width: min(260px, 60vw);
    aspect-ratio: 200 / 220;
    isolation: isolate;
}

/* ---------- SVG leaf ---------- */
.loader__leaf {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Outline: stroke draws on with pathLength=1 so dash math is trivial. The
   timing matches the dot's <animateMotion> dur/begin so they move together. */
.leaf-outline {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: leaf-trace 1.1s ease-in-out 0.3s forwards;
}

@keyframes leaf-trace {
    to { stroke-dashoffset: 0; }
}

/* Interior fill: invisible during the trace, fades in once the loop closes
   (1.4s = 0.3s begin + 1.1s trace). */
.leaf-fill {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: 50% 55%;
    transform: scale(0.94);
    animation: leaf-fill-in 0.4s ease-out 1.4s forwards;
}

@keyframes leaf-fill-in {
    to { opacity: 1; transform: scale(1); }
}

/* Traveling dot — sized & glow tuned to look like a comet head. */
.leaf-dot {
    /* Hidden until <animateMotion> begins at 0.3s; SMIL handles the move. */
    filter: drop-shadow(0 0 6px rgba(200, 255, 234, 0.95));
}

/* ---------- PNG logo fade-in over the traced outline ---------- */
.loader__bloom {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 78%;
    transform: translate(-50%, -50%);
    opacity: 0;
    mix-blend-mode: screen;
    pointer-events: none;
    animation: bloom-fade 0.5s ease-out 1.6s forwards;
    will-change: opacity, filter;
}

@keyframes bloom-fade {
    0%   { opacity: 0;    filter: drop-shadow(0 0 0   rgba(122,255,138,0)); }
    60%  { opacity: 0.55; filter: drop-shadow(0 0 14px rgba(122,255,138,0.7)); }
    100% { opacity: 0.55; filter: drop-shadow(0 0 10px rgba(122,255,138,0.5)); }
}

/* ---------- Wordmark: typewriter reveal + blinking cursor ---------- */
.loader__title {
    position: relative;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: clamp(13px, 2vw, 18px);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #d8ffd8;
    text-shadow:
        0 0 6px rgba(122, 255, 138, 0.9),
        0 0 18px rgba(60, 220, 110, 0.6);
    /* Reveal one char at a time. "IVY DEVS LLC" = 12 glyphs (with spaces). */
    clip-path: inset(0 100% 0 0);
    -webkit-clip-path: inset(0 100% 0 0);
    animation: title-type 0.65s steps(12) 1.9s forwards;
}

@keyframes title-type {
    to { clip-path: inset(0 0 0 0); -webkit-clip-path: inset(0 0 0 0); }
}

/* Blinking cursor — starts when the wordmark begins typing. */
.loader__title::after {
    content: '';
    display: inline-block;
    width: 0.6em;
    height: 1em;
    margin-left: 0.3em;
    background: #39ff88;
    vertical-align: -0.12em;
    box-shadow: 0 0 8px rgba(57, 255, 136, 0.7);
    opacity: 0;
    animation:
        cursor-show 0.01s linear 1.9s forwards,
        cursor-blink 0.9s steps(2) 1.9s infinite;
}

@keyframes cursor-show  { to { opacity: 1; } }
@keyframes cursor-blink {
    0%, 49%   { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    /* Skip all animations — show the final state immediately. */
    .leaf-outline, .leaf-fill, .loader__bloom, .loader__title,
    .loader__title::after, .leaf-dot {
        animation: none;
    }
    .leaf-outline { stroke-dashoffset: 0; }
    .leaf-fill    { opacity: 1; transform: none; }
    .loader__bloom { opacity: 0.55; }
    .loader__title { clip-path: inset(0 0 0 0); -webkit-clip-path: inset(0 0 0 0); }
    .loader__title::after { opacity: 0; }
}

/* ==========================================================================
   NAVBAR — floating glass
   ========================================================================== */
.nav {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1280px, calc(100% - 32px));
    z-index: 100;
    transition: transform 400ms var(--ease-out), opacity 400ms var(--ease-out);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px 12px 22px;
    background: rgba(10, 10, 14, 0.55);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-0);
    text-decoration: none;
}

.footer__logo {
    display: inline-flex;
}

.site-logo {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
}

.site-logo--nav {
    height: 32px;
    max-width: 200px;
}

.site-logo--footer {
    height: 28px;
    max-width: 200px;
}

.nav__links {
    display: flex;
    gap: 8px;
}

.nav__links a {
    padding: 8px 14px;
    font-size: 13px;
    color: var(--ink-1);
    border-radius: 10px;
    transition: color 200ms, background 200ms;
}

.nav__links a:hover {
    color: var(--ink-0);
    background: rgba(255, 255, 255, 0.05);
}

.nav__cta {
    display: flex;
    gap: 6px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition:
        background 220ms var(--ease-soft),
        border-color 220ms var(--ease-soft),
        color 220ms var(--ease-soft),
        box-shadow 220ms var(--ease-soft);
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink-1);
    border-color: var(--glass-border);
    padding: 9px 11px;
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ink-0);
}

.btn--primary {
    background: linear-gradient(180deg, #fff 0%, #d8d8df 100%);
    color: #0a0a10;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 12px 30px -12px rgba(255, 255, 255, 0.35);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 18px 40px -12px rgba(255, 255, 255, 0.45);
}

.btn--lg {
    padding: 14px 22px;
    font-size: 14px;
    border-radius: 14px;
}

/* Hide nav links on small screens */
@media (max-width: 880px) {
    .nav__links { display: none; }
}

@media (max-width: 520px) {
    .nav__inner { padding: 10px 10px 10px 16px; }
    .btn--primary span { display: none; }
    .btn--primary { padding: 9px 11px; }
}

/* ==========================================================================
   NAV — Book a call + Menu trigger (all viewports)
   ========================================================================== */
.nav__cta { gap: 10px; align-items: center; }

@media (max-width: 768px) {
    .nav__inner { padding: 10px 12px 10px 14px; }
    .nav__cta { gap: 8px; }
}

/* Book a call — green Jarvis-tinted pill anchor */
.nav__book {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px 9px 28px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #d8ffe7;
    text-decoration: none;
    border: 1px solid rgba(57, 255, 136, 0.42);
    background:
        radial-gradient(120% 200% at 0% 50%, rgba(57,255,136,0.18) 0%, rgba(57,255,136,0.04) 55%, rgba(0,0,0,0.5) 100%);
    box-shadow:
        0 0 0 1px rgba(57,255,136,0.08) inset,
        0 8px 20px -10px rgba(57,255,136,0.45);
    transition: transform 180ms var(--ease-soft), border-color 180ms, color 180ms;
    -webkit-tap-highlight-color: transparent;
}
.nav__book:hover, .nav__book:focus-visible {
    color: #fff;
    border-color: rgba(57,255,136,0.7);
    transform: translateY(-1px);
}
.nav__book:active { transform: translateY(0); }
.nav__book-pulse {
    position: absolute;
    left: 12px; top: 50%;
    width: 8px; height: 8px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, #c8ffea 0%, #39ff88 55%, #1a8a4a 100%);
    box-shadow: 0 0 10px #39ff88, 0 0 4px #c8ffea;
}
.nav__book-pulse::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(57,255,136,0.6);
    animation: navBookPulse 1.8s ease-out infinite;
}
@keyframes navBookPulse {
    0%   { transform: scale(0.8); opacity: 0.9; }
    100% { transform: scale(2.2); opacity: 0;   }
}
@media (max-width: 380px) {
    .nav__book { padding: 8px 12px 8px 24px; font-size: 12px; }
}

/* Menu trigger — 3x3 grid that morphs on hover */
.nav__menu-btn {
    position: relative;
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(57,255,136,0.32);
    cursor: pointer;
    color: #c8ffea;
    transition: border-color 180ms, transform 180ms var(--ease-soft);
    -webkit-tap-highlight-color: transparent;
}
.nav__menu-btn:hover, .nav__menu-btn:focus-visible {
    border-color: rgba(57,255,136,0.65);
    transform: translateY(-1px);
}
@media (min-width: 881px) {
    .nav__menu-btn { display: none; }
}
.nav__menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 4px);
    grid-template-rows: repeat(3, 4px);
    gap: 3px;
}
.nav__menu-grid span {
    width: 4px; height: 4px;
    background: #39ff88;
    border-radius: 1px;
    box-shadow: 0 0 6px rgba(57,255,136,0.65);
    opacity: 0.85;
    animation: navMenuTwinkle 2.4s ease-in-out infinite;
}
.nav__menu-grid span:nth-child(2) { animation-delay: 0.15s; }
.nav__menu-grid span:nth-child(3) { animation-delay: 0.3s;  }
.nav__menu-grid span:nth-child(4) { animation-delay: 0.45s; }
.nav__menu-grid span:nth-child(5) { animation-delay: 0.6s;  }
.nav__menu-grid span:nth-child(6) { animation-delay: 0.75s; }
.nav__menu-grid span:nth-child(7) { animation-delay: 0.9s;  }
.nav__menu-grid span:nth-child(8) { animation-delay: 1.05s; }
.nav__menu-grid span:nth-child(9) { animation-delay: 1.2s;  }
@keyframes navMenuTwinkle {
    0%, 100% { opacity: 0.4; transform: scale(0.85); }
    50%      { opacity: 1;   transform: scale(1.15); }
}

/* ==========================================================================
   NAV MENU OVERLAY — full-screen Jarvis HUD (mobile)
   ========================================================================== */
.nav-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    color: #d8ffe7;
    font-family: 'Inter', sans-serif;
    opacity: 0;
    pointer-events: none;
    transition: opacity 280ms ease;
}
.nav-menu.is-open {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.nav-menu__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(7,18,12,0.98) 0%, #000 65%, #000 100%);
    overflow: hidden;
}
.nav-menu__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(57,255,136,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57,255,136,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 100% 70% at 50% 30%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 30%, black 30%, transparent 100%);
}
.nav-menu__scan {
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(57,255,136,0.08) 48%,
        rgba(57,255,136,0.16) 50%,
        rgba(57,255,136,0.08) 52%,
        transparent 100%);
    background-size: 100% 200px;
    background-repeat: no-repeat;
    background-position: 0 -200px;
}
.nav-menu.is-open .nav-menu__scan {
    animation: navMenuScan 3.6s linear infinite;
}
@keyframes navMenuScan {
    0%   { background-position: 0 -200px; }
    100% { background-position: 0 110%;   }
}
.nav-menu__glow {
    position: absolute;
    left: 50%; top: 0;
    width: 320px; height: 320px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(57,255,136,0.25) 0%, transparent 70%);
    filter: blur(20px);
    opacity: 0.6;
}

.nav-menu__hud {
    position: absolute;
    width: 26px; height: 26px;
    border: 1px solid rgba(57,255,136,0.5);
    pointer-events: none;
}
.nav-menu__hud--tl { top: 18px;    left: 18px;    border-width: 1px 0 0 1px; }
.nav-menu__hud--tr { top: 18px;    right: 18px;   border-width: 1px 1px 0 0; }
.nav-menu__hud--bl { bottom: 18px; left: 18px;    border-width: 0 0 1px 1px; }
.nav-menu__hud--br { bottom: 18px; right: 18px;   border-width: 0 1px 1px 0; }

.nav-menu__close {
    position: absolute;
    top: 18px; right: 18px;
    width: 44px; height: 44px;
    z-index: 4;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.5);
    color: #c8ffea;
    border: 1px solid rgba(57,255,136,0.45);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 180ms, transform 180ms;
}
.nav-menu__close:hover, .nav-menu__close:focus-visible {
    border-color: rgba(57,255,136,0.8);
    transform: rotate(90deg);
}

.nav-menu__inner {
    position: relative;
    z-index: 3;
    width: min(520px, calc(100% - 32px));
    margin: 0 auto;
    height: 100dvh;
    padding: 78px 0 28px;
    display: flex;
    flex-direction: column;
}

.nav-menu__head {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(57,255,136,0.18);
}
.nav-menu__reactor {
    grid-row: 1 / span 2;
    position: relative;
    width: 26px; height: 26px;
}
.nav-menu__reactor span:nth-child(1) {
    position: absolute; inset: 0;
    border: 1px solid rgba(57,255,136,0.75);
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(57,255,136,0.5), inset 0 0 6px rgba(57,255,136,0.35);
}
.nav-menu__reactor span:nth-child(2) {
    position: absolute; inset: 5px;
    border: 1px dashed rgba(126,255,209,0.7);
    border-radius: 50%;
    animation: navMenuSpin 4s linear infinite;
}
.nav-menu__reactor span:nth-child(3) {
    position: absolute; inset: 9px;
    background: radial-gradient(circle, #c8ffea 0%, #39ff88 55%, #1a8a4a 100%);
    border-radius: 50%;
    box-shadow: 0 0 12px #39ff88;
    animation: navMenuCore 1.6s ease-in-out infinite;
}
@keyframes navMenuSpin { to { transform: rotate(360deg); } }
@keyframes navMenuCore {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%      { transform: scale(0.78); opacity: 0.85; }
}
.nav-menu__id {
    font-size: 11px;
    letter-spacing: 0.28em;
    color: rgba(232,245,236,0.85);
    text-transform: uppercase;
}
.nav-menu__sub {
    font-size: 10px;
    letter-spacing: 0.18em;
    color: rgba(232,245,236,0.4);
}

.nav-menu__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-menu__link {
    position: relative;
    display: grid;
    grid-template-columns: 32px 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 14px;
    padding: 18px 14px;
    border: 1px solid rgba(57,255,136,0.14);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(57,255,136,0.025) 0%, rgba(0,0,0,0) 100%);
    color: #e8f5ec;
    text-decoration: none;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-12px);
    transition: border-color 220ms, background 220ms, transform 220ms;
}
.nav-menu.is-open .nav-menu__link {
    animation: navMenuLinkIn 600ms cubic-bezier(0.22, 1.2, 0.36, 1) forwards;
}
.nav-menu.is-open .nav-menu__link[data-index="01"] { animation-delay: 0.08s; }
.nav-menu.is-open .nav-menu__link[data-index="02"] { animation-delay: 0.16s; }
.nav-menu.is-open .nav-menu__link[data-index="03"] { animation-delay: 0.24s; }
.nav-menu.is-open .nav-menu__link[data-index="04"] { animation-delay: 0.32s; }
.nav-menu.is-open .nav-menu__link[data-index="05"] { animation-delay: 0.40s; }
@keyframes navMenuLinkIn {
    0%   { opacity: 0; transform: translateX(-14px); filter: blur(4px); }
    60%  { opacity: 1; filter: blur(0);              }
    100% { opacity: 1; transform: translateX(0);     }
}
.nav-menu__link::before {
    /* sweep highlight */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(57,255,136,0.08) 50%, transparent 100%);
    transform: translateX(-110%);
    transition: transform 600ms var(--ease-soft);
    pointer-events: none;
}
.nav-menu__link:hover, .nav-menu__link:focus-visible {
    border-color: rgba(57,255,136,0.55);
    background: linear-gradient(180deg, rgba(57,255,136,0.08) 0%, rgba(0,0,0,0) 100%);
}
.nav-menu__link:hover::before,
.nav-menu__link:focus-visible::before {
    transform: translateX(110%);
}
.nav-menu__num {
    grid-row: 1 / span 2;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(57,255,136,0.85);
    text-shadow: 0 0 8px rgba(57,255,136,0.4);
}
.nav-menu__label {
    grid-column: 2;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.005em;
}
.nav-menu__meta {
    grid-column: 2;
    font-size: 10.5px;
    color: rgba(232,245,236,0.45);
    letter-spacing: 0.18em;
    margin-top: 4px;
}
.nav-menu__arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
    color: rgba(57,255,136,0.55);
    transition: transform 220ms, color 220ms;
}
.nav-menu__link:hover .nav-menu__arrow,
.nav-menu__link:focus-visible .nav-menu__arrow {
    color: #39ff88;
    transform: translateX(4px);
}
.nav-menu__link--accent {
    border-color: rgba(57,255,136,0.55);
    background: linear-gradient(180deg, rgba(57,255,136,0.16) 0%, rgba(57,255,136,0.02) 100%);
}
.nav-menu__link--accent .nav-menu__num { color: #c8ffea; }
.nav-menu__link--accent .nav-menu__arrow { color: #39ff88; }

.nav-menu__foot {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(57,255,136,0.14);
    font-size: 10px;
    color: rgba(232,245,236,0.45);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.nav-menu__foot-status {
    display: inline-flex; align-items: center; gap: 8px;
    color: #c8ffea;
}
.nav-menu__foot-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: radial-gradient(circle, #c8ffea 0%, #39ff88 60%, #1a8a4a 100%);
    box-shadow: 0 0 8px #39ff88;
    animation: navMenuCore 1.6s ease-in-out infinite;
}

/* Lock body scroll when menu is open */
body.nav-menu-open { overflow: hidden; }

/* ==========================================================================
   BOOK-A-CALL CTA — minimal Jarvis-tinted pill.
   Used between Services/Projects and Projects/Testimonials on both mobile
   and desktop. Class names retain `mobile-cta-` prefix for backwards-compat.
   ========================================================================== */
.mobile-cta-zone {
    display: block;
    padding: 40px 0 48px;
}
.mobile-cta-zone--alt { padding: 48px 0 56px; }

.mobile-cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.mobile-cta__eyebrow {
    font-size: 11px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(57,255,136,0.65);
}

.mobile-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px 13px 34px;
    border-radius: 999px;
    text-decoration: none;
    color: #d8ffe7;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.005em;
    background:
        radial-gradient(120% 200% at 0% 50%, rgba(57,255,136,0.18) 0%, rgba(57,255,136,0.04) 55%, rgba(0,0,0,0.55) 100%);
    border: 1px solid rgba(57,255,136,0.42);
    box-shadow:
        0 0 0 1px rgba(57,255,136,0.06) inset,
        0 12px 26px -14px rgba(57,255,136,0.45);
    -webkit-tap-highlight-color: transparent;
    transition: transform 180ms var(--ease-soft), border-color 180ms, color 180ms, box-shadow 180ms;
}
.mobile-cta:hover,
.mobile-cta:focus-visible {
    color: #fff;
    border-color: rgba(57,255,136,0.8);
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(57,255,136,0.1) inset,
        0 18px 36px -16px rgba(57,255,136,0.6);
}
.mobile-cta:active { transform: translateY(0); }

.mobile-cta__pulse {
    position: absolute;
    left: 16px; top: 50%;
    width: 9px; height: 9px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, #c8ffea 0%, #39ff88 55%, #1a8a4a 100%);
    box-shadow: 0 0 10px #39ff88, 0 0 4px #c8ffea;
}
.mobile-cta__pulse::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(57,255,136,0.6);
    animation: navBookPulse 1.8s ease-out infinite;
}

.mobile-cta__label { line-height: 1; }

.mobile-cta__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(57,255,136,0.12);
    color: #39ff88;
    border: 1px solid rgba(57,255,136,0.45);
    transition: transform 200ms var(--ease-soft), background 200ms;
}
.mobile-cta:hover .mobile-cta__arrow,
.mobile-cta:focus-visible .mobile-cta__arrow {
    background: rgba(57,255,136,0.22);
    transform: translateX(2px);
}

.mobile-cta__sub {
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(232,245,236,0.42);
}

/* Subtle cyan accent for the second one so they don't feel identical */
.mobile-cta--alt {
    background:
        radial-gradient(120% 200% at 100% 50%, rgba(126,255,209,0.18) 0%, rgba(126,255,209,0.04) 55%, rgba(0,0,0,0.55) 100%);
    border-color: rgba(126,255,209,0.42);
}
.mobile-cta--alt .mobile-cta__arrow {
    background: rgba(126,255,209,0.12);
    color: #7effd1;
    border-color: rgba(126,255,209,0.5);
}

@media (max-width: 768px) {
    /* Tighter padding + slightly smaller pill on phones */
    .mobile-cta-zone        { padding: 28px 0 32px; }
    .mobile-cta-zone--alt   { padding: 32px 0 36px; }
    .mobile-cta             { font-size: 13.5px; padding: 11px 14px 11px 30px; }
    .mobile-cta__eyebrow    { font-size: 10px; letter-spacing: 0.24em; }
    .mobile-cta__sub        { font-size: 10px; }
    .mobile-cta__arrow      { width: 22px; height: 22px; }
    .mobile-cta__pulse      { left: 14px; width: 8px; height: 8px; }
}

/* ==========================================================================
   CINEMA — sticky canvas frame sequence
   ========================================================================== */
.cinema {
    position: relative;
    /* tall scroll area drives the frame index. ~600vh = comfortable pacing */
    height: 600vh;
    background: var(--bg-0);
    overscroll-behavior: none; /* prevent pull-to-refresh eating scroll on mobile */
}

.cinema__sticky {
    position: sticky;
    top: 0;
    /* dvh tracks the dynamic viewport (iOS URL bar show/hide).
       100dvh ≡ 100vh on desktop, but on mobile it stops the sticky from being
       miscomputed when the address bar collapses, eliminating the layout-thrash
       that was triggering iOS Safari memory pressure → tab reload. */
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    background: #000;
}

#cinemaCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cinematic vignette for depth */
.cinema__vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 18%, transparent 70%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
    mix-blend-mode: multiply;
}

/* Subtle film grain */
.cinema__grain {
    position: absolute;
    inset: -10%;
    pointer-events: none;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    animation: grain 1.6s steps(6) infinite;
}

@keyframes grain {
    0%   { transform: translate(0, 0); }
    20%  { transform: translate(-3%, 2%); }
    40%  { transform: translate(2%, -3%); }
    60%  { transform: translate(-2%, -1%); }
    80%  { transform: translate(3%, 2%); }
    100% { transform: translate(0, 0); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.15); }
}

/* Scroll prompt */
.cinema__prompt {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    color: var(--ink-2);
    pointer-events: none;
    transition: opacity 600ms;
    z-index: 5;
}

.cinema__prompt.is-hidden {
    opacity: 0;
}

.prompt__dot {
    animation: scrollDot 1.6s ease-in-out infinite;
    stroke: var(--ink-0);
    stroke-width: 2;
}

@keyframes scrollDot {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50%      { transform: translateY(4px); opacity: 0.4; }
}

/* ---------- Cinema captions / overlays ---------- */
.caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    opacity: 0;
    transition: opacity 1000ms var(--ease-out);
    pointer-events: none;
    z-index: 4;
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.caption.is-active {
    opacity: 1;
    pointer-events: auto;
}

.caption--side {
    justify-content: flex-start;
    padding-left: 56px;
}

.caption--side.caption--right {
    justify-content: flex-end;
    padding-left: 32px;
    padding-right: 56px;
}

.caption__center {
    text-align: center;
    max-width: 920px;
}

.caption__center--small {
    max-width: 720px;
}

/* Chapter 03 — wider, prose-style headline (less vertical stacking) */
.caption__center--ch3 {
    max-width: min(960px, 94vw);
}

.caption__center--final {
    max-width: min(1000px, 96vw);
}

.caption__panel {
    max-width: 440px;
    padding: 28px 30px;
    border-radius: 22px;
}

/* Eyebrow / kicker */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 10px;
    color: var(--ink-1);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
}

.eyebrow__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 8px var(--amber);
}

/* Hero typography */
.hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(40px, 7vw, 96px);
    line-height: 0.96;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--ink-0);
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}

.hero__title--small {
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.05;
}

/* Chapter 03 — prose width + Space Grotesk (Syncopate stacks too tall here) */
.hero__title--ch3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(22px, 2.65vw, 36px);
    line-height: 1.28;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.hero__title--ch3 .line + .line {
    margin-top: 0.45em;
}

/* Chapter FINAL — THE BEST TIME TO / BUILD / WAS YESTERDAY. + sentence subline */
.hero__title--final {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: clamp(22px, 2.75vw, 40px);
    line-height: 1.12;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    max-width: min(920px, 94vw);
    margin-left: auto;
    margin-right: auto;
}

.hero__title--final .line + .line {
    margin-top: 0.22em;
}

.hero__final-sub {
    margin: 1.1em auto 0;
    max-width: min(520px, 90vw);
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: clamp(14px, 1.35vw, 17px);
    line-height: 1.55;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink-1);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.hero__final-sub .grad {
    font-weight: 500;
    background: linear-gradient(180deg, #fff 0%, var(--amber) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 12px rgba(255, 181, 71, 0.4));
}

.hero__title .line {
    display: block;
    overflow: hidden;
}

.hero__title em {
    font-style: italic;
    font-family: "Space Grotesk", serif;
    font-weight: 300;
    color: var(--ink-1);
}

.hero__title .grad {
    background: linear-gradient(180deg, #fff 0%, var(--amber) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 24px rgba(255, 181, 71, 0.4));
}

.hero__sub {
    margin: 24px auto 0;
    max-width: 540px;
    font-size: clamp(14px, 1.2vw, 16px);
    color: var(--ink-1);
    line-height: 1.6;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   CINEMA CHAPTERS 01–04 — premium (Fraunces + vivid cyan / metallic)
   No looping motion on type. Final chapter unchanged.
   ========================================================================== */

.caption--ch1 .eyebrow,
.caption--ch2 .eyebrow,
.caption--ch3 .eyebrow,
.caption--ch4 .eyebrow {
    color: rgba(240, 248, 252, 0.95);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), var(--cinema-ch-frost));
    border-color: var(--cinema-ch-line);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 0 1px var(--cinema-ch-signal) inset,
        0 14px 48px -26px var(--cinema-ch-cyan-glow);
}

.caption--ch1 .eyebrow__dot,
.caption--ch2 .eyebrow__dot,
.caption--ch3 .eyebrow__dot,
.caption--ch4 .eyebrow__dot {
    background: linear-gradient(145deg, #ffffff, var(--cinema-ch-cyan) 45%, var(--cinema-ch-cyan-deep));
    box-shadow:
        0 0 12px var(--cinema-ch-cyan-glow),
        0 0 28px rgba(39, 201, 107, 0.35);
}

/* Ch 01 — centered hero title: stronger metallic + cyan halo */
.caption--ch1 .hero__title {
    font-family: var(--font-premium);
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: clamp(44px, 7.2vw, 104px);
    line-height: 1.02;
    letter-spacing: -0.01em;
    text-transform: none;
    background: linear-gradient(
        168deg,
        #ffffff 0%,
        var(--cinema-ch-silver) 32%,
        #c5d2e2 58%,
        #7a94a8 88%,
        #5a7082 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter:
        drop-shadow(0 2px 28px rgba(0, 0, 0, 0.55))
        drop-shadow(0 0 56px rgba(39, 201, 107, 0.22))
        drop-shadow(0 0 1px rgba(111, 255, 168, 0.35));
}

.caption--ch1 .hero__sub {
    color: rgba(205, 220, 232, 0.97);
    font-weight: 400;
    letter-spacing: 0.015em;
    line-height: 1.68;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.55),
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(39, 201, 107, 0.08);
}

/* Ch 02 + 04 — glass: brighter cyan edge + inner frost */
.caption--ch2 .caption__panel.glass,
.caption--ch4 .caption__panel.glass {
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.07),
        rgba(111, 255, 168, 0.07),
        rgba(255, 255, 255, 0.03)
    );
    border-color: rgba(111, 255, 168, 0.28);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 0 0 1px rgba(111, 255, 168, 0.12) inset,
        0 36px 100px -40px rgba(0, 0, 0, 0.78),
        0 0 48px -20px var(--cinema-ch-cyan-glow);
}

.caption--ch2 .cap__title,
.caption--ch4 .cap__title {
    font-family: var(--font-premium);
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: clamp(26px, 3.15vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: rgba(252, 253, 255, 0.99);
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.45),
        0 14px 44px rgba(0, 0, 0, 0.42),
        0 0 32px rgba(39, 201, 107, 0.12);
}

.caption--ch2 .cap__body,
.caption--ch4 .cap__body {
    color: rgba(198, 214, 228, 0.98);
    letter-spacing: 0.012em;
}

.caption--ch2 .cap__closer,
.caption--ch4 .cap__closer {
    font-family: var(--font-premium);
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: clamp(16px, 1.55vw, 21px);
    letter-spacing: 0.01em;
    color: rgba(240, 246, 252, 0.98);
    border-top-color: rgba(111, 255, 168, 0.22);
    text-shadow:
        0 2px 22px rgba(0, 0, 0, 0.45),
        0 0 24px rgba(39, 201, 107, 0.1);
}

/* Ch 03 — frosted strip behind copy (readability, medium weight) */
.caption__center--ch3 {
    position: relative;
    z-index: 0;
}

.caption__center--ch3::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -28px clamp(-16px, -3vw, -24px);
    border-radius: 24px;
    background: linear-gradient(165deg, rgba(6, 10, 16, 0.52), rgba(8, 14, 22, 0.38));
    border: 1px solid rgba(111, 255, 168, 0.2);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 0 0 1px rgba(0, 0, 0, 0.35) inset,
        0 28px 80px -36px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(18px) saturate(132%);
    -webkit-backdrop-filter: blur(18px) saturate(132%);
    pointer-events: none;
}

/* Ch 03 — headline: solid ice metal (no full-block clip) so .ch3-kw can pop */
.caption--ch3 .hero__title--ch3 {
    font-family: var(--font-premium);
    font-optical-sizing: auto;
    font-weight: 500;
    font-size: clamp(25px, 2.9vw, 40px);
    line-height: 1.32;
    letter-spacing: -0.02em;
    text-wrap: balance;
    color: rgba(236, 244, 250, 0.96);
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.55),
        0 2px 24px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(39, 201, 107, 0.14);
    filter: none;
}

.caption--ch3 .ch3-kw {
    font-weight: 600;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.98);
    padding: 0.06em 0.22em 0.1em;
    margin: 0 -0.04em;
    border-radius: 0.28em;
    background: linear-gradient(180deg, rgba(111, 255, 168, 0.2), rgba(39, 201, 107, 0.1));
    box-shadow:
        0 0 0 1px rgba(111, 255, 168, 0.45),
        0 0 20px -4px var(--cinema-ch-cyan-glow);
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.75),
        0 0 18px rgba(111, 255, 168, 0.35);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* Chapter gradient accents — cyan / silver instead of amber (ch 01–04 only) */
.caption--ch1 .grad,
.caption--ch2 .grad,
.caption--ch3 .grad,
.caption--ch4 .grad {
    background: linear-gradient(188deg, #ffffff 0%, var(--cinema-ch-cyan) 48%, var(--cinema-ch-cyan-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 16px var(--cinema-ch-cyan-glow));
}

.caption--ch4 .pill {
    color: rgba(220, 248, 255, 0.98);
    background: rgba(111, 255, 168, 0.14);
    border-color: rgba(111, 255, 168, 0.32);
    box-shadow: 0 0 14px -6px var(--cinema-ch-cyan-glow);
}

/* Side panel typography */
.cap__title {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    color: var(--ink-0);
}

.cap__title .grad {
    background: linear-gradient(180deg, #fff 0%, var(--amber) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 18px rgba(255, 181, 71, 0.35));
}

.cap__body {
    font-size: 14px;
    color: var(--ink-1);
    line-height: 1.65;
    margin: 0 0 22px;
}

.cap__body:has(+ .cap__closer) {
    margin-bottom: 0;
}

.cap__closer {
    margin: 22px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.35;
    color: var(--ink-0);
}

.cap__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    list-style: none;
    margin: 0;
}

.cap__stats li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 12px;
}

.cap__stats span {
    font-size: 9px;
    color: var(--ink-3);
    letter-spacing: 0.12em;
}

.cap__stats b {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 18px;
    color: var(--ink-0);
}

.cap__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    padding: 6px 12px;
    font-size: 10px;
    color: var(--amber);
    background: var(--amber-soft);
    border: 1px solid rgba(255, 181, 71, 0.25);
    border-radius: 999px;
}

/* Mobile-only hero placeholder (shown on ≤768px in place of the cinema).
   Default: hidden on desktop so it never affects layout. */
.mobile-hero { display: none; }

/* Cinema responsive */
@media (max-width: 768px) {
    /* Mobile: drop the cinema entirely — no frame preload, no canvas, no
       scroll handlers (gated in script.js). The .mobile-hero placeholder
       above takes its place. */
    .cinema { display: none !important; }
    .mobile-hero {
        display: block;
        min-height: 100dvh;
    }
    /* Loader plays on mobile too (Trace & Bloom). Session-skip logic in
       script.js prevents it from re-playing on every repeat reload. */

    /* (Legacy mobile-cinema rules kept below as a safety net in case the
       cinema is ever re-enabled on mobile. With display:none above they
       are effectively dead.) */
    .cinema__sticky { position: relative; height: 100dvh; }
    .caption { padding: 0 20px; }
    .caption--side { justify-content: center; padding-left: 20px; }
    .caption--side.caption--right { padding-right: 20px; }
    .caption__panel { max-width: 100%; }

    /* The animated film grain (mix-blend-mode: overlay on a fullscreen layer)
       is the single most expensive compositing op on mobile. Off it goes. */
    .cinema__grain { display: none; }

    /* Stacked backdrop-filter blurs are the #1 mobile GPU cost. Reduce radius
       on captions, lighten on the navbar. Visual effect is preserved. */
    .caption__panel {
        backdrop-filter: blur(8px) saturate(120%);
        -webkit-backdrop-filter: blur(8px) saturate(120%);
    }
    .nav__inner {
        backdrop-filter: blur(12px) saturate(130%);
        -webkit-backdrop-filter: blur(12px) saturate(130%);
    }

    /* will-change permanently allocates a GPU layer. Browser still GPU-promotes
       during the actual transition, so keeping it on at rest is wasted VRAM. */
    .service-card,
    .service-card__inner,
    .service-card.is-flipping { will-change: auto; }

    /* Contact fallback — Three.js studio scene is disabled on mobile (contact.js
       toggles .is-fallback). Show a premium gradient + tagline so the section
       still feels intentional. */
    #contactScene.is-fallback #contactCanvas { display: none; }
    #contactScene.is-fallback {
        position: relative;
        min-height: 320px;
        background:
            radial-gradient(ellipse at top, rgba(255, 181, 71, 0.10) 0%, transparent 55%),
            radial-gradient(ellipse at bottom, rgba(108, 242, 255, 0.06) 0%, transparent 60%),
            linear-gradient(180deg, #11131c 0%, #08080b 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 18px;
        overflow: hidden;
    }
    #contactScene.is-fallback::before {
        content: "Built in Boston · Drop us a line";
        font-family: "Fraunces", serif;
        font-style: italic;
        font-size: clamp(20px, 5vw, 28px);
        color: rgba(255, 255, 255, 0.88);
        text-align: center;
        padding: 0 24px;
        letter-spacing: 0.01em;
    }
}

/* ==========================================================================
   CHAPTER HERO — premium futuristic typography (ch 01–04)
   A cinematic, HUD-inflected type system layered over the video:
   — bracketed mono chapter marker with pulsing cyan signal
   — Fraunces display with italic, gradient emphasis on key words
   — cinematic meta rows (coordinates, fps, scene)
   — refined side panels with center-dotted dividers
   — pull-quote w/ corner brackets for ch 03
   — numbered process steps w/ draw-in rules for ch 04
   ========================================================================== */

/* Layout wrappers */
.ch-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.ch-stack--hero {
    max-width: min(900px, 94vw);
}

.ch-stack--quote {
    max-width: min(960px, 94vw);
    padding: 48px clamp(22px, 4vw, 56px) 44px;
}

.ch-panel {
    display: flex;
    flex-direction: column;
    padding: 30px 32px 28px;
    max-width: 460px;
    border-radius: 20px;
}

.ch-panel > * + * {
    margin-top: 0;
}

/* ---------- Chapter marker (HUD bracket + pulsing signal) ---------- */
.ch-marker {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 7px 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: rgba(240, 248, 252, 0.88);
    background:
        linear-gradient(135deg, rgba(111, 255, 168, 0.05), rgba(255, 255, 255, 0.02) 60%, rgba(111, 255, 168, 0.06));
    border: 1px solid rgba(111, 255, 168, 0.32);
    border-radius: 3px;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 18px 44px -28px rgba(39, 201, 107, 0.55),
        0 0 18px -8px var(--cinema-ch-cyan-glow);
    align-self: flex-start;
}

.ch-stack--hero .ch-marker,
.ch-stack--quote .ch-marker {
    align-self: center;
}

.ch-marker__bracket {
    color: var(--cinema-ch-cyan);
    font-weight: 400;
    font-size: 12px;
    opacity: 0.78;
    letter-spacing: 0;
}

.ch-marker__pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cinema-ch-cyan);
    box-shadow:
        0 0 0 2px rgba(111, 255, 168, 0.18),
        0 0 14px var(--cinema-ch-cyan-glow);
    animation: chPulse 2.4s ease-in-out infinite;
}

@keyframes chPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.8); }
}

.ch-marker__index {
    color: rgba(245, 250, 255, 0.97);
    font-weight: 500;
}

.ch-marker__line {
    width: 18px;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(111, 255, 168, 0.1),
        rgba(111, 255, 168, 0.55),
        rgba(111, 255, 168, 0.1)
    );
}

.ch-marker__label {
    color: var(--cinema-ch-cyan);
    font-weight: 500;
    letter-spacing: 0.24em;
    text-shadow: 0 0 14px rgba(111, 255, 168, 0.3);
}

/* ---------- Title system (Fraunces + italic emphasis) ---------- */
.ch-title {
    font-family: var(--font-premium);
    font-optical-sizing: auto;
    font-weight: 500;
    margin: 0;
    color: rgba(252, 253, 255, 0.99);
    text-wrap: balance;
}

.ch-title em {
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(
        172deg,
        #ffffff 0%,
        var(--cinema-ch-cyan) 50%,
        var(--cinema-ch-cyan-deep) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 22px var(--cinema-ch-cyan-glow));
}

/* Ch 01 — centered hero composition */
.ch-title--hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    line-height: 0.98;
    letter-spacing: -0.015em;
}

.ch-title__prefix {
    font-family: var(--font-mono);
    font-size: clamp(10px, 1.05vw, 12px);
    font-weight: 400;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: rgba(200, 218, 232, 0.72);
    margin-bottom: 2px;
}

.ch-title__main {
    font-size: clamp(56px, 8.4vw, 128px);
    line-height: 0.96;
    letter-spacing: -0.02em;
    font-weight: 500;
    background: linear-gradient(
        168deg,
        #ffffff 0%,
        var(--cinema-ch-silver) 30%,
        #c9d6e5 56%,
        #8a9fb2 84%,
        #5f7383 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter:
        drop-shadow(0 2px 28px rgba(0, 0, 0, 0.55))
        drop-shadow(0 0 56px rgba(39, 201, 107, 0.2));
}

.ch-title__main em {
    padding-right: 0.02em;
}

.ch-title__suffix {
    font-family: var(--font-mono);
    font-size: clamp(11px, 1.15vw, 13px);
    font-weight: 400;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: rgba(210, 228, 242, 0.82);
    margin-top: 10px;
    position: relative;
    padding: 0 18px;
}

.ch-title__suffix::before,
.ch-title__suffix::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(111, 255, 168, 0.4));
    transform: translateY(-50%);
}

.ch-title__suffix::before {
    right: 100%;
    background: linear-gradient(90deg, transparent, rgba(111, 255, 168, 0.4));
}

.ch-title__suffix::after {
    left: 100%;
    background: linear-gradient(90deg, rgba(111, 255, 168, 0.4), transparent);
}

/* Ch 02 + 04 — side panel title */
.ch-title--panel {
    font-size: clamp(26px, 3.1vw, 40px);
    line-height: 1.14;
    letter-spacing: -0.018em;
    font-weight: 600;
    color: rgba(255, 255, 255, 1);
    margin-top: 20px;
}

/* ---------- Sub copy ---------- */
.ch-sub {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 500;
    line-height: 1.66;
    color: rgba(228, 238, 248, 0.98);
    letter-spacing: 0.005em;
    max-width: 560px;
    text-align: center;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5), 0 6px 24px rgba(0, 0, 0, 0.55);
}

.ch-sub--hero {
    font-size: clamp(16px, 1.45vw, 19px);
}

.ch-sub--hero + .ch-sub--hero {
    margin-top: 14px;
}

.ch-sub__accent {
    font-family: var(--font-premium);
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(172deg, #ffffff 0%, var(--cinema-ch-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 14px var(--cinema-ch-cyan-glow));
    letter-spacing: -0.01em;
    padding-left: 4px;
}

/* ---------- Chapter meta row (coordinates) ---------- */
.ch-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.28em;
    color: rgba(220, 234, 246, 0.5);
    text-transform: uppercase;
}

.ch-meta__sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--cinema-ch-cyan);
    opacity: 0.55;
    box-shadow: 0 0 10px var(--cinema-ch-cyan-glow);
}

/* ---------- Side panel (ch 02 + 04) body & divider ---------- */
.ch-divider {
    position: relative;
    height: 1px;
    margin: 20px 0 20px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(111, 255, 168, 0.35) 35%,
        rgba(111, 255, 168, 0.35) 65%,
        transparent
    );
}

.ch-divider::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cinema-ch-cyan);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 14px var(--cinema-ch-cyan-glow);
}

.ch-body {
    font-family: var(--font-sans);
    font-size: clamp(14.5px, 1.15vw, 16px);
    font-weight: 450;
    line-height: 1.76;
    letter-spacing: 0.008em;
    color: rgba(222, 234, 246, 0.99);
    margin: 0 0 14px;
}

.ch-body:last-of-type {
    margin-bottom: 0;
}

.ch-body em {
    font-style: italic;
    font-weight: 500;
    font-family: var(--font-premium);
    color: rgba(245, 251, 255, 0.98);
    background: linear-gradient(172deg, #ffffff 0%, var(--cinema-ch-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.005em;
}

.ch-signoff {
    position: relative;
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(111, 255, 168, 0.2);
    font-family: var(--font-premium);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(15px, 1.45vw, 18.5px);
    line-height: 1.42;
    letter-spacing: 0.005em;
    color: rgba(240, 246, 252, 0.98);
    text-shadow:
        0 2px 22px rgba(0, 0, 0, 0.45),
        0 0 24px rgba(39, 201, 107, 0.1);
}

.ch-signoff__mark {
    display: inline-block;
    margin-right: 10px;
    color: var(--cinema-ch-cyan);
    font-style: normal;
    font-weight: 500;
    filter: drop-shadow(0 0 10px var(--cinema-ch-cyan-glow));
}

/* ---------- Numbered steps (ch 04) ---------- */
.ch-steps {
    list-style: none;
    margin: 24px 0 0;
    padding: 18px 0 2px;
    border-top: 1px solid rgba(111, 255, 168, 0.18);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ch-step {
    display: grid;
    grid-template-columns: 32px 26px 1fr;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(220, 245, 252, 0.92);
}

.ch-step__num {
    color: var(--cinema-ch-cyan);
    font-weight: 600;
    text-shadow: 0 0 12px var(--cinema-ch-cyan-glow);
}

.ch-step__rule {
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(111, 255, 168, 0.15),
        rgba(111, 255, 168, 0.6)
    );
}

.ch-step__name {
    color: rgba(230, 248, 255, 0.95);
    font-family: var(--font-mono);
    font-weight: 500;
}

/* ---------- Ch 03 — pull-quote w/ corner brackets ---------- */
.caption__center--ch3.ch-stack--quote {
    position: relative;
}

/* Override the old full-background frosted card — align to content box so
   corner brackets sit precisely on the card edges. */
.caption__center--ch3.ch-stack--quote::before {
    inset: 0;
    background: linear-gradient(
        165deg,
        rgba(6, 10, 16, 0.48),
        rgba(8, 14, 22, 0.3)
    );
    border: 1px solid rgba(111, 255, 168, 0.14);
    border-radius: 4px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 0 0 1px rgba(0, 0, 0, 0.28),
        0 30px 80px -36px rgba(0, 0, 0, 0.58),
        0 0 48px -24px var(--cinema-ch-cyan-glow);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.ch-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
}

.ch-corner::before,
.ch-corner::after {
    content: "";
    position: absolute;
    background: linear-gradient(
        90deg,
        var(--cinema-ch-cyan),
        rgba(111, 255, 168, 0.2)
    );
    box-shadow: 0 0 12px var(--cinema-ch-cyan-glow);
}

.ch-corner::before {
    width: 22px;
    height: 1.5px;
}

.ch-corner::after {
    width: 1.5px;
    height: 22px;
}

.ch-corner--tl { top: 14px; left: 14px; }
.ch-corner--tl::before { top: 0; left: 0; }
.ch-corner--tl::after  { top: 0; left: 0; }

.ch-corner--tr { top: 14px; right: 14px; transform: scaleX(-1); }
.ch-corner--tr::before { top: 0; left: 0; }
.ch-corner--tr::after  { top: 0; left: 0; }

.ch-corner--bl { bottom: 14px; left: 14px; transform: scaleY(-1); }
.ch-corner--bl::before { top: 0; left: 0; }
.ch-corner--bl::after  { top: 0; left: 0; }

.ch-corner--br { bottom: 14px; right: 14px; transform: scale(-1, -1); }
.ch-corner--br::before { top: 0; left: 0; }
.ch-corner--br::after  { top: 0; left: 0; }

.ch-quote {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}

.ch-quote__mark {
    font-family: var(--font-premium);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(72px, 10vw, 140px);
    line-height: 0.4;
    color: var(--cinema-ch-cyan);
    opacity: 0.68;
    margin: 10px 0 -0.05em;
    filter: drop-shadow(0 0 28px var(--cinema-ch-cyan-glow));
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.95),
        var(--cinema-ch-cyan) 55%,
        var(--cinema-ch-cyan-deep)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ch-quote__body {
    margin: 0;
    padding: 0;
    font-family: var(--font-premium);
    font-optical-sizing: auto;
    font-weight: 500;
    font-size: clamp(24px, 3.05vw, 40px);
    line-height: 1.34;
    letter-spacing: -0.018em;
    color: rgba(240, 248, 252, 0.97);
    text-wrap: balance;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.55),
        0 2px 24px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(39, 201, 107, 0.12);
}

.ch-quote__body em {
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(
        172deg,
        #ffffff 0%,
        var(--cinema-ch-cyan) 55%,
        var(--cinema-ch-cyan-deep) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 24px var(--cinema-ch-cyan-glow));
    letter-spacing: -0.012em;
}

.ch-quote__end {
    margin: 14px 0 0;
    font-family: var(--font-premium);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.4;
    letter-spacing: 0.005em;
    color: rgba(245, 251, 255, 0.96);
    background: linear-gradient(
        172deg,
        #ffffff 0%,
        var(--cinema-ch-cyan) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 16px var(--cinema-ch-cyan-glow));
}

/* ---------- Entry motion — transition-based reveal (smooth cross-fade + graceful exit) ---------- */
.caption--ch1 .ch-title__main,
.caption--ch1 .ch-title__prefix,
.caption--ch1 .ch-title__suffix,
.caption--ch1 .ch-sub,
.caption--ch2 .ch-title,
.caption--ch2 .ch-body,
.caption--ch2 .ch-signoff,
.caption--ch3 .ch-quote__mark,
.caption--ch3 .ch-quote__body,
.caption--ch3 .ch-quote__end,
.caption--ch3 .ch-meta,
.caption--ch4 .ch-title,
.caption--ch4 .ch-body,
.caption--ch4 .ch-step,
.caption--final .eyebrow,
.caption--final .hero__title--final .line,
.caption--final .hero__final-sub {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition:
        opacity 600ms var(--ease-out),
        transform 600ms var(--ease-out);
    transition-delay: 0ms;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.caption--ch1.is-active .ch-title__main,
.caption--ch1.is-active .ch-title__prefix,
.caption--ch1.is-active .ch-title__suffix,
.caption--ch1.is-active .ch-sub,
.caption--ch2.is-active .ch-title,
.caption--ch2.is-active .ch-body,
.caption--ch2.is-active .ch-signoff,
.caption--ch3.is-active .ch-quote__mark,
.caption--ch3.is-active .ch-quote__body,
.caption--ch3.is-active .ch-quote__end,
.caption--ch3.is-active .ch-meta,
.caption--ch4.is-active .ch-title,
.caption--ch4.is-active .ch-body,
.caption--ch4.is-active .ch-step,
.caption--final.is-active .eyebrow,
.caption--final.is-active .hero__title--final .line,
.caption--final.is-active .hero__final-sub {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-duration: 950ms;
}

/* Staggered entry delays */
.caption--ch1.is-active .ch-title__main                                    { transition-delay: 140ms; }
.caption--ch1.is-active .ch-title__suffix                                  { transition-delay: 240ms; }
.caption--ch1.is-active .ch-stack--hero > .ch-sub--hero:first-of-type      { transition-delay: 320ms; }
.caption--ch1.is-active .ch-stack--hero > .ch-sub--hero + .ch-sub--hero    { transition-delay: 400ms; }

.caption--ch2.is-active .ch-title             { transition-delay: 140ms; }
.caption--ch2.is-active .ch-body              { transition-delay: 280ms; }
.caption--ch2.is-active .ch-signoff           { transition-delay: 420ms; }

.caption--ch3.is-active .ch-quote__mark       { transition-delay: 80ms; }
.caption--ch3.is-active .ch-quote__body       { transition-delay: 200ms; }
.caption--ch3.is-active .ch-quote__end        { transition-delay: 380ms; }
.caption--ch3.is-active .ch-meta              { transition-delay: 480ms; }

.caption--ch4.is-active .ch-title             { transition-delay: 140ms; }
.caption--ch4.is-active .ch-body:nth-of-type(1) { transition-delay: 260ms; }
.caption--ch4.is-active .ch-body:nth-of-type(2) { transition-delay: 340ms; }
.caption--ch4.is-active .ch-body:nth-of-type(3) { transition-delay: 420ms; }
.caption--ch4.is-active .ch-step:nth-child(1) { transition-delay: 540ms; }
.caption--ch4.is-active .ch-step:nth-child(2) { transition-delay: 620ms; }
.caption--ch4.is-active .ch-step:nth-child(3) { transition-delay: 700ms; }

.caption--final.is-active .eyebrow                         { transition-delay: 80ms; }
.caption--final.is-active .hero__title--final .line:nth-child(1) { transition-delay: 180ms; }
.caption--final.is-active .hero__title--final .line:nth-child(2) { transition-delay: 300ms; }
.caption--final.is-active .hero__title--final .line:nth-child(3) { transition-delay: 420ms; }
.caption--final.is-active .hero__final-sub                 { transition-delay: 600ms; }

@media (prefers-reduced-motion: reduce) {
    .caption--ch1 .ch-title__main,
    .caption--ch1 .ch-title__prefix,
    .caption--ch1 .ch-title__suffix,
    .caption--ch1 .ch-sub,
    .caption--ch2 .ch-title,
    .caption--ch2 .ch-body,
    .caption--ch2 .ch-signoff,
    .caption--ch3 .ch-quote__mark,
    .caption--ch3 .ch-quote__body,
    .caption--ch3 .ch-quote__end,
    .caption--ch3 .ch-meta,
    .caption--ch4 .ch-title,
    .caption--ch4 .ch-body,
    .caption--ch4 .ch-step,
    .caption--final .eyebrow,
    .caption--final .hero__title--final .line,
    .caption--final .hero__final-sub {
        transition: opacity 200ms linear !important;
        transform: none !important;
    }
    .caption--ch1.is-active .ch-title__main,
    .caption--ch1.is-active .ch-title__prefix,
    .caption--ch1.is-active .ch-title__suffix,
    .caption--ch1.is-active .ch-sub,
    .caption--ch2.is-active .ch-title,
    .caption--ch2.is-active .ch-body,
    .caption--ch2.is-active .ch-signoff,
    .caption--ch3.is-active .ch-quote__mark,
    .caption--ch3.is-active .ch-quote__body,
    .caption--ch3.is-active .ch-quote__end,
    .caption--ch3.is-active .ch-meta,
    .caption--ch4.is-active .ch-title,
    .caption--ch4.is-active .ch-body,
    .caption--ch4.is-active .ch-step,
    .caption--final.is-active .eyebrow,
    .caption--final.is-active .hero__title--final .line,
    .caption--final.is-active .hero__final-sub {
        transition-delay: 0ms !important;
    }
    .ch-marker__pulse { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .ch-stack--quote { padding: 36px 20px 34px; }
    .ch-panel { padding: 24px 22px 22px; }
    .ch-title__main { font-size: clamp(44px, 12vw, 80px); }
    .ch-quote__body { font-size: clamp(20px, 4.6vw, 28px); }
    .ch-corner { width: 16px; height: 16px; }
    .ch-corner::before { width: 16px; }
    .ch-corner::after  { height: 16px; }
    .ch-corner--tl, .ch-corner--tr { top: 10px; }
    .ch-corner--bl, .ch-corner--br { bottom: 10px; }
    .ch-corner--tl, .ch-corner--bl { left: 10px; }
    .ch-corner--tr, .ch-corner--br { right: 10px; }
    .ch-meta { gap: 10px; font-size: 9px; }
    .ch-step { grid-template-columns: 26px 20px 1fr; gap: 10px; font-size: 10px; }
}

/* ==========================================================================
   GLASS — base utility
   ========================================================================== */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 30px 80px -40px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
    position: relative;
    padding: 96px 0 72px;
}

.section--tight { padding: 48px 0 48px; }

.container {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

.section__head {
    max-width: 720px;
    margin: 0 auto 44px;
    text-align: center;
}

.section__title {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 18px;
    color: var(--ink-0);
}

.section__lede {
    font-size: 15px;
    color: var(--ink-2);
    line-height: 1.65;
    margin: 0;
}

/* ==========================================================================
   SERVICES — Interactive 6-card gallery w/ shared-element FLIP expand
   ========================================================================== */
.services {
    position: relative;
    padding: 88px 0 88px;
    isolation: isolate;
}
.services__lede {
    max-width: 520px;
    margin: 10px auto 0;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    perspective: 1400px;
    position: relative;
    z-index: 1;
}

/* ---------- Card shell ---------- */
.service-card {
    --rx: 0deg;
    --ry: 0deg;
    --mx: 50%;
    --my: 50%;
    --reveal: 1; /* visible by default — entrance animation is opt-in via .is-pre */
    position: relative;
    display: block;
    padding: 0;
    border-radius: 22px;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
    transform-style: preserve-3d;
    transform: translate3d(0, calc((1 - var(--reveal)) * 40px), 0) scale(calc(0.96 + var(--reveal) * 0.04));
    opacity: var(--reveal);
    transition: opacity 700ms var(--ease-out), transform 900ms cubic-bezier(0.22, 1.2, 0.36, 1);
    transition-delay: calc(var(--i, 0) * 80ms);
    will-change: transform, opacity;
}
/* JS adds .is-pre to start cards hidden; .is-in removes it when in view.
   If JS never runs (or IO never fires), cards remain visible by default. */
.service-card.is-pre {
    --reveal: 0;
}
.service-card.is-in {
    --reveal: 1;
}
.service-card:focus-visible .service-card__inner {
    border-color: rgba(255, 181, 71, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 181, 71, 0.18), 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}

.service-card__inner {
    position: relative;
    height: 100%;
    padding: 18px 18px 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    overflow: hidden;
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transition: border-color 300ms var(--ease-soft), box-shadow 400ms var(--ease-soft), transform 500ms var(--ease-out);
    will-change: transform;
}

.service-card:hover .service-card__inner,
.service-card:focus-visible .service-card__inner {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 40px 100px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 181, 71, 0.08) inset;
}

.service-card__sheen {
    pointer-events: none;
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: radial-gradient(320px 220px at var(--mx) var(--my), rgba(255, 181, 71, 0.22), rgba(255, 181, 71, 0) 60%);
    opacity: 0;
    transition: opacity 400ms var(--ease-soft);
    mix-blend-mode: screen;
}
.service-card:hover .service-card__sheen {
    opacity: 1;
}

/* ---------- Preview stage ---------- */
.service-card__preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    background: radial-gradient(120% 100% at 50% 0%, rgba(255, 181, 71, 0.10), rgba(0, 0, 0, 0) 60%), linear-gradient(180deg, #0a0a10, #06060a);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 18px;
}

/* ---------- Meta ---------- */
.service-card__meta {
    position: relative;
    padding: 2px 6px 4px;
}

.service-card__index {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--ink-2);
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 14px;
}

.service-card__title {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.2;
    color: var(--ink-0);
    margin: 0 0 8px;
    letter-spacing: -0.015em;
}

.service-card__body {
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.6;
    margin: 0 0 14px;
}

.service-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--amber);
    opacity: 0.85;
    transition: gap 300ms var(--ease-out), opacity 200ms var(--ease-soft);
}
.service-card:hover .service-card__cta { gap: 10px; opacity: 1; }

/* ---------- Expanded / dim states ---------- */
.services[data-expanded="true"] .service-card:not(.is-open) {
    opacity: 0.12;
    filter: blur(10px) saturate(0.5);
    transform: translate3d(0, 0, 0) scale(0.96);
    pointer-events: none;
    transition: opacity 450ms var(--ease-out), filter 450ms var(--ease-out), transform 500ms var(--ease-out);
}

.service-card.is-open {
    z-index: 90;
    cursor: default;
}
.service-card.is-flipping {
    position: fixed;
    margin: 0;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform-origin: top left;
    will-change: left, top, width, height;
    z-index: 90;
}
.services__placeholder {
    visibility: hidden;
    pointer-events: none;
    border-radius: 22px;
}
.service-card.is-flipping .service-card__inner {
    transform: none;
    height: 100%;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 80px 160px -60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 181, 71, 0.12) inset;
}
.service-card.is-open .service-card__sheen { opacity: 0; }

/* Expanded inner layout: bigger preview, heading on the side */
.service-card.is-open .service-card__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 28px;
    padding: 24px;
    align-items: stretch;
    overflow: hidden;
}
.service-card.is-open .service-card__preview,
.service-card.is-open .service-card__meta {
    min-width: 0;
    min-height: 0;
}
.service-card.is-open .service-card__preview {
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
}
.service-card.is-open .service-card__meta {
    align-self: center;
    padding: 6px 8px;
    overflow: auto;
    max-height: 100%;
}
.service-card.is-open .service-card__title {
    font-size: clamp(28px, 3vw, 40px);
    margin-bottom: 14px;
}
.service-card.is-open .service-card__body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-1);
    margin-bottom: 20px;
}
.service-card.is-open .service-card__cta {
    display: none;
}

/* ---------- Backdrop ---------- */
.services__backdrop {
    position: fixed;
    inset: 0;
    background: radial-gradient(120% 90% at 50% 30%, rgba(12, 12, 17, 0.5), rgba(7, 7, 10, 0.92));
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    opacity: 0;
    pointer-events: none;
    z-index: 70;
    transition: opacity 400ms var(--ease-out);
}
.services[data-expanded="true"] .services__backdrop {
    opacity: 1;
    pointer-events: auto;
}

/* ---------- Close button ---------- */
.services__close {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(14, 14, 20, 0.75);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--ink-0);
    font-size: 10px;
    letter-spacing: 0.22em;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.services[data-expanded="true"] .services__close {
    opacity: 1;
    transform: translateY(0);
}
.services__close-hint {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    font-size: 9px;
    color: var(--ink-2);
}

/* ==========================================================================
   MOTIFS — per-card animated previews (pure CSS)
   ========================================================================== */

/* ----- Shared motif root ----- */
.motif {
    position: absolute;
    inset: 0;
    overflow: hidden;
    color: var(--ink-1);
}

/* ----- 01 Landing pages ----- */
.motif--landing {
    background: linear-gradient(180deg, #0b0b14, #06060a);
}
.ml-browser {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 5;
}
.ml-browser span {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}
.ml-browser span:nth-child(1) { background: #ff5f57; }
.ml-browser span:nth-child(2) { background: #febc2e; }
.ml-browser span:nth-child(3) { background: #28c840; }
.ml-browser__url {
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 7px;
    letter-spacing: 0.16em;
    color: var(--ink-1);
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}
.ml-browser__dots {
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--ink-3);
}
.ml-stage {
    position: absolute;
    inset: 20px 0 0 0;
    overflow: hidden;
}
.ml-scroll {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    animation: ml-scroll 12s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}
@keyframes ml-scroll {
    0%   { transform: translateY(0); }
    35%  { transform: translateY(-55%); }
    60%  { transform: translateY(-55%); }
    100% { transform: translateY(0); }
}

/* ----- Hero ----- */
.ml-hero {
    position: relative;
    flex: 0 0 auto;
    min-height: 100%;
    padding: 10px 14px 16px;
    overflow: hidden;
    isolation: isolate;
}
.ml-nav {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(12, 12, 18, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.ml-nav__logo {
    width: auto;
    height: 10px;
    max-width: 36px;
    object-fit: contain;
    object-position: left center;
    display: block;
    flex: 0 0 auto;
}
.ml-nav__link {
    flex: 0 0 auto;
    width: 22px; height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
}
.ml-nav__link:nth-child(3) { width: 30px; }
.ml-nav__link:nth-child(4) { width: 18px; }
.ml-nav__cta {
    margin-left: auto;
    width: 26px; height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--amber), #ffd88a);
}
.ml-hero__bg {
    position: absolute;
    inset: -20% -10% -10% -10%;
    z-index: 0;
    background:
        radial-gradient(60% 55% at 18% 30%, rgba(255, 181, 71, 0.55), transparent 60%),
        radial-gradient(55% 55% at 82% 20%, rgba(255, 59, 111, 0.45), transparent 60%),
        radial-gradient(75% 65% at 50% 100%, rgba(108, 242, 255, 0.35), transparent 65%),
        linear-gradient(180deg, #12111a, #0b0b12);
    filter: saturate(1.15);
    animation: ml-bg 10s ease-in-out infinite;
}
@keyframes ml-bg {
    0%, 100% { transform: scale(1) translate(0, 0); }
    50%      { transform: scale(1.08) translate(-2%, 1%); }
}
.ml-hero__grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.18;
    mix-blend-mode: overlay;
    background-image:
        radial-gradient(rgba(255,255,255,0.6) 1px, transparent 1.5px),
        radial-gradient(rgba(0,0,0,0.5) 1px, transparent 1.5px);
    background-size: 3px 3px, 5px 5px;
    background-position: 0 0, 1px 2px;
    pointer-events: none;
}
.ml-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.ml-hero__eyebrow {
    display: inline-block;
    align-self: flex-start;
    font-size: 7px;
    letter-spacing: 0.25em;
    color: var(--ink-0);
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 59, 111, 0.18);
    border: 1px solid rgba(255, 59, 111, 0.45);
    box-shadow: 0 0 14px rgba(255, 59, 111, 0.22);
}
.ml-hero__title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}
.ml-hero__word {
    height: 12px;
    width: 78%;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(255,255,255,0.55));
}
.ml-hero__word--accent {
    width: 55%;
    height: 14px;
    background: linear-gradient(90deg, var(--amber), var(--neon) 60%, var(--ice));
    box-shadow: 0 0 20px rgba(255, 181, 71, 0.35);
}
.ml-hero__word--sm {
    width: 42%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
}
.ml-hero__sub {
    height: 5px;
    width: 68%;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.18);
    margin-top: 4px;
}
.ml-hero__sub--short { width: 48%; }
.ml-hero__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.ml-cta {
    position: relative;
    width: 58px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--amber), #ffd88a);
    box-shadow: 0 8px 20px -6px rgba(255, 181, 71, 0.6), 0 0 24px rgba(255, 181, 71, 0.35);
    overflow: hidden;
    animation: ml-cta 6s ease-in-out infinite;
}
@keyframes ml-cta {
    0%, 60%, 100% { transform: scale(1); box-shadow: 0 8px 20px -6px rgba(255,181,71,0.6), 0 0 24px rgba(255,181,71,0.35); }
    68%           { transform: scale(0.94); box-shadow: 0 4px 14px -6px rgba(255,181,71,0.8), 0 0 40px rgba(255,181,71,0.55); }
    74%           { transform: scale(1.04); }
}
.ml-cta__ripple {
    position: absolute;
    top: 50%; left: 50%;
    width: 6px; height: 6px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.55);
    animation: ml-ripple 6s ease-out infinite;
}
@keyframes ml-ripple {
    0%, 65%, 100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    68%           { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    85%           { transform: translate(-50%, -50%) scale(7); opacity: 0; }
}
.ml-cta--ghost {
    width: 40px;
    height: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    box-shadow: none;
    animation: none;
}
.ml-cta--ghost::before { display: none; }
.ml-chips {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.ml-chip {
    font-size: 7px;
    letter-spacing: 0.2em;
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid currentColor;
    opacity: 0.9;
    animation: ml-chip 4s ease-in-out infinite;
}
.ml-chip--a { color: var(--amber); background: rgba(255, 181, 71, 0.12); animation-delay: 0s; }
.ml-chip--b { color: var(--ice); background: rgba(108, 242, 255, 0.12); animation-delay: -1.3s; }
.ml-chip--c { color: #4ade80; background: rgba(74, 222, 128, 0.12); border-color: rgba(74, 222, 128, 0.6); animation-delay: -2.6s; }
@keyframes ml-chip {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}

/* ----- Features strip ----- */
.ml-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px 14px 10px;
    background: linear-gradient(180deg, #0d0d16, #0a0a12);
}
.ml-feat {
    padding: 9px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    animation: ml-feat 12s ease-in-out infinite;
}
.ml-feat--a { border-color: rgba(255, 181, 71, 0.35); animation-delay: 2.0s; }
.ml-feat--b { border-color: rgba(255, 59, 111, 0.35); animation-delay: 2.4s; }
.ml-feat--c { border-color: rgba(108, 242, 255, 0.35); animation-delay: 2.8s; }
@keyframes ml-feat {
    0%, 15% { opacity: 0; transform: translateY(6px); }
    22%, 55% { opacity: 1; transform: translateY(0); }
    62%, 100% { opacity: 1; transform: translateY(0); }
}
.ml-feat__dot {
    width: 10px; height: 10px;
    border-radius: 3px;
}
.ml-feat--a .ml-feat__dot { background: var(--amber); box-shadow: 0 0 8px rgba(255,181,71,0.5); }
.ml-feat--b .ml-feat__dot { background: var(--neon); box-shadow: 0 0 8px rgba(255,59,111,0.5); }
.ml-feat--c .ml-feat__dot { background: var(--ice); box-shadow: 0 0 8px rgba(108,242,255,0.5); }
.ml-feat__t { height: 5px; width: 80%; border-radius: 2px; background: rgba(255,255,255,0.4); }
.ml-feat__b { height: 3px; width: 65%; border-radius: 2px; background: rgba(255,255,255,0.15); }

/* ----- Testimonial / Pricing tease ----- */
.ml-tease {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 10px;
    padding: 10px 14px 20px;
    background: #0a0a12;
}
.ml-quote {
    position: relative;
    padding: 10px 10px 10px 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ml-quote__mark {
    position: absolute;
    top: -2px; left: 6px;
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1;
    color: var(--amber);
    opacity: 0.8;
}
.ml-quote__l { height: 4px; width: 90%; border-radius: 2px; background: rgba(255,255,255,0.35); }
.ml-quote__l--sm { width: 60%; background: rgba(255,255,255,0.18); }
.ml-quote__author { margin-top: 4px; height: 3px; width: 40%; border-radius: 2px; background: rgba(255,181,71,0.6); }
.ml-price {
    padding: 10px;
    border-radius: 8px;
    background: linear-gradient(160deg, rgba(255,181,71,0.12), rgba(255,181,71,0));
    border: 1px solid rgba(255, 181, 71, 0.3);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ml-price__tag {
    align-self: flex-start;
    font-size: 7px;
    letter-spacing: 0.25em;
    color: var(--amber);
    padding: 2px 5px;
    border-radius: 3px;
    background: rgba(255, 181, 71, 0.15);
    border: 1px solid rgba(255, 181, 71, 0.3);
}
.ml-price__big { height: 12px; width: 70%; border-radius: 3px; background: var(--ink-0); }
.ml-price__sub { height: 4px; width: 55%; border-radius: 2px; background: rgba(255,255,255,0.2); }
.ml-price__btn {
    margin-top: 2px;
    height: 10px; width: 60%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
}

/* ----- Cursor ----- */
.ml-cursor {
    position: absolute;
    top: 56%;
    left: 20%;
    width: 11px;
    height: 15px;
    z-index: 6;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.7));
    animation: ml-cursor 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.ml-cursor::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ink-0);
    clip-path: polygon(0 0, 100% 45%, 48% 55%, 72% 100%, 56% 100%, 32% 62%, 0 82%);
}
@keyframes ml-cursor {
    0%   { transform: translate(0, 0) scale(1); }
    10%  { transform: translate(-18px, -8px) scale(1); }
    25%  { transform: translate(-40px, 8px) scale(1); }
    32%  { transform: translate(-40px, 8px) scale(0.9); }
    34%  { transform: translate(-40px, 8px) scale(1); }
    60%  { transform: translate(-40px, 8px) scale(1); }
    100% { transform: translate(0, 0) scale(1); }
}

/* =============================================================================
   01 Landing — full scrolling page + cinematics (v2 motif)
   Replaces the visual rendering inside .motif--landing. The legacy .ml-* rules
   above remain in place but are no longer used by the markup.
   Master 20s loop · brief hero hold (0–18%) · slow continuous glide (18→80%)
   ============================================================================= */
.motif--landing { perspective: 1500px; }
.lf {
    --amber: #ffb547;
    --neon:  #ff3b6f;
    --ice:   #6cf2ff;
    --grn:   #4ade80;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    background: #05050a;
    transform-style: preserve-3d;
    animation: lf-tilt 11s ease-in-out infinite;
    color: #cfd2d6;
}
@keyframes lf-tilt {
    0%, 100% { transform: rotateY(-6deg) rotateX(2.5deg); }
    50%      { transform: rotateY(6deg)  rotateX(-1.5deg); }
}

.lf-browser { position: absolute; top: 0; left: 0; right: 0; height: 22px; display: flex; align-items: center; gap: 5px; padding: 0 11px; background: rgba(10,10,16,0.9); border-bottom: 1px solid rgba(255,255,255,0.07); z-index: 10; }
.lf-browser span:nth-child(-n+3) { width: 7px; height: 7px; border-radius: 50%; }
.lf-browser span:nth-child(1) { background: #ff5f57; }
.lf-browser span:nth-child(2) { background: #febc2e; }
.lf-browser span:nth-child(3) { background: #28c840; }
.lf-url { margin: 0 auto; display: inline-flex; align-items: center; font-family: ui-monospace, monospace; font-size: 7px; letter-spacing: 0.12em; color: #cfd2d6; padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.lf-url__txt { overflow: hidden; white-space: nowrap; display: inline-block; max-width: 0; animation: lf-typeurl 20s steps(11, end) infinite; }
@keyframes lf-typeurl { 0% { max-width: 0; } 5%, 100% { max-width: 54px; } }
.lf-url__caret { width: 1px; height: 7px; background: var(--ice); margin-left: 1px; animation: lf-blink 0.6s steps(1) infinite; }
@keyframes lf-blink { 50% { opacity: 0; } }
.lf-scrollbar { position: absolute; right: 3px; top: 24px; bottom: 4px; width: 2px; border-radius: 2px; background: rgba(255,255,255,0.06); z-index: 10; }
.lf-scrollbar i { position: absolute; left: 0; right: 0; height: 22%; border-radius: 2px; background: rgba(255,181,71,0.5); animation: lf-bar 20s linear infinite; }
@keyframes lf-bar {
    0%, 18%   { top: 0; }
    80%       { top: 78%; }
    86%, 100% { top: 78%; }
}

.lf-viewport { position: absolute; inset: 22px 0 0 0; overflow: hidden; z-index: 1; }
.lf-page { position: absolute; inset: 0; display: flex; flex-direction: column; animation: lf-scroll 20s linear infinite; }
/* brief hold at hero (0-18%), long SLOW continuous glide down (18-80%), short hold at bottom, quick reset */
@keyframes lf-scroll {
    0%, 18% { transform: translateY(0); }
    80%     { transform: translateY(-300%); }
    88%     { transform: translateY(-300%); }
    100%    { transform: translateY(0); }
}

.lf-hero { position: relative; flex: 0 0 100%; min-height: 100%; padding: 10px 14px 14px; overflow: hidden; isolation: isolate; }
.lf-mesh { position: absolute; inset: -30%; z-index: 0; background: radial-gradient(40% 40% at 26% 34%, rgba(255,181,71,0.5), transparent 60%), radial-gradient(40% 40% at 80% 20%, rgba(255,59,111,0.4), transparent 60%), radial-gradient(50% 50% at 55% 100%, rgba(108,242,255,0.32), transparent 65%), linear-gradient(180deg, #11101a, #0b0b12); filter: saturate(1.2); animation: lf-mesh 9s ease-in-out infinite; }
@keyframes lf-mesh {
    0%, 100% { transform: scale(1) rotate(0); }
    33%      { transform: scale(1.12) rotate(2deg) translate(-3%, 2%); }
    66%      { transform: scale(1.08) rotate(-2deg) translate(2%, -2%); }
}
.lf-rays { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: conic-gradient(from 210deg at 28% 34%, transparent 0deg, rgba(255,181,71,0.14) 18deg, transparent 36deg, transparent 320deg, rgba(255,59,111,0.1) 340deg, transparent 360deg); mix-blend-mode: screen; animation: lf-rays 18s linear infinite; }
@keyframes lf-rays { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.lf-grain { position: absolute; inset: 0; z-index: 1; opacity: 0.13; mix-blend-mode: overlay; background-image: radial-gradient(rgba(255,255,255,0.6) 1px, transparent 1.5px), radial-gradient(rgba(0,0,0,0.5) 1px, transparent 1.5px); background-size: 3px 3px, 5px 5px; background-position: 0 0, 1px 2px; }
.lf-nav { position: relative; z-index: 3; display: flex; align-items: center; gap: 7px; margin-bottom: 14px; padding: 5px 9px; border-radius: 999px; background: rgba(12,12,18,0.55); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lf-nav__logo { width: 24px; height: 8px; border-radius: 2px; background: linear-gradient(90deg, var(--amber), #ffd88a); }
.lf-nav__link { width: 18px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.25); }
.lf-nav__link:nth-child(3) { width: 26px; }
.lf-nav__cta { margin-left: auto; width: 24px; height: 11px; border-radius: 999px; background: linear-gradient(90deg, var(--amber), #ffd88a); }
.lf-hero__c { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.lf-eyebrow { align-self: flex-start; font-family: ui-monospace, monospace; font-size: 7px; letter-spacing: 0.25em; color: #fff; padding: 3px 8px; border-radius: 999px; background: rgba(255,59,111,0.18); border: 1px solid rgba(255,59,111,0.45); box-shadow: 0 0 14px rgba(255,59,111,0.25); opacity: 0; animation: lf-pop 20s ease-in-out infinite; animation-delay: 0.3s; }
@keyframes lf-pop {
    0%, 1%    { opacity: 0; transform: translateY(4px) scale(0.9); }
    4%, 82%   { opacity: 1; transform: translateY(0) scale(1); }
    90%, 100% { opacity: 1; }
}
.lf-title { display: flex; flex-direction: column; gap: 4px; margin-top: 3px; }
.lf-word { position: relative; font-family: ui-monospace, monospace; font-weight: 700; letter-spacing: 0.04em; color: #fff; white-space: nowrap; overflow: hidden; }
.lf-word::after { content: attr(data-text); display: block; clip-path: inset(0 100% 0 0); animation: lf-decode 20s cubic-bezier(0.5, 0, 0.2, 1) infinite; }
.lf-word.w1 { font-size: 13px; }
.lf-word.w1::after { animation-delay: 0.4s; }
.lf-word.w2 { font-size: 16px; }
.lf-word.w2.accent::after { background: linear-gradient(90deg, var(--amber), var(--neon) 55%, var(--ice)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 18px rgba(255,181,71,0.4); animation-delay: 0.65s; }
.lf-word.w3 { font-size: 8px; color: rgba(255,255,255,0.45); }
.lf-word.w3::after { animation-delay: 0.9s; }
@keyframes lf-decode {
    0%, 1%    { clip-path: inset(0 100% 0 0); }
    7%, 82%   { clip-path: inset(0 0 0 0); }
    90%, 100% { clip-path: inset(0 0 0 0); }
}
.lf-sub { height: 4px; width: 66%; border-radius: 2px; background: rgba(255,255,255,0.18); margin-top: 3px; opacity: 0; animation: lf-fade 20s ease-out infinite; animation-delay: 1.0s; }
.lf-sub.short { width: 44%; animation-delay: 1.1s; }
@keyframes lf-fade {
    0%, 5%    { opacity: 0; transform: translateY(3px); }
    9%, 82%   { opacity: 1; transform: translateY(0); }
    90%, 100% { opacity: 1; }
}
.lf-actions { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.lf-cta { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 16px; border-radius: 999px; background: linear-gradient(90deg, var(--amber), #ffd88a); box-shadow: 0 8px 20px -6px rgba(255,181,71,0.6), 0 0 24px rgba(255,181,71,0.35); overflow: hidden; animation: lf-ctapulse 20s ease-in-out infinite; }
.lf-cta__label { font-family: ui-monospace, monospace; font-size: 6px; font-weight: 700; letter-spacing: 0.1em; color: #1a1206; z-index: 2; opacity: 0; animation: lf-fade 20s ease-out infinite; animation-delay: 1.2s; }
@keyframes lf-ctapulse {
    0%, 13%, 18%, 100% { transform: scale(1); }
    15%   { transform: scale(0.9); box-shadow: 0 4px 14px -6px rgba(255,181,71,0.95), 0 0 48px rgba(255,181,71,0.7); }
    16.5% { transform: scale(1.05); }
}
.lf-cta__shine { position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.9), transparent); animation: lf-shine 20s ease-in-out infinite; }
@keyframes lf-shine {
    0%, 8%    { left: -60%; }
    14%, 100% { left: 160%; }
}
.lf-cta__ripple { position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border-radius: 50%; transform: translate(-50%, -50%) scale(0); background: rgba(255,255,255,0.8); animation: lf-ripple 20s ease-out infinite; }
@keyframes lf-ripple {
    0%, 14%, 100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    15% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
    22% { transform: translate(-50%, -50%) scale(9); opacity: 0; }
}
.lf-cta.ghost { width: 42px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); box-shadow: none; animation: none; }
.lf-cta.ghost .lf-cta__shine,
.lf-cta.ghost .lf-cta__ripple,
.lf-cta.ghost .lf-cta__label { display: none; }
.lf-chips { display: flex; gap: 6px; margin-top: 8px; }
.lf-chip { font-family: ui-monospace, monospace; font-size: 7px; letter-spacing: 0.16em; padding: 3px 8px; border-radius: 999px; border: 1px solid currentColor; opacity: 0; animation: lf-fade 20s ease-out infinite; }
.lf-chip.a { color: var(--amber); background: rgba(255,181,71,0.12); animation-delay: 1.3s; }
.lf-chip.b { color: var(--ice);   background: rgba(108,242,255,0.12); animation-delay: 1.4s; }
.lf-chip.c { color: var(--grn);   background: rgba(74,222,128,0.12); border-color: rgba(74,222,128,0.6); animation-delay: 1.5s; }
.lf-logos { position: relative; z-index: 3; display: flex; gap: 10px; margin-top: 14px; opacity: 0.5; }
.lf-logos span { height: 6px; width: 34px; border-radius: 2px; background: rgba(255,255,255,0.2); }
.lf-logos span:nth-child(2) { width: 26px; }
.lf-logos span:nth-child(3) { width: 40px; }
.lf-logos span:nth-child(4) { width: 30px; }

.lf-features { position: relative; flex: 0 0 90%; padding: 16px 14px; background: linear-gradient(180deg, #0d0d16, #0a0a12); display: flex; flex-direction: column; gap: 12px; }
.lf-sechead { display: flex; flex-direction: column; gap: 6px; }
.lf-sechead__eye { font-family: ui-monospace, monospace; font-size: 7px; letter-spacing: 0.3em; color: var(--amber); }
.lf-sechead__t { height: 9px; width: 55%; border-radius: 3px; background: rgba(255,255,255,0.4); }
.lf-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; }
.lf-feat { padding: 10px 8px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid; display: flex; flex-direction: column; gap: 5px; }
.lf-feat.fa { border-color: rgba(255,181,71,0.35); }
.lf-feat.fb { border-color: rgba(255,59,111,0.35); }
.lf-feat.fc { border-color: rgba(108,242,255,0.35); }
.lf-feat__dot { width: 14px; height: 14px; border-radius: 4px; }
.lf-feat.fa .lf-feat__dot { background: var(--amber); box-shadow: 0 0 10px rgba(255,181,71,0.6); }
.lf-feat.fb .lf-feat__dot { background: var(--neon);  box-shadow: 0 0 10px rgba(255,59,111,0.6); }
.lf-feat.fc .lf-feat__dot { background: var(--ice);   box-shadow: 0 0 10px rgba(108,242,255,0.6); }
.lf-feat__t { height: 6px; width: 85%; border-radius: 2px; background: rgba(255,255,255,0.4); margin-top: 2px; }
.lf-feat__b { height: 3px; width: 95%; border-radius: 2px; background: rgba(255,255,255,0.15); }
.lf-feat__b.sm { width: 70%; }

.lf-metrics { flex: 0 0 28%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; background: #0a0a12; align-content: center; }
.lf-metric { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px; border-radius: 8px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.lf-metric__n { font-family: ui-monospace, monospace; font-size: 14px; font-weight: 700; color: #fff; }
.lf-metric:nth-child(1) .lf-metric__n { color: var(--amber); }
.lf-metric:nth-child(2) .lf-metric__n { color: var(--ice); }
.lf-metric:nth-child(3) .lf-metric__n { color: var(--grn); }
.lf-metric__l { font-family: ui-monospace, monospace; font-size: 6px; letter-spacing: 0.2em; color: rgba(255,255,255,0.4); }

.lf-tease { flex: 0 0 72%; display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; padding: 14px; background: #0a0a12; align-content: center; }
.lf-quote { position: relative; padding: 12px 10px 10px 16px; border-radius: 8px; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; gap: 5px; }
.lf-quote__mark { position: absolute; top: 0; left: 6px; font-family: Georgia, serif; font-size: 24px; line-height: 1; color: var(--amber); opacity: 0.8; }
.lf-quote__l { height: 5px; width: 92%; border-radius: 2px; background: rgba(255,255,255,0.35); margin-top: 6px; }
.lf-quote__l.sm { width: 64%; background: rgba(255,255,255,0.18); }
.lf-quote__by { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.lf-quote__av { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--amber), var(--neon)); }
.lf-quote__name { height: 4px; width: 40px; border-radius: 2px; background: rgba(255,181,71,0.6); }
.lf-price { padding: 12px 10px; border-radius: 8px; background: linear-gradient(160deg, rgba(255,181,71,0.14), rgba(255,181,71,0)); border: 1px solid rgba(255,181,71,0.3); display: flex; flex-direction: column; gap: 6px; }
.lf-price__tag { align-self: flex-start; font-family: ui-monospace, monospace; font-size: 7px; letter-spacing: 0.25em; color: var(--amber); padding: 2px 6px; border-radius: 3px; background: rgba(255,181,71,0.15); border: 1px solid rgba(255,181,71,0.3); }
.lf-price__big { height: 14px; width: 70%; border-radius: 3px; background: #fff; }
.lf-price__sub { height: 4px; width: 55%; border-radius: 2px; background: rgba(255,255,255,0.2); }
.lf-price__btn { margin-top: 2px; height: 14px; width: 75%; border-radius: 999px; background: linear-gradient(90deg, var(--amber), #ffd88a); }

.lf-foot { flex: 0 0 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 14px; background: radial-gradient(80% 80% at 50% 0%, rgba(255,181,71,0.12), transparent 70%), #08080f; }
.lf-foot__t { height: 10px; width: 60%; border-radius: 3px; background: rgba(255,255,255,0.4); }
.lf-foot__btn { font-family: ui-monospace, monospace; font-size: 8px; font-weight: 700; letter-spacing: 0.15em; color: #1a1206; padding: 8px 18px; border-radius: 999px; background: linear-gradient(90deg, var(--amber), #ffd88a); box-shadow: 0 0 24px rgba(255,181,71,0.4); }

.lf-scan { position: absolute; inset: 22px 0 0 0; z-index: 8; pointer-events: none; background: linear-gradient(180deg, transparent 0%, rgba(108,242,255,0) 44%, rgba(108,242,255,0.85) 50%, rgba(255,181,71,0) 56%, transparent 100%); mix-blend-mode: screen; animation: lf-scanmove 20s ease-in-out infinite; }
@keyframes lf-scanmove {
    0%        { transform: translateY(-100%); opacity: 0; }
    2%        { opacity: 1; }
    8%        { transform: translateY(100%); opacity: 1; }
    10%, 100% { transform: translateY(100%); opacity: 0; }
}
.lf-cursor { position: absolute; z-index: 9; width: 13px; height: 17px; top: 54%; left: 30%; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.8)); animation: lf-cursor 20s cubic-bezier(0.45, 0, 0.25, 1) infinite; }
.lf-cursor::before { content: ""; position: absolute; inset: 0; background: #fff; clip-path: polygon(0 0, 100% 45%, 48% 55%, 72% 100%, 56% 100%, 32% 62%, 0 82%); }
@keyframes lf-cursor {
    0%    { transform: translate(22px, -10px); }
    11%   { transform: translate(0, 0); }
    14.5% { transform: translate(-6px, 2px) scale(0.82); }
    16%   { transform: translate(-6px, 2px) scale(1); }
    18%   { transform: translate(-6px, 2px); }
    30%   { transform: translate(26px, 30px); }
    100%  { transform: translate(22px, -10px); }
}
.lf-confirm { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.6); z-index: 9; font-family: ui-monospace, monospace; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: var(--grn); padding: 7px 13px; border-radius: 8px; background: rgba(8,12,8,0.88); border: 1px solid var(--grn); box-shadow: 0 0 30px rgba(74,222,128,0.6); opacity: 0; animation: lf-confirm 20s ease-out infinite; }
@keyframes lf-confirm {
    0%, 80%   { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
    82%       { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
    85%       { transform: translate(-50%, -50%) scale(1); }
    87%       { opacity: 1; }
    90%, 100% { opacity: 0; }
}
.lf-glare { position: absolute; inset: 0; z-index: 8; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.12) 48%, rgba(255,255,255,0.04) 52%, transparent 62%); transform: translateX(-120%); animation: lf-glare 20s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes lf-glare {
    0%, 40%   { transform: translateX(-120%); }
    50%, 100% { transform: translateX(120%); }
}
.lf-vig { position: absolute; inset: 0; z-index: 7; pointer-events: none; box-shadow: inset 0 0 50px rgba(0,0,0,0.5); background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,0.05) 2px 3px); }

/* ----- 02 Automations (Lead Scraper -> Slack) ----- */
.motif--automations {
    background:
        radial-gradient(90% 60% at 15% 30%, rgba(255,181,71,0.10), transparent 60%),
        radial-gradient(90% 60% at 85% 70%, rgba(108,242,255,0.08), transparent 60%),
        #07070a;
}

/* Status bar */
.ma-status {
    position: absolute;
    top: 8px;
    right: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 5;
    pointer-events: none;
}
.ma-status__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 7px;
    letter-spacing: 0.22em;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(12, 12, 20, 0.75);
    border: 1px solid rgba(74, 222, 128, 0.4);
    color: #4ade80;
}
.ma-status__dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
    animation: ma-blink 1.1s ease-in-out infinite;
}
@keyframes ma-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}
.ma-status__count {
    font-size: 7px;
    letter-spacing: 0.18em;
    color: var(--ink-2);
}
.ma-status__count b {
    color: var(--ink-0);
    font-weight: 600;
}

/* Panels */
.ma-panel {
    position: absolute;
    top: 28px;
    bottom: 10px;
    width: 40%;
    border-radius: 8px;
    background: rgba(12, 12, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.ma-panel--a { left: 4%; }
.ma-panel--b { right: 4%; }
.ma-panel__head {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}
.ma-panel__icon {
    display: inline-grid;
    place-items: center;
    width: 14px; height: 14px;
    border-radius: 4px;
    background: rgba(255, 181, 71, 0.15);
    border: 1px solid rgba(255, 181, 71, 0.4);
    color: var(--amber);
}
.ma-panel__title {
    font-size: 7px;
    letter-spacing: 0.22em;
    color: var(--ink-0);
}
.ma-panel__live {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 6px;
    letter-spacing: 0.25em;
    color: #4ade80;
}
.ma-panel__live i {
    width: 4px; height: 4px; border-radius: 50%;
    background: #4ade80;
    animation: ma-blink 1s ease-in-out infinite;
}

/* Scraper rows */
.ma-rows {
    padding: 4px 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ma-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
    opacity: 0;
    animation: ma-row 5s linear infinite;
}
.ma-row::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,181,71,0.25), transparent);
    transform: translateX(-100%);
    animation: ma-row-shine 5s linear infinite;
}
.ma-row:nth-child(1) { animation-delay: 0.0s; }
.ma-row:nth-child(1)::after { animation-delay: 0.0s; }
.ma-row:nth-child(2) { animation-delay: 0.4s; }
.ma-row:nth-child(2)::after { animation-delay: 0.4s; }
.ma-row:nth-child(3) { animation-delay: 0.8s; }
.ma-row:nth-child(3)::after { animation-delay: 0.8s; }
.ma-row:nth-child(4) { animation-delay: 1.2s; }
.ma-row:nth-child(4)::after { animation-delay: 1.2s; }
.ma-row:nth-child(5) { animation-delay: 1.6s; }
.ma-row:nth-child(5)::after { animation-delay: 1.6s; }
@keyframes ma-row {
    0%, 2%   { opacity: 0; transform: translateX(-6px); }
    5%, 75%  { opacity: 1; transform: translateX(0); }
    85%, 100%{ opacity: 0; transform: translateX(6px); }
}
@keyframes ma-row-shine {
    0%, 5%   { transform: translateX(-100%); }
    10%      { transform: translateX(100%); }
    11%, 100%{ transform: translateX(100%); }
}
.ma-row__co {
    flex: 0 0 auto;
    width: 34%; height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.5);
}
.ma-row__role {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
}
.ma-row__tick {
    display: grid;
    place-items: center;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    font-size: 8px;
    line-height: 1;
    border: 1px solid rgba(74, 222, 128, 0.4);
    transform: rotate(45deg);
}

/* Connector wire */
.ma-wire {
    position: absolute;
    top: 50%;
    left: 44%;
    width: 12%;
    height: 2px;
    transform: translateY(-50%);
    overflow: visible;
    z-index: 3;
}
.ma-wire__path {
    fill: none;
    stroke: url(#maWireGrad);
    stroke-width: 1.2;
    stroke-dasharray: 3 4;
    animation: ma-wire-flow 1.8s linear infinite;
}
@keyframes ma-wire-flow {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: -14; }
}
.ma-packet {
    position: absolute;
    top: 50%;
    left: 44%;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--amber), rgba(255,181,71,0));
    box-shadow: 0 0 10px rgba(255, 181, 71, 0.9);
    transform: translate(-50%, -50%);
    z-index: 4;
    animation: ma-packet 1.6s cubic-bezier(0.55, 0, 0.45, 1) infinite;
}
.ma-packet--1 { animation-delay: 0s; }
.ma-packet--2 { animation-delay: -0.53s; }
.ma-packet--3 { animation-delay: -1.06s; }
@keyframes ma-packet {
    0%   { left: 44%; opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
    15%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    85%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { left: 56%; opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
}

/* Slack panel */
.ma-slack__head {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}
.ma-slack__logo {
    display: grid;
    grid-template-columns: 5px 5px;
    grid-template-rows: 5px 5px;
    gap: 1.5px;
    width: 12px; height: 12px;
}
.ma-slack__logo i {
    display: block;
    border-radius: 2px;
}
.ma-slack__ch {
    font-size: 7px;
    letter-spacing: 0.1em;
    color: var(--ink-0);
    font-weight: 600;
}
.ma-slack__members {
    margin-left: auto;
    font-size: 7px;
    color: var(--ink-2);
    padding: 1px 5px;
    border-radius: 999px;
    border: 1px solid var(--line);
}

.ma-slack__feed {
    position: relative;
    padding: 6px 6px;
    height: calc(100% - 22px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
}
.ma-msg {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    padding: 3px 4px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
    opacity: 0;
    transform: translateY(8px);
    animation: ma-msg 8s cubic-bezier(0.22, 1.2, 0.36, 1) infinite;
}
.ma-msg--1 { animation-delay: 0.0s; }
.ma-msg--2 { animation-delay: 2.0s; }
.ma-msg--3 { animation-delay: 4.0s; }
.ma-msg--4 { animation-delay: 6.0s; }
@keyframes ma-msg {
    0%, 5%   { opacity: 0; transform: translateY(10px) scale(0.96); }
    10%, 80% { opacity: 1; transform: translateY(0) scale(1); }
    92%, 100%{ opacity: 0; transform: translateY(-4px) scale(0.98); }
}
.ma-msg__av {
    flex: 0 0 auto;
    width: 14px; height: 14px;
    border-radius: 3px;
}
.ma-msg__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ma-msg__top {
    display: flex;
    align-items: center;
    gap: 4px;
}
.ma-msg__top b {
    font-size: 7px;
    letter-spacing: 0.05em;
    color: var(--ink-0);
    font-weight: 600;
}
.ma-msg__app {
    font-size: 5px;
    letter-spacing: 0.15em;
    color: var(--ink-1);
    padding: 1px 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
}
.ma-msg__time {
    font-size: 6px;
    color: var(--ink-3);
}
.ma-msg__text {
    font-size: 7px;
    letter-spacing: 0.05em;
    color: var(--ink-1);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ma-msg__text b {
    color: var(--amber);
    font-weight: 600;
}

/* =============================================================================
   02 Automations — live lead pipeline (v2 motif)
   Replaces the visual inside .motif--automations. Legacy .ma-* rules above
   remain in place but are no longer used by the markup.
   Independent ambient loops: 3.5s capture cycle, 14s Slack rotation, 6s graph.
   ============================================================================= */
.motif--automations { perspective: 1400px; }
.af {
    --amber: #ffb547;
    --neon:  #ff3b6f;
    --ice:   #6cf2ff;
    --grn:   #4ade80;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    background:
        radial-gradient(90% 60% at 12% 25%, rgba(255,181,71,0.10), transparent 60%),
        radial-gradient(90% 60% at 88% 75%, rgba(108,242,255,0.08), transparent 60%),
        #07070a;
    transform-style: preserve-3d;
    animation: af-float 12s ease-in-out infinite;
    color: #cfd2d6;
}
@keyframes af-float {
    0%, 100% { transform: rotateY(-4deg) rotateX(2deg); }
    50%      { transform: rotateY(4deg)  rotateX(-1deg); }
}

.af-status { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; align-items: center; justify-content: space-between; z-index: 6; pointer-events: none; }
.af-chip { display: inline-flex; align-items: center; gap: 5px; font-family: ui-monospace, monospace; font-size: 7px; letter-spacing: 0.2em; padding: 3px 8px; border-radius: 999px; background: rgba(12,12,20,0.8); border: 1px solid rgba(74,222,128,0.4); color: var(--grn); }
.af-chip__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--grn); box-shadow: 0 0 8px var(--grn); animation: af-blink 1.1s ease-in-out infinite; }
@keyframes af-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.af-thru { font-family: ui-monospace, monospace; font-size: 7px; letter-spacing: 0.16em; color: #9a9a9a; }
.af-thru b { color: #fff; }

.af-graph { position: absolute; left: 0; right: 0; top: 26px; height: 34%; z-index: 1; opacity: 0.5; }
.af-graph__line { stroke-dasharray: 400; stroke-dashoffset: 400; animation: af-graph 6s ease-in-out infinite; filter: drop-shadow(0 0 3px rgba(255,181,71,0.5)); }
@keyframes af-graph { 0% { stroke-dashoffset: 400; } 60%, 100% { stroke-dashoffset: 0; } }

.af-panel { position: absolute; top: 28px; bottom: 10px; width: 39%; border-radius: 9px; background: rgba(12,12,18,0.72); border: 1px solid rgba(255,255,255,0.08); overflow: hidden; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 4; }
.af-scraper { left: 4%; }
.af-slack { right: 4%; }
.af-panel__head { display: flex; align-items: center; gap: 5px; padding: 5px 8px; border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); }
.af-panel__icon { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 4px; background: rgba(255,181,71,0.15); border: 1px solid rgba(255,181,71,0.4); color: var(--amber); font-size: 9px; }
.af-panel__title { font-family: ui-monospace, monospace; font-size: 7px; letter-spacing: 0.2em; color: #fff; }
.af-panel__live { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-family: ui-monospace, monospace; font-size: 6px; letter-spacing: 0.25em; color: var(--grn); }
.af-panel__live i { width: 4px; height: 4px; border-radius: 50%; background: var(--grn); animation: af-blink 1s ease-in-out infinite; }

/* scraper scan line */
.af-scan { position: absolute; top: 24px; left: 0; right: 0; height: 14px; background: linear-gradient(180deg, transparent, rgba(255,181,71,0.25), transparent); z-index: 3; animation: af-scanmove 3.5s cubic-bezier(0.5, 0, 0.5, 1) infinite; pointer-events: none; }
@keyframes af-scanmove {
    0%        { transform: translateY(0); opacity: 0; }
    10%       { opacity: 1; }
    60%       { transform: translateY(115px); opacity: 1; }
    70%, 100% { transform: translateY(115px); opacity: 0; }
}

.af-rows { padding: 5px 6px; display: flex; flex-direction: column; gap: 4px; }
.af-row { position: relative; display: flex; align-items: center; gap: 5px; padding: 5px 6px; border-radius: 5px; background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.05); overflow: hidden; }
.af-row__co { width: 36%; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.5); }
.af-row__role { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.2); }
.af-row__reticle { position: absolute; inset: 0; border: 1px solid var(--amber); border-radius: 5px; opacity: 0; box-shadow: 0 0 12px rgba(255,181,71,0.6) inset, 0 0 12px rgba(255,181,71,0.4); }
/* each row gets "locked" in sequence — reticle flashes as the scan passes */
.af-row .af-row__reticle { animation: af-lock 3.5s linear infinite; }
.af-row.r1 .af-row__reticle { animation-delay: 0.3s; }
.af-row.r2 .af-row__reticle { animation-delay: 0.7s; }
.af-row.r3 .af-row__reticle { animation-delay: 1.1s; }
.af-row.r4 .af-row__reticle { animation-delay: 1.5s; }
.af-row.r5 .af-row__reticle { animation-delay: 1.9s; }
@keyframes af-lock {
    0%, 4%    { opacity: 0; }
    7%        { opacity: 1; }
    14%       { opacity: 0.4; }
    18%, 100% { opacity: 0; }
}
.af-row.r3 { animation: af-rowpop 3.5s ease-out infinite; }
@keyframes af-rowpop {
    0%, 8%    { background: rgba(255,255,255,0.025); }
    11%       { background: rgba(255,181,71,0.2); }
    25%, 100% { background: rgba(255,255,255,0.025); }
}

/* the wire */
.af-wire { position: absolute; top: 50%; left: 43%; width: 14%; height: 3px; transform: translateY(-50%); overflow: visible; z-index: 2; }
.af-wire__base { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 1.5; }
.af-wire__flow { fill: none; stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 4 5; animation: af-flow 0.8s linear infinite; filter: drop-shadow(0 0 4px rgba(255,181,71,0.6)); }
@keyframes af-flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -18; } }

/* enrich node mid-wire */
.af-enrich { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 5; display: grid; place-items: center; }
.af-enrich__ring { position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(108,242,255,0.5); animation: af-enrich-ring 3.5s ease-out infinite; }
@keyframes af-enrich-ring {
    0%, 40% { transform: scale(0.6); opacity: 0; }
    48%     { transform: scale(1);   opacity: 1; }
    60%     { transform: scale(1.6); opacity: 0; }
    100%    { opacity: 0; }
}
.af-enrich__core { width: 16px; height: 16px; border-radius: 50%; background: rgba(12,16,22,0.9); border: 1px solid var(--ice); color: var(--ice); display: grid; place-items: center; font-size: 11px; font-family: ui-monospace, monospace; box-shadow: 0 0 12px rgba(108,242,255,0.4); }
.af-enrich__label { position: absolute; top: 20px; font-family: ui-monospace, monospace; font-size: 5px; letter-spacing: 0.25em; color: var(--ice); white-space: nowrap; }

/* the data packet traveling the wire */
.af-packet { position: absolute; top: 50%; left: 43%; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%); z-index: 5; background: radial-gradient(circle, #fff, var(--amber) 60%, rgba(255,181,71,0)); box-shadow: 0 0 14px rgba(255,181,71,0.9); animation: af-packet 3.5s cubic-bezier(0.4, 0, 0.5, 1) infinite; }
.af-packet__trail { position: absolute; right: 50%; top: 50%; width: 20px; height: 2px; transform: translateY(-50%); background: linear-gradient(270deg, var(--amber), transparent); border-radius: 2px; }
@keyframes af-packet {
    0%, 18% { left: 43%; opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
    22%     { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    48%     { left: 50%; opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
    52%     { left: 50%; transform: translate(-50%, -50%) scale(1); background: radial-gradient(circle, #fff, var(--ice) 60%, rgba(108,242,255,0)); box-shadow: 0 0 14px rgba(108,242,255,0.9); }
    78%     { left: 57%; opacity: 1; }
    82%     { left: 57%; opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
    100%    { left: 57%; opacity: 0; }
}

/* Slack */
.af-slack__head { display: flex; align-items: center; gap: 5px; padding: 5px 8px; border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); }
.af-slack__logo { display: grid; grid-template-columns: 5px 5px; grid-template-rows: 5px 5px; gap: 1.5px; }
.af-slack__logo i { display: block; border-radius: 2px; }
.af-slack__ch { font-family: ui-monospace, monospace; font-size: 7px; color: #fff; font-weight: 600; }
.af-slack__n { margin-left: auto; font-family: ui-monospace, monospace; font-size: 7px; color: #9a9a9a; padding: 1px 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.1); }
.af-slack__n b { color: var(--grn); }
.af-feed { position: relative; padding: 6px; height: calc(100% - 24px); display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.af-msg { display: flex; align-items: flex-start; gap: 5px; padding: 4px 5px; border-radius: 5px; background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.04); opacity: 0; transform: translateY(8px); }
.af-msg.m1 { animation: af-msg 14s cubic-bezier(0.22, 1.2, 0.36, 1) infinite; animation-delay: 0s; }
.af-msg.m2 { animation: af-msg 14s cubic-bezier(0.22, 1.2, 0.36, 1) infinite; animation-delay: 3.5s; }
.af-msg.m3 { animation: af-msg 14s cubic-bezier(0.22, 1.2, 0.36, 1) infinite; animation-delay: 7s; }
.af-msg.m4 { animation: af-msg 14s cubic-bezier(0.22, 1.2, 0.36, 1) infinite; animation-delay: 10.5s; }
@keyframes af-msg {
    0%, 2%   { opacity: 0; transform: translateY(10px) scale(0.96); }
    4%       { opacity: 1; transform: translateY(0) scale(1); background: rgba(255,181,71,0.18); }
    10%      { background: rgba(255,255,255,0.025); }
    92%      { opacity: 1; transform: translateY(0); }
    96%, 100%{ opacity: 0; transform: translateY(-4px); }
}
.af-msg__av { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 3px; }
.af-msg__b { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.af-msg__top { display: flex; align-items: center; gap: 4px; }
.af-msg__top b { font-family: ui-monospace, monospace; font-size: 7px; color: #fff; }
.af-msg__app { font-family: ui-monospace, monospace; font-size: 5px; letter-spacing: 0.15em; color: #cfd2d6; padding: 1px 3px; border-radius: 2px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }
.af-msg__txt { font-family: ui-monospace, monospace; font-size: 7px; color: #cfd2d6; white-space: nowrap; overflow: hidden; }
.af-msg__txt b { color: var(--amber); }

.af-vig { position: absolute; inset: 0; z-index: 7; pointer-events: none; box-shadow: inset 0 0 45px rgba(0,0,0,0.5); }

/* ----- 03 Instant quotes (on-site estimate widget) ----- */
.motif--quotes {
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(45, 212, 191, 0.10), transparent 60%),
        linear-gradient(180deg, #060b0a, #04070a);
    overflow: hidden;
}
.mq {
    --teal: #2dd4bf;
    --teal-dim: rgba(45, 212, 191, 0.35);
    --ink0: #eafffb;
    --ink2: #7fa39c;
    position: absolute;
    inset: 0;
    font-family: ui-monospace, monospace;
    color: var(--ink2);
}

/* Ambient page behind the widget — implies "this lives on your site" */
.mq-page {
    position: absolute;
    inset: 0;
    padding: 10px 12px;
    opacity: 0.5;
    filter: saturate(0.7);
}
.mq-page__nav { display: flex; gap: 4px; margin-bottom: 10px; }
.mq-page__nav span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.mq-page__hero {
    height: 26%;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.14), rgba(255, 255, 255, 0.03));
    margin-bottom: 10px;
}
.mq-page__line { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); width: 70%; margin-bottom: 6px; }
.mq-page__line.short { width: 42%; }

/* Floating "get a quote" widget */
.mq-widget {
    position: absolute;
    left: 50%;
    bottom: 8%;
    transform: translateX(-50%);
    width: 72%;
    max-width: 210px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(10, 16, 15, 0.96), rgba(6, 10, 10, 0.98));
    border: 1px solid rgba(45, 212, 191, 0.35);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(45, 212, 191, 0.05) inset;
    padding: 9px 10px 11px;
    z-index: 3;
    animation: mq-widget-float 8s ease-in-out infinite;
}
@keyframes mq-widget-float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-2px); }
}

.mq-widget__head { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.mq-widget__dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 6px var(--teal);
    animation: mq-blink 1.6s ease-in-out infinite;
}
@keyframes mq-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.mq-widget__title { font-size: 6.5px; letter-spacing: 0.2em; color: var(--ink0); flex: 1; }
.mq-widget__live {
    font-size: 5.5px;
    letter-spacing: 0.18em;
    color: var(--teal);
    padding: 2px 5px;
    border-radius: 999px;
    border: 1px solid var(--teal-dim);
}

/* Address field — typewriter reveal + focus glow while "typing" */
.mq-field { margin-bottom: 7px; }
.mq-field__label { display: block; font-size: 5px; letter-spacing: 0.2em; color: var(--ink2); margin-bottom: 3px; }
.mq-field__row {
    display: flex;
    align-items: center;
    height: 18px;
    padding: 0 7px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: mq-field-focus 8s ease-out infinite;
}
@keyframes mq-field-focus {
    0%, 3%    { border-color: rgba(255, 255, 255, 0.08); box-shadow: none; }
    5%, 24%   { border-color: var(--teal-dim); box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.12); }
    30%, 100% { border-color: rgba(255, 255, 255, 0.08); box-shadow: none; }
}
.mq-field__type {
    display: inline-block;
    font-size: 7px;
    color: var(--ink0);
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: mq-type 8s steps(11, end) infinite;
}
@keyframes mq-type {
    0%, 3%  { width: 0; }
    24%     { width: 11ch; }
    100%    { width: 11ch; }
}
.mq-field__caret {
    width: 1px;
    height: 9px;
    background: var(--teal);
    margin-left: 1px;
    animation: mq-caret 0.9s step-end infinite;
}
@keyframes mq-caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Service-type chips — one gets "picked" mid-loop */
.mq-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 7px; }
.mq-chip {
    font-size: 5.5px;
    letter-spacing: 0.08em;
    padding: 3px 6px;
    border-radius: 999px;
    color: var(--ink2);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    animation: mq-chip-in 8s ease-out infinite;
}
@keyframes mq-chip-in {
    0%, 24%  { opacity: 0; transform: translateY(2px); }
    28%, 92% { opacity: 1; transform: translateY(0); }
    100%     { opacity: 0; }
}
.mq-chip.is-picked { animation: mq-chip-pick 8s ease-out infinite; }
@keyframes mq-chip-pick {
    0%, 24%  { opacity: 0; transform: translateY(2px); background: rgba(255, 255, 255, 0.03); color: var(--ink2); border-color: rgba(255, 255, 255, 0.08); box-shadow: none; }
    28%      { opacity: 1; transform: translateY(0); background: rgba(255, 255, 255, 0.03); color: var(--ink2); border-color: rgba(255, 255, 255, 0.08); box-shadow: none; }
    34%, 92% { background: var(--teal); color: #04211c; border-color: var(--teal); box-shadow: 0 0 12px rgba(45, 212, 191, 0.5); }
    100%     { opacity: 0; }
}

/* Estimate — smooth CSS count-up via a registered custom property */
@property --mqn {
    syntax: '<integer>';
    inherits: false;
    initial-value: 0;
}
.mq-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(4px);
    animation: mq-price-in 8s ease-out infinite;
}
@keyframes mq-price-in {
    0%, 38%  { opacity: 0; transform: translateY(4px); }
    44%, 92% { opacity: 1; transform: translateY(0); }
    100%     { opacity: 0; }
}
.mq-price__label { font-size: 5px; letter-spacing: 0.2em; color: var(--ink2); }
.mq-price__num { font-size: 15px; font-weight: 700; color: var(--ink0); display: inline-flex; align-items: baseline; }
.mq-price__sym { font-size: 9px; color: var(--teal); margin-right: 1px; }
.mq-price__count {
    --mqn: 0;
    counter-reset: mqn var(--mqn);
    animation: mq-count 8s cubic-bezier(0.16, 0.9, 0.3, 1) infinite;
}
.mq-price__count::before { content: counter(mqn); }
@keyframes mq-count {
    0%, 44%  { --mqn: 0; }
    62%, 92% { --mqn: 186; }
    100%     { --mqn: 0; }
}

/* Button — press + ripple, then swaps for the confirm state */
.mq-btn {
    position: relative;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--teal), #17a08f);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: mq-btn-press 8s ease-in-out infinite, mq-btn-fade 8s ease-out infinite;
}
.mq-btn__label { font-size: 6.5px; font-weight: 700; letter-spacing: 0.08em; color: #04211c; z-index: 1; }
.mq-btn__ripple {
    position: absolute;
    left: 50%; top: 50%;
    width: 6px; height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
    opacity: 0;
    animation: mq-ripple 8s ease-out infinite;
}
@keyframes mq-btn-press {
    0%, 68%   { transform: scale(1); }
    71%       { transform: scale(0.94); }
    74%, 100% { transform: scale(1); }
}
@keyframes mq-btn-fade {
    0%, 76%   { opacity: 1; }
    80%, 100% { opacity: 0; }
}
@keyframes mq-ripple {
    0%, 69% { opacity: 0; transform: scale(1); }
    70%     { opacity: 0.6; transform: scale(1); }
    82%     { opacity: 0; transform: scale(18); }
    100%    { opacity: 0; transform: scale(1); }
}

/* Confirm state — checkmark draw, takes the button's spot */
.mq-confirm {
    position: absolute;
    left: 10px; right: 10px;
    bottom: 11px;
    height: 20px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(45, 212, 191, 0.14);
    border: 1px solid var(--teal-dim);
    color: var(--teal);
    opacity: 0;
    animation: mq-confirm-in 8s ease-out infinite;
}
@keyframes mq-confirm-in {
    0%, 76%  { opacity: 0; }
    80%, 96% { opacity: 1; }
    100%     { opacity: 0; }
}
.mq-confirm__check { display: inline-flex; color: var(--teal); }
.mq-confirm__path {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: mq-check-draw 8s ease-out infinite;
}
@keyframes mq-check-draw {
    0%, 78%  { stroke-dashoffset: 24; }
    88%, 96% { stroke-dashoffset: 0; }
    100%     { stroke-dashoffset: 24; }
}
.mq-confirm__text { font-size: 6.5px; letter-spacing: 0.14em; font-weight: 700; }

/* SMS confirmation bubble to the customer */
.mq-sms {
    position: absolute;
    right: 8px;
    bottom: 6%;
    max-width: 62%;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    padding: 6px 8px;
    border-radius: 10px 10px 2px 10px;
    background: rgba(8, 14, 13, 0.92);
    border: 1px solid var(--teal-dim);
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(6px) scale(0.96);
    z-index: 4;
    animation: mq-sms-in 8s ease-out infinite;
}
@keyframes mq-sms-in {
    0%, 84%  { opacity: 0; transform: translateY(6px) scale(0.96); }
    90%, 98% { opacity: 1; transform: translateY(0) scale(1); }
    100%     { opacity: 0; transform: translateY(6px) scale(0.96); }
}
.mq-sms__dot { width: 5px; height: 5px; margin-top: 2px; border-radius: 50%; background: var(--teal); flex: 0 0 auto; box-shadow: 0 0 6px var(--teal); }
.mq-sms__text { font-size: 6px; line-height: 1.4; color: var(--ink0); }

.mq-vig { position: absolute; inset: 0; z-index: 6; pointer-events: none; box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55); }

/* Reduced motion: pin the finished state — quote sent, SMS visible */
@media (prefers-reduced-motion: reduce) {
    .mq * { animation: none !important; }
    .mq-field__type { width: 11ch; }
    .mq-field__caret { opacity: 0; }
    .mq-chip { opacity: 1; }
    .mq-chip.is-picked { background: var(--teal); color: #04211c; border-color: var(--teal); box-shadow: 0 0 12px rgba(45, 212, 191, 0.5); }
    .mq-price { opacity: 1; transform: none; }
    .mq-price__count { --mqn: 186; }
    .mq-btn { opacity: 0; }
    .mq-confirm { opacity: 1; }
    .mq-confirm__path { stroke-dashoffset: 0; }
    .mq-sms { opacity: 1; transform: none; }
}

/* ----- 04 SaaS & AI (hybrid: AI assistant + arbitrage) ----- */
.motif--saas {
    background:
        radial-gradient(60% 60% at 22% 35%, rgba(108,242,255,0.10), transparent 65%),
        radial-gradient(55% 55% at 80% 70%, rgba(54,232,156,0.08), transparent 65%),
        radial-gradient(40% 40% at 60% 0%,  rgba(255,181,71,0.08), transparent 60%),
        #06070b;
    overflow: hidden;
}

/* Color helpers */
.motif--saas .up { color: #36e89c; }
.motif--saas .dn { color: #ff5577; }

/* Top scrolling market ticker */
.ms-ticker {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 14%;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(12,12,18,0.85), rgba(12,12,18,0.55));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    z-index: 4;
}
.ms-ticker__track {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    padding: 0 14px;
    white-space: nowrap;
    animation: ms-ticker 18s linear infinite;
    will-change: transform;
}
@keyframes ms-ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.ms-ticker__item {
    font-size: 7px;
    letter-spacing: 0.16em;
    color: var(--ink-1);
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
}
.ms-ticker__item b {
    color: var(--ink-0);
    font-weight: 700;
}
.ms-ticker__item em {
    font-style: normal;
    font-size: 6.5px;
    letter-spacing: 0.1em;
}

/* Shared panel chrome */
.ms-panel {
    position: absolute;
    background: linear-gradient(180deg, rgba(20, 20, 28, 0.85), rgba(12, 12, 18, 0.78));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 4;
    padding: 8px 10px;
    overflow: hidden;
    box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.6);
}
.ms-panel__head {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 7px;
    letter-spacing: 0.28em;
    color: var(--ink-1);
    margin-bottom: 6px;
}
.ms-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    box-shadow: 0 0 6px currentColor;
}
.ms-dot--live  { background: #ff3b6f; color: #ff3b6f; animation: ma-blink 1.1s ease-in-out infinite; }
.ms-dot--alert { background: var(--amber); color: var(--amber); animation: ma-blink 0.9s ease-in-out infinite; }
.ms-dot--ok    { background: #36e89c; color: #36e89c; }

/* Chat panel — left side */
.ms-panel--chat {
    top: 19%;
    left: 5%;
    width: 50%;
    height: 60%;
    display: flex;
    flex-direction: column;
}
.ms-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow: hidden;
}
.ms-msg {
    display: flex;
    max-width: 92%;
}
.ms-msg--user { justify-content: flex-end; align-self: flex-end; }
.ms-msg--ai   { justify-content: flex-start; align-self: flex-start; }
.ms-msg__bubble {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 7px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--ink-0);
    max-width: 100%;
}
.ms-msg--user .ms-msg__bubble {
    background: rgba(108, 242, 255, 0.18);
    border-color: rgba(108, 242, 255, 0.35);
    border-bottom-right-radius: 2px;
}
.ms-msg__bubble--ai {
    background: linear-gradient(135deg, rgba(255, 181, 71, 0.15), rgba(108, 242, 255, 0.08));
    border-color: rgba(255, 181, 71, 0.3);
    border-bottom-left-radius: 2px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ms-msg__l1, .ms-msg__l2, .ms-msg__l3, .ms-msg__l4 { display: block; opacity: 0; animation: ms-msg-line 9s linear infinite; }
.ms-msg__l1 { animation-delay: 1.4s; }
.ms-msg__l2 { animation-delay: 2.6s; }
.ms-msg__l3 { animation-delay: 3.4s; }
.ms-msg__l4 { animation-delay: 4.2s; }
@keyframes ms-msg-line {
    0%, 5%   { opacity: 0; transform: translateY(2px); }
    10%, 100% { opacity: 1; transform: translateY(0); }
}
.ms-msg__profit b { color: #36e89c; }
.ms-dots::after {
    content: "...";
    display: inline-block;
    width: 0;
    overflow: hidden;
    vertical-align: bottom;
    animation: ms-el 1.6s steps(4, end) infinite;
}
@keyframes ms-el {
    0%   { width: 0; }
    100% { width: 12px; }
}

/* Typing indicator (first user message: simulated typing) */
.ms-msg--user:first-child .ms-msg__bubble { padding: 4px 7px; }
.ms-typing { display: inline-flex; gap: 2px; align-items: center; height: 8px; }
.ms-typing i {
    width: 3px; height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    animation: ms-typing 1.2s ease-in-out infinite;
}
.ms-typing i:nth-child(1) { animation-delay: 0s; }
.ms-typing::before, .ms-typing::after {
    content: ""; width: 3px; height: 3px;
    border-radius: 50%; background: rgba(255, 255, 255, 0.6);
    animation: ms-typing 1.2s ease-in-out infinite;
}
.ms-typing::before { animation-delay: 0.15s; }
.ms-typing::after  { animation-delay: 0.30s; }
@keyframes ms-typing {
    0%, 80%, 100% { transform: scale(0.5); opacity: 0.4; }
    40%           { transform: scale(1);   opacity: 1;   }
}
/* First user msg fades out before second slides in */
.ms-msg--user:first-child {
    animation: ms-typing-fade 9s ease-in-out infinite;
}
@keyframes ms-typing-fade {
    0%, 8%   { opacity: 1; transform: translateY(0); max-height: 14px; }
    12%, 100% { opacity: 0; transform: translateY(-4px); max-height: 0; padding: 0; margin: 0; border: 0; }
}
.ms-msg__user-text {
    overflow: hidden;
    white-space: nowrap;
    animation: ms-user-type 9s ease-in-out infinite;
    display: inline-block;
    max-width: 0;
}
@keyframes ms-user-type {
    0%, 13%   { max-width: 0; opacity: 0; }
    14%       { opacity: 1; }
    22%, 100% { max-width: 140px; opacity: 1; }
}

/* Right panel: opportunity + executed log */
.ms-panel--ops {
    top: 19%;
    right: 5%;
    width: 36%;
    height: 60%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.ms-opp {
    flex: 0 0 auto;
    background: linear-gradient(135deg, rgba(255, 181, 71, 0.16), rgba(255, 59, 111, 0.08));
    border: 1px solid rgba(255, 181, 71, 0.4);
    border-radius: 8px;
    padding: 8px 10px;
    box-shadow: 0 0 18px rgba(255, 181, 71, 0.18);
    animation: ms-opp-glow 2.4s ease-in-out infinite;
}
@keyframes ms-opp-glow {
    0%, 100% { box-shadow: 0 0 12px rgba(255, 181, 71, 0.18); }
    50%      { box-shadow: 0 0 24px rgba(255, 181, 71, 0.4); }
}
.ms-opp__head {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 6.5px;
    letter-spacing: 0.28em;
    color: var(--amber);
    margin-bottom: 4px;
}
.ms-opp__pair {
    font-size: 10px;
    font-weight: 700;
    color: var(--ink-0);
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.ms-opp__bar {
    position: relative;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 6px;
}
.ms-opp__fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--amber), #36e89c);
    transform-origin: left;
    transform: scaleX(0);
    animation: ms-opp-fill 3.2s ease-in-out infinite;
}
@keyframes ms-opp-fill {
    0%   { transform: scaleX(0); }
    60%  { transform: scaleX(0.97); }
    80%  { transform: scaleX(1); }
    100% { transform: scaleX(1); opacity: 0.4; }
}
.ms-opp__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 7px;
    letter-spacing: 0.18em;
    color: var(--ink-2);
    padding: 2px 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
}
.ms-opp__row:first-of-type { border-top: none; }
.ms-opp__row b {
    color: var(--ink-0);
    font-size: 8px;
    letter-spacing: 0.04em;
}

/* Executed log */
.ms-log {
    flex: 1;
    background: rgba(12, 12, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ms-log__head {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 6.5px;
    letter-spacing: 0.28em;
    color: #36e89c;
    margin-bottom: 2px;
}
.ms-log__row {
    display: flex;
    justify-content: space-between;
    font-size: 6.5px;
    letter-spacing: 0.14em;
    color: var(--ink-2);
    padding: 2px 0;
}
.ms-log__row em {
    font-style: normal;
    font-size: 7.5px;
    font-weight: 600;
}
.ms-log__row--new {
    background: rgba(54, 232, 156, 0.1);
    border-radius: 4px;
    padding: 2px 4px;
    margin: 0 -4px;
    animation: ms-log-flash 3.2s ease-out infinite;
}
@keyframes ms-log-flash {
    0%   { background: rgba(54, 232, 156, 0.4); transform: translateX(4px); opacity: 0; }
    18%  { background: rgba(54, 232, 156, 0.4); transform: translateX(0);   opacity: 1; }
    60%  { background: rgba(54, 232, 156, 0.1); }
    100% { background: rgba(54, 232, 156, 0.1); opacity: 1; }
}

/* Bottom P&L sparkline */
.ms-pnl {
    position: absolute;
    left: 5%; right: 5%;
    bottom: 7%;
    height: 14%;
    background: rgba(12, 12, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    z-index: 4;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.ms-pnl__label {
    font-size: 6.5px;
    letter-spacing: 0.3em;
    color: var(--ink-2);
    flex: 0 0 auto;
}
.ms-pnl__spark {
    flex: 1;
    height: 100%;
    max-height: 24px;
}
.ms-pnl__line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: ms-pnl-draw 4s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(54, 232, 156, 0.6));
}
.ms-pnl__area {
    opacity: 0;
    animation: ms-pnl-fill 4s ease-in-out infinite;
}
@keyframes ms-pnl-draw {
    0%   { stroke-dashoffset: 200; }
    50%  { stroke-dashoffset: 0; }
    90%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 200; }
}
@keyframes ms-pnl-fill {
    0%   { opacity: 0; }
    50%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { opacity: 0; }
}
.ms-pnl__num {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    color: #36e89c;
    text-shadow: 0 0 8px rgba(54, 232, 156, 0.5);
}

/* =============================================================================
   04 SaaS & AI — live trading intelligence (v2 motif)
   Replaces the visual inside .motif--saas. Legacy .ms-* rules above remain
   in place but are no longer used by the markup.
   Master 9s reasoning loop · 16s ticker · 2.6s opp glow · gentle 12s 3D float.
   ============================================================================= */
.motif--saas { perspective: 1400px; }
.sa {
    --amber: #ffb547;
    --neon:  #ff3b6f;
    --ice:   #6cf2ff;
    --grn:   #36e89c;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    background:
        radial-gradient(60% 60% at 22% 30%, rgba(108,242,255,0.10), transparent 65%),
        radial-gradient(55% 55% at 82% 72%, rgba(54,232,156,0.08), transparent 65%),
        #06070b;
    transform-style: preserve-3d;
    animation: sa-float 12s ease-in-out infinite;
    color: #cfd2d6;
}
.sa .up { color: var(--grn); }
.sa .dn { color: #ff5577; }
@keyframes sa-float {
    0%, 100% { transform: rotateY(-4deg) rotateX(2deg); }
    50%      { transform: rotateY(4deg)  rotateX(-1deg); }
}

.sa-ticker { position: absolute; top: 0; left: 0; right: 0; height: 13%; overflow: hidden; background: linear-gradient(180deg, rgba(12,12,18,0.9), rgba(12,12,18,0.5)); border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; z-index: 5; }
.sa-ticker__track { display: inline-flex; gap: 20px; padding: 0 14px; white-space: nowrap; animation: sa-ticker 16s linear infinite; }
@keyframes sa-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.sa-tk { font-family: ui-monospace, monospace; font-size: 7px; letter-spacing: 0.12em; color: #aaa; display: inline-flex; gap: 4px; align-items: baseline; }
.sa-tk b { color: #fff; }
.sa-tk em { font-style: normal; font-size: 6.5px; }

.sa-dot { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 6px currentColor; display: inline-block; }
.sa-dot.live  { background: var(--neon); color: var(--neon); animation: sa-blink 1.1s ease-in-out infinite; }
.sa-dot.alert { background: var(--amber); color: var(--amber); animation: sa-blink 0.9s ease-in-out infinite; }
.sa-dot.ok    { background: var(--grn); color: var(--grn); }
@keyframes sa-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.sa-chat { position: absolute; top: 18%; left: 5%; width: 50%; height: 60%; border-radius: 9px; background: linear-gradient(180deg, rgba(20,20,28,0.85), rgba(12,12,18,0.78)); border: 1px solid rgba(255,255,255,0.07); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; z-index: 4; box-shadow: 0 12px 28px -16px #000; }
.sa-chat__head { display: inline-flex; align-items: center; gap: 6px; font-family: ui-monospace, monospace; font-size: 7px; letter-spacing: 0.25em; color: #aaa; }
.sa-q { align-self: flex-end; max-width: 85%; padding: 5px 8px; border-radius: 8px 8px 2px 8px; font-family: ui-monospace, monospace; font-size: 7px; background: rgba(108,242,255,0.18); border: 1px solid rgba(108,242,255,0.35); color: #fff; opacity: 0; animation: sa-q 9s ease-out infinite; }
@keyframes sa-q {
    0%, 4%   { opacity: 0; transform: translateY(4px); }
    8%, 92%  { opacity: 1; transform: translateY(0); }
    96%, 100%{ opacity: 0; }
}
.sa-ai { align-self: flex-start; max-width: 92%; padding: 6px 9px; border-radius: 8px 8px 8px 2px; background: linear-gradient(135deg, rgba(255,181,71,0.14), rgba(108,242,255,0.08)); border: 1px solid rgba(255,181,71,0.3); display: flex; flex-direction: column; gap: 3px; opacity: 0; animation: sa-ai 9s ease-out infinite; }
@keyframes sa-ai {
    0%, 10%   { opacity: 0; }
    14%, 92%  { opacity: 1; }
    96%, 100% { opacity: 0; }
}
.sa-ai__think { display: flex; align-items: center; gap: 5px; font-family: ui-monospace, monospace; font-size: 7px; color: var(--ice); }
.sa-ai__spin { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgba(108,242,255,0.3); border-top-color: var(--ice); animation: sa-spin 0.7s linear infinite; }
@keyframes sa-spin { to { transform: rotate(360deg); } }
.sa-ell::after { content: ""; animation: sa-ell 1.2s steps(4) infinite; }
@keyframes sa-ell {
    0%  { content: ""; }
    25% { content: "."; }
    50% { content: ".."; }
    75% { content: "..."; }
}
.sa-ai__l { font-family: ui-monospace, monospace; font-size: 7px; color: #fff; opacity: 0; }
.sa-ai__l.l2 { animation: sa-line 9s ease-out infinite; animation-delay: 0.3s; color: #aaa; }
.sa-ai__l.l3 { animation: sa-line 9s ease-out infinite; animation-delay: 0.9s; }
.sa-ai__l.l4 { animation: sa-line 9s ease-out infinite; animation-delay: 1.4s; }
.sa-ai__l.l5 { animation: sa-line 9s ease-out infinite; animation-delay: 1.9s; }
.sa-ai__l.profit b { color: var(--grn); }
@keyframes sa-line {
    0%, 12%   { opacity: 0; transform: translateY(2px); }
    16%, 92%  { opacity: 1; transform: translateY(0); }
    96%, 100% { opacity: 0; }
}

.sa-ops { position: absolute; top: 18%; right: 5%; width: 36%; height: 60%; display: flex; flex-direction: column; gap: 7px; z-index: 4; }
.sa-opp { background: linear-gradient(135deg, rgba(255,181,71,0.16), rgba(255,59,111,0.08)); border: 1px solid rgba(255,181,71,0.4); border-radius: 8px; padding: 7px 9px; animation: sa-glow 2.6s ease-in-out infinite; }
@keyframes sa-glow {
    0%, 100% { box-shadow: 0 0 12px rgba(255,181,71,0.18); }
    50%      { box-shadow: 0 0 24px rgba(255,181,71,0.45); }
}
.sa-opp__head { display: inline-flex; align-items: center; gap: 5px; font-family: ui-monospace, monospace; font-size: 6px; letter-spacing: 0.22em; color: var(--amber); margin-bottom: 4px; }
.sa-opp__pair { font-family: ui-monospace, monospace; font-size: 10px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.sa-opp__bar { position: relative; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.08); overflow: hidden; margin-bottom: 5px; }
.sa-opp__fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--amber), var(--grn)); transform-origin: left; transform: scaleX(0); animation: sa-fill 9s ease-in-out infinite; }
@keyframes sa-fill {
    0%, 20% { transform: scaleX(0); }
    40%     { transform: scaleX(0.97); }
    92%     { transform: scaleX(1); }
    100%    { transform: scaleX(1); opacity: 0.4; }
}
.sa-opp__row { display: flex; justify-content: space-between; font-family: ui-monospace, monospace; font-size: 7px; letter-spacing: 0.1em; color: #888; padding: 1px 0; }
.sa-opp__row b { color: #fff; }
.sa-opp__exec { margin-top: 5px; text-align: center; font-family: ui-monospace, monospace; font-size: 7px; letter-spacing: 0.2em; color: #06120c; font-weight: 700; background: var(--grn); border-radius: 5px; padding: 4px; animation: sa-exec 9s ease-in-out infinite; }
@keyframes sa-exec {
    0%, 55%   { opacity: 0.4; transform: scale(0.97); }
    60%       { opacity: 1; transform: scale(1.06); background: #fff; }
    64%       { transform: scale(1); background: var(--grn); }
    90%       { opacity: 1; }
    96%, 100% { opacity: 0.4; }
}

.sa-log { flex: 1; background: rgba(12,12,18,0.7); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 7px 9px; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.sa-log__head { display: inline-flex; align-items: center; gap: 5px; font-family: ui-monospace, monospace; font-size: 6px; letter-spacing: 0.22em; color: var(--grn); margin-bottom: 1px; }
.sa-log__row { display: flex; justify-content: space-between; font-family: ui-monospace, monospace; font-size: 6.5px; letter-spacing: 0.08em; color: #888; padding: 1px 0; }
.sa-log__row em { font-style: normal; font-size: 7.5px; font-weight: 600; }
.sa-log__row.new { background: rgba(54,232,156,0.1); border-radius: 4px; padding: 2px 4px; margin: 0 -4px; animation: sa-flash 9s ease-out infinite; animation-delay: 2.2s; }
@keyframes sa-flash {
    0%, 20%   { background: rgba(54,232,156,0); transform: translateX(6px); opacity: 0; }
    24%       { background: rgba(54,232,156,0.5); transform: translateX(0); opacity: 1; }
    50%       { background: rgba(54,232,156,0.1); }
    92%       { opacity: 1; }
    96%, 100% { opacity: 0; }
}

.sa-pnl { position: absolute; left: 5%; right: 5%; bottom: 7%; height: 13%; background: rgba(12,12,18,0.7); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; display: flex; align-items: center; gap: 8px; padding: 4px 10px; z-index: 4; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sa-pnl__lbl { font-family: ui-monospace, monospace; font-size: 6px; letter-spacing: 0.28em; color: #888; }
.sa-pnl__spark { flex: 1; height: 100%; max-height: 24px; }
.sa-pnl__line { stroke-dasharray: 200; stroke-dashoffset: 200; animation: sa-draw 9s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(54,232,156,0.6)); }
.sa-pnl__area { opacity: 0; animation: sa-area 9s ease-in-out infinite; }
@keyframes sa-draw {
    0%   { stroke-dashoffset: 200; }
    45%  { stroke-dashoffset: 0; }
    92%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 200; }
}
@keyframes sa-area {
    0%, 10%  { opacity: 0; }
    50%, 92% { opacity: 1; }
    100%     { opacity: 0; }
}
.sa-pnl__num { font-family: ui-monospace, monospace; font-size: 11px; font-weight: 700; color: var(--grn); text-shadow: 0 0 8px rgba(54,232,156,0.5); }

.sa-vig { position: absolute; inset: 0; z-index: 6; pointer-events: none; box-shadow: inset 0 0 45px rgba(0,0,0,0.5); }

/* ----- 05 Web apps (full insights/analytics dashboard) ----- */
.motif--webapps {
    background:
        radial-gradient(80% 60% at 50% 0%, rgba(255,181,71,0.08), transparent 70%),
        radial-gradient(60% 50% at 90% 100%, rgba(108,242,255,0.08), transparent 70%),
        #07070a;
    overflow: hidden;
}
.motif--webapps .up { color: #36e89c; }
.motif--webapps .dn { color: #ff5577; }

.mw-app {
    position: absolute;
    inset: 6%;
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #0d0d14, #09090d);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7);
}

/* Sidebar */
.mw-side {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 6px;
    background: rgba(255, 255, 255, 0.025);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}
.mw-side__logo {
    width: 14px;
    height: 14px;
    margin: 0 auto 6px;
    border-radius: 2px;
    object-fit: contain;
    object-position: center;
    display: block;
    flex: 0 0 auto;
}
.mw-side__item {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
}
.mw-side__item--mini {
    margin-top: auto;
    height: 5px;
    width: 60%;
}
.mw-side__item.is-active {
    background: var(--amber);
    box-shadow: 0 0 8px rgba(255, 181, 71, 0.5);
}

/* Top bar */
.mw-main {
    padding: 8px 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    position: relative;
}
.mw-top {
    display: flex;
    gap: 6px;
    align-items: center;
    height: 12px;
}
.mw-top__title {
    width: 28%;
    height: 7px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.18);
}
.mw-top__search {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.12), rgba(255,255,255,0.05));
    background-size: 200% 100%;
    animation: mw-shimmer 2.4s linear infinite;
}
.mw-top__av {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ice), #6c8aff);
    box-shadow: 0 0 6px rgba(108, 242, 255, 0.4);
}
@keyframes mw-shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

/* KPI cards */
.mw-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}
.mw-kpi {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 5px 7px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
}
.mw-kpi__label {
    font-size: 5.5px;
    letter-spacing: 0.22em;
    color: var(--ink-2);
}
.mw-kpi__num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ink-0);
    line-height: 1;
}
.mw-kpi__val { display: inline-block; }
.mw-kpi:nth-child(1) .mw-kpi__num { color: var(--amber); }
.mw-kpi:nth-child(2) .mw-kpi__num { color: var(--ink-0); }
.mw-kpi:nth-child(3) .mw-kpi__num { color: var(--ice); }
.mw-kpi__delta {
    font-size: 6px;
    letter-spacing: 0.12em;
    margin-top: 1px;
}

/* Area chart + donut row */
.mw-row2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 5px;
    flex: 1;
    min-height: 0;
}
.mw-area {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 5px 7px 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mw-area__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mw-area__title {
    font-size: 5.5px;
    letter-spacing: 0.22em;
    color: var(--ink-2);
}
.mw-area__legend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 5.5px;
    letter-spacing: 0.12em;
    color: var(--ink-2);
}
.mw-area__legend i {
    width: 6px; height: 2px;
    background: var(--amber);
    border-radius: 1px;
}
.mw-area__legend i.alt {
    background: rgba(255, 255, 255, 0.25);
    margin-left: 4px;
}
.mw-area__svg {
    flex: 1;
    width: 100%;
    margin-top: 2px;
    overflow: visible;
}
.mw-area__line {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: mw-line-draw 4s ease-in-out infinite;
    filter: drop-shadow(0 0 3px rgba(255, 181, 71, 0.5));
}
.mw-area__fill {
    opacity: 0;
    animation: mw-fill-fade 4s ease-in-out infinite;
}
.mw-area__dot {
    opacity: 0;
    animation: mw-dot-pulse 4s ease-in-out infinite;
    filter: drop-shadow(0 0 4px var(--amber));
}
@keyframes mw-line-draw {
    0%   { stroke-dashoffset: 300; }
    50%  { stroke-dashoffset: 0; }
    90%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 300; }
}
@keyframes mw-fill-fade {
    0%   { opacity: 0; }
    55%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { opacity: 0; }
}
@keyframes mw-dot-pulse {
    0%, 50%   { opacity: 0; r: 1.5; }
    55%       { opacity: 1; r: 2.4; }
    65%       { r: 4; opacity: 0.6; }
    75%, 100% { r: 2.4; opacity: 1; }
}

/* Donut */
.mw-donut {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 5px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mw-donut__svg {
    width: 100%;
    height: 100%;
    max-height: 64px;
}
.mw-donut__seg {
    transform-origin: center;
    animation: mw-donut-draw 4s ease-out infinite;
    stroke-dasharray: 0 88;
}
.mw-donut__seg--a { animation-delay: 0s;    --target: 36; }
.mw-donut__seg--b { animation-delay: 0.25s; --target: 26; }
.mw-donut__seg--c { animation-delay: 0.5s;  --target: 14; }
@keyframes mw-donut-draw {
    0%        { stroke-dasharray: 0 88; }
    50%, 90%  { stroke-dasharray: var(--target) 88; }
    100%      { stroke-dasharray: 0 88; }
}
.mw-donut__center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    pointer-events: none;
}
.mw-donut__num {
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-0);
    letter-spacing: 0.02em;
}
.mw-donut__sub {
    font-size: 5px;
    letter-spacing: 0.28em;
    color: var(--ink-2);
}

/* Bottom row: bars + feed */
.mw-row3 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 5px;
    height: 28%;
}
.mw-bars {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 5px 7px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}
.mw-bars__title {
    font-size: 5.5px;
    letter-spacing: 0.22em;
    color: var(--ink-2);
}
.mw-bars__grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 3px;
    align-items: end;
}
.mw-bars__grid i {
    display: block;
    height: var(--h);
    border-radius: 2px 2px 0 0;
    background: linear-gradient(180deg, var(--ice), rgba(108, 242, 255, 0.15));
    transform-origin: bottom;
    animation: mw-bar 3.2s cubic-bezier(0.22, 1.2, 0.36, 1) infinite;
}
.mw-bars__grid i:nth-child(1) { animation-delay: 0.00s; }
.mw-bars__grid i:nth-child(2) { animation-delay: 0.08s; }
.mw-bars__grid i:nth-child(3) { animation-delay: 0.16s; }
.mw-bars__grid i:nth-child(4) { animation-delay: 0.24s; background: linear-gradient(180deg, var(--amber), rgba(255, 181, 71, 0.15)); }
.mw-bars__grid i:nth-child(5) { animation-delay: 0.32s; }
.mw-bars__grid i:nth-child(6) { animation-delay: 0.40s; background: linear-gradient(180deg, var(--amber), rgba(255, 181, 71, 0.15)); }
.mw-bars__grid i:nth-child(7) { animation-delay: 0.48s; }
.mw-bars__grid i:nth-child(8) { animation-delay: 0.56s; }
.mw-bars__grid i:nth-child(9) { animation-delay: 0.64s; }
@keyframes mw-bar {
    0%   { transform: scaleY(0.3); opacity: 0.7; }
    40%  { transform: scaleY(1);   opacity: 1;   }
    70%  { transform: scaleY(0.85); }
    100% { transform: scaleY(0.3); opacity: 0.7; }
}

/* Activity feed */
.mw-feed {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 5px 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}
.mw-feed__row {
    display: flex;
    align-items: center;
    gap: 5px;
    animation: mw-feed-in 4s ease-in-out infinite;
    opacity: 0;
}
.mw-feed__row:nth-child(1) { animation-delay: 0.0s; }
.mw-feed__row:nth-child(2) { animation-delay: 0.6s; }
.mw-feed__row:nth-child(3) { animation-delay: 1.2s; }
.mw-feed__row:nth-child(4) { animation-delay: 1.8s; }
@keyframes mw-feed-in {
    0%, 5%   { opacity: 0; transform: translateX(-4px); }
    10%, 90% { opacity: 1; transform: translateX(0); }
    100%     { opacity: 0; transform: translateX(-4px); }
}
.mw-feed__dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    flex: 0 0 auto;
}
.mw-feed__dot.up { background: #36e89c; box-shadow: 0 0 5px #36e89c; }
.mw-feed__dot.dn { background: #ff5577; box-shadow: 0 0 5px #ff5577; }
.mw-feed__bar {
    flex: 1;
    height: 5px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
}
.mw-feed__bar--m { width: 70%; flex: 0 0 auto; }
.mw-feed__bar--s { width: 45%; flex: 0 0 auto; }

/* Live status pill */
.mw-live {
    position: absolute;
    bottom: 6px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(12, 12, 18, 0.7);
    border: 1px solid rgba(54, 232, 156, 0.35);
    font-size: 6px;
    letter-spacing: 0.22em;
    color: var(--ink-1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 4;
}
.mw-live b { color: #36e89c; font-weight: 700; }
.mw-live__dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #36e89c;
    box-shadow: 0 0 8px #36e89c;
    animation: ma-blink 1.1s ease-in-out infinite;
}

/* =============================================================================
   05 Web apps — live analytics dashboard (v2 motif)
   Replaces the visual inside .motif--webapps. Legacy .mw-* rules above remain
   in place but are no longer used by the markup.
   Master 5s chart/donut loop · 3.2s bars · 4s feed · 5s cursor · 12s 3D float.
   KPI/donut count-up + live drift driven by attachWebappsKpis() in script.js.
   ============================================================================= */
.motif--webapps { perspective: 1400px; }
.wa {
    --amber: #ffb547;
    --neon:  #ff3b6f;
    --ice:   #6cf2ff;
    --grn:   #36e89c;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    background:
        radial-gradient(80% 60% at 50% 0%, rgba(255,181,71,0.08), transparent 70%),
        radial-gradient(60% 50% at 90% 100%, rgba(108,242,255,0.08), transparent 70%),
        #07070a;
    transform-style: preserve-3d;
    animation: wa-float 12s ease-in-out infinite;
    color: #cfd2d6;
}
.wa .up { color: var(--grn); }
.wa .dn { color: #ff5577; }
@keyframes wa-float {
    0%, 100% { transform: rotateY(-4deg) rotateX(2deg); }
    50%      { transform: rotateY(4deg)  rotateX(-1deg); }
}

.wa-app { position: absolute; inset: 6%; display: grid; grid-template-columns: 38px 1fr; border-radius: 10px; background: linear-gradient(180deg, #0d0d14, #09090d); border: 1px solid rgba(255,255,255,0.06); overflow: hidden; box-shadow: 0 18px 40px -20px #000; }
.wa-side { display: flex; flex-direction: column; gap: 6px; padding: 8px 6px; background: rgba(255,255,255,0.025); border-right: 1px solid rgba(255,255,255,0.04); }
.wa-side__logo { width: 14px; height: 14px; margin: 0 auto 6px; border-radius: 3px; background: linear-gradient(135deg, var(--amber), #ffd88a); }
.wa-side__i { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.08); }
.wa-side__i.on { background: var(--amber); box-shadow: 0 0 8px rgba(255,181,71,0.5); }
.wa-side__i.mini { margin-top: auto; height: 5px; width: 60%; }

.wa-main { padding: 8px 10px; display: flex; flex-direction: column; gap: 7px; min-width: 0; position: relative; }
.wa-top { display: flex; gap: 6px; align-items: center; height: 12px; }
.wa-top__title { width: 28%; height: 7px; border-radius: 3px; background: rgba(255,255,255,0.18); }
.wa-top__search { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.12), rgba(255,255,255,0.05)); background-size: 200% 100%; animation: wa-shim 2.4s linear infinite; }
@keyframes wa-shim { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.wa-top__av { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--ice), #6c8aff); box-shadow: 0 0 6px rgba(108,242,255,0.4); }

.wa-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.wa-kpi { background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.05); border-radius: 6px; padding: 5px 7px; display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.wa-kpi__l { font-family: ui-monospace, monospace; font-size: 5.5px; letter-spacing: 0.22em; color: #888; }
.wa-kpi__n { font-family: ui-monospace, monospace; font-size: 11px; font-weight: 700; color: #fff; line-height: 1; }
.wa-kpi:nth-child(1) .wa-kpi__n { color: var(--amber); }
.wa-kpi:nth-child(3) .wa-kpi__n { color: var(--ice); }
.wa-kpi__d { font-family: ui-monospace, monospace; font-size: 6px; letter-spacing: 0.12em; margin-top: 1px; }

.wa-row2 { display: grid; grid-template-columns: 2fr 1fr; gap: 5px; flex: 1; min-height: 0; }
.wa-area { background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.05); border-radius: 6px; padding: 5px 7px 0; display: flex; flex-direction: column; overflow: hidden; }
.wa-area__head { display: flex; justify-content: space-between; align-items: center; }
.wa-area__t { font-family: ui-monospace, monospace; font-size: 5.5px; letter-spacing: 0.22em; color: #888; }
.wa-area__lg { display: inline-flex; align-items: center; gap: 4px; font-family: ui-monospace, monospace; font-size: 5.5px; color: #888; }
.wa-area__lg i { width: 6px; height: 2px; background: var(--amber); border-radius: 1px; }
.wa-area__lg i.alt { background: rgba(255,255,255,0.25); margin-left: 4px; }
.wa-area__svg { flex: 1; width: 100%; margin-top: 2px; overflow: visible; }
.wa-area__line { stroke-dasharray: 300; stroke-dashoffset: 300; animation: wa-draw 5s ease-in-out infinite; filter: drop-shadow(0 0 3px rgba(255,181,71,0.5)); }
.wa-area__fill { opacity: 0; animation: wa-fillf 5s ease-in-out infinite; }
.wa-area__dot { opacity: 0; animation: wa-dotp 5s ease-in-out infinite; filter: drop-shadow(0 0 5px var(--amber)); }
@keyframes wa-draw {
    0%   { stroke-dashoffset: 300; }
    45%  { stroke-dashoffset: 0; }
    90%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 300; }
}
@keyframes wa-fillf {
    0%   { opacity: 0; }
    50%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { opacity: 0; }
}
@keyframes wa-dotp {
    0%, 45%   { opacity: 0; }
    50%       { opacity: 1; r: 2.6; }
    60%       { r: 4.5; opacity: 0.6; }
    70%, 90%  { r: 2.6; opacity: 1; }
    100%      { opacity: 0; }
}

.wa-donut { background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.05); border-radius: 6px; padding: 5px; position: relative; display: flex; align-items: center; justify-content: center; }
.wa-donut svg { width: 100%; height: 100%; max-height: 64px; }
.wa-dseg { transform-origin: center; animation: wa-don 5s ease-out infinite; stroke-dasharray: 0 88; }
.wa-dseg.a { animation-delay: 0s;    --t: 36; }
.wa-dseg.b { animation-delay: 0.25s; --t: 26; }
.wa-dseg.c { animation-delay: 0.5s;  --t: 14; }
@keyframes wa-don {
    0%        { stroke-dasharray: 0 88; }
    50%, 90%  { stroke-dasharray: var(--t) 88; }
    100%      { stroke-dasharray: 0 88; }
}
.wa-donut__c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.wa-donut__n { font-family: ui-monospace, monospace; font-size: 11px; font-weight: 700; color: #fff; }
.wa-donut__s { font-family: ui-monospace, monospace; font-size: 5px; letter-spacing: 0.28em; color: #888; }

.wa-row3 { display: grid; grid-template-columns: 2fr 1fr; gap: 5px; height: 28%; }
.wa-bars { background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.05); border-radius: 6px; padding: 5px 7px; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.wa-bars__t { font-family: ui-monospace, monospace; font-size: 5.5px; letter-spacing: 0.22em; color: #888; }
.wa-bars__g { flex: 1; display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; align-items: end; }
.wa-bars__g i { height: var(--h); border-radius: 2px 2px 0 0; background: linear-gradient(180deg, var(--ice), rgba(108,242,255,0.15)); transform-origin: bottom; animation: wa-bar 3.2s cubic-bezier(0.22, 1.2, 0.36, 1) infinite; }
.wa-bars__g i:nth-child(1) { animation-delay: 0s; }
.wa-bars__g i:nth-child(2) { animation-delay: 0.08s; }
.wa-bars__g i:nth-child(3) { animation-delay: 0.16s; }
.wa-bars__g i:nth-child(4) { animation-delay: 0.24s; background: linear-gradient(180deg, var(--amber), rgba(255,181,71,0.15)); }
.wa-bars__g i:nth-child(5) { animation-delay: 0.32s; }
.wa-bars__g i:nth-child(6) { animation-delay: 0.40s; background: linear-gradient(180deg, var(--amber), rgba(255,181,71,0.15)); }
.wa-bars__g i:nth-child(7) { animation-delay: 0.48s; }
.wa-bars__g i:nth-child(8) { animation-delay: 0.56s; }
.wa-bars__g i:nth-child(9) { animation-delay: 0.64s; }
@keyframes wa-bar {
    0%   { transform: scaleY(0.3); opacity: 0.7; }
    40%  { transform: scaleY(1);   opacity: 1; }
    70%  { transform: scaleY(0.85); }
    100% { transform: scaleY(0.3); opacity: 0.7; }
}
.wa-feed { background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.05); border-radius: 6px; padding: 5px 6px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.wa-feed__r { display: flex; align-items: center; gap: 5px; opacity: 0; animation: wa-feed 4s ease-in-out infinite; }
.wa-feed__r:nth-child(1) { animation-delay: 0s; }
.wa-feed__r:nth-child(2) { animation-delay: 0.6s; }
.wa-feed__r:nth-child(3) { animation-delay: 1.2s; }
.wa-feed__r:nth-child(4) { animation-delay: 1.8s; }
@keyframes wa-feed {
    0%, 5%    { opacity: 0; transform: translateX(-4px); }
    10%, 90%  { opacity: 1; transform: translateX(0); }
    100%      { opacity: 0; transform: translateX(-4px); }
}
.wa-feed__dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.4); flex: 0 0 auto; }
.wa-feed__dot.up { background: var(--grn); box-shadow: 0 0 5px var(--grn); }
.wa-feed__dot.dn { background: #ff5577; box-shadow: 0 0 5px #ff5577; }
.wa-feed__b { flex: 1; height: 5px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06)); }
.wa-feed__b.m { width: 70%; flex: 0 0 auto; }
.wa-feed__b.s { width: 45%; flex: 0 0 auto; }

.wa-live { position: absolute; bottom: 6px; right: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 999px; background: rgba(12,12,18,0.7); border: 1px solid rgba(54,232,156,0.35); font-family: ui-monospace, monospace; font-size: 6px; letter-spacing: 0.2em; color: #aaa; }
.wa-live b { color: var(--grn); }
.wa-live__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--grn); box-shadow: 0 0 8px var(--grn); animation: wa-blink 1.1s ease-in-out infinite; }
@keyframes wa-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.wa-cursor { position: absolute; z-index: 8; width: 11px; height: 15px; top: 40%; left: 55%; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.7)); animation: wa-cursor 5s cubic-bezier(0.45, 0, 0.25, 1) infinite; }
.wa-cursor::before { content: ""; position: absolute; inset: 0; background: #fff; clip-path: polygon(0 0, 100% 45%, 48% 55%, 72% 100%, 56% 100%, 32% 62%, 0 82%); }
@keyframes wa-cursor {
    0%    { transform: translate(0, 0); }
    30%   { transform: translate(-30px, -6px); }
    55%   { transform: translate(-30px, -6px) scale(0.85); }
    58%   { transform: translate(-30px, -6px) scale(1); }
    80%   { transform: translate(10px, 18px); }
    100%  { transform: translate(0, 0); }
}

.wa-vig { position: absolute; inset: 0; z-index: 6; pointer-events: none; box-shadow: inset 0 0 45px rgba(0,0,0,0.5); }

/* ----- 06 Lead automation (missed call -> auto text-back) ----- */
.motif--leadcapture {
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(255, 106, 61, 0.10), transparent 60%),
        linear-gradient(180deg, #0a0705, #07050a);
    overflow: hidden;
}
.lc {
    --coral: #ff6a3d;
    --coral-dim: rgba(255, 106, 61, 0.35);
    --ink0: #fff3ee;
    --ink2: #a08a82;
    --grn: #4ade80;
    --amb: #ffb547;
    position: absolute;
    inset: 0;
    font-family: ui-monospace, monospace;
    color: var(--ink2);
}
.lc-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 40% at 20% 90%, rgba(255, 106, 61, 0.06), transparent 70%);
}

/* Missed-call banner — slides down from the top, phone rings */
.lc-callbar {
    position: absolute;
    top: -30px;
    left: 8%; right: 8%;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 8px;
    background: rgba(20, 8, 5, 0.92);
    border: 1px solid rgba(255, 106, 61, 0.45);
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7);
    z-index: 4;
    opacity: 0;
    animation: lc-callbar-slide 9.5s ease-in-out infinite;
}
@keyframes lc-callbar-slide {
    0%, 3%    { top: -30px; opacity: 0; }
    9%, 24%   { top: 6%; opacity: 1; }
    30%, 100% { top: -30px; opacity: 0; }
}
.lc-callbar__icon {
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--coral);
    color: #1a0703;
    flex: 0 0 auto;
    animation: lc-ring 0.7s ease-in-out infinite;
}
@keyframes lc-ring {
    0%, 100% { transform: rotate(-12deg); }
    50%      { transform: rotate(12deg); }
}
.lc-callbar__text { font-size: 6px; color: var(--ink0); }
.lc-callbar__text b { color: var(--coral); }

/* Status chip — MISSED CALL -> TEXT SENT -> BOOKED (stacked crossfade) */
.lc-status {
    position: absolute;
    top: 10px; left: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(12, 10, 10, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5;
}
.lc-status__dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 6px var(--coral);
    animation: lc-status-dot 9.5s steps(1, end) infinite;
}
@keyframes lc-status-dot {
    0%, 22%    { background: var(--coral); box-shadow: 0 0 6px var(--coral); }
    23%, 56%   { background: var(--amb);   box-shadow: 0 0 6px var(--amb); }
    57%, 100%  { background: var(--grn);   box-shadow: 0 0 6px var(--grn); }
}
.lc-status__stack { position: relative; display: inline-block; height: 7px; font-size: 5.5px; letter-spacing: 0.14em; }
.lc-status__label {
    position: absolute;
    left: 0; top: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    opacity: 0;
}
.lc-status__label svg { flex: 0 0 auto; }
.lc-status__label.l1 { color: var(--coral); animation: lc-l1 9.5s ease-in-out infinite; }
.lc-status__label.l2 { color: var(--amb);   animation: lc-l2 9.5s ease-in-out infinite; }
.lc-status__label.l3 { color: var(--grn);   animation: lc-l3 9.5s ease-in-out infinite; }
@keyframes lc-l1 { 0%, 3%   { opacity: 0; } 9%, 21%  { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes lc-l2 { 0%, 25%  { opacity: 0; } 30%, 55%  { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes lc-l3 { 0%, 60%  { opacity: 0; } 65%, 96%  { opacity: 1; } 100%      { opacity: 0; } }

/* Auto-reply thread */
.lc-thread {
    position: absolute;
    left: 8%; right: 8%;
    top: 34%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.lc-bubble {
    max-width: 84%;
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 6px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(6px);
}
.lc-bubble.out {
    align-self: flex-start;
    border-radius: 10px 10px 10px 2px;
    background: rgba(255, 106, 61, 0.14);
    border: 1px solid var(--coral-dim);
    color: var(--ink0);
    animation: lc-bubble-out 9.5s ease-out infinite;
}
.lc-bubble.in {
    align-self: flex-end;
    border-radius: 10px 10px 2px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--ink0);
    animation: lc-bubble-in 9.5s ease-out infinite;
}
@keyframes lc-bubble-out {
    0%, 24%  { opacity: 0; transform: translateY(6px); }
    30%, 92% { opacity: 1; transform: translateY(0); }
    100%     { opacity: 0; }
}
@keyframes lc-bubble-in {
    0%, 48%  { opacity: 0; transform: translateY(6px); }
    54%, 92% { opacity: 1; transform: translateY(0); }
    100%     { opacity: 0; }
}
.lc-typing {
    align-self: flex-end;
    display: flex;
    gap: 3px;
    padding: 5px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0;
    animation: lc-typing-show 9.5s ease-out infinite;
}
.lc-typing i {
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--ink2);
    animation: lc-typing-dot 0.9s ease-in-out infinite;
}
.lc-typing i:nth-child(2) { animation-delay: 0.15s; }
.lc-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes lc-typing-dot {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50%      { transform: translateY(-2px); opacity: 1; }
}
@keyframes lc-typing-show {
    0%, 34%  { opacity: 0; }
    38%, 47% { opacity: 1; }
    48%, 100% { opacity: 0; }
}

/* Recovered-leads ticker — smooth CSS count-up via a registered custom property */
@property --lcn {
    syntax: '<integer>';
    inherits: false;
    initial-value: 0;
}
.lc-stat {
    position: absolute;
    left: 50%;
    bottom: 8%;
    transform: translateX(-50%);
    display: flex;
    align-items: baseline;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(12, 10, 10, 0.75);
    border: 1px solid var(--coral-dim);
    opacity: 0;
    animation: lc-stat-in 9.5s ease-out infinite;
}
@keyframes lc-stat-in {
    0%, 60%  { opacity: 0; transform: translateX(-50%) translateY(4px); }
    66%, 94% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100%     { opacity: 0; }
}
.lc-stat__num { font-size: 11px; font-weight: 700; color: var(--coral); }
.lc-stat__label { font-size: 5.5px; letter-spacing: 0.1em; color: var(--ink2); }
.lc-stat__count {
    --lcn: 0;
    counter-reset: lcn var(--lcn);
    animation: lc-count 9.5s ease-out infinite;
}
.lc-stat__count::before { content: counter(lcn); }
@keyframes lc-count {
    0%, 66%  { --lcn: 0; }
    82%, 94% { --lcn: 14; }
    100%     { --lcn: 0; }
}

.lc-vig { position: absolute; inset: 0; z-index: 6; pointer-events: none; box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55); }

/* Reduced motion: pin the finished state — booked, stat visible */
@media (prefers-reduced-motion: reduce) {
    .lc * { animation: none !important; }
    .lc-callbar { top: 6%; opacity: 1; }
    .lc-status__dot { background: var(--grn); box-shadow: 0 0 6px var(--grn); }
    .lc-status__label { opacity: 0; }
    .lc-status__label.l3 { opacity: 1; }
    .lc-bubble.out, .lc-bubble.in { opacity: 1; transform: none; }
    .lc-typing { opacity: 0; }
    .lc-stat { opacity: 1; transform: translateX(-50%); }
    .lc-stat__count { --lcn: 14; }
}

/* =========================================================
   SERVICES — CINEMA (desktop ≥1101px)
   Class prefix is .svc-cinema to avoid colliding with the
   existing hero/story .cinema (#story-desktop). Presentation
   only — clones .motif--X nodes into stage slots at runtime.
   Visibility is gated by the inline <style> block in index.html.
   ========================================================= */
.svc-cinema {
    position: relative;
    margin: 20px auto 0;
    min-height: clamp(680px, 86vh, 880px);
    border-radius: 22px;
    border: 1px solid var(--glass-border);
    background:
        radial-gradient(120% 80% at 70% 10%, rgba(255,181,71,0.06), transparent 60%),
        radial-gradient(140% 90% at 10% 100%, rgba(108,242,255,0.05), transparent 60%),
        linear-gradient(180deg, #0c0c12, #07070b);
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.02);
}

/* Top bar — fake terminal */
.svc-cinema__bar {
    position: absolute; top: 0; left: 0; right: 0; height: 46px;
    display: flex; align-items: center; gap: 14px; padding: 0 18px;
    background: linear-gradient(180deg, rgba(8,8,12,0.9), rgba(8,8,12,0.45));
    border-bottom: 1px solid var(--line); z-index: 6;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.svc-cinema__dots { display: flex; gap: 6px; flex-shrink: 0; }
.svc-cinema__dots i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.svc-cinema__dots i:nth-child(1) { background: #ff5f57; }
.svc-cinema__dots i:nth-child(2) { background: #febc2e; }
.svc-cinema__dots i:nth-child(3) { background: #28c840; }
.svc-cinema__term {
    flex: 1;
    display: flex; align-items: center; gap: 8px;
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0,0,0,0.45);
    border: 1px solid var(--line);
    min-width: 0; max-width: 560px;
    color: var(--ink-1);
}
.svc-cinema__prompt { color: var(--amber); }
.svc-cinema__sep { color: var(--ink-3); }
.svc-cinema__cmd { color: var(--ink-0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; }
.svc-cinema__caret {
    display: inline-block; width: 2px; height: 12px; background: var(--ice);
    margin-left: 3px; vertical-align: middle;
    animation: svcCinemaCaret 0.6s steps(1) infinite;
}
@keyframes svcCinemaCaret { 50% { opacity: 0; } }
.svc-cinema__chip {
    font-size: 10px; letter-spacing: 0.14em;
    padding: 5px 11px; border-radius: 999px;
    color: var(--ink-1);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
    transition: color 400ms var(--ease-out), background 400ms var(--ease-out), border-color 400ms var(--ease-out);
    white-space: nowrap; flex-shrink: 0;
}

/* Stage frame */
.svc-cinema__stage {
    position: absolute;
    top: 46px;
    right: 280px;
    bottom: 92px;
    left: 24px;
    border-radius: 14px;
    overflow: hidden;
    background: #050507;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), inset 0 0 80px rgba(0,0,0,0.55);
}
.svc-cinema__slot {
    position: absolute; inset: 0;
    opacity: 0;
    transform: scale(1.035);
    transition: opacity 600ms var(--ease-out), transform 700ms cubic-bezier(0.22, 1.2, 0.36, 1);
    pointer-events: none;
}
.svc-cinema__slot.is-on { opacity: 1; transform: scale(1); pointer-events: auto; }
/* The cloned .motif--X fills its slot — strip the small-card frame */
.svc-cinema__slot > .motif {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    transform: none !important;
}

/* Meta panel — docks right */
.svc-cinema__meta {
    position: absolute; top: 46px; right: 0; bottom: 92px; width: 256px;
    padding: 32px 24px;
    display: flex; flex-direction: column; gap: 14px;
    border-left: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(10,10,16,0.42), rgba(10,10,16,0.75));
    z-index: 4;
}
.svc-cinema__idx { font-size: 11px; letter-spacing: 0.22em; color: var(--amber); transition: color 400ms var(--ease-out); }
.svc-cinema__name {
    font-size: 28px; line-height: 1.05; font-weight: 500;
    color: var(--ink-0); letter-spacing: -0.01em;
    min-height: 60px;
}
.svc-cinema__desc { font-size: 13px; line-height: 1.55; color: var(--ink-2); flex: 1; }
.svc-cinema__cta {
    display: inline-flex; align-items: center; gap: 8px;
    align-self: flex-start;
    font-size: 11px; letter-spacing: 0.16em;
    color: var(--ink-0);
    padding: 11px 16px; border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.04);
    text-decoration: none;
    transition: background 200ms var(--ease-soft), border-color 200ms var(--ease-soft), transform 200ms var(--ease-soft), color 200ms var(--ease-soft);
}
.svc-cinema__cta:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.22); transform: translateY(-1px); }
.svc-cinema__cta:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

/* Nav strip — bottom */
.svc-cinema__nav {
    position: absolute; left: 24px; right: 24px; bottom: 18px; height: 64px;
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
    z-index: 4;
}
.svc-cinema__tile {
    position: relative; display: flex; flex-direction: column; justify-content: space-between;
    gap: 6px;
    padding: 11px 13px 13px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.02);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    cursor: pointer; overflow: hidden;
    color: var(--ink-1);
    text-align: left;
    transition: border-color 250ms var(--ease-out), background 250ms var(--ease-out), transform 200ms var(--ease-soft);
}
.svc-cinema__tile:hover { background: rgba(255,255,255,0.05); transform: translateY(-1px); }
.svc-cinema__tile:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.svc-cinema__tile__idx { font-size: 9px; letter-spacing: 0.24em; color: var(--ink-3); transition: color 250ms var(--ease-out); }
.svc-cinema__tile__name { font-size: 12px; letter-spacing: 0.04em; color: var(--ink-1); transition: color 250ms var(--ease-out); }
.svc-cinema__tile.is-on {
    border-color: var(--c, var(--amber));
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 28px -10px var(--c, var(--amber));
}
.svc-cinema__tile.is-on .svc-cinema__tile__idx { color: var(--c, var(--amber)); }
.svc-cinema__tile.is-on .svc-cinema__tile__name { color: var(--ink-0); }
.svc-cinema__tile__bar {
    position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    transform: scaleX(0); transform-origin: left center;
    background: var(--c, var(--amber));
    box-shadow: 0 0 8px var(--c, var(--amber));
    pointer-events: none;
}
.svc-cinema__tile.is-on .svc-cinema__tile__bar {
    transform: scaleX(1);
    transition: transform var(--dwell, 5500ms) linear;
}

/* Cinematic overlays */
.svc-cinema__letter {
    position: absolute; left: 24px; right: 280px; height: 24px; z-index: 5;
    pointer-events: none;
}
.svc-cinema__letter.t { top: 46px;    background: linear-gradient(180deg, rgba(0,0,0,0.55), transparent); }
.svc-cinema__letter.b { bottom: 92px; background: linear-gradient(0deg,   rgba(0,0,0,0.55), transparent); }
.svc-cinema__vignette {
    position: absolute; top: 46px; right: 280px; bottom: 92px; left: 24px;
    z-index: 3; pointer-events: none; border-radius: 14px;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.45);
}
.svc-cinema__grain {
    position: absolute; top: 46px; right: 280px; bottom: 92px; left: 24px;
    z-index: 3; pointer-events: none; border-radius: 14px;
    background-image:
        radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1.5px),
        radial-gradient(rgba(0,0,0,0.4) 1px, transparent 1.5px);
    background-size: 3px 3px, 5px 5px;
    background-position: 0 0, 1px 2px;
    opacity: 0.05; mix-blend-mode: overlay;
}

/* Motif-at-stage-size overrides (surgical, only inside .svc-cinema__stage).
   Originals were tuned for ~440×275 thumbs; bump the key typography. */
.svc-cinema__stage .motif--landing .lf-word.w1 { font-size: 26px; }
.svc-cinema__stage .motif--landing .lf-word.w2 { font-size: 32px; }
.svc-cinema__stage .motif--landing .lf-word.w3 { font-size: 14px; }
.svc-cinema__stage .motif--landing .lf-eyebrow { font-size: 11px; padding: 5px 12px; letter-spacing: 0.2em; }
.svc-cinema__stage .motif--landing .lf-browser { height: 32px; padding: 0 16px; }
.svc-cinema__stage .motif--landing .lf-url      { font-size: 11px; padding: 5px 18px; }
.svc-cinema__stage .motif--landing .lf-viewport { inset: 32px 0 0 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .svc-cinema__slot { transition: opacity 100ms linear, transform 100ms linear; }
    .svc-cinema__caret { animation: none; }
    .svc-cinema__tile.is-on .svc-cinema__tile__bar { transition: none; transform: scaleX(0); }
}

/* Very-wide viewports: let the meta panel breathe a bit */
@media (min-width: 1500px) {
    .svc-cinema__meta    { width: 300px; padding: 36px 28px; }
    .svc-cinema__stage,
    .svc-cinema__vignette,
    .svc-cinema__grain,
    .svc-cinema__letter { right: 324px; }
    .svc-cinema__name    { font-size: 32px; min-height: 68px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .service-card.is-open .service-card__inner {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 16px;
        padding: 18px;
    }
    .service-card.is-open .service-card__preview {
        aspect-ratio: auto;
        width: 100%;
        height: 100%;
        max-height: 60vh;
    }
    .service-card.is-open .service-card__meta {
        align-self: stretch;
        max-height: none;
        overflow: visible;
    }
    .service-card.is-open .service-card__title { font-size: 22px; margin-bottom: 8px; }
    .service-card.is-open .service-card__body { font-size: 13.5px; margin-bottom: 12px; }
}
@media (max-width: 640px) {
    .services { padding: 56px 0 64px; }
    .services__grid { grid-template-columns: 1fr; gap: 14px; }
    .service-card__title { font-size: 20px; }
    .services__close { top: 14px; right: 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-card__inner,
    .service-card__sheen,
    .services[data-expanded="true"] .service-card:not(.is-open) {
        transition-duration: 100ms !important;
    }
    .motif *,
    .motif::before,
    .motif::after {
        animation: none !important;
    }
    .service-card { transform: none; opacity: 1; --reveal: 1; }
}

/* ==========================================================================
   CTA — reservation block
   ========================================================================== */
.cta {
    position: relative;
    padding: 72px 0;
    overflow: hidden;
}

.cta__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(255, 181, 71, 0.18), transparent 60%),
        radial-gradient(ellipse at 30% 0%, rgba(255, 59, 111, 0.08), transparent 50%);
    pointer-events: none;
}

.cta__inner { position: relative; z-index: 1; }

.cta__content {
    max-width: 780px;
    margin: 0 auto;
    padding: 44px 36px;
    text-align: center;
    border-radius: 28px;
}

.cta__title {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 20px;
    color: var(--ink-0);
}

.cta__lede {
    font-size: 15px;
    color: var(--ink-1);
    max-width: 520px;
    margin: 0 auto 24px;
    line-height: 1.65;
}

.cta__form {
    display: flex;
    gap: 8px;
    max-width: 520px;
    margin: 0 auto 16px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
}

.cta__form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0 16px;
    color: var(--ink-0);
    font-family: inherit;
    font-size: 14px;
}

.cta__form input::placeholder { color: var(--ink-3); }

.cta__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--ink-3);
    flex-wrap: wrap;
}

.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
}

.dot--live {
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: pulse 1.6s ease-in-out infinite;
}

@media (max-width: 560px) {
    .cta__content { padding: 40px 24px; }
    .cta__form { flex-direction: column; padding: 12px; }
    .cta__form input { padding: 12px 8px; text-align: center; }
}

/* ==========================================================================
   TESTIMONIALS — Twitter-style stacked cards + marquee rails
   ========================================================================== */
.testify {
    position: relative;
    padding: 60px 0 72px;
    overflow: hidden;
    isolation: isolate;
}

.testify__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 50% 55%, rgba(255, 181, 71, 0.16), transparent 60%),
        radial-gradient(ellipse 40% 30% at 18% 95%, rgba(108, 242, 255, 0.10), transparent 60%),
        radial-gradient(ellipse 40% 30% at 85% 8%, rgba(255, 59, 111, 0.08), transparent 60%);
    z-index: -1;
}

/* ----- Marquee rails (top + bottom) ----- */
.testify__rail {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.testify__rail--top { padding-top: 8px; }
.testify__rail--bot { padding-bottom: 8px; margin-top: 16px; }

.testify__rail-track {
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    padding: 14px 0;
    animation: testifyRailScroll 70s linear infinite;
    will-change: transform;
}

.testify__rail-track--rev {
    animation-duration: 90s;
    animation-direction: reverse;
}

@keyframes testifyRailScroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

.tmini {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border-radius: 999px;
    white-space: nowrap;
    font-size: 13px;
    color: var(--ink-1);
    line-height: 1;
    transition: border-color 280ms var(--ease-out), background 280ms var(--ease-out), transform 280ms var(--ease-out);
}

.tmini:hover {
    border-color: rgba(255, 181, 71, 0.45);
    background: rgba(255, 181, 71, 0.06);
    transform: translateY(-1px);
}

.tmini__q { color: var(--ink-0); font-weight: 400; }
.tmini__h { color: var(--ink-3); font-size: 11px; letter-spacing: 0.04em; }

/* ----- Heading ----- */
.testify__inner { position: relative; z-index: 2; }

.testify__head {
    text-align: center;
    margin: 42px auto 40px;
    max-width: 760px;
}

.testify__title {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: clamp(40px, 5.4vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 16px 0 18px;
    color: var(--ink-0);
}

.testify__lede {
    color: var(--ink-1);
    font-size: 15.5px;
    line-height: 1.65;
    margin: 0 auto;
    max-width: 540px;
}

/* ----- Stage / stack ----- */
.testify__stage {
    position: relative;
    display: grid;
    place-items: center;
    margin-top: 40px;
    min-height: 460px;
    perspective: 1600px;
    perspective-origin: 50% 40%;
}

.testify__stack {
    position: relative;
    display: grid;
    grid-template-areas: "stack";
    place-items: center;
    width: 380px;
    height: 240px;
    transform-style: preserve-3d;
}

@media (min-width: 720px) {
    .testify__stack { width: 420px; height: 250px; }
}

/* ----- Individual card ----- */
.ttest {
    grid-area: stack;
    --x: 0px;
    --y: 0px;
    --rot: 0deg;
    --skew: -8deg;
    --extra-x: 0px;
    --extra-y: 0px;
    --extra-rot: 0deg;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --drag-x: 0px;
    --drag-y: 0px;
    --drag-r: 0deg;
    --float-x: 0px;
    --float-y: 0px;
    --pop: 1;
    --depth: 0px;
    width: 380px;
    transform-style: preserve-3d;
    transform-origin: 50% 60%;
    will-change: transform;
    cursor: grab;
    outline: none;
    transition:
        transform 620ms cubic-bezier(0.18, 1, 0.28, 1),
        z-index 0ms 100ms;
    transform:
        translate3d(
            calc(var(--x) + var(--extra-x) + var(--drag-x) + var(--float-x)),
            calc(var(--y) + var(--extra-y) + var(--drag-y) + var(--float-y)),
            var(--depth)
        )
        rotate(calc(var(--rot) + var(--extra-rot) + var(--drag-r)))
        skewY(var(--skew))
        rotateX(var(--tilt-x))
        rotateY(var(--tilt-y))
        scale(var(--pop));
}

.ttest.is-dragging {
    transition: none;
    cursor: grabbing;
    z-index: 9999 !important;
}

.ttest.is-flying {
    transition: transform 520ms cubic-bezier(0.5, 0, 0.75, 0);
    pointer-events: none;
}

@media (min-width: 720px) {
    .ttest { width: 420px; }
}

/* Default stacking offsets — back to front */
.ttest[data-i="0"] { --x: -88px; --y: -36px; --rot: -3.2deg; z-index: 1; }
.ttest[data-i="1"] { --x: -44px; --y: -18px; --rot: -1.6deg; z-index: 2; }
.ttest[data-i="2"] { --x:   0px; --y:   0px; --rot:    0deg; z-index: 3; }
.ttest[data-i="3"] { --x:  44px; --y:  18px; --rot:  1.6deg; z-index: 4; }
.ttest[data-i="4"] { --x:  88px; --y:  36px; --rot:  3.2deg; z-index: 5; }

/* When a stack has a focused card, pop it on top */
.ttest.is-focus {
    z-index: 100 !important;
    --pop: 1.04;
}

.ttest__card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 200px;
    padding: 16px 18px 14px;
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(28, 28, 38, 0.92) 0%, rgba(12, 12, 17, 0.88) 100%);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow:
        0 30px 80px -28px rgba(0, 0, 0, 0.7),
        0 8px 24px -10px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition:
        border-color 360ms var(--ease-out),
        background 360ms var(--ease-out),
        box-shadow 360ms var(--ease-out);
}

@media (min-width: 720px) {
    .ttest__card { min-height: 220px; padding: 18px 22px 16px; }
}

.ttest.is-focus .ttest__card {
    border-color: rgba(255, 181, 71, 0.42);
    background:
        linear-gradient(180deg, rgba(36, 28, 18, 0.94) 0%, rgba(14, 14, 20, 0.92) 100%);
    box-shadow:
        0 40px 120px -28px rgba(255, 181, 71, 0.25),
        0 18px 50px -16px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Glow ring (sits behind card via blur halo) */
.ttest__glow {
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 420ms var(--ease-out);
    background:
        conic-gradient(
            from 220deg at 50% 50%,
            rgba(255, 181, 71, 0.55) 0deg,
            rgba(255, 59, 111, 0.32) 90deg,
            rgba(108, 242, 255, 0.45) 200deg,
            rgba(255, 181, 71, 0.55) 360deg
        );
    filter: blur(18px);
    z-index: -1;
}

.ttest.is-focus .ttest__glow {
    opacity: 0.85;
    animation: ttestGlowSpin 7s linear infinite;
}

@keyframes ttestGlowSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Sheen swipe on focus */
.ttest__sheen {
    position: absolute;
    top: -50%;
    left: -60%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 45%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0.06) 55%,
        transparent 100%
    );
    pointer-events: none;
    transform: translateX(-100%) skewX(-12deg);
    transition: transform 1100ms var(--ease-out);
}

.ttest.is-focus .ttest__sheen {
    transform: translateX(360%) skewX(-12deg);
}

/* Header row: avatar + name + X icon */
.ttest__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.ttest__av {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 1.5px;
    background: linear-gradient(135deg, var(--amber) 0%, var(--neon) 50%, var(--ice) 100%);
    overflow: hidden;
    display: block;
    box-shadow: 0 4px 12px -4px rgba(255, 181, 71, 0.4);
}

.ttest__av img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    background: var(--bg-1);
    object-fit: cover;
}

.ttest__who {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.ttest__name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-0);
    letter-spacing: -0.01em;
}

/* Role / company line */
.ttest__role {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--ink-2);
    letter-spacing: 0.005em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Big decorative quotation mark in the upper-right corner */
.ttest__quotemark {
    position: absolute;
    top: 2px;
    right: 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 96px;
    line-height: 0.7;
    color: var(--amber);
    opacity: 0.14;
    pointer-events: none;
    transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out), color 420ms var(--ease-out);
    transform-origin: top right;
}

.ttest.is-focus .ttest__quotemark {
    opacity: 0.38;
    transform: scale(1.08) rotate(-4deg);
}

/* Review body */
.ttest__text {
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--ink-0);
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.005em;
    position: relative;
    z-index: 1;
}

@media (min-width: 720px) {
    .ttest__text { font-size: 15px; }
}

/* Footer: stars + date */
.ttest__foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--ink-2);
}

.ttest__date {
    color: var(--ink-3);
    font-size: 11px;
    letter-spacing: 0.04em;
}

/* Star rating */
.ttest__stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.ttest__star {
    width: 14px;
    height: 14px;
    color: var(--amber);
    opacity: 0.62;
    transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out), filter 300ms var(--ease-out);
}

.ttest.is-focus .ttest__star {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(255, 181, 71, 0.55));
    animation: ttestStarWave 700ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.ttest.is-focus .ttest__star:nth-child(1) { animation-delay:   0ms; }
.ttest.is-focus .ttest__star:nth-child(2) { animation-delay:  60ms; }
.ttest.is-focus .ttest__star:nth-child(3) { animation-delay: 120ms; }
.ttest.is-focus .ttest__star:nth-child(4) { animation-delay: 180ms; }
.ttest.is-focus .ttest__star:nth-child(5) { animation-delay: 240ms; }

@keyframes ttestStarWave {
    0%   { transform: translateY(0) scale(1); }
    40%  { transform: translateY(-4px) scale(1.25); }
    100% { transform: translateY(0) scale(1); }
}

/* Hint pill below stack */
.testify__hint {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 10px;
    color: var(--ink-3);
    letter-spacing: 0.18em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.testify__hint-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 8px var(--amber);
    animation: pulse 1.6s ease-in-out infinite;
}

/* Mobile: shrink stack offsets */
@media (max-width: 560px) {
    .testify { padding: 40px 0 56px; }
    .testify__head { margin: 28px auto 22px; }
    .testify__stage { min-height: 380px; margin-top: 22px; }
    .testify__stack { width: 280px; height: 220px; }
    .ttest { width: 280px; }
    .ttest[data-i="0"] { --x: -52px; --y: -22px; }
    .ttest[data-i="1"] { --x: -26px; --y: -11px; }
    .ttest[data-i="3"] { --x:  26px; --y:  11px; }
    .ttest[data-i="4"] { --x:  52px; --y:  22px; }
    .ttest__card { min-height: 180px; padding: 14px 15px; }
    .ttest__text { font-size: 13.5px; -webkit-line-clamp: 4; }
    .ttest__av { width: 38px; height: 38px; }
    .ttest__name { font-size: 14px; }
    .ttest__role { font-size: 11px; }
    .ttest__star { width: 12px; height: 12px; }
    .ttest__quotemark { font-size: 72px; }
    .tmini { padding: 9px 14px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .testify__rail-track { animation: none; }
    .ttest, .ttest__glow, .ttest__sheen, .ttest__star, .ttest__quotemark { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    padding: 48px 0 22px;
    border-top: 1px solid var(--line);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 44px;
    align-items: start;
    margin-bottom: 44px;
}

.footer__tag {
    margin-top: 16px;
    color: var(--ink-2);
    font-size: 13px;
    max-width: 280px;
}

.footer__cols {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px 28px;
}

.footer__cols a {
    display: block;
    padding: 6px 0;
    color: var(--ink-1);
    font-size: 14px;
    white-space: nowrap;
}

.footer__cols a:hover {
    color: var(--ink-0);
}

.footer__base {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--ink-3);
}

@media (max-width: 768px) {
    .footer__inner { grid-template-columns: 1fr; gap: 24px; }
    .footer__cols { justify-content: flex-start; }
    .footer__base { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ==========================================================================
   PROJECTS — 3D stellar card gallery
   Outer section = breathing room (heading + lede sit here).
   Inner stage   = the black interactive canvas.
     [data-expanded="false"] — compact ~75vh preview, scroll passes through
     [data-expanded="true"]  — immersive 100svh, full controls (incl. zoom)
   ========================================================================== */
.projects {
    position: relative;
    padding: clamp(52px, 7.5vw, 108px) 0;
    background: var(--bg-0);
}

/* Soft gradient wash above and below the stage for a cinematic fade */
.projects::before,
.projects::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 96px;
    pointer-events: none;
    z-index: 2;
}
.projects::before {
    top: 0;
    background: linear-gradient(180deg, var(--bg-0) 0%, rgba(7, 7, 10, 0) 100%);
}
.projects::after {
    bottom: 0;
    background: linear-gradient(0deg, var(--bg-0) 0%, rgba(7, 7, 10, 0) 100%);
}

/* -------- Header (above the stage, inside the top padding) -------- */
.projects__header {
    text-align: center;
    margin-bottom: clamp(28px, 4vw, 52px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.projects__header .eyebrow {
    margin-bottom: 0;
}

.projects__title {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: clamp(34px, 4.4vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink-0);
    margin: 0;
    text-wrap: balance;
}

.projects__lede {
    max-width: 540px;
    margin: 0;
    font-size: clamp(14px, 1.2vw, 16px);
    color: var(--ink-2);
    line-height: 1.65;
}

/* -------- Stage (the interactive canvas) -------- */
.projects__stage {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 520px;
    max-height: 780px;
    background: #000;
    overflow: hidden;
    isolation: isolate;
    box-shadow:
        inset 0 120px 160px -80px rgba(0, 0, 0, 0.9),
        inset 0 -120px 160px -80px rgba(0, 0, 0, 0.9),
        0 40px 120px -40px rgba(0, 0, 0, 0.6);
    transition:
        height 600ms var(--ease-out),
        min-height 600ms var(--ease-out),
        max-height 600ms var(--ease-out),
        border-radius 600ms var(--ease-out),
        margin 600ms var(--ease-out);
    border-radius: 28px;
    margin: 0 clamp(16px, 3vw, 40px);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.projects__stage[data-expanded="true"] {
    height: 100svh;
    min-height: 640px;
    max-height: none;
    border-radius: 0;
    margin: 0;
    border-color: transparent;
}

#galleryCanvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
    z-index: 1;
    touch-action: none; /* let OrbitControls handle gestures */
    cursor: grab;
}
#galleryCanvas:active { cursor: grabbing; }

.projects__hint {
    position: absolute;
    left: 50%;
    bottom: clamp(18px, 3vw, 36px);
    transform: translateX(-50%);
    z-index: 3;
    font-size: clamp(11px, 1.1vw, 13px);
    font-weight: 600;
    letter-spacing: 0.14em;
    color: rgba(232, 250, 255, 0.95);
    margin: 0;
    padding: 10px 18px;
    background: linear-gradient(165deg, rgba(12, 22, 28, 0.88), rgba(8, 14, 20, 0.78));
    border: 1px solid rgba(111, 255, 168, 0.42);
    border-radius: 999px;
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    white-space: nowrap;
    pointer-events: none;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(108, 242, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 8px 32px -8px rgba(0, 0, 0, 0.65),
        0 0 28px -6px rgba(108, 242, 255, 0.2);
}

/* Swap hint text between states */
.projects__stage[data-expanded="false"] .projects__hint--expanded,
.projects__stage[data-expanded="true"]  .projects__hint--collapsed {
    display: none;
}

/* -------- Expand / Collapse toggle -------- */
.projects__toggle {
    position: absolute;
    top: 50%;
    right: clamp(16px, 2.5vw, 28px);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(111, 255, 168, 0.55);
    background: linear-gradient(165deg, rgba(39, 201, 107, 0.35), rgba(12, 40, 48, 0.82));
    color: #f4feff;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    transform: translateY(-50%);
    text-shadow: 0 0 18px rgba(108, 242, 255, 0.35);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 10px 36px -12px rgba(0, 0, 0, 0.55),
        0 0 32px -8px rgba(108, 242, 255, 0.28);
    transition:
        background 200ms var(--ease-soft),
        border-color 200ms var(--ease-soft),
        transform 160ms var(--ease-soft),
        color 200ms var(--ease-soft),
        box-shadow 200ms var(--ease-soft);
}

.projects__toggle:hover {
    background: linear-gradient(165deg, rgba(56, 200, 220, 0.45), rgba(14, 52, 60, 0.9));
    border-color: rgba(200, 248, 255, 0.75);
    color: #ffffff;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 12px 40px -10px rgba(0, 0, 0, 0.5),
        0 0 40px -4px rgba(111, 255, 168, 0.4);
}
.projects__toggle:active {
    transform: translateY(-50%) scale(0.97);
}
.projects__toggle:focus-visible {
    outline: 2px solid var(--ice);
    outline-offset: 3px;
}

.projects__toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.projects__stage[data-expanded="false"] .projects__toggle-label--collapse,
.projects__stage[data-expanded="true"]  .projects__toggle-label--expand {
    display: none;
}

/* Expanded: collapse control moves to top-left (clear of the canvas focal area) */
.projects__stage[data-expanded="true"] .projects__toggle {
    top: clamp(18px, 3vw, 32px);
    right: auto;
    left: clamp(18px, 3vw, 32px);
    transform: none;
    min-height: 38px;
    padding: 0 16px;
    font-size: 11px;
    font-weight: 700;
}

.projects__stage[data-expanded="true"] .projects__toggle:active {
    transform: scale(0.97);
}

.projects__loading {
    position: absolute;
    bottom: clamp(16px, 3vw, 32px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--ink-2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    transition: opacity 600ms var(--ease-soft);
    pointer-events: none;
}
.projects__loading[data-hidden="true"] { opacity: 0; }

@media (max-width: 640px) {
    .projects__stage {
        height: 58vh;
        min-height: 360px;
        max-height: 520px;
        margin: 0 12px;
        border-radius: 18px;
    }
    .projects__toggle {
        min-height: 38px;
        padding: 0 14px;
        font-size: 10px;
        letter-spacing: 0.1em;
    }
    .projects__stage[data-expanded="true"] .projects__toggle {
        transform: none;
    }
    .projects__hint {
        font-size: 10px;
        letter-spacing: 0.12em;
        padding: 8px 14px;
        white-space: normal;
        text-align: center;
        max-width: min(340px, calc(100% - 100px));
    }
}

/* ==========================================================================
   Project modal (tilt card)
   ========================================================================== */
.pmodal {
    position: fixed;
    inset: 0;
    /* Above .nav (100), loaders, and page overlays so modal actions receive clicks */
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.pmodal[data-open="true"] {
    display: flex;
    animation: pmodal-in 240ms var(--ease-out);
}

@keyframes pmodal-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.pmodal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pmodal__wrap {
    position: relative;
    width: 100%;
    max-width: 440px;
    z-index: 1;
    pointer-events: auto;
}

.pmodal__close {
    position: absolute;
    top: -48px;
    right: -4px;
    background: transparent;
    border: none;
    padding: 4px;
    color: #fff;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 200ms var(--ease-soft), transform 200ms var(--ease-soft);
    z-index: 2;
}
.pmodal__close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.pmodal__tilt {
    perspective: 1000px;
    width: 100%;
}

.pmodal__card {
    position: relative;
    width: 100%;
    background: #1F2121;
    border-radius: 16px;
    padding: 16px;
    transform-style: preserve-3d;
    transition: transform 500ms var(--ease-out);
    box-shadow:
        rgba(0, 0, 0, 0.01) 0 520px 146px 0,
        rgba(0, 0, 0, 0.04) 0 333px 133px 0,
        rgba(0, 0, 0, 0.26) 0 83px 83px 0,
        rgba(0, 0, 0, 0.29) 0 21px 46px 0;
}

.pmodal__imgwrap {
    position: relative;
    width: 100%;
    /* Match gallery card image viewport (16:10) — wide screenshot frame, edge-to-edge */
    aspect-ratio: 16 / 10;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    background: #0a0a0f;
}
.pmodal__imgwrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pmodal__title {
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
}

.pmodal__actions {
    display: flex;
    gap: 8px;
}

.pmodal__btn,
.pmodal__heart {
    border: none;
    height: 38px;
    background: #31b8c6;
    color: #000;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: opacity 300ms var(--ease-out), transform 120ms var(--ease-out);
    text-decoration: none;
    box-sizing: border-box;
}
.pmodal__btn { flex: 1; }
.pmodal__heart { width: 38px; }

.pmodal__btn:disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}

.pmodal__btn:not(:disabled) {
    pointer-events: auto;
    cursor: pointer;
}

.pmodal__btn:hover,
.pmodal__heart:hover { opacity: 0.85; }
.pmodal__btn:active,
.pmodal__heart:active { transform: scale(0.97); }
.pmodal__btn:disabled:hover { opacity: 0.45; }
.pmodal__btn:disabled:active { transform: none; }

.pmodal__heart[aria-pressed="true"] svg {
    fill: currentColor;
}

/* Lock body scroll when modal open */
body.pmodal-open {
    overflow: hidden;
}

/* ==========================================================================
   CONTACT — Book-a-call section (3D scene + interactive form)
   ========================================================================== */
.contact {
    position: relative;
    padding: 86px 0 96px;
    overflow: hidden;
    background: var(--bg-0);
    isolation: isolate;
}

/* Ambient background layers */
.contact__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.contact__grid {
    position: absolute;
    inset: -1px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 80%);
    opacity: 0.7;
}

.contact__glow {
    position: absolute;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.55;
}

.contact__glow--amber {
    top: -220px;
    left: -180px;
    background: radial-gradient(circle, rgba(255, 181, 71, 0.3), transparent 70%);
}

.contact__glow--ice {
    bottom: -260px;
    right: -200px;
    background: radial-gradient(circle, rgba(108, 242, 255, 0.25), transparent 70%);
}

.contact__inner {
    position: relative;
    z-index: 2;
}

/* Header block */
.contact__head {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.contact__head .eyebrow {
    margin-bottom: 20px;
}

.contact__title {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: clamp(36px, 4.8vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.03em;
    margin: 0 0 22px;
    color: var(--ink-0);
}

.contact__title .grad {
    background: linear-gradient(180deg, #fff 0%, var(--amber) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 22px rgba(255, 181, 71, 0.35));
}

.contact__lede {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-2);
    max-width: 620px;
    margin: 0 auto;
}

/* Stage: 3D scene + form side-by-side */
.contact__stage {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 36px;
    align-items: stretch;
}

@media (max-width: 980px) {
    .contact__stage {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

/* ==========================================================================
   3D scene (left side)
   ========================================================================== */
.contact__scene {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 560px;
    background:
        radial-gradient(ellipse at 50% 80%, rgba(255, 181, 71, 0.08), transparent 55%),
        radial-gradient(ellipse at 50% 0%, rgba(108, 242, 255, 0.05), transparent 55%),
        linear-gradient(180deg, #0a0a10 0%, #05050a 100%);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 40px 80px -30px rgba(0, 0, 0, 0.9);
}

/* Animated studio scene (3D dev at desk) */
.contact__scene--studio {
    cursor: crosshair;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(255, 181, 71, 0.10), transparent 60%),
        radial-gradient(ellipse at 80% 90%, rgba(255, 59, 111, 0.06), transparent 55%),
        radial-gradient(ellipse at 20% 90%, rgba(108, 242, 255, 0.05), transparent 55%),
        linear-gradient(180deg, #0a0a10 0%, #04040a 100%);
}

/* Soft horizon line behind the desk */
.contact__scene--studio::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 58%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06) 40%, rgba(255, 255, 255, 0.06) 60%, transparent);
    pointer-events: none;
    z-index: 1;
}

/* Faint grid floor (CSS perspective; pure decoration behind canvas) */
.contact__scene--studio::after {
    content: "";
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: -10%;
    height: 55%;
    background-image:
        linear-gradient(rgba(255, 181, 71, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 181, 71, 0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    transform: perspective(700px) rotateX(62deg);
    transform-origin: center top;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.55;
}

#contactCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Corner HUD readouts */
.contact__hud {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    background: rgba(7, 7, 10, 0.55);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--ink-1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-transform: uppercase;
    pointer-events: none;
}

.contact__hud--tl { top: 18px; left: 18px; }
.contact__hud--tr { top: 18px; right: 18px; }
.contact__hud--bl { bottom: 18px; left: 18px; flex-direction: column; align-items: flex-start; gap: 2px; }
.contact__hud--br { bottom: 18px; right: 18px; flex-direction: column; align-items: flex-end; gap: 2px; }

.contact__hud-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 8px var(--amber);
    animation: cpulse 1.6s ease-in-out infinite;
}

@keyframes cpulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

.contact__hud-loc {
    padding-left: 8px;
    margin-left: 4px;
    border-left: 1px solid var(--glass-border);
    color: var(--ink-2);
}

.contact__hud-label {
    font-size: 9px;
    color: var(--ink-3);
}

.contact__hud-value {
    font-size: 11px;
    color: var(--ink-0);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact__scene-hint {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--ink-2);
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 360ms var(--ease-soft), transform 360ms var(--ease-soft);
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(7, 7, 10, 0.55);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact__scene-hint__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 10px var(--amber);
    animation: cpulse 1.4s ease-in-out infinite;
}

.contact__scene[data-state="playing"] .contact__scene-hint,
.contact__scene[data-state="over"] .contact__scene-hint {
    opacity: 0;
    transform: translate(-50%, 8px);
}

/* ==========================================================================
   Studio scene HUD (live indicator / faux browser chrome / shipping ticker / nudge)
   ========================================================================== */
.shud {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    line-height: 1;
    transition: border-color 220ms var(--ease-soft), background 220ms var(--ease-soft), transform 220ms var(--ease-out);
}

/* LIVE badge */
.shud--live {
    background: rgba(7, 7, 10, 0.6);
    border-color: rgba(255, 181, 71, 0.28);
}

.shud__pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 8px rgba(255, 181, 71, 0.9), 0 0 14px rgba(255, 181, 71, 0.45);
    animation: spulse 1.5s ease-in-out infinite;
}

@keyframes spulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.55; transform: scale(0.78); }
}

.shud__label {
    font-size: 9.5px;
    letter-spacing: 0.18em;
    color: var(--ink-1);
}

/* Faux browser-window chrome (top-right) */
.shud--window {
    padding: 6px 11px 6px 9px;
    background: rgba(7, 7, 10, 0.7);
}

.shud__dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.shud__dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: inline-block;
}

.shud__dots i:nth-child(1) { background: rgba(255, 95, 86, 0.7); }
.shud__dots i:nth-child(2) { background: rgba(255, 189, 46, 0.7); }
.shud__dots i:nth-child(3) { background: rgba(39, 201, 63, 0.7); }

.shud__url {
    font-size: 10px;
    color: var(--ink-1);
    letter-spacing: 0.04em;
    padding-left: 8px;
    margin-left: 4px;
    border-left: 1px solid var(--glass-border);
    text-transform: none;
}

.shud__proto { color: var(--ink-3); }

/* Shipping ticker (bottom-left) */
.shud--stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 9px 12px;
    background: rgba(7, 7, 10, 0.7);
}

.shud__stat-label {
    font-size: 9px;
    color: var(--ink-3);
    letter-spacing: 0.18em;
}

.shud__stat-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--ink-0);
    letter-spacing: 0.02em;
    text-transform: none;
}

.shud__stat-line {
    min-width: 132px;
    display: inline-block;
    color: var(--amber);
    text-shadow: 0 0 10px rgba(255, 181, 71, 0.35);
    font-variant-numeric: tabular-nums;
}

.shud__stat-cursor {
    display: inline-block;
    width: 7px;
    height: 12px;
    background: var(--amber);
    box-shadow: 0 0 6px rgba(255, 181, 71, 0.65);
    animation: scursor 1s steps(2, end) infinite;
    transform: translateY(1px);
}

@keyframes scursor {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Mouse-nudge chip (bottom-right) */
.shud--nudge {
    flex-direction: row;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    background: rgba(7, 7, 10, 0.6);
}

.shud__nudge-icon {
    display: inline-flex;
    color: var(--amber);
    opacity: 0.85;
}

.shud__nudge-text {
    font-size: 9.5px;
    color: var(--ink-2);
    letter-spacing: 0.16em;
}

/* Once user has interacted, fade the nudge */
.contact__scene--studio[data-state="active"] .shud--nudge {
    opacity: 0.35;
}

/* Invalid-field shake (used on submit validation) */
.cfield.is-shake {
    animation: cshake 420ms var(--ease-out);
}

@keyframes cshake {
    0%, 100% { transform: translateX(0); }
    15%      { transform: translateX(-6px); }
    30%      { transform: translateX(5px); }
    45%      { transform: translateX(-3px); }
    60%      { transform: translateX(3px); }
    80%      { transform: translateX(-1px); }
}

/* ==========================================================================
   Form card (right side)
   ========================================================================== */
.contact__form {
    position: relative;
    padding: 32px 32px 28px;
    border-radius: 24px;
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 40px 80px -30px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
}

@media (max-width: 520px) {
    .contact__form { padding: 22px 20px 20px; border-radius: 20px; }
}

.contact__form-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 4px;
}

.contact__form-kicker {
    font-size: 10px;
    color: var(--amber);
    letter-spacing: 0.18em;
}

.contact__form-title {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink-0);
    margin: 2px 0 2px;
}

.contact__form-sub {
    font-size: 13px;
    color: var(--ink-2);
    margin: 0;
}

.contact__form-error {
    display: none;
    font-size: 13px;
    color: #ff6b8a;
    margin: 8px 0 0;
    line-height: 1.4;
}
.contact__form-error:not([hidden]) {
    display: block;
}

/* Generic field */
.cfield {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cfield__label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--ink-2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cfield__hint {
    font-size: 9.5px;
    color: var(--ink-3);
    letter-spacing: 0.06em;
}

.cfield-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 520px) {
    .cfield-row { grid-template-columns: 1fr; }
}

/* Inputs */
.cinput-wrap {
    position: relative;
}

.cinput {
    width: 100%;
    padding: 13px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--ink-0);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    transition:
        background 220ms var(--ease-soft),
        border-color 220ms var(--ease-soft);
}

.cinput::placeholder { color: var(--ink-3); }

.cinput:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line-strong);
}

.cinput:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 181, 71, 0.45);
}

.cinput__focus {
    position: absolute;
    inset: -1px;
    border-radius: 13px;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(circle at var(--fx, 50%) var(--fy, 50%),
                        rgba(255, 181, 71, 0.28),
                        transparent 60%);
    transition: opacity 240ms var(--ease-soft);
    mix-blend-mode: screen;
}

.cinput:focus ~ .cinput__focus,
.cinput-wrap:hover .cinput__focus {
    opacity: 1;
}

.cinput--area {
    resize: none;
    min-height: 86px;
}

.cinput-wrap--area { display: block; }

/* ==========================================================================
   Custom dropdown
   ========================================================================== */
.cdrop {
    position: relative;
}

.cdrop__trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--ink-0);
    text-align: left;
    transition:
        background 220ms var(--ease-soft),
        border-color 220ms var(--ease-soft);
}

.cdrop__trigger:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--line-strong);
}

.cdrop.is-open .cdrop__trigger {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 181, 71, 0.45);
}

.cdrop__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(255, 181, 71, 0.2), rgba(255, 181, 71, 0.05));
    border: 1px solid rgba(255, 181, 71, 0.28);
    color: var(--amber);
    flex-shrink: 0;
    transition: transform 400ms var(--ease-out), background 260ms var(--ease-soft);
}

.cdrop.is-open .cdrop__icon {
    transform: rotate(-8deg) scale(1.05);
}

.cdrop__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.cdrop__title {
    font-size: 14px;
    color: var(--ink-0);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cdrop__meta {
    font-size: 10px;
    color: var(--ink-3);
    letter-spacing: 0.06em;
}

.cdrop__chev {
    color: var(--ink-2);
    transition: transform 280ms var(--ease-out);
    flex-shrink: 0;
}

.cdrop.is-open .cdrop__chev {
    transform: rotate(180deg);
    color: var(--amber);
}

/* Menu */
.cdrop__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 20;
    padding: 6px;
    background: rgba(14, 14, 18, 0.92);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 24px 60px -20px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top center;
    pointer-events: none;
    transition:
        opacity 200ms var(--ease-soft),
        transform 240ms var(--ease-out);
}

.cdrop.is-open .cdrop__menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.cdrop__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 9px;
    color: var(--ink-1);
    background: transparent;
    text-align: left;
    transition: background 160ms var(--ease-soft), color 160ms var(--ease-soft);
    position: relative;
}

.cdrop__item:hover,
.cdrop__item.is-hover {
    background: rgba(255, 181, 71, 0.08);
    color: var(--ink-0);
}

.cdrop__item.is-active {
    background: rgba(255, 181, 71, 0.12);
    color: var(--ink-0);
}

.cdrop__item.is-active::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--amber);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px var(--amber);
}

.cdrop__item-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--ink-1);
    flex-shrink: 0;
    transition: background 160ms var(--ease-soft), border-color 160ms var(--ease-soft), color 160ms var(--ease-soft);
}

.cdrop__item:hover .cdrop__item-ico,
.cdrop__item.is-hover .cdrop__item-ico,
.cdrop__item.is-active .cdrop__item-ico {
    background: rgba(255, 181, 71, 0.18);
    border-color: rgba(255, 181, 71, 0.4);
    color: var(--amber);
}

.cdrop__item-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.cdrop__item-title {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.3;
}

.cdrop__item-sub {
    font-size: 9.5px;
    color: var(--ink-3);
    letter-spacing: 0.06em;
}

.cdrop__item-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    font-size: 9.5px;
    color: var(--ink-2);
    flex-shrink: 0;
}

/* ==========================================================================
   Footer row: policy + magnetic submit
   ========================================================================== */
.cfield__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px dashed var(--glass-border);
}

.cpolicy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--ink-3);
    letter-spacing: 0.08em;
}

.cpolicy svg { opacity: 0.8; }

/* Magnetic submit button */
.cmagnet {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    min-width: 180px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #d8d8df 100%);
    color: #0a0a10;
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    overflow: hidden;
    will-change: transform;
    transition: box-shadow 260ms var(--ease-soft);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 12px 30px -10px rgba(255, 181, 71, 0.3);
}

.cmagnet:hover {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 0 0 1px rgba(255, 181, 71, 0.3),
        0 20px 44px -12px rgba(255, 181, 71, 0.5);
}

.cmagnet:active .cmagnet__label { transform: scale(0.96); }

.cmagnet__label {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 140ms var(--ease-out);
    pointer-events: none;
}

/* Goo-y hover halo that follows cursor */
.cmagnet__pull {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(
        circle at var(--mx, 50%) var(--my, 50%),
        rgba(255, 181, 71, 0.9),
        rgba(255, 181, 71, 0) 60%
    );
    opacity: 0;
    transition: opacity 240ms var(--ease-soft);
    pointer-events: none;
}

.cmagnet:hover .cmagnet__pull { opacity: 1; }

/* Outer ring that pulses on hover */
.cmagnet__ring {
    position: absolute;
    inset: -8px;
    border-radius: 22px;
    border: 1px solid rgba(255, 181, 71, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms var(--ease-soft), transform 240ms var(--ease-soft);
}

.cmagnet:hover .cmagnet__ring {
    opacity: 1;
    animation: cmagnet-pulse 1.8s ease-in-out infinite;
}

@keyframes cmagnet-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.06); opacity: 0; }
}

.cmagnet.is-loading {
    pointer-events: none;
    color: transparent;
}

.cmagnet.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(10, 10, 16, 0.2);
    border-top-color: #0a0a10;
    animation: cspin 0.8s linear infinite;
    z-index: 3;
}

@keyframes cspin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Success overlay (cinematic)
   ========================================================================== */
.csuccess {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(255, 181, 71, 0.18), transparent 60%),
        linear-gradient(180deg, rgba(14, 14, 18, 0.96), rgba(7, 7, 10, 0.98));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: inherit;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 420ms var(--ease-soft), transform 520ms var(--ease-out);
    text-align: center;
}

.csuccess.is-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.csuccess__ring {
    position: relative;
    width: 92px;
    height: 92px;
    margin-bottom: 6px;
}

.csuccess__ring svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.csuccess__ring-track {
    fill: none;
    stroke: var(--glass-border);
    stroke-width: 2.5;
}

.csuccess__ring-fill {
    fill: none;
    stroke: var(--amber);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 276.46;
    stroke-dashoffset: 276.46;
    filter: drop-shadow(0 0 10px rgba(255, 181, 71, 0.6));
    transition: stroke-dashoffset 900ms var(--ease-out) 120ms;
}

.csuccess.is-visible .csuccess__ring-fill {
    stroke-dashoffset: 0;
}

.csuccess__check {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    color: var(--amber);
    transition: transform 520ms var(--ease-out) 700ms, opacity 320ms var(--ease-soft) 700ms;
    filter: drop-shadow(0 0 8px rgba(255, 181, 71, 0.6));
}

.csuccess.is-visible .csuccess__check {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.csuccess__title {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: clamp(22px, 2.6vw, 30px);
    letter-spacing: -0.02em;
    color: var(--ink-0);
    margin: 8px 0 2px;
}

.csuccess__sub {
    font-size: 11px;
    color: var(--ink-2);
    letter-spacing: 0.08em;
    margin: 0 0 20px;
}

.csuccess__receipt {
    width: min(360px, 100%);
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.csuccess__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--ink-0);
}

.csuccess__row span:first-child {
    font-size: 10px;
    color: var(--ink-3);
    letter-spacing: 0.1em;
}

.csuccess__row--eta {
    padding-top: 10px;
    margin-top: 2px;
    border-top: 1px dashed var(--glass-border);
}

.csuccess__row--eta span:last-child {
    color: var(--amber);
    font-weight: 500;
    text-shadow: 0 0 16px rgba(255, 181, 71, 0.45);
}

.csuccess__note {
    font-size: 10px;
    color: var(--ink-3);
    letter-spacing: 0.08em;
    margin: -6px 0 14px;
}

.csuccess__note span {
    color: var(--ink-0);
    border-bottom: 1px dotted var(--ink-3);
}

.csuccess__reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--ink-1);
    font-size: 11px;
    letter-spacing: 0.08em;
    transition: background 180ms var(--ease-soft), color 180ms var(--ease-soft);
}

.csuccess__reset:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--ink-0);
}

/* ==========================================================================
   Message field (emphasized) + helper tips
   ========================================================================== */
.cfield--message .cinput-wrap--area {
    position: relative;
}

.cfield--message .cinput--area {
    min-height: 148px;
    font-size: 14px;
    line-height: 1.55;
}

.cmsg__tips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 4px;
    font-size: 9.5px;
    color: var(--ink-3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cmsg__tip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cmsg__tip-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--amber);
    opacity: 0.7;
    box-shadow: 0 0 6px rgba(255, 181, 71, 0.5);
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .cinema { height: 100dvh; }
    .cinema__sticky { position: relative; }
}

/* ==========================================================================
   MOBILE OPTIMIZATIONS — phones only (≤ 768px). Desktop is unchanged.
   Background video / canvas behavior is intentionally untouched.
   Only text overlays, headings, services cards and the contact form are
   re-fitted so they feel right on small screens.
   ========================================================================== */
@media (max-width: 768px) {
    /* ---- Caption text overlays on the hero (text-only, video unchanged) ---- */
    .caption { padding: 0 16px; }
    .caption__panel { padding: 18px 16px; }
    .caption__center,
    .caption__center--small,
    .caption__center--ch3,
    .caption__center--final { gap: 14px; }
    .ch-title__main { font-size: clamp(26px, 7.5vw, 40px); line-height: 1.06; }
    .ch-title       { font-size: clamp(24px, 7vw, 36px);   line-height: 1.1;  }
    .ch-title__prefix,
    .ch-title__suffix { font-size: clamp(11px, 2.6vw, 13px); letter-spacing: 0.18em; }
    .ch-meta { display: none; } /* HUD coordinates row feels cramped on small screens */
    .hero__sub { font-size: 14px; line-height: 1.55; }

    /* ---- Generic section spacing ---- */
    .section { padding: 56px 0 60px; }
    .section__head { margin-bottom: 28px; }
    .section__title { font-size: clamp(26px, 6.8vw, 36px); }
    .section__lede  { font-size: 14px; line-height: 1.6; }

    /* ---- Services ---- */
    .services { padding: 48px 0 56px; }
    .services__lede { font-size: 14px; }
    .services__grid { gap: 12px; }
    /* Kill 3D tilt + sheen on touch — they only fire on hover and
       end up baked at random angles after touch. Cards stay flat & readable. */
    .service-card { transform: none !important; opacity: 1 !important; --reveal: 1 !important; }
    .service-card__inner {
        padding: 16px 16px 18px;
        transform: none !important;
        transition: border-color 200ms var(--ease-soft);
    }
    .service-card:hover .service-card__inner,
    .service-card:focus-visible .service-card__inner { transform: none; }
    .service-card__sheen { display: none; }
    .service-card__title { font-size: 19px; }
    .service-card__body  { font-size: 13.5px; line-height: 1.55; }
    /* Hide the OPEN PREVIEW CTA on mobile — previews don't expand here
       (the FLIP overlay is built for desktop). Cards stay readable, no dead button. */
    .service-card__cta { display: none !important; }
    .service-card { cursor: default; }

    /* ---- Contact ---- */
    .contact { padding: 56px 0 64px; }
    .contact__head { margin-bottom: 26px; }
    .contact__title { font-size: clamp(26px, 6.8vw, 38px); margin-bottom: 14px; }
    .contact__lede  { font-size: 14px; line-height: 1.6; }
    .contact__stage { gap: 18px; }
    .contact__scene { min-height: 320px; border-radius: 18px; }
    .contact__hud { display: none; } /* HUD overlays clutter the small canvas */
    .contact__form { padding: 22px 18px 20px; border-radius: 18px; gap: 16px; }
    .contact__form-title { font-size: 19px; }
    .contact__form-sub   { font-size: 12.5px; }
}

/* Even tighter for small phones (< 480px) */
@media (max-width: 480px) {
    .container { width: min(100%, calc(100% - 28px)); }
    .contact__scene { min-height: 260px; }
    .contact__form { padding: 20px 16px 18px; }
}

/* ==========================================================================
   MOBILE HERO — JARVIS-style hero shown above "Things we build".
   Now used at every viewport width (desktop reuses the mobile design as-is
   per product decision — see CLAUDE.md/positioning discussion).
   Self-contained. All selectors scoped under `.mobile-hero`. All keyframes
   prefixed `mh-`. Ambient overlays are `position: absolute` (not fixed)
   so they stay inside the section instead of covering the rest of the page.
   ========================================================================== */
@media screen {

    .mobile-hero {
        display: block;
        position: relative;
        overflow: hidden;
        background: #000;
        color: #e8f5ec;
        font-family: 'Inter', sans-serif;
        /* Clear the fixed nav (top: 18px + ~52px tall ≈ 76px). */
        padding-top: 60px;
        /* Keep the inner column phone-width even on iPad mini etc. */
        max-width: 430px;
        margin: 0 auto;
        min-height: 100dvh;
    }
    .mobile-hero * { box-sizing: border-box; }

    /* ---------- Ambient shader + atmospheric layers ---------- */
    .mobile-hero .mh-shader-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
    .mobile-hero .mh-shader-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0.55; }
    .mobile-hero .mh-vignette {
        position: absolute; inset: 0;
        background: radial-gradient(ellipse 90% 70% at 50% 30%, transparent 30%, rgba(0,0,0,0.75) 100%);
        pointer-events: none; z-index: 1;
    }
    .mobile-hero .mh-grid {
        position: absolute; inset: 0;
        background-image:
            linear-gradient(rgba(57,255,136,0.025) 1px, transparent 1px),
            linear-gradient(90deg, rgba(57,255,136,0.025) 1px, transparent 1px);
        background-size: 36px 36px;
        pointer-events: none;
        mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, black 30%, transparent 100%);
        -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, black 30%, transparent 100%);
        z-index: 2; opacity: 0;
        animation: mh-grid-in 1s ease-out 0.5s forwards;
    }
    @keyframes mh-grid-in { to { opacity: 1; } }
    .mobile-hero .mh-noise {
        position: absolute; inset: 0;
        pointer-events: none; z-index: 3;
        opacity: 0.35; mix-blend-mode: overlay;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='2.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.7  0 0 0 0 0.55  0 0 0 0.08 0'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
    }
    .mobile-hero .mh-crt-lines {
        position: absolute; inset: 0;
        background: repeating-linear-gradient(0deg,
            transparent 0px, transparent 3px,
            rgba(57,255,136,0.02) 3px, rgba(57,255,136,0.02) 4px);
        pointer-events: none; z-index: 4;
    }

    /* HUD corners — pinned to section corners (not viewport). */
    .mobile-hero .mh-hud-corner {
        position: absolute; width: 18px; height: 18px;
        border-color: rgba(57,255,136,0.5); border-style: solid;
        z-index: 8; pointer-events: none; opacity: 0;
        animation: mh-fade-in 0.6s ease-out 0.3s forwards;
    }
    .mobile-hero .mh-hud-corner.mh-tl { top: 64px; left: 12px;    border-width: 1px 0 0 1px; }
    .mobile-hero .mh-hud-corner.mh-tr { top: 64px; right: 12px;   border-width: 1px 1px 0 0; }
    .mobile-hero .mh-hud-corner.mh-bl { bottom: 12px; left: 12px; border-width: 0 0 1px 1px; }
    .mobile-hero .mh-hud-corner.mh-br { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }
    @keyframes mh-fade-in { to { opacity: 1; } }

    .mobile-hero .mh-content {
        position: relative; z-index: 5;
        transform-style: preserve-3d;
        perspective: 900px;
        will-change: transform;
    }

    /* ---------- Topbar ---------- */
    .mobile-hero .mh-topbar {
        display: flex; justify-content: space-between; align-items: center;
        padding: 18px 22px;
        opacity: 0; animation: mh-fade-in 0.6s ease-out 0.5s forwards;
    }
    .mobile-hero .mh-topbar-id {
        font-family: 'JetBrains Mono', monospace;
        font-size: 9.5px; color: rgba(232,245,236,0.5);
        letter-spacing: 0.22em;
        display: inline-flex; align-items: center; gap: 8px;
    }
    .mobile-hero .mh-reactor { position: relative; width: 14px; height: 14px; }
    .mobile-hero .mh-reactor .mh-ring {
        position: absolute; inset: 0;
        border: 1px solid rgba(57,255,136,0.7);
        border-radius: 50%;
        box-shadow: 0 0 8px rgba(57,255,136,0.5), inset 0 0 4px rgba(57,255,136,0.3);
    }
    .mobile-hero .mh-reactor .mh-ring-2 {
        inset: 3px;
        border: 1px solid rgba(126,255,209,0.6);
        border-style: dashed;
        animation: mh-reactor-spin 4s linear infinite;
    }
    .mobile-hero .mh-reactor .mh-core {
        position: absolute; inset: 5px;
        background: radial-gradient(circle, #c8ffea 0%, #39ff88 50%, #1a8a4a 100%);
        border-radius: 50%;
        box-shadow: 0 0 10px #39ff88, 0 0 4px #c8ffea;
        animation: mh-core-pulse 1.6s ease-in-out infinite;
    }
    @keyframes mh-reactor-spin { to { transform: rotate(360deg); } }
    @keyframes mh-core-pulse {
        0%, 100% { transform: scale(1); opacity: 1; }
        50%      { transform: scale(0.8); opacity: 0.85; }
    }
    .mobile-hero .mh-topbar-status {
        font-family: 'JetBrains Mono', monospace;
        font-size: 9px; letter-spacing: 0.28em;
        text-transform: uppercase; color: #39ff88;
        display: inline-flex; align-items: center; gap: 7px;
        padding: 5px 11px;
        background: rgba(0,0,0,0.55);
        border: 1px solid rgba(57,255,136,0.35);
        border-radius: 100px;
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        text-shadow: 0 0 8px rgba(57,255,136,0.5);
    }
    .mobile-hero .mh-topbar-status::before {
        content: ''; width: 5px; height: 5px;
        background: #39ff88; border-radius: 50%;
        box-shadow: 0 0 8px #39ff88, 0 0 16px rgba(57,255,136,0.6);
        animation: mh-dot-pulse 1.8s infinite;
    }
    @keyframes mh-dot-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }

    /* ---------- Welcome wordmark ---------- */
    .mobile-hero .mh-welcome-zone { padding: 18px 22px 0; position: relative; }
    .mobile-hero .mh-welcome-eyebrow {
        font-family: 'JetBrains Mono', monospace;
        font-size: 10px; letter-spacing: 0.35em;
        text-transform: uppercase;
        color: rgba(232,245,236,0.55);
        margin: 0 0 14px;
        display: flex; align-items: center; gap: 10px;
        opacity: 0;
        animation: mh-fade-up 0.7s ease-out 0.7s forwards;
    }
    .mobile-hero .mh-welcome-eyebrow::before {
        content: ''; width: 22px; height: 1px;
        background: linear-gradient(90deg, transparent, #39ff88);
        box-shadow: 0 0 6px rgba(57,255,136,0.6);
    }
    .mobile-hero .mh-welcome-eyebrow .mh-sys { color: #39ff88; }
    @keyframes mh-fade-up {
        from { opacity: 0; transform: translateY(8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .mobile-hero .mh-wordmark {
        font-family: 'Inter', sans-serif;
        font-weight: 900; font-size: 76px;
        line-height: 0.82; letter-spacing: -0.055em;
        color: #fff; margin: 0;
        display: flex; flex-direction: column;
        position: relative;
    }
    .mobile-hero .mh-wordmark .mh-row {
        display: flex; overflow: hidden; height: 0.85em;
        position: relative;
    }
    .mobile-hero .mh-wordmark .mh-ch {
        display: inline-block;
        transform: translateY(110%);
        animation: mh-char-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
    }
    .mobile-hero .mh-wordmark .mh-ch.mh-d1 { animation-delay: 0.85s; }
    .mobile-hero .mh-wordmark .mh-ch.mh-d2 { animation-delay: 0.93s; }
    .mobile-hero .mh-wordmark .mh-ch.mh-d3 { animation-delay: 1.01s; }
    .mobile-hero .mh-wordmark .mh-ch.mh-d4 { animation-delay: 1.20s; }
    .mobile-hero .mh-wordmark .mh-ch.mh-d5 { animation-delay: 1.28s; }
    .mobile-hero .mh-wordmark .mh-ch.mh-d6 { animation-delay: 1.36s; }
    .mobile-hero .mh-wordmark .mh-ch.mh-d7 { animation-delay: 1.44s; }
    .mobile-hero .mh-wordmark .mh-ch.mh-d8 { animation-delay: 1.52s; }
    @keyframes mh-char-rise {
        from { transform: translateY(110%); }
        to   { transform: translateY(0); }
    }
    .mobile-hero .mh-wordmark .mh-accent {
        background: linear-gradient(135deg, #39ff88 0%, #c8ffea 50%, #39ff88 100%);
        background-size: 200% 100%;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: drop-shadow(0 0 12px rgba(57,255,136,0.45));
        animation: mh-char-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards,
                   mh-gradient-flow 5s ease-in-out 1.8s infinite;
    }
    @keyframes mh-gradient-flow {
        0%, 100% { background-position: 0% 50%; }
        50%      { background-position: 100% 50%; }
    }
    .mobile-hero .mh-wordmark::after {
        content: '';
        position: absolute;
        left: -8px; right: -8px; top: -8px;
        height: 30%;
        background: linear-gradient(180deg, transparent 0%, rgba(57,255,136,0.6) 50%, transparent 100%);
        filter: blur(2px);
        animation: mh-scan-sweep 1.4s ease-in-out 0.6s forwards;
        opacity: 0;
    }
    @keyframes mh-scan-sweep {
        0%   { transform: translateY(0); opacity: 1; }
        100% { transform: translateY(450%); opacity: 0; }
    }

    .mobile-hero .mh-welcome-sub {
        font-size: 14.5px; line-height: 1.55;
        color: rgba(232,245,236,0.62);
        margin: 22px 0 0;
        opacity: 0;
        animation: mh-fade-up 0.8s ease-out 1.9s forwards;
    }
    .mobile-hero .mh-welcome-sub b {
        color: #fff; font-weight: 500;
        text-shadow: 0 0 8px rgba(57,255,136,0.25);
    }

    /* ---------- Founders / holograms ---------- */
    .mobile-hero .mh-founders-zone { padding: 36px 14px 0; position: relative; }
    .mobile-hero .mh-founders-eyebrow {
        font-family: 'JetBrains Mono', monospace;
        font-size: 10px; letter-spacing: 0.3em;
        text-transform: uppercase;
        color: rgba(232,245,236,0.5);
        margin: 0 0 20px; padding: 0 6px;
        display: flex; align-items: center; justify-content: space-between;
    }
    .mobile-hero .mh-founders-eyebrow .mh-label {
        display: inline-flex; align-items: center; gap: 8px;
    }
    .mobile-hero .mh-founders-eyebrow .mh-label::before {
        content: ''; width: 18px; height: 1px;
        background: #39ff88;
        box-shadow: 0 0 6px #39ff88;
    }
    .mobile-hero .mh-founders-eyebrow .mh-count {
        color: #39ff88; font-weight: 600;
        text-shadow: 0 0 6px rgba(57,255,136,0.6);
    }

    .mobile-hero .mh-holo-stage {
        display: grid; grid-template-columns: 1fr 1fr;
        gap: 4px; position: relative;
    }
    .mobile-hero .mh-link-beam {
        position: absolute;
        top: 138px; left: 18%; right: 18%; height: 1px;
        background: linear-gradient(90deg,
            transparent 0%, rgba(57,255,136,0.7) 30%,
            rgba(200,255,234,0.9) 50%,
            rgba(57,255,136,0.7) 70%, transparent 100%);
        box-shadow: 0 0 14px rgba(57,255,136,0.6);
        z-index: 2; pointer-events: none;
    }
    .mobile-hero .mh-link-packet {
        position: absolute; top: -2px;
        width: 8px; height: 5px;
        background: #c8ffea;
        box-shadow: 0 0 10px rgba(57,255,136,1);
        border-radius: 2px;
        animation: mh-packet-ltr 3s linear infinite;
    }
    .mobile-hero .mh-link-packet.mh-p2 {
        animation: mh-packet-rtl 3.5s linear infinite;
        animation-delay: -1s;
    }
    @keyframes mh-packet-ltr {
        0%   { left: -8px; opacity: 0; }
        10%  { opacity: 1; }
        90%  { opacity: 1; }
        100% { left: 100%; opacity: 0; }
    }
    @keyframes mh-packet-rtl {
        0%   { right: -8px; left: auto; opacity: 0; }
        10%  { opacity: 1; }
        90%  { opacity: 1; }
        100% { right: 100%; opacity: 0; }
    }

    .mobile-hero .mh-holo-slot {
        position: relative; height: 320px;
        display: flex; flex-direction: column;
        align-items: center; justify-content: flex-end;
    }
    .mobile-hero .mh-holo-target {
        position: absolute;
        top: 8px; left: 50%;
        transform: translateX(-50%);
        width: 150px; height: 230px;
        z-index: 4; pointer-events: none;
        opacity: 0;
        animation: mh-fade-in 0.6s ease-out 2.4s forwards;
    }
    .mobile-hero .mh-holo-target .mh-b {
        position: absolute;
        width: 12px; height: 12px;
        border-color: rgba(57,255,136,0.7); border-style: solid;
        box-shadow: 0 0 4px rgba(57,255,136,0.5);
    }
    .mobile-hero .mh-holo-target .mh-b.mh-tl { top: 0; left: 0;     border-width: 1px 0 0 1px; }
    .mobile-hero .mh-holo-target .mh-b.mh-tr { top: 0; right: 0;    border-width: 1px 1px 0 0; }
    .mobile-hero .mh-holo-target .mh-b.mh-bl { bottom: 0; left: 0;  border-width: 0 0 1px 1px; }
    .mobile-hero .mh-holo-target .mh-b.mh-br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
    .mobile-hero .mh-holo-target .mh-scan-label {
        position: absolute; top: -16px; left: 50%;
        transform: translateX(-50%);
        font-family: 'JetBrains Mono', monospace;
        font-size: 7px; letter-spacing: 0.3em;
        color: rgba(57,255,136,0.7); white-space: nowrap;
    }
    .mobile-hero .mh-holo-target .mh-id-tag {
        position: absolute; bottom: -14px; right: 0;
        font-family: 'JetBrains Mono', monospace;
        font-size: 7px; letter-spacing: 0.2em;
        color: rgba(57,255,136,0.6);
    }

    .mobile-hero .mh-holo-projection {
        position: relative;
        width: 140px; height: 210px;
        margin-bottom: 8px;
    }

    .mobile-hero .mh-holo-video {
        position: absolute;
        inset: 0;
        width: 100%; height: 100%;
        object-fit: cover;
        object-position: center top;
        mix-blend-mode: screen;
        filter:
            brightness(1.1)
            contrast(1.15)
            saturate(0)
            sepia(0.2);
        clip-path: inset(100% 0 0 0);
        animation: mh-video-boot 1.4s cubic-bezier(0.2,0.7,0.2,1) 2.3s forwards;
    }
    @keyframes mh-video-boot {
        0%   { clip-path: inset(100% 0 0 0); }
        100% { clip-path: inset(0 0 0 0); }
    }
    .mobile-hero .mh-holo-video-tint {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg,
            rgba(57,255,136,0.0) 0%,
            rgba(57,255,136,0.45) 15%,
            rgba(126,255,209,0.55) 50%,
            rgba(57,255,136,0.35) 90%,
            transparent 100%);
        mix-blend-mode: multiply;
        pointer-events: none;
        clip-path: inset(100% 0 0 0);
        animation: mh-video-boot 1.4s cubic-bezier(0.2,0.7,0.2,1) 2.3s forwards;
    }
    .mobile-hero .mh-holo-video-glow {
        position: absolute;
        inset: -8px;
        background: radial-gradient(ellipse 60% 70% at 50% 45%,
            transparent 40%,
            rgba(57,255,136,0.4) 70%,
            transparent 100%);
        filter: blur(8px);
        pointer-events: none;
        animation: mh-glow-pulse 3s ease-in-out infinite;
        z-index: -1;
    }
    @keyframes mh-glow-pulse {
        0%, 100% { opacity: 0.6; }
        50%      { opacity: 1; }
    }

    .mobile-hero .mh-holo-scanlines {
        position: absolute; inset: 0;
        background: repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(57,255,136,0.12) 2px, rgba(57,255,136,0.12) 3px);
        pointer-events: none;
        animation: mh-scanline-drift 4s linear infinite;
        z-index: 3;
    }
    @keyframes mh-scanline-drift { from { background-position-y: 0; } to { background-position-y: 6px; } }

    .mobile-hero .mh-holo-glitch {
        position: absolute; inset: 0;
        background: rgba(57,255,136,0.22);
        mix-blend-mode: screen;
        animation: mh-holo-flicker 6s infinite;
        pointer-events: none;
        z-index: 4;
    }
    @keyframes mh-holo-flicker {
        0%, 90%, 100% { opacity: 0; }
        91% { opacity: 0.55; }
        92% { opacity: 0; }
        93% { opacity: 0.4; }
        94%, 95% { opacity: 0; }
        96% { opacity: 0.55; }
    }

    .mobile-hero .mh-boot-scan {
        position: absolute; left: 0; right: 0;
        height: 4px;
        background: linear-gradient(180deg,
            transparent 0%, rgba(200,255,234,1) 50%, transparent 100%);
        box-shadow: 0 0 16px rgba(57,255,136,1);
        top: -10px; opacity: 0; z-index: 5;
        animation: mh-boot-sweep 1.4s cubic-bezier(0.4,0,0.2,1) 2.1s forwards;
    }
    .mobile-hero .mh-holo-slot.mh-right .mh-boot-scan { animation-delay: 2.3s; }
    @keyframes mh-boot-sweep {
        0%   { transform: translateY(0); opacity: 1; }
        100% { transform: translateY(220px); opacity: 0; }
    }

    .mobile-hero .mh-holo-plinth {
        position: absolute;
        bottom: 0; left: 50%;
        transform: translateX(-50%);
        width: 120px; height: 30px;
        background: linear-gradient(180deg,
            rgba(57,255,136,0.18) 0%,
            rgba(57,255,136,0.05) 100%);
        border-top: 1px solid rgba(57,255,136,0.55);
        border-radius: 4px 4px 0 0;
        backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
        z-index: 6;
        box-shadow: 0 -4px 20px rgba(57,255,136,0.2);
    }
    .mobile-hero .mh-holo-plinth::before {
        content: '';
        position: absolute; top: -1px; left: 50%;
        transform: translateX(-50%);
        width: 60%; height: 1px;
        background: #39ff88;
        box-shadow: 0 0 10px #39ff88, 0 0 20px rgba(57,255,136,0.6);
        animation: mh-plinth-pulse 2.5s ease-in-out infinite;
    }
    @keyframes mh-plinth-pulse {
        0%, 100% { opacity: 0.7; width: 60%; }
        50%      { opacity: 1; width: 85%; }
    }

    .mobile-hero .mh-holo-base {
        position: absolute;
        bottom: 26px; left: 50%;
        transform: translateX(-50%);
        width: 110px; height: 14px;
        background: radial-gradient(ellipse, rgba(57,255,136,0.9) 0%, rgba(57,255,136,0.45) 30%, transparent 70%);
        filter: blur(3px);
        animation: mh-base-pulse 2.5s ease-in-out infinite;
        z-index: 1;
    }
    @keyframes mh-base-pulse {
        0%, 100% { opacity: 0.85; transform: translateX(-50%) scaleX(1); }
        50%      { opacity: 1;    transform: translateX(-50%) scaleX(1.2); }
    }

    .mobile-hero .mh-holo-particle {
        position: absolute;
        width: 2px; height: 2px;
        background: rgba(200,255,234,1);
        border-radius: 50%;
        bottom: 30px; left: 50%;
        box-shadow: 0 0 6px rgba(57,255,136,1);
        animation: mh-particle-rise 4s linear infinite;
        z-index: 5;
    }
    .mobile-hero .mh-holo-particle.mh-p1 { animation-delay: 0s; }
    .mobile-hero .mh-holo-particle.mh-p2 { animation-delay: 1.3s; }
    .mobile-hero .mh-holo-particle.mh-p3 { animation-delay: 2.6s; }
    .mobile-hero .mh-holo-particle.mh-p4 { animation-delay: 0.8s; }
    .mobile-hero .mh-holo-particle.mh-p5 { animation-delay: 3.5s; }
    @keyframes mh-particle-rise {
        0%   { transform: translateX(var(--mh-x, 0)) translateY(0); opacity: 0; }
        20%  { opacity: 1; }
        100% { transform: translateX(var(--mh-x, 0)) translateY(-220px); opacity: 0; }
    }

    .mobile-hero .mh-holo-readout {
        margin-top: 10px;
        font-family: 'JetBrains Mono', monospace;
        text-align: center; width: 100%;
        z-index: 7; position: relative;
    }
    .mobile-hero .mh-holo-name {
        font-size: 14px; font-weight: 700;
        letter-spacing: 0.32em;
        text-transform: uppercase;
        color: #c8ffea;
        text-shadow: 0 0 14px rgba(57,255,136,0.6);
        margin: 0 0 8px;
    }
    .mobile-hero .mh-holo-vitals {
        display: flex; flex-direction: column;
        gap: 4px;
        font-size: 8px; letter-spacing: 0.15em;
        text-transform: uppercase;
        color: rgba(232,245,236,0.4);
    }
    .mobile-hero .mh-holo-vitals .mh-vrow {
        display: flex; justify-content: space-between;
        padding: 0 8px;
    }
    .mobile-hero .mh-holo-vitals .mh-v {
        color: #39ff88; font-weight: 600;
        text-shadow: 0 0 4px rgba(57,255,136,0.5);
    }

    /* ---------- Offerings ---------- */
    .mobile-hero .mh-offer-zone { padding: 56px 22px 0; position: relative; }
    .mobile-hero .mh-offer-eyebrow {
        font-family: 'JetBrains Mono', monospace;
        font-size: 10px; letter-spacing: 0.3em;
        text-transform: uppercase;
        color: rgba(232,245,236,0.5);
        margin: 0 0 14px;
        display: flex; align-items: center; gap: 10px;
    }
    .mobile-hero .mh-offer-eyebrow::before {
        content: ''; width: 18px; height: 1px;
        background: #39ff88;
        box-shadow: 0 0 6px #39ff88;
    }

    .mobile-hero h2.mh-offer-title {
        font-family: 'Inter', sans-serif;
        font-size: 40px; font-weight: 800;
        line-height: 0.98;
        letter-spacing: -0.035em;
        color: #fff; margin: 0 0 18px;
    }
    .mobile-hero h2.mh-offer-title .mh-accent {
        background: linear-gradient(135deg, #39ff88 0%, #c8ffea 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: drop-shadow(0 0 10px rgba(57,255,136,0.4));
    }
    .mobile-hero h2.mh-offer-title .mh-outline {
        -webkit-text-stroke: 1.5px rgba(57,255,136,0.7);
        -webkit-text-fill-color: transparent;
        color: transparent;
    }

    .mobile-hero .mh-blurb {
        font-size: 14.5px; line-height: 1.6;
        color: rgba(232,245,236,0.72);
        margin: 0;
    }
    .mobile-hero .mh-blurb .mh-hl {
        color: #39ff88; font-weight: 600;
        text-shadow: 0 0 8px rgba(57,255,136,0.4);
    }
    .mobile-hero .mh-blurb .mh-comment {
        font-family: 'JetBrains Mono', monospace;
        font-size: 11.5px;
        color: rgba(232,245,236,0.3);
        display: block;
        margin-bottom: 8px;
    }

    .mobile-hero .mh-ticker-wrap {
        margin: 28px -22px 0;
        padding: 14px 0;
        border-top: 1px solid rgba(57,255,136,0.12);
        border-bottom: 1px solid rgba(57,255,136,0.12);
        background: rgba(0,0,0,0.35);
        backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
        overflow: hidden; position: relative;
        mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    }
    .mobile-hero .mh-ticker {
        display: flex; gap: 32px;
        white-space: nowrap;
        animation: mh-ticker-scroll 22s linear infinite;
        width: max-content;
    }
    @keyframes mh-ticker-scroll {
        from { transform: translateX(0); }
        to   { transform: translateX(-50%); }
    }
    .mobile-hero .mh-ticker-item {
        font-family: 'JetBrains Mono', monospace;
        font-size: 11px; letter-spacing: 0.2em;
        text-transform: uppercase;
        color: rgba(232,245,236,0.55);
        display: inline-flex; align-items: center; gap: 10px;
        flex-shrink: 0;
    }
    .mobile-hero .mh-ticker-item::before {
        content: ''; width: 4px; height: 4px;
        background: currentColor;
        border-radius: 50%; opacity: 0.6;
    }
    .mobile-hero .mh-ticker-item.mh-featured {
        color: #39ff88;
        text-shadow: 0 0 8px rgba(57,255,136,0.5);
    }
    .mobile-hero .mh-ticker-item.mh-featured::before {
        background: #39ff88; opacity: 1;
        box-shadow: 0 0 8px #39ff88;
    }

    /* ---------- Cue / signal meter ---------- */
    .mobile-hero .mh-cue-zone { padding: 60px 22px 40px; text-align: center; }
    .mobile-hero .mh-cue-headline {
        font-family: 'Inter', sans-serif;
        font-size: 17px; font-weight: 600;
        color: #fff; margin: 0;
        letter-spacing: -0.01em;
    }
    .mobile-hero .mh-cue-headline .mh-dim {
        display: block;
        color: rgba(232,245,236,0.4);
        font-weight: 400; font-size: 14px;
        margin-top: 4px;
    }
    .mobile-hero .mh-signal-meter {
        margin: 24px auto 12px;
        display: flex; align-items: flex-end;
        justify-content: center; gap: 3px;
        height: 32px;
    }
    .mobile-hero .mh-signal-meter .mh-bar {
        width: 3px;
        background: linear-gradient(180deg, #39ff88, rgba(57,255,136,0.2));
        border-radius: 1px;
        animation: mh-signal-bounce 1.4s ease-in-out infinite;
        box-shadow: 0 0 4px rgba(57,255,136,0.6);
    }
    .mobile-hero .mh-signal-meter .mh-bar:nth-child(1) { height: 30%;  animation-delay: 0s; }
    .mobile-hero .mh-signal-meter .mh-bar:nth-child(2) { height: 60%;  animation-delay: 0.1s; }
    .mobile-hero .mh-signal-meter .mh-bar:nth-child(3) { height: 90%;  animation-delay: 0.2s; }
    .mobile-hero .mh-signal-meter .mh-bar:nth-child(4) { height: 70%;  animation-delay: 0.3s; }
    .mobile-hero .mh-signal-meter .mh-bar:nth-child(5) { height: 100%; animation-delay: 0.4s; }
    .mobile-hero .mh-signal-meter .mh-bar:nth-child(6) { height: 50%;  animation-delay: 0.5s; }
    .mobile-hero .mh-signal-meter .mh-bar:nth-child(7) { height: 80%;  animation-delay: 0.6s; }
    @keyframes mh-signal-bounce {
        0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
        50%      { transform: scaleY(1);   opacity: 1; }
    }
    .mobile-hero .mh-cue-label {
        font-family: 'JetBrains Mono', monospace;
        font-size: 9px; letter-spacing: 0.4em;
        text-transform: uppercase;
        color: rgba(57,255,136,0.85);
        text-shadow: 0 0 8px rgba(57,255,136,0.4);
        display: block;
        margin: 8px 0 12px;
    }
    .mobile-hero .mh-cue-line {
        width: 1px; height: 44px;
        background: linear-gradient(180deg, transparent, #39ff88);
        margin: 0 auto;
        position: relative;
        box-shadow: 0 0 8px #39ff88;
        animation: mh-line-pulse 2s ease-in-out infinite;
    }
    .mobile-hero .mh-cue-line::after {
        content: '';
        position: absolute; bottom: -1px; left: 50%;
        transform: translateX(-50%) rotate(45deg);
        width: 7px; height: 7px;
        border-right: 1.5px solid #39ff88;
        border-bottom: 1.5px solid #39ff88;
    }
    @keyframes mh-line-pulse {
        0%, 100% { opacity: 0.4; }
        50%      { opacity: 1; }
    }

    /* Respect user motion settings — kill rAF-driven animations gracefully. */
    @media (prefers-reduced-motion: reduce) {
        .mobile-hero *,
        .mobile-hero *::before,
        .mobile-hero *::after {
            animation-duration: 0.001ms !important;
            animation-iteration-count: 1 !important;
        }
    }
}

/* ==========================================================================
   MOBILE HERO — desktop restage (≥769px)
   Same content and visual language as the phone version above; restaged
   for laptop widths instead of stretching the phone column. Full-bleed
   ambient background, a centered symmetric text column, and the two
   hologram consoles enlarged as a matched pair (scaled as a rigid unit
   via transform so the HUD frame/plinth/particles stay locked to the
   video — do not resize the video/target/plinth individually above
   without re-deriving this scale + the link-beam offset).
   ========================================================================== */
@media (min-width: 769px) {

    .mobile-hero { max-width: none; padding-top: 140px; }

    .mobile-hero .mh-hud-corner { width: 26px; height: 26px; }
    .mobile-hero .mh-hud-corner.mh-tl { top: 116px; left: 28px; }
    .mobile-hero .mh-hud-corner.mh-tr { top: 116px; right: 28px; }
    .mobile-hero .mh-hud-corner.mh-bl { bottom: 28px; left: 28px; }
    .mobile-hero .mh-hud-corner.mh-br { bottom: 28px; right: 28px; }

    .mobile-hero .mh-topbar { padding: 0 40px 8px; }
    .mobile-hero .mh-topbar-id { font-size: 11px; }
    .mobile-hero .mh-topbar-status { font-size: 10px; }

    .mobile-hero .mh-welcome-zone {
        max-width: 860px;
        margin: 0 auto;
        padding: 32px 32px 0;
        text-align: center;
    }
    .mobile-hero .mh-welcome-eyebrow { justify-content: center; }
    .mobile-hero .mh-wordmark {
        font-size: clamp(76px, 8vw, 128px);
        align-items: center;
    }
    .mobile-hero .mh-wordmark .mh-row { justify-content: center; }
    .mobile-hero .mh-welcome-sub { max-width: 560px; margin: 24px auto 0; font-size: 16px; }

    /* Holo pair — scaled as one rigid unit (video + HUD frame + plinth +
       particles) around its own center so the corner-bracket frame stays
       perfectly locked to the video without hand-tuning every absolute
       offset. Do not give .mh-holo-slot an explicit height here — it has
       to keep the same 320px layout box the original absolute offsets
       (mh-holo-target, mh-holo-plinth, etc.) were tuned against, or the
       frame drifts off the video. */
    .mobile-hero .mh-founders-zone { max-width: 800px; margin: 120px auto 0; padding: 0 32px; }
    .mobile-hero .mh-founders-eyebrow { margin-bottom: 76px; }
    .mobile-hero .mh-holo-stage { gap: 32px; }
    .mobile-hero .mh-holo-slot { transform: scale(1.3); transform-origin: center center; }
    /* Readout defaults to width:100% of the (now much wider) grid column,
       which blows the ROLE/FOCUS/STATUS rows apart via space-between.
       Pin it back to a compact, card-width box. */
    .mobile-hero .mh-holo-readout { width: 200px; margin: 10px auto 0; }

    .mobile-hero .mh-offer-zone {
        max-width: 700px;
        margin: 72px auto 0;
        padding: 0 32px;
        text-align: center;
    }
    .mobile-hero .mh-offer-eyebrow { justify-content: center; }
    .mobile-hero h2.mh-offer-title { font-size: clamp(44px, 4.2vw, 60px); }
    .mobile-hero .mh-blurb { text-align: left; font-size: 15.5px; }

    /* Full-bleed ticker band — deliberate contrast against the centered
       column above/below it. */
    .mobile-hero .mh-ticker-wrap { width: 100vw; margin: 48px calc(50% - 50vw) 0; padding: 18px 0; }
    .mobile-hero .mh-ticker { gap: 44px; }
    .mobile-hero .mh-ticker-item { font-size: 12.5px; }

    .mobile-hero .mh-cue-zone { max-width: 700px; margin: 0 auto; padding: 96px 32px 80px; }
    .mobile-hero .mh-cue-headline { font-size: 20px; }
    .mobile-hero .mh-cue-headline .mh-dim { font-size: 15px; }
}

/* ==========================================================================
   LANDING — desktop hero (replaces the car cinema)
   Disabled: desktop now reuses .mobile-hero above instead (product decision).
   Rules kept in place, gated behind an unreachable media query, in case
   this gets revisited.
   ========================================================================== */
.landing,
.story-band { display: none; }

@media (min-width: 999999px) {

.landing {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    padding: 140px 32px 96px;
    background: var(--bg-0);
    overflow: hidden;
}

.landing__bg { position: absolute; inset: 0; pointer-events: none; }

.landing__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(111, 255, 168, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(111, 255, 168, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, black 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, black 0%, transparent 78%);
}

.landing__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.landing__glow--ivy {
    width: 62vw;
    height: 48vh;
    left: 50%;
    top: 26%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(111, 255, 168, 0.14) 0%, rgba(39, 201, 107, 0.05) 55%, transparent 75%);
    animation: landingGlowDrift 9s ease-in-out infinite alternate;
}

.landing__glow--deep {
    width: 46vw;
    height: 40vh;
    left: 50%;
    bottom: -18%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(39, 201, 107, 0.08) 0%, transparent 70%);
}

@keyframes landingGlowDrift {
    0%   { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 1;    transform: translate(-50%, -52%) scale(1.06); }
}

.landing__vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 52%, rgba(0, 0, 0, 0.5) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 20%, transparent 72%, rgba(0, 0, 0, 0.5) 100%);
    mix-blend-mode: multiply;
}

.landing__grain {
    position: absolute;
    inset: -10%;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    animation: grain 1.6s steps(6) infinite;
}

.landing__inner {
    position: relative;
    z-index: 2;
}

.landing .ch-title__main {
    font-size: clamp(72px, 10vw, 152px);
}

.landing__support {
    max-width: 620px;
    color: rgba(199, 200, 209, 0.92);
    font-weight: 450;
}

.landing__ctas {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
}

.landing__book {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 26px 15px 40px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #d8ffe7;
    text-decoration: none;
    border: 1px solid rgba(57, 255, 136, 0.42);
    background:
        radial-gradient(120% 200% at 0% 50%, rgba(57,255,136,0.18) 0%, rgba(57,255,136,0.04) 55%, rgba(0,0,0,0.5) 100%);
    box-shadow:
        0 0 0 1px rgba(57,255,136,0.08) inset,
        0 12px 32px -12px rgba(57,255,136,0.5);
    transition: transform 180ms var(--ease-soft), border-color 180ms, color 180ms;
}
.landing__book:hover, .landing__book:focus-visible {
    color: #fff;
    border-color: rgba(57,255,136,0.7);
    transform: translateY(-2px);
}
.landing__book .nav__book-pulse { left: 18px; }

.landing__ghost {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 15px 22px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-1);
    text-decoration: none;
    border: 1px solid var(--line);
    transition: color 180ms, border-color 180ms, transform 180ms var(--ease-soft);
}
.landing__ghost:hover, .landing__ghost:focus-visible {
    color: var(--ink-0);
    border-color: var(--line-strong);
    transform: translateY(-2px);
}
.landing__ghost svg { opacity: 0.7; }

/* ---------- Story band ---------- */
.story-band {
    display: block;
    position: relative;
    padding: clamp(56px, 6.5vw, 96px) 32px;
    background:
        linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 50%, var(--bg-0) 100%);
}

.story-band__inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.story-band__block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    text-align: center;
}

.story-band__block .ch-marker { align-self: center; }

.story-band__founders {
    margin: 6px 0 0;
    max-width: 560px;
    font-family: var(--font-sans);
    font-size: clamp(14.5px, 1.15vw, 16px);
    line-height: 1.7;
    color: var(--ink-1);
    padding-top: 20px;
    border-top: 1px solid rgba(111, 255, 168, 0.18);
}
.story-band__founders b { color: var(--ink-0); font-weight: 600; }
.story-band__founders em {
    display: block;
    margin-top: 10px;
    font-family: var(--font-premium);
    font-style: italic;
    color: rgba(240, 246, 252, 0.98);
}

.story-band__steps {
    flex-direction: row;
    gap: clamp(24px, 4vw, 56px);
    border-top: none;
    padding-top: 0;
    margin-top: 14px;
}
.story-band__steps .ch-step {
    grid-template-columns: auto 26px auto;
    font-size: 11.5px;
}

} /* end @media (min-width: 769px) */

@media (prefers-reduced-motion: reduce) {
    .landing__glow--ivy, .landing__grain { animation: none; }
}

/* Story band: the oversized quote ornament was sized for the cinema caption
   layout and crops badly in normal flow. The quote stands without it. */
@media (min-width: 769px) {
    .story-band .ch-quote__mark { display: none; }
}
