/* ══════════════════════════════════════════════════════════
   LAW4 — law4.ch
   Editorial design system: navy & gold, Instrument Serif
   display over Inter body, hairline precision, scroll-driven
   choreography. Motion is GPU-only (transform/opacity) and
   yields fully to prefers-reduced-motion.
   ══════════════════════════════════════════════════════════ */

:root {
    --navy: #070e20;
    --navy-dark: #040a16;
    --navy-mid: #0d1830;
    --gold: #9c7e46;
    --gold-hover: #ae9054;
    --gold-deep: #7a6234;
    /* Darker golds for text on light ground — same hue, WCAG-fest:
       --gold-text 5.8:1 for small type, --gold-heading 3.5:1 for display sizes. */
    --gold-text: #6b5526;
    /* Light, muted variant for accent type on dark grounds (8.9:1 on navy). */
    --gold-soft: #d6c096;
    --gold-heading: #866830;
    --paper: #ffffff;
    --paper-warm: #f5f5f7;
    --ink: #161618;
    --ink-soft: #4d4d53;
    --ink-muted: #6e7076;
    --line: #e8e8ed;
    --green: #16a34a;
    --red: #dc2626;
    --grey: #6b7280;
    --app-bg: #f4f5f6;
    --hairline: rgba(7, 14, 32, 0.08);
    --display: "Instrument Serif", Georgia, serif;
    --body: "Inter", -apple-system, "Segoe UI", sans-serif;
    --ease-out: cubic-bezier(0.22, 0.61, 0.13, 1);
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

em {
    font-style: italic;
}

section {
    scroll-margin-top: 84px;
}

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 40px);
}

.container.narrow {
    max-width: 860px;
}

.center {
    text-align: center;
}

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

::selection {
    background: rgba(156, 126, 70, 0.35);
}

/* ── Typography primitives ─────────────────────────────── */

.kicker {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-text);
    margin-bottom: 16px;
}



.kicker.light {
    color: rgba(255, 255, 255, 0.6);
}

.section-heading {
    font-family: var(--body);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.9rem);
    letter-spacing: -0.032em;
    line-height: 1.05;
    margin-bottom: 18px;
}

.section-heading em {
    font-style: normal;
}

.section-heading.xl {
    font-size: clamp(2.6rem, 5.4vw, 4.1rem);
}

.section-heading em {
    color: var(--gold-heading);
}

.section-heading.light {
    color: #fff;
}

.section-heading.light em {
    color: var(--gold-soft);
}

.section-sub {
    font-size: clamp(17px, 1.5vw, 20px);
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 620px;
}

.section-sub.wide {
    max-width: 640px;
}

.section-sub.light {
    color: rgba(255, 255, 255, 0.68);
}

.section-sub.center {
    margin-inline: auto;
}

.section-intro {
    padding-block: clamp(88px, 11vw, 150px) clamp(28px, 4vw, 56px);
    max-width: 820px;
}

.section-intro.center {
    margin-inline: auto;
    text-align: center;
}

.kicker.center {
    text-align: center;
}

.module-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
}

.section-intro.center .module-status {
    justify-content: center;
}

/* ── Shared bits ───────────────────────────────────────── */

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
    display: inline-block;
    flex-shrink: 0;
    animation: pulse 2.4s ease-in-out infinite;
}

.pulse-dot.green {
    background: var(--green);
}

@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.06);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: 0.01em;
    padding: 15px 30px;
    border-radius: 999px;
    cursor: pointer;
    border: none;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.btn-gold {
    background: linear-gradient(165deg, #b3945c 0%, #96793f 58%, #8a6d38 100%);
    color: var(--navy);
    border: 1px solid rgba(240, 228, 196, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-gold:hover {
    background: linear-gradient(165deg, #c2a469 0%, #a3854a 58%, #96793f 100%);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 12px 30px rgba(156, 126, 70, 0.4);
}

.btn-arrow {
    transition: transform 0.25s var(--ease-out);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--gold-soft);
    border: 1px solid rgba(214, 192, 150, 0.4);
    font-weight: 600;
}

.btn-outline:hover {
    border-color: rgba(214, 192, 150, 0.75);
    background: rgba(156, 126, 70, 0.12);
}

/* Touch feedback — on coarse pointers taps answer instantly, standing in
   for the hover states that phones never see. */
@media (hover: none) {
    .btn:active {
        transform: scale(0.96);
        transition-duration: 0.12s;
    }

    .nav-cta:active {
        transform: scale(0.95);
        transition-duration: 0.12s;
    }

    /* Cards fold the parallax vars in; the .revealed variants outrank
       the late parallax rule at equal file position. */
    .stack-card:active,
    .stack-card.revealed:active,
    .value-card.revealed:active,
    .integration-card.revealed:active,
    .product-card.revealed:active {
        transform: translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0) scale(0.985) rotate(var(--lean, 0deg));
        transition-duration: 0.16s;
    }

    .faq-item summary:active {
        opacity: 0.65;
    }

    .persona-icon {
        transition: transform 0.2s var(--ease-out);
    }

    .persona:active .persona-icon {
        transform: scale(0.9);
    }
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 700;
    flex-shrink: 0;
}

.pill.gold {
    background: rgba(156, 126, 70, 0.12);
    color: var(--gold-deep);
    border: 1px solid rgba(156, 126, 70, 0.25);
}

.pill.green {
    background: rgba(22, 163, 74, 0.12);
    color: var(--green);
    border: 1px solid rgba(22, 163, 74, 0.25);
}

/* ── Ambient motion layer ──────────────────────────────── */

/* Gold dust drifting up through the dark sections. */
.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particles i {
    position: absolute;
    bottom: -8px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(156, 126, 70, 0.5);
    box-shadow: 0 0 8px rgba(156, 126, 70, 0.5);
    animation: particleRise linear infinite;
    opacity: 0;
}

.particles i:nth-child(1) { left: 6%; animation-duration: 13s; animation-delay: 0s; }
.particles i:nth-child(2) { left: 14%; animation-duration: 17s; animation-delay: 3s; width: 2px; height: 2px; }
.particles i:nth-child(3) { left: 24%; animation-duration: 15s; animation-delay: 7s; }
.particles i:nth-child(4) { left: 33%; animation-duration: 19s; animation-delay: 1.5s; width: 2px; height: 2px; }
.particles i:nth-child(5) { left: 41%; animation-duration: 14s; animation-delay: 9s; }
.particles i:nth-child(6) { left: 52%; animation-duration: 18s; animation-delay: 4.5s; }
.particles i:nth-child(7) { left: 60%; animation-duration: 13.5s; animation-delay: 11s; width: 2px; height: 2px; }
.particles i:nth-child(8) { left: 68%; animation-duration: 16s; animation-delay: 2s; }
.particles i:nth-child(9) { left: 76%; animation-duration: 20s; animation-delay: 6s; }
.particles i:nth-child(10) { left: 84%; animation-duration: 14.5s; animation-delay: 8.5s; width: 2px; height: 2px; }
.particles i:nth-child(11) { left: 91%; animation-duration: 17.5s; animation-delay: 0.8s; }
.particles i:nth-child(12) { left: 97%; animation-duration: 15.5s; animation-delay: 5.2s; }

@keyframes particleRise {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }
    8% {
        opacity: 0.9;
    }
    85% {
        opacity: 0.25;
    }
    100% {
        transform: translate3d(14px, -88vh, 0);
        opacity: 0;
    }
}

/* Dark-section glows breathe slowly. */
.workflow-glow,
.manifesto-glow,
.cta-glow,
.journey-glow,
.team-glow {
    animation: glowDrift 16s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes glowDrift {
    from {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }
    to {
        transform: translate3d(2%, 2%, 0) scale(1.08);
    }
}

/* Accent display lines shimmer gently. The clip must sit on the
   word-level spans — background-clip:text does not reach through
   the inline-block reveal masks. */
@supports (-webkit-background-clip: text) {
    .hero-title em .word-inner,
    .cta-heading em .word-inner {
        background: linear-gradient(105deg, var(--gold-soft) 38%, #f0e4c4 50%, var(--gold-soft) 62%);
        background-size: 220% 100%;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: goldSheen 7s ease-in-out infinite;
    }
}

@keyframes goldSheen {
    0%,
    55%,
    100% {
        background-position: 110% 0;
    }
    75% {
        background-position: -10% 0;
    }
}

/* Buttons carry a light sweep on hover. */
.btn-gold {
    position: relative;
    overflow: hidden;
}

.btn-gold::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -70%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    transform: skewX(-18deg);
    transition: none;
    pointer-events: none;
}

.btn-gold:hover::after {
    animation: btnShine 0.8s ease;
}

@keyframes btnShine {
    from {
        left: -70%;
    }
    to {
        left: 130%;
    }
}

/* Mockups get a glass glare that sweeps on hover. */
.app-mockup {
    position: relative;
}

.app-mockup::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.14) 50%, transparent 58%);
    background-size: 300% 100%;
    background-position: 120% 0;
    pointer-events: none;
    transition: background-position 1.1s var(--ease-out);
}

.showcase-frame:hover .app-mockup::after,
.stage-workspace:hover .app-mockup::after {
    background-position: -60% 0;
}

/* Skeleton lines shimmer like loading UI. */
.sk-line {
    position: relative;
    overflow: hidden;
}

.sk-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    transform: translateX(-100%);
    animation: skShimmer 2.6s ease-in-out infinite;
}

@keyframes skShimmer {
    0% {
        transform: translateX(-100%);
    }
    60%,
    100% {
        transform: translateX(100%);
    }
}

/* Trust mark rotates lazily, spins up on hover. */
.trust-diamond {
    animation: diamondTurn 10s linear infinite;
}

.trust-logo:hover .trust-diamond {
    animation-duration: 1.6s;
}

@keyframes diamondTurn {
    from {
        transform: rotate(45deg);
    }
    to {
        transform: rotate(405deg);
    }
}

/* Nav & footer links slide a hairline underline in. */
.site-nav a:not(.nav-cta) {
    position: relative;
}

.site-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.35s var(--ease-out);
}

.site-nav a:not(.nav-cta):hover::after {
    transform: scaleX(1);
}

.footer-links a {
    position: relative;
}

.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.35s var(--ease-out);
}

.footer-links a:hover::after {
    transform: scaleX(1);
}

/* Kickers track in from wide spacing while revealing. */
.kicker {
    transition:
        letter-spacing 0.9s var(--ease-out),
        opacity 0.9s ease;
}

[data-reveal]:not(.revealed) .kicker {
    letter-spacing: 0.34em;
    opacity: 0;
}

/* Cursor click ripple. */
.cursor-ring.click {
    animation: ringClick 0.45s var(--ease-out);
}

@keyframes ringClick {
    0% {
        width: 34px;
        height: 34px;
    }
    40% {
        width: 20px;
        height: 20px;
    }
    100% {
        width: 34px;
        height: 34px;
    }
}

/* Reading progress with a light head. */
.scroll-progress {
    background: linear-gradient(90deg, var(--gold-deep), var(--gold) 92%, #e4d3ab);
}

/* ── Film grain on dark sections — the analogue touch ──── */

.hero::after,
.workflow::after,
.manifesto-pin::after,
.cta::after,
.facts::after,
.journey::after,
.team-band::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Preloader ─────────────────────────────────────────── */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: var(--navy);
    display: grid;
    place-items: center;
    transition:
        transform 0.9s var(--ease-out) 0.15s,
        visibility 0s 1.1s;
}

.preloader.done {
    transform: translateY(-100%);
    visibility: hidden;
}

.preloader-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.preloader-word {
    font-family: var(--display);
    font-size: clamp(3rem, 8vw, 5rem);
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
    overflow: hidden;
    display: inline-flex;
}

.preloader-letter {
    display: inline-block;
    transform: translateY(110%);
    animation: preloaderRise 0.7s var(--ease-out) forwards;
}

.preloader-letter:nth-child(2) { animation-delay: 0.07s; }
.preloader-letter:nth-child(3) { animation-delay: 0.14s; }
.preloader-letter:nth-child(4) { animation-delay: 0.21s; }

.preloader-gold {
    color: var(--gold-soft);
    font-style: italic;
}

@keyframes preloaderRise {
    to {
        transform: translateY(0);
    }
}

.preloader-line {
    width: 0;
    height: 1px;
    background: rgba(156, 126, 70, 0.6);
    animation: preloaderLine 0.8s var(--ease-out) 0.35s forwards;
}

@keyframes preloaderLine {
    to {
        width: 180px;
    }
}

.preloader-tag {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    opacity: 0;
    animation: preloaderFade 0.6s ease 0.55s forwards;
}

@keyframes preloaderFade {
    to {
        opacity: 1;
    }
}

/* Page content is held briefly so the curtain lift reveals it cleanly. */
body.loading {
    overflow: hidden;
}

/* ── Custom cursor ─────────────────────────────────────── */

.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 4000;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: translate(-50%, -50%);
}

.cursor-ring {
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(156, 126, 70, 0.55);
    transform: translate(-50%, -50%);
    transition:
        width 0.3s var(--ease-out),
        height 0.3s var(--ease-out),
        border-color 0.3s ease,
        background-color 0.3s ease;
}

.cursor-ring.is-active {
    width: 56px;
    height: 56px;
    background: rgba(156, 126, 70, 0.08);
    border-color: rgba(156, 126, 70, 0.9);
}

@media (pointer: coarse) {
    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

/* ── Scroll progress ───────────────────────────────────── */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 3000;
    pointer-events: none;
}

/* ── Header ────────────────────────────────────────────── */

/* No transform/filter may ever stick on the header itself: it would become
   the containing block for the fixed mobile drawer and clip it to 78px.
   The entrance animation therefore avoids `forwards`, and the frosted-glass
   layer lives on a ::before instead of the header. */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    border-bottom: 1px solid transparent;
    transition:
        box-shadow 0.45s ease,
        border-color 0.45s ease;
    animation: headerIn 0.7s var(--ease-out);
}

/* The chrome is never a full-width background bar: once the page
   scrolls, a detached glass capsule floats in behind the content —
   a dynamic island, with a slow light sheen travelling across it.
   It lives on ::before (not on an ancestor of the fixed drawer). */
.site-header::before {
    content: "";
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 50%;
    width: min(100% - 20px, 1200px);
    z-index: -1;
    border-radius: 999px;
    background:
        linear-gradient(105deg, transparent 44%, rgba(214, 192, 150, 0.13) 50%, transparent 56%) 130% 0 / 320% 100% no-repeat,
        rgba(9, 17, 38, 0.82);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 18px 48px -18px rgba(2, 6, 18, 0.65);
    opacity: 0;
    transform: translateX(-50%) translateY(-8px) scale(0.97);
    transition:
        opacity 0.4s ease,
        width 0.6s var(--ease-out),
        transform 0.55s cubic-bezier(0.34, 1.35, 0.64, 1);
    animation: hdrSheen 8.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hdrSheen {
    0% {
        background-position: 130% 0, 0 0;
    }
    55%,
    100% {
        background-position: -40% 0, 0 0;
    }
}

@keyframes headerIn {
    from {
        opacity: 0;
        transform: translate3d(0, -12px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Entrance choreography — brand, links and CTA drop in one after the
   other. `backwards` only holds the start state until the delay; nothing
   sticks afterwards, so the drawer containing-block stays safe. */
.brand,
.nav-toggle {
    animation: headItem 0.6s var(--ease-out) backwards;
    animation-delay: 0.16s;
}

@keyframes headItem {
    from {
        opacity: 0;
        transform: translate3d(0, -16px, 0);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 1101px) {
    .site-nav > a {
        animation: headItem 0.55s var(--ease-out) backwards;
    }

    .site-nav > a:nth-of-type(1) { animation-delay: 0.3s; }
    .site-nav > a:nth-of-type(2) { animation-delay: 0.36s; }
    .site-nav > a:nth-of-type(3) { animation-delay: 0.42s; }
    .site-nav > a:nth-of-type(4) { animation-delay: 0.48s; }
    .site-nav > a:nth-of-type(5) { animation-delay: 0.54s; }
    .site-nav > a:nth-of-type(6) { animation-delay: 0.62s; }
}

/* Cursor spotlight — a warm gold glint rides the capsule's lower edge,
   following the pointer (JS feeds --mx relative to the capsule). */
.site-header::after {
    content: "";
    position: absolute;
    left: 50%;
    width: min(100% - 20px, 1200px);
    transform: translateX(-50%);
    bottom: 7px;
    height: 2px;
    border-radius: 999px;
    background: radial-gradient(150px 2px at var(--mx, 50%) 50%, rgba(156, 126, 70, 0.85), rgba(156, 126, 70, 0) 72%);
    opacity: 0;
    transition:
        opacity 0.4s ease,
        width 0.6s var(--ease-out);
    pointer-events: none;
}

.site-header.scrolled::after {
    opacity: 1;
}

/* No full-width hairline or shadow — the capsule carries the depth. */
.site-header.scrolled::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 78px;
    transition:
        min-height 0.45s ease,
        max-width 0.6s var(--ease-out),
        padding 0.6s var(--ease-out);
}

.site-header.scrolled .header-inner {
    min-height: 68px;
}

/* The real island moment: content and capsule condense together into a
   compact centred pill once the page scrolls (desktop nav only). */
@media (min-width: 1101px) {
    .site-header.scrolled .header-inner {
        max-width: 1044px;
        padding-inline: 30px;
    }

    .site-header.scrolled::before,
    .site-header.scrolled::after {
        width: min(100% - 20px, 1044px);
    }
}

.brand {
    display: flex;
    align-items: center;
    user-select: none;
    transform-origin: left center;
    transition:
        transform 0.45s var(--ease-out),
        opacity 0.3s ease;
}

/* The whole brand condenses slightly once the chrome compacts. */
.site-header.scrolled .brand {
    transform: scale(0.95);
}

/* The real word mark (white/gold) — the capsule stays dark in every
   state, so the logo never needs a colour switch. */
.brand-logo {
    display: block;
    height: 40px;
    width: auto;
    transition:
        transform 0.45s var(--ease-out),
        filter 0.45s ease;
}

.brand:hover .brand-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 0 14px rgba(156, 126, 70, 0.45));
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

/* Magic pill — one soft highlight glides between the links instead of
   each link lighting up separately (injected and driven by JS). */
@media (min-width: 1101px) {
    .site-nav {
        position: relative;
    }

    .nav-pill {
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 0;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.13);
        opacity: 0;
        pointer-events: none;
        transition:
            left 0.4s var(--ease-out),
            width 0.4s var(--ease-out),
            top 0.4s var(--ease-out),
            height 0.4s var(--ease-out),
            opacity 0.3s ease,
            background-color 0.3s ease;
    }

    .site-nav.has-pill a:hover {
        background: transparent;
    }

    .site-nav.has-pill a.nav-active {
        background: transparent;
    }
}

@media (max-width: 1100px) {
    .nav-pill {
        display: none;
    }
}

.site-nav a {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.85);
    transition:
        color 0.3s ease,
        background-color 0.2s ease;
}

.site-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.site-nav .nav-cta {
    margin-left: 10px;
    background: linear-gradient(165deg, #b3945c, #96793f);
    color: var(--navy);
    border: 1px solid rgba(240, 228, 196, 0.3);
    font-weight: 600;
    font-size: 13.5px;
    padding: 8px 18px;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    transition:
        background-color 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.3s ease;
}

/* Champagne shine sweeps across the CTA on hover. */
.site-nav .nav-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.38) 50%, transparent 68%);
    transform: translateX(-130%);
    transition: transform 0.7s var(--ease-out);
    pointer-events: none;
}

.site-nav .nav-cta:hover::after {
    transform: translateX(130%);
}

.site-nav .nav-cta:hover {
    background: linear-gradient(165deg, #c2a469, #a3854a);
    color: var(--navy);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(156, 126, 70, 0.6);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    transition:
        transform 0.3s var(--ease-out),
        background-color 0.3s ease;
}

.site-header.nav-open .nav-toggle span {
    background: #fff;
}

.site-header.nav-open .nav-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 1100px) {
    /* Full-screen brand drawer: dark navy glass, oversized numbered
       links, contact block — the mobile menu as a moment of its own. */
    .site-nav {
        position: fixed;
        inset: 0;
        width: auto;
        background: rgba(6, 12, 28, 0.96);
        -webkit-backdrop-filter: blur(22px) saturate(150%);
        backdrop-filter: blur(22px) saturate(150%);
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 2px;
        padding:
            calc(96px + env(safe-area-inset-top, 0px))
            clamp(28px, 9vw, 56px)
            calc(28px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        counter-reset: navlink;
        opacity: 0;
        transform: translateY(-3%) scale(1.02);
        visibility: hidden;
        transition:
            opacity 0.35s ease,
            transform 0.5s var(--ease-out),
            visibility 0s 0.5s;
    }

    .site-header.nav-open .site-nav {
        opacity: 1;
        transform: none;
        visibility: visible;
        transition:
            opacity 0.3s ease,
            transform 0.5s var(--ease-out);
    }

    .site-nav a,
    .site-header.scrolled .site-nav a {
        color: rgba(255, 255, 255, 0.92);
        font-size: clamp(24px, 6.4vw, 30px);
        font-weight: 700;
        letter-spacing: -0.02em;
        line-height: 1.2;
        padding: 13px 0;
        border-radius: 0;
    }

    .site-nav a:hover {
        background: transparent;
        color: #fff;
    }

    .site-nav > a:not(.nav-cta) {
        display: flex;
        align-items: baseline;
        gap: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .site-nav > a:not(.nav-cta)::before {
        counter-increment: navlink;
        content: "0" counter(navlink);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.12em;
        color: var(--gold-soft);
        opacity: 0.75;
        flex-shrink: 0;
    }

    .site-nav .nav-cta {
        margin-left: 0;
        margin-top: 30px;
        text-align: center;
        justify-content: center;
        display: flex;
        font-size: 16px;
        padding: 16px 24px;
    }

    /* Drawer links cascade in once the menu opens. */
    .site-nav > a {
        opacity: 0;
        transform: translateY(26px);
        transition:
            opacity 0.4s var(--ease-out),
            transform 0.45s var(--ease-out);
    }

    .site-header.nav-open .site-nav > a {
        opacity: 1;
        transform: none;
    }

    .site-header.nav-open .site-nav > a:nth-child(1) { transition-delay: 0.07s; }
    .site-header.nav-open .site-nav > a:nth-child(2) { transition-delay: 0.12s; }
    .site-header.nav-open .site-nav > a:nth-child(3) { transition-delay: 0.17s; }
    .site-header.nav-open .site-nav > a:nth-child(4) { transition-delay: 0.22s; }
    .site-header.nav-open .site-nav > a:nth-child(5) { transition-delay: 0.27s; }
    .site-header.nav-open .site-nav > a:nth-child(6) { transition-delay: 0.33s; }

    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 10;
    }

    /* The white word mark stays readable on the dark overlay. */
    .brand {
        position: relative;
        z-index: 11;
    }
}

/* The page behind an open drawer must not scroll. */
body.nav-lock {
    overflow: hidden;
}

/* ── Hero ──────────────────────────────────────────────── */

.hero {
    background: var(--navy);
    position: relative;
    overflow: hidden;
    margin-inline: clamp(10px, 1.2vw, 18px);
    border-radius: 0 0 34px 34px;
    padding-top: clamp(112px, 16vh, 160px);
    padding-bottom: clamp(72px, 10vh, 112px);
}

.hero-glow {
    position: absolute;
    inset: -40px;
    will-change: transform;
    background:
        radial-gradient(1100px 620px at 12% -8%, rgba(156, 126, 70, 0.12), transparent 60%),
        radial-gradient(900px 700px at 100% 110%, rgba(22, 42, 84, 0.5), transparent 62%);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: -24px;
    will-change: transform;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 85%);
    mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 85%);
    pointer-events: none;
}

.hero .container {
    position: relative;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    will-change: opacity, transform;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(156, 126, 70, 0.35);
    background: rgba(156, 126, 70, 0.08);
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-soft);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-title {
    font-family: var(--body);
    font-weight: 800;
    font-size: clamp(2.9rem, 6.8vw, 5.4rem);
    line-height: 1.02;
    color: #fff;
    letter-spacing: -0.038em;
    margin-bottom: 26px;
}

.hero-title em {
    font-style: normal;
}

.hero-title em {
    color: var(--gold-soft);
}

.hero-sub {
    font-size: clamp(17px, 1.5vw, 20px);
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.55;
    max-width: 560px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 26px;
}

.btn-arrow-down {
    display: inline-block;
}

.btn:hover .btn-arrow-down {
    transform: translateY(3px);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* Scroll cue — a quiet Apple-style invitation to begin the story. */
.scroll-cue {
    margin-top: clamp(36px, 6vh, 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-cue-line {
    width: 1px;
    height: 52px;
    background: rgba(255, 255, 255, 0.14);
    position: relative;
    overflow: hidden;
    display: block;
}

.scroll-cue-line i {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 18px;
    background: linear-gradient(180deg, transparent, var(--gold));
    animation: cueDrop 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes cueDrop {
    0% {
        transform: translateY(-20px);
    }
    70%,
    100% {
        transform: translateY(56px);
    }
}

.scroll-cue-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.hero-trust li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.62);
}

.check-ic {
    color: rgba(156, 126, 70, 0.85);
    font-size: 12px;
}

/* entrance stagger for hero children (delay via --d) */
.lp-rise {
    opacity: 0;
    animation: lpRise 0.9s var(--ease-out) forwards;
    animation-delay: var(--d, 0s);
}

@keyframes lpRise {
    from {
        opacity: 0;
        transform: translate3d(0, 24px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Letter-by-letter headline cascade (spans injected by JS).
   Letters stay grouped per word so lines still wrap on spaces. */
.lword {
    display: inline-block;
    white-space: nowrap;
}

.letter-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-block: 0.06em;
}

.letter-inner {
    display: inline-block;
    opacity: 0;
    transform: translateY(108%) rotate(6deg);
    transform-origin: 0 100%;
    transition:
        opacity 0.5s ease,
        transform 0.85s var(--ease-out);
}

.letters-shown .letter-inner {
    opacity: 1;
    transform: none;
}

/* Word-by-word headline reveal (spans injected by JS) */
.word-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-block: 0.06em;
}

.word-inner {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.75em);
    transition:
        opacity 0.7s ease,
        transform 0.7s var(--ease-out);
}

.words-shown .word-inner {
    opacity: 1;
    transform: translateY(0);
}

/* ── App mockup (shared hero + showcase) ───────────────── */

.app-mockup {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 1px 2px rgba(2, 6, 18, 0.2),
        0 24px 48px -12px rgba(2, 6, 18, 0.4),
        0 64px 120px -32px rgba(2, 6, 18, 0.5);
    background: var(--paper);
    font-family: var(--body);
}

.mock-browser {
    background: var(--navy-mid);
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.traffic {
    display: inline-flex;
    gap: 5px;
}

.traffic i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.traffic i:nth-child(1) { background: #ff5f57; }
.traffic i:nth-child(2) { background: #febc2e; }
.traffic i:nth-child(3) { background: #28c840; }

.mock-url {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 3px 12px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-layout {
    display: flex;
    height: 302px;
}

.mock-sidebar {
    width: 112px;
    flex-shrink: 0;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    padding-top: 8px;
    overflow: hidden;
}

@media (max-width: 480px) {
    .mock-sidebar {
        width: 92px;
    }
}

.mock-firm {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 8px 7px;
}

.mock-firm-logo {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: var(--gold);
    color: var(--navy);
    display: grid;
    place-items: center;
    font-size: 9px;
    flex-shrink: 0;
}

.mock-firm-name {
    font-size: 8px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-nav-group {
    padding: 0 6px;
}

.mock-nav-label {
    font-size: 5.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    padding: 0 6px;
    margin-bottom: 3px;
}

.mock-nav-label + .mock-nav-label,
.mock-nav-item + .mock-nav-label {
    margin-top: 6px;
}

.mock-nav-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4.5px 6px;
    border-radius: 5px;
    position: relative;
    color: rgba(255, 255, 255, 0.6);
    font-size: 8px;
    font-weight: 500;
    white-space: nowrap;
    transition:
        background-color 0.45s ease,
        color 0.45s ease;
}

.mock-nav-item .mock-nav-ic {
    font-size: 8px;
    width: 10px;
    display: inline-flex;
    justify-content: center;
    flex-shrink: 0;
}

.mock-nav-item.active {
    background: rgba(156, 126, 70, 0.16);
    color: #fff;
    font-weight: 600;
}

.mock-nav-item.active::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 22%;
    height: 56%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--gold);
}

.mock-side-spacer {
    flex: 1;
}

.mock-powered {
    margin: 0 6px 4px;
    padding: 4px 6px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 4px;
}

.mock-powered-label {
    font-size: 4.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    flex: 1;
}

.mock-powered-brand {
    font-family: var(--display);
    font-size: 8px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.mock-powered-brand b {
    color: var(--gold);
    font-weight: 700;
}

.mock-powered-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.mock-user {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mock-user-avatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    display: grid;
    place-items: center;
    font-size: 6.5px;
    font-weight: 700;
    flex-shrink: 0;
}

.mock-user-name {
    font-size: 7px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-user-role {
    font-size: 5.5px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mock-topbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mock-crumbs {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    font-size: 7.5px;
}

.mock-crumb-root {
    color: var(--ink-muted);
    font-weight: 500;
}

.mock-crumb-sep {
    color: #c3c7cd;
}

.mock-crumb-here {
    color: var(--ink);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: mockFade 0.5s ease-out;
}

@keyframes mockFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mock-topbar-spacer {
    flex: 1;
}

.mock-search {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    border-radius: 5px;
    border: 1px solid var(--line);
    background: #fafafa;
    font-size: 6.5px;
    color: var(--ink-muted);
}

@media (max-width: 480px) {
    .mock-search {
        display: none;
    }
}

.mock-kbd {
    font-size: 5px;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 1px 3px;
    border-radius: 3px;
    border: 1px solid var(--line);
    background: #fff;
    line-height: 1.4;
}

.mock-bell {
    position: relative;
    display: flex;
    font-size: 9px;
    color: var(--ink-soft);
}

.mock-bell::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--red);
}

.mock-page {
    flex: 1;
    background: var(--app-bg);
    padding: 10px 12px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    animation: mockFade 0.5s ease-out;
}

.mock-page-head > span:first-child {
    min-width: 0;
}

.mock-page-title,
.mock-page-sub {
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-page-title {
    font-family: var(--display);
    font-size: 15px;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.mock-page-title em {
    color: var(--navy);
}

.mock-page-sub {
    font-size: 6.5px;
    color: var(--ink-muted);
    font-weight: 500;
    margin-top: 2px;
    white-space: nowrap;
}

.mock-action {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    border-radius: 5px;
    background: var(--navy);
    color: #fff;
    font-size: 6.5px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.mock-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    animation: mockRise 0.55s ease-out;
}

@keyframes mockRise {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mock-stat {
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 7px;
    padding: 6px 8px;
    min-width: 0;
}

.mock-stat-label {
    font-size: 5.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-stat-value {
    font-family: var(--display);
    font-size: 13px;
    line-height: 1.05;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
}

.mock-table {
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 9px;
    overflow: hidden;
    flex: 1;
    animation: mockRise 0.6s ease-out;
}

.mock-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-bottom: 1px solid #f3f4f6;
}

.mock-row:last-child {
    border-bottom: none;
}

.mock-row:first-child {
    background: rgba(7, 14, 32, 0.02);
}

.mock-avatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(7, 14, 32, 0.08);
    color: var(--navy);
    display: grid;
    place-items: center;
    font-size: 6px;
    font-weight: 700;
    flex-shrink: 0;
}

.mock-avatar.icon {
    border-radius: 5px;
    background: rgba(7, 14, 32, 0.06);
    font-size: 8px;
}

.mock-row-text {
    min-width: 0;
    flex: 1;
}

.mock-row-primary {
    font-size: 8px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-row-secondary {
    font-size: 6.5px;
    color: var(--ink-muted);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-amount {
    font-size: 7.5px;
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .mock-amount {
        display: none;
    }
}

.mock-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 5px;
    border-radius: 999px;
    flex-shrink: 0;
    font-size: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1;
}

.mock-badge i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    display: inline-block;
}

/* ── Trust strip ───────────────────────────────────────── */

.trust {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.trust-inner {
    padding-block: clamp(36px, 5vw, 44px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 4vw, 40px);
}

.trust-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--ink-muted);
    text-transform: uppercase;
    white-space: nowrap;
}

.trust-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-soft);
    transition: color 0.25s ease;
}

.trust-logo:hover {
    color: var(--navy);
}

.trust-diamond {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.trust-name {
    font-weight: 700;
    font-size: clamp(22px, 2.4vw, 25px);
    letter-spacing: -0.02em;
    line-height: 1;
}

.trust-type {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-top: 3px;
}

/* ── Marquee ───────────────────────────────────────────── */

.marquee {
    overflow: hidden;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding-block: 22px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marquee 32s linear infinite;
    opacity: 0.8;
}

.marquee-track.reverse {
    animation-direction: reverse;
    animation-duration: 42s;
    margin-top: 8px;
    opacity: 0.35;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track span,
.marquee-track i {
    margin-right: 28px;
}

.marquee-track.paused {
    animation-play-state: paused;
}

/* JS drives the bands (velocity-reactive) — CSS loop steps aside. */
.marquee-track.js-run {
    animation: none;
}

.marquee-track span {
    font-family: var(--display);
    font-size: 19px;
    color: var(--ink-muted);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.marquee-track i {
    color: var(--gold);
    font-style: normal;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ── Showcase — Kapitel 2: grosse gepinnte Modul-Bühne ──
   Desktop: 640vh-Track pinnt eine 100svh-Szene mit breitem,
   gezoomtem Mockup, schwebendem Glas-Panel und Modul-Tabs.
   Mobile/Reduced Motion: gestapelte Karten mit eigenen Mockups. */

.showcase {
    background: var(--paper);
}

.showcase-track {
    position: relative;
    height: 640vh;
}

.showcase-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(14px, 2.6vh, 30px);
    overflow: hidden;
    padding-top: clamp(64px, 9vh, 92px);
}

.showcase-pin > .container {
    width: 100%;
}

.showcase-head {
    text-align: center;
}

.showcase-head .kicker {
    text-align: center;
}

.showcase-head .section-heading {
    margin-bottom: 0;
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}

.showcase-stage {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Oversized ghost numeral drifting behind the stage. */
.stage-num {
    position: absolute;
    left: clamp(-10px, 1vw, 30px);
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--body);
    font-weight: 800;
    letter-spacing: -0.04em;
    font-size: clamp(140px, 17vw, 260px);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(7, 14, 32, 0.09);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.5s ease;
    will-change: transform;
}

.showcase-frame {
    position: relative;
    z-index: 1;
    width: min(880px, 82%);
    margin-right: clamp(0px, 12vw, 190px);
    will-change: transform;
}

.showcase-frame .app-mockup {
    zoom: 1.18;
    transition: transform 0.65s var(--ease-out);
}

/* Floating glass panel with the module copy. */
.module-panel {
    position: absolute;
    right: clamp(0px, 1.5vw, 20px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: min(330px, 34%);
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    border: 1px solid rgba(7, 14, 32, 0.09);
    border-radius: 20px;
    padding: clamp(20px, 2.4vw, 30px);
    box-shadow:
        0 2px 6px rgba(7, 14, 32, 0.05),
        0 32px 70px -24px rgba(7, 14, 32, 0.35);
}

.module-panel .feature-icon {
    margin-bottom: 14px;
}

.module-panel .feature-title {
    font-size: clamp(1.4rem, 1.9vw, 1.75rem);
    margin-bottom: 8px;
}

.module-panel .feature-text {
    font-size: 14px;
    margin-bottom: 14px;
}

.module-panel .feature-bullets li {
    font-size: 13px;
    margin-bottom: 7px;
}

/* Content cascades on every module change. */
.module-panel.swap > * {
    animation: panelItem 0.55s var(--ease-out) both;
}

.module-panel.swap > *:nth-child(2) {
    animation-delay: 60ms;
}

.module-panel.swap > *:nth-child(3) {
    animation-delay: 120ms;
}

.module-panel.swap > *:nth-child(4) {
    animation-delay: 180ms;
}

@keyframes panelItem {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.module-panel.swap .feature-bullets li::before {
    animation: bulletPop 0.4s var(--ease-out) both;
}

.module-panel.swap .feature-bullets li:nth-child(1)::before {
    animation-delay: 0.28s;
}

.module-panel.swap .feature-bullets li:nth-child(2)::before {
    animation-delay: 0.38s;
}

.module-panel.swap .feature-bullets li:nth-child(3)::before {
    animation-delay: 0.48s;
}

@keyframes bulletPop {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Footer: counter, tab pills, status */
.showcase-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2vw, 26px);
    flex-wrap: wrap;
    position: relative;
    padding-top: 16px;
}

/* Hairline progress across the whole chapter, scrubbed by JS. */
.showcase-progress {
    position: absolute;
    top: 0;
    left: clamp(20px, 4vw, 40px);
    right: clamp(20px, 4vw, 40px);
    height: 2px;
    background: rgba(7, 14, 32, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.showcase-progress i {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold));
    transform-origin: 0 50%;
    transform: scaleX(0);
}

.showcase-count {
    font-family: var(--body);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--gold-heading);
    font-variant-numeric: tabular-nums;
}

.showcase-footer .module-status {
    margin-top: 0;
}

.showcase-tabs {
    display: flex;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px;
    box-shadow: 0 10px 30px -18px rgba(7, 14, 32, 0.3);
}

.showcase-tabs button {
    border: none;
    background: transparent;
    font-family: var(--body);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 9px 15px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background-color 0.35s ease,
        color 0.35s ease,
        transform 0.25s var(--ease-out);
}

.showcase-tabs button:hover {
    color: var(--navy);
    transform: translateY(-1px);
}

.showcase-tabs button.active {
    background: linear-gradient(165deg, #b3945c, #96793f);
    color: var(--navy);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Feature copy building blocks (shared with portal section & stack) */
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    background: var(--navy);
    color: var(--gold);
    border: 1px solid var(--navy);
    font-size: 20px;
}

.feature-title {
    font-family: var(--body);
    font-size: clamp(1.5rem, 2.2vw, 1.9rem);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.025em;
    line-height: 1.12;
    margin-bottom: 12px;
}

.feature-text {
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 420px;
}

.feature-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: var(--ink-soft);
    line-height: 1.5;
    margin-bottom: 9px;
}

.feature-bullets li::before {
    content: "✓";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(156, 126, 70, 0.14);
    color: var(--gold-text);
    font-size: 11px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Stacked cards (mobile & reduced motion) */
.showcase-stack {
    display: none;
    padding-block: 8px clamp(48px, 8vw, 80px);
}

.stack-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: clamp(18px, 3vw, 28px);
    margin-bottom: 18px;
    box-shadow: 0 18px 44px -30px rgba(7, 14, 32, 0.35);
}

.stack-card .app-mockup {
    margin-bottom: 20px;
}

.stack-card .feature-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
}

/* Short desktop viewports: compact the stage. */
@media (min-width: 961px) and (max-height: 860px) {
    .showcase-pin {
        padding-top: 88px;
        gap: 12px;
    }

    .showcase-head .section-heading {
        font-size: clamp(1.6rem, 2.6vw, 2rem);
    }

    .showcase-frame .app-mockup {
        zoom: 1.02;
    }

    .module-panel {
        width: min(300px, 34%);
    }

    .stage-num {
        font-size: clamp(120px, 14vw, 190px);
    }
}

/* Mobile: no pin — the stacked cards carry the images. */
@media (max-width: 960px) {
    .showcase-track {
        display: none;
    }

    .showcase-stack {
        display: block;
    }
}

/* Reduced motion on desktop uses the stack too (JS adds .static). */
.showcase.static .showcase-track {
    display: none;
}

.showcase.static .showcase-stack {
    display: block;
}

/* ── Products (Workspace & Advice) ─────────────────────── */

.products {
    background: var(--paper-warm);
    border-top: 1px solid var(--line);
    padding-bottom: clamp(64px, 9vw, 112px);
}

.product-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 32px);
    margin-top: clamp(24px, 4vw, 40px);
}

@media (max-width: 860px) {
    .product-cards {
        grid-template-columns: minmax(0, 1fr);
    }
}

.product-card {
    border-radius: 22px;
    padding: clamp(28px, 4vw, 44px);
    position: relative;
    overflow: hidden;
    transition:
        transform 0.4s var(--ease-out),
        box-shadow 0.4s ease;
    will-change: transform;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 80px -30px rgba(7, 14, 32, 0.35);
}

.product-card--workspace {
    background: var(--navy);
    color: #fff;
}

.product-card--workspace::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 300px at 85% -10%, rgba(156, 126, 70, 0.14), transparent 60%);
    pointer-events: none;
}

.product-card--advice {
    background: #fff;
    border: 1px solid var(--line);
}

.product-chip {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 18px;
}

.product-chip.gold {
    border-color: rgba(156, 126, 70, 0.35);
    color: var(--gold-text);
    background: rgba(156, 126, 70, 0.08);
}

.product-name {
    font-family: var(--body);
    font-weight: 800;
    font-size: clamp(1.7rem, 2.5vw, 2.1rem);
    letter-spacing: -0.028em;
    line-height: 1.08;
    margin-bottom: 14px;
}

.product-name em {
    font-style: normal;
}

.product-name em {
    color: var(--gold-heading);
}

.product-card--workspace .product-name em {
    color: var(--gold-soft);
}

.product-text {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 22px;
}

.product-card--workspace .product-text {
    color: rgba(255, 255, 255, 0.72);
}

.product-card--advice .product-text {
    color: var(--ink-soft);
}

.product-points {
    margin-bottom: 26px;
}

.product-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 9px;
}

.product-card--workspace .product-points li {
    color: rgba(255, 255, 255, 0.82);
}

.product-card--advice .product-points li {
    color: var(--ink-soft);
}

.product-points li::before {
    content: "✓";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(156, 126, 70, 0.16);
    color: var(--gold);
    font-size: 11px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: var(--gold-soft);
    transition: gap 0.25s var(--ease-out);
}

.product-link:hover {
    gap: 13px;
}

.product-card--advice .product-link {
    color: var(--navy);
}

/* connection flow */
.product-flow {
    margin-top: clamp(40px, 6vw, 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.flow-node {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 26px;
    text-align: center;
    box-shadow: 0 10px 30px -18px rgba(7, 14, 32, 0.3);
    flex-shrink: 0;
    opacity: 0.35;
    transform: scale(0.92);
    transition:
        opacity 0.45s ease,
        transform 0.45s var(--ease-out);
}

.flow-node.lit {
    opacity: 1;
    transform: scale(1);
}

.flow-node.navy {
    background: var(--navy);
    border-color: var(--navy);
}

.flow-node-title {
    display: block;
    font-family: var(--body);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 17px;
    line-height: 1.1;
    color: var(--ink);
}

.flow-node.navy .flow-node-title {
    color: #fff;
}

.flow-node-sub {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-top: 3px;
}

.flow-node.navy .flow-node-sub {
    color: rgba(255, 255, 255, 0.65);
}

.flow-line {
    position: relative;
    height: 2px;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, rgba(156, 126, 70, 0.15), rgba(156, 126, 70, 0.6), rgba(156, 126, 70, 0.15));
    flex: 1;
    max-width: 320px;
    margin-inline: -1px;
}

.flow-pulse {
    animation-play-state: paused;
    visibility: hidden;
}

.product-flow.live .flow-pulse {
    animation-play-state: running;
    visibility: visible;
}

.flow-pulse {
    position: absolute;
    top: 50%;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 14px rgba(156, 126, 70, 0.8);
    transform: translate(-4px, -50%);
    animation: flowPulse 2.6s ease-in-out infinite;
}

@keyframes flowPulse {
    0% {
        left: 0;
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    88% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

.flow-pulse-late {
    animation-delay: 1.3s;
}

.flow-caption {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    white-space: nowrap;
}

@media (max-width: 640px) {
    .product-flow {
        flex-direction: column;
        gap: 0;
    }

    .flow-line {
        transform: none;
        width: 2px;
        height: 72px;
        flex: none;
        max-width: none;
        background: linear-gradient(180deg, rgba(156, 126, 70, 0.15), rgba(156, 126, 70, 0.6), rgba(156, 126, 70, 0.15));
        margin-block: -1px;
    }

    .flow-pulse {
        left: 50%;
        top: 0;
        transform: translate(-50%, -4px);
        animation: flowPulseV 2.6s ease-in-out infinite;
    }

    @keyframes flowPulseV {
        0% {
            top: 0;
            opacity: 0;
        }
        12% {
            opacity: 1;
        }
        88% {
            opacity: 1;
        }
        100% {
            top: 100%;
            opacity: 0;
        }
    }

    .flow-caption {
        top: 50%;
        left: 14px;
        transform: translateY(-50%);
        white-space: normal;
        width: 132px;
        text-align: left;
        line-height: 1.5;
    }
}

/* ── Reach (Advice detail) ─────────────────────────────── */

.reach {
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding-bottom: clamp(64px, 9vw, 112px);
}

.reach-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 64px);
    align-items: center;
    margin-bottom: clamp(56px, 8vw, 88px);
}

.reach-row:last-child {
    margin-bottom: 0;
}

/* Alternating rows: on wide screens the visual switches sides. */
.reach-row.reversed .reach-visual {
    order: -1;
}

@media (max-width: 860px) {
    .reach-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .reach-row.reversed .reach-copy {
        order: 2;
    }

    .reach-row.reversed .reach-visual {
        order: 1;
    }
}

/* Plugin live demo (Advice-Detailseite) — the stage widget, standalone. */
.plugin-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.plugin-demo .stage-site-pill {
    display: inline-flex;
    align-self: center;
}

.plugin-demo .stage-widget {
    width: min(360px, 100%);
}

/* Integrations (Workspace-Detailseite) */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    margin-top: clamp(16px, 3vw, 32px);
}

@media (max-width: 720px) {
    .integrations-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.integration-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: clamp(24px, 3vw, 36px);
    transition:
        transform 0.45s var(--ease-out),
        box-shadow 0.45s var(--ease-out),
        border-color 0.45s var(--ease-out);
}

.integration-card:hover {
    transform: translateY(-6px);
    border-color: rgba(156, 126, 70, 0.4);
    box-shadow: 0 30px 60px -24px rgba(7, 14, 32, 0.18);
}

.integration-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.integration-name {
    font-weight: 800;
    font-size: clamp(19px, 1.8vw, 23px);
    letter-spacing: -0.024em;
}

.integration-tag {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-text);
    background: rgba(156, 126, 70, 0.1);
    border: 1px solid rgba(156, 126, 70, 0.25);
    padding: 5px 11px;
    border-radius: 999px;
    white-space: nowrap;
}

.integration-text {
    font-size: 15.5px;
    color: var(--ink-soft);
    line-height: 1.6;
}

.capability-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.capability-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: var(--gold);
    font-size: 19px;
    flex-shrink: 0;
}

.capability-badge {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-text);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.capability-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ink-muted);
    font-weight: 600;
    margin-top: 4px;
}

.capability-status .pulse-dot {
    width: 6px;
    height: 6px;
}

/* browser frame shared by plugin + portal mocks */
.browser-frame {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow:
        0 1px 2px rgba(7, 14, 32, 0.06),
        0 24px 56px -22px rgba(7, 14, 32, 0.35);
}

.browser-bar {
    background: #f3f4f6;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line);
}

.browser-url {
    flex: 1;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 3px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    color: var(--ink-muted);
}

.lock-ic {
    width: 8px;
    height: 6px;
    border: 1.2px solid currentColor;
    border-radius: 2px;
    position: relative;
    margin-top: 3px;
    flex-shrink: 0;
}

.lock-ic::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 1px;
    width: 4px;
    height: 4px;
    border: 1.2px solid currentColor;
    border-bottom: none;
    border-radius: 3px 3px 0 0;
}

.lock-ic.green {
    color: var(--green);
}

.site-skeleton {
    padding: 24px;
    opacity: 0.5;
}

.sk-line {
    height: 6px;
    border-radius: 4px;
    background: #e6e8eb;
    margin-bottom: 6px;
}

.sk-line.h11 {
    height: 11px;
    background: #d0d3d8;
    margin-bottom: 12px;
}

.sk-line.w52 { width: 52%; }
.sk-line.w60 { width: 60%; }
.sk-line.w64 { width: 64%; }
.sk-line.w74 { width: 74%; }
.sk-line.w82 { width: 82%; }
.sk-line.w88 { width: 88%; }

.sk-space {
    height: 108px;
}

.plugin-mock {
    position: relative;
}

.intake-widget {
    position: absolute;
    right: 20px;
    bottom: 18px;
    width: min(232px, 62%);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 24px 50px -18px rgba(7, 14, 32, 0.5);
}

.floaty {
    animation: floaty 5.5s ease-in-out infinite;
}

@keyframes floaty {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.intake-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    background: var(--navy);
}

.intake-avatar {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(150deg, #cbb083, var(--gold));
    color: var(--navy);
    font-weight: 800;
    font-size: 13px;
    font-family: var(--display);
}

.intake-title {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.intake-title strong {
    font-family: var(--display);
    font-weight: 400;
    font-size: 14px;
    color: #fff;
    line-height: 1.1;
    white-space: nowrap;
}

.intake-title small {
    font-size: 7.5px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2px;
    white-space: nowrap;
}

.intake-body {
    padding: 12px 14px;
    background: #f8f7f4;
}

.intake-label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 6px;
}

.intake-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.chip {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 600;
}

.chip.active {
    background: rgba(156, 126, 70, 0.16);
    color: var(--ink);
    border: 1px solid rgba(156, 126, 70, 0.35);
}

.chip.more {
    background: rgba(13, 17, 23, 0.06);
    color: var(--ink-soft);
    font-weight: 700;
}

.intake-input {
    height: 26px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    padding-inline: 8px;
    margin-bottom: 8px;
    font-size: 9.5px;
    color: var(--ink-muted);
}

.intake-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    background: linear-gradient(165deg, #b3945c, #96793f);
    color: var(--navy);
    font-size: 10px;
    font-weight: 700;
}

/* portal mock */
.portal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 18px;
    background: var(--navy);
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--display);
    font-size: 15px;
    color: #fff;
}

.portal-mark {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--gold);
    color: var(--navy);
    display: grid;
    place-items: center;
    font-size: 12px;
}

.portal-user {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.portal-body {
    padding: 18px;
    background: var(--paper-warm);
}

.portal-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 8px;
}

.portal-case {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    margin-bottom: 8px;
}

.portal-case > span:first-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.portal-case strong {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-case small {
    font-size: 10.5px;
    color: var(--ink-muted);
}

.portal-msg {
    margin-top: 14px;
    padding: 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
}

.portal-msg-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 7px;
}

.portal-msg {
    animation: msgGlow 3.2s ease-in-out infinite;
}

@keyframes msgGlow {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(156, 126, 70, 0);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(156, 126, 70, 0.12);
    }
}

.portal-msg .sk-line {
    height: 5px;
    margin-bottom: 5px;
}

.portal-msg .sk-line:last-child {
    margin-bottom: 0;
}

/* ── Manifesto ─────────────────────────────────────────── */

.manifesto {
    background: transparent;
    position: relative;
}

.manifesto-track {
    position: relative;
    height: 280vh;
}

.manifesto-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--navy);
    margin-inline: clamp(10px, 1.2vw, 18px);
    border-radius: 34px;
}

@media (max-width: 960px) {
    .manifesto-track {
        height: auto;
    }

    .manifesto-pin {
        position: static;
        height: auto;
        padding-block: clamp(96px, 14vw, 144px);
    }
}

.manifesto-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(1000px 500px at 50% 50%, rgba(156, 126, 70, 0.08), transparent 62%);
    pointer-events: none;
}

.manifesto .container {
    position: relative;
}

/* Scrubbed words idle at a whisper and light up in reading order.
   The .words-shown fallback (mobile / reduced motion) wins via :not(). */
.manifesto-text[data-words-scrub]:not(.words-shown) .word-inner {
    opacity: 0.14;
    transform: none;
}

.manifesto-text {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    line-height: 1.16;
    letter-spacing: -0.02em;
    color: #fff;
    max-width: 820px;
    margin-inline: auto;
}

.manifesto-text em {
    color: var(--gold-soft);
}

/* ── Personas / Security ───────────────────────────────── */

.personas {
    background: var(--paper-warm);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.security {
    background: var(--paper);
}

.personas-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: clamp(32px, 5vw, 48px);
    padding-block: clamp(64px, 9vw, 112px);
}

@media (max-width: 860px) {
    .personas-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.sticky-intro {
    position: sticky;
    top: 96px;
}

@media (max-width: 860px) {
    .sticky-intro {
        position: static;
    }
}

.persona {
    display: flex;
    gap: 24px;
    padding-block: 28px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
    transition: transform 0.35s var(--ease-out);
}

.persona:hover {
    transform: translateX(8px);
}

.persona:last-child {
    border-bottom: none;
}

.persona-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--navy);
    font-size: 20px;
    flex-shrink: 0;
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s var(--ease-out);
}

.persona:hover .persona-icon {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--gold);
    transform: rotate(-6deg) scale(1.05);
}

.personas-list .persona:nth-child(1) .persona-icon { animation: iconFloat 6s ease-in-out infinite; }
.personas-list .persona:nth-child(2) .persona-icon { animation: iconFloat 7s ease-in-out 0.8s infinite; }
.personas-list .persona:nth-child(3) .persona-icon { animation: iconFloat 6.5s ease-in-out 1.6s infinite; }
.personas-list .persona:nth-child(4) .persona-icon { animation: iconFloat 7.5s ease-in-out 2.4s infinite; }

@keyframes iconFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.persona-role {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-text);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.persona-headline {
    font-weight: 700;
    font-size: 17px;
    color: var(--ink);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.persona-text {
    font-size: 14.5px;
    color: var(--ink-soft);
    line-height: 1.65;
    margin-bottom: 14px;
}

.security .persona-text {
    margin-bottom: 0;
}

.persona-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.persona-points li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ink-soft);
}

.persona-points li::before {
    content: "✓";
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
}

/* ── Workflow ──────────────────────────────────────────── */

.workflow {
    background: var(--navy);
    position: relative;
    overflow: hidden;
    padding-bottom: clamp(64px, 9vw, 112px);
    margin-inline: clamp(10px, 1.2vw, 18px);
    margin-block: clamp(14px, 2vw, 26px);
    border-radius: 34px;
}

.workflow-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 420px at 50% 0%, rgba(156, 126, 70, 0.08), transparent 60%);
    pointer-events: none;
}

.workflow .container {
    position: relative;
}

.process {
    position: relative;
    margin-top: clamp(16px, 4vw, 40px);
}

.process-line,
.process-fill {
    position: absolute;
    top: 23px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
}

.process-line {
    background: rgba(255, 255, 255, 0.12);
}

.process-fill {
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
    transform-origin: 0 50%;
    transform: scaleX(0);
    box-shadow: 0 0 12px rgba(156, 126, 70, 0.5);
}

.process-spark {
    position: absolute;
    top: 23px;
    left: 12.5%;
    width: 10px;
    height: 10px;
    margin: -4px 0 0 -5px;
    border-radius: 50%;
    background: #ecdcb2;
    box-shadow:
        0 0 10px rgba(156, 126, 70, 0.9),
        0 0 26px rgba(156, 126, 70, 0.55);
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
    display: none;
}

@media (min-width: 961px) {
    .process-spark {
        display: block;
    }
}

@media (max-width: 960px) {
    .process-line,
    .process-fill {
        display: none;
    }
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
}

@media (max-width: 960px) {
    .process-steps {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 560px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-inline: 20px;
}

@media (max-width: 960px) {
    .process-step {
        align-items: flex-start;
        text-align: left;
    }
}

.process-num {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    margin-bottom: 24px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.5);
    transition:
        background-color 0.45s ease,
        color 0.45s ease,
        border-color 0.45s ease,
        box-shadow 0.45s ease;
}

.process-step.lit .process-num {
    background: linear-gradient(165deg, #b3945c, #8a6d38);
    border-color: transparent;
    color: var(--navy);
    box-shadow: 0 0 0 6px rgba(156, 126, 70, 0.14);
    animation: numPop 0.5s var(--ease-out);
}

@keyframes numPop {
    0% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.22);
    }
    100% {
        transform: scale(1);
    }
}

.process-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
    color: #fff;
    transition: color 0.45s ease;
}

.process-step.lit .process-title {
    color: var(--gold);
}

.process-text {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.65;
    max-width: 220px;
}

/* ── Why ───────────────────────────────────────────────── */

.why {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

@media (max-width: 860px) {
    .why {
        grid-template-columns: minmax(0, 1fr);
    }
}

.why-dark {
    background: var(--navy-dark);
    padding: clamp(64px, 9vw, 96px) clamp(32px, 6vw, 72px);
    display: flex;
    align-items: center;
}

.why-heading {
    font-family: var(--body);
    font-weight: 800;
    font-size: clamp(2.1rem, 3.3vw, 2.8rem);
    color: #fff;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.why-heading em {
    font-style: normal;
}

.why-heading em {
    color: var(--gold-soft);
}

.why-sub {
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.75;
    margin-bottom: 40px;
    max-width: 380px;
}

.why-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.why-stat-value {
    display: block;
    font-family: var(--body);
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: 28px;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.why-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.62);
    letter-spacing: 0.04em;
}

.why-light {
    background: #fff;
    padding: clamp(64px, 9vw, 96px) clamp(32px, 6vw, 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.benefit {
    display: flex;
    gap: 20px;
    padding-block: 26px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
    transition: transform 0.35s var(--ease-out);
}

.benefit:hover {
    transform: translateX(8px);
}

.benefit:last-child {
    border-bottom: none;
}

.benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: rgba(7, 14, 32, 0.04);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--navy);
    font-size: 18px;
    flex-shrink: 0;
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

.benefit:hover .benefit-icon {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--gold);
}

.benefit-title {
    font-weight: 700;
    font-size: 15.5px;
    color: var(--ink);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.benefit-text {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.7;
}

/* ── FAQ ───────────────────────────────────────────────── */

.faq {
    background: var(--paper-warm);
    border-top: 1px solid var(--line);
    padding-bottom: clamp(64px, 9vw, 112px);
}

.faq-list {
    border-top: 1px solid var(--line);
    margin-top: clamp(16px, 3vw, 28px);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 22px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    font-weight: 600;
    font-size: clamp(17px, 1.5vw, 19px);
    color: var(--ink);
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover,
.faq-item[open] summary {
    color: var(--navy);
}

.faq-toggle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    position: relative;
    color: var(--gold-heading);
    transition:
        border-color 0.25s ease,
        background-color 0.25s ease;
}

.faq-toggle::before,
.faq-toggle::after {
    content: "";
    position: absolute;
    background: var(--ink-muted);
    transition:
        transform 0.28s var(--ease-out),
        background-color 0.25s ease;
}

.faq-toggle::before {
    width: 12px;
    height: 1.6px;
}

.faq-toggle::after {
    width: 1.6px;
    height: 12px;
}

.faq-item[open] .faq-toggle {
    border-color: var(--gold);
    background: rgba(156, 126, 70, 0.1);
}

.faq-item[open] .faq-toggle::before,
.faq-item[open] .faq-toggle::after {
    background: var(--gold-heading);
    transform: rotate(45deg);
}

.faq-answer {
    overflow: hidden;
}

.faq-answer p {
    font-size: 14.5px;
    color: var(--ink-soft);
    line-height: 1.75;
    padding-bottom: 24px;
    max-width: 640px;
}

/* ── CTA ───────────────────────────────────────────────── */

.cta {
    background: var(--navy);
    position: relative;
    overflow: hidden;
    text-align: center;
    padding-block: clamp(80px, 12vw, 112px);
    margin-inline: clamp(10px, 1.2vw, 18px);
    margin-block: clamp(14px, 2vw, 26px);
    border-radius: 34px;
}

.cta-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(800px 420px at 50% 0%, rgba(156, 126, 70, 0.12), transparent 62%);
    pointer-events: none;
}

.cta .container {
    position: relative;
    max-width: 640px;
}

.cta-heading {
    font-family: var(--body);
    font-weight: 800;
    font-size: clamp(2.2rem, 4vw, 3.1rem);
    color: #fff;
    letter-spacing: -0.034em;
    line-height: 1.04;
    margin-bottom: 20px;
}

.cta-heading em {
    font-style: normal;
}

.cta-heading em {
    color: var(--gold-soft);
}

.cta-sub {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.75;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.cta-note {
    margin-top: 20px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.6);
}

/* ── Footer — full brand footer with link columns ──────── */

.site-footer {
    background: var(--navy-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 56px);
    padding-block: clamp(48px, 6vw, 76px) clamp(32px, 4vw, 48px);
}

.footer-logo {
    height: 44px;
    width: auto;
    margin-bottom: 18px;
}

.footer-tag {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.55);
    max-width: 320px;
    margin-bottom: 18px;
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.footer-contact a {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-soft);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-col-title {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    width: fit-content;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.62);
    padding-block: 5px;
    transition:
        color 0.25s ease,
        transform 0.25s var(--ease-out);
}

.footer-col a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.footer-ch {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.footer-ch-cross {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: #d52b1e;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    display: inline-grid;
    place-items: center;
}

@media (max-width: 860px) {
    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .footer-top {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ── Hero product shot — tilted stage that rights itself ── */

.hero-shot-wrap {
    position: relative;
    margin-top: clamp(44px, 7vh, 84px);
    perspective: 1500px;
    width: 100%;
}

.hero-shot {
    max-width: 980px;
    margin-inline: auto;
    transform-origin: 50% 0%;
    will-change: transform;
}

.hero-shot .app-mockup {
    border-radius: 18px;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 30px 60px -18px rgba(2, 6, 18, 0.6),
        0 80px 160px -40px rgba(2, 6, 18, 0.55);
}

.hero-shot-floor {
    position: absolute;
    left: 50%;
    bottom: -30px;
    width: min(72%, 760px);
    height: 90px;
    transform: translateX(-50%);
    background: radial-gradient(50% 100% at 50% 0%, rgba(156, 126, 70, 0.3), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

/* ── Side rail — chapter dots, blending against any ground ── */

.side-rail {
    position: fixed;
    right: clamp(14px, 2vw, 30px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 13px;
    mix-blend-mode: difference;
}

.side-rail a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: #fff;
    padding-block: 2px;
}

.side-rail i {
    order: 2;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    flex-shrink: 0;
    transition:
        transform 0.3s var(--ease-out),
        background-color 0.3s ease;
}

.side-rail span {
    order: 1;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(8px);
    transition:
        opacity 0.3s ease,
        transform 0.3s var(--ease-out);
}

.side-rail a:hover span,
.side-rail a.active span {
    opacity: 0.9;
    transform: none;
}

.side-rail a:hover i,
.side-rail a.active i {
    background: #fff;
}

.side-rail a.active i {
    transform: scale(1.55);
}

@media (max-width: 1280px) {
    .side-rail {
        display: none;
    }
}

/* ── Story — Kapitel 1: Plugin → Workspace (scroll-scrub) ──
   Desktop: a 420vh track pins a 100vh scene; JS scrubs the
   choreography from scroll progress. Mobile & reduced motion:
   the scene stacks statically in its final state. */

.story {
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.story-track {
    position: relative;
    height: 720vh;
}

.story-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(16px, 3vh, 36px);
    overflow: hidden;
    /* Clears the fixed site header so the chapter kicker stays visible. */
    padding-top: clamp(64px, 9vh, 92px);
}

/* .container children carry auto inline margins, which beat flex
   stretching — force them to full width inside the pinned scene. */
.story-pin > .container {
    width: 100%;
}

.story-head {
    text-align: center;
}

.story-head .kicker {
    text-align: center;
}

.story-head .section-heading {
    margin-bottom: 0;
}

.story-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
}

.stage-connector {
    height: clamp(40px, 7vh, 76px);
    width: 100%;
}

.stage-plugin {
    position: relative;
    align-self: flex-start;
    margin-left: clamp(0px, 6vw, 96px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stage-site-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 11.5px;
    color: var(--ink-muted);
    box-shadow: 0 4px 14px -8px rgba(7, 14, 32, 0.25);
}

.stage-widget {
    position: static;
    width: min(330px, 100%);
    box-shadow: 0 30px 60px -20px rgba(7, 14, 32, 0.45);
    will-change: transform;
    transform-origin: 50% 100%;
}

.stage-widget .intake-title strong {
    font-size: 16px;
}

.stage-widget .intake-type {
    min-height: 52px;
}

.stage-widget .type-line {
    height: 7px;
}

/* Chip picks itself as the visitor "chooses" their Rechtsgebiet. */
.stage-widget .chip[data-step-chip] {
    background: rgba(13, 17, 23, 0.05);
    color: var(--ink-soft);
    border: 1px solid transparent;
    transition:
        background-color 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease,
        transform 0.35s var(--ease-out);
}

.stage-widget.picked .chip[data-step-chip] {
    background: rgba(156, 126, 70, 0.16);
    color: var(--ink);
    border-color: rgba(156, 126, 70, 0.35);
    transform: scale(1.08);
}

/* The visitor's message "types" itself line by line (widths via JS). */
.intake-type {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 8px;
    min-height: 44px;
}

.intake-type .type-line {
    display: block;
    height: 6px;
    border-radius: 4px;
    background: #d9dce1;
    margin-bottom: 6px;
}

.intake-type .type-line:last-child {
    margin-bottom: 0;
}

/* Send button flips to its sent state. */
.stage-widget .send-done {
    display: none;
}

.stage-widget.sent .intake-btn {
    background: var(--green);
    color: #fff;
}

.stage-widget.sent .send-label {
    display: none;
}

.stage-widget.sent .send-done {
    display: inline-flex;
}

.stage-path {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

#flowPathBg {
    stroke: rgba(7, 14, 32, 0.12);
    stroke-width: 1.5;
    stroke-dasharray: 3 7;
}

#flowPathFill {
    stroke: var(--gold);
    stroke-width: 2.5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(156, 126, 70, 0.55));
}

/* The case card that carries the request across the stage. */
.stage-card {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    width: 236px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow:
        0 3px 10px rgba(7, 14, 32, 0.1),
        0 30px 60px -18px rgba(7, 14, 32, 0.45);
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.stage-card-title {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-text);
    margin-bottom: 7px;
}

.stage-card .chip {
    margin-bottom: 8px;
    display: inline-block;
}

.stage-card-line {
    font-size: 12px;
    color: var(--ink);
    line-height: 1.5;
    margin-bottom: 7px;
}

.stage-card-meta {
    font-size: 10.5px;
    color: var(--ink-muted);
}

/* The card's content materialises during the flight. */
.stage-card .stage-card-line,
.stage-card .stage-card-meta {
    opacity: 0;
    transform: translateY(6px);
    transition:
        opacity 0.45s ease,
        transform 0.45s var(--ease-out);
}

.stage-card.show-line .stage-card-line {
    opacity: 1;
    transform: none;
}

.stage-card.show-meta .stage-card-meta {
    opacity: 1;
    transform: none;
}

/* Soft glow escorting the card down the path. */
.stage-glow {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(156, 126, 70, 0.28), transparent 65%);
    filter: blur(24px);
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

/* Spark dots that trail the case card down the path. */
.stage-trail i {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e9d9ae;
    box-shadow: 0 0 12px rgba(156, 126, 70, 0.8);
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.stage-trail i:last-child {
    width: 6px;
    height: 6px;
}

/* Toast that pops out of the workspace once the request has landed. */
.ws-toast {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 320px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--navy);
    color: rgba(255, 255, 255, 0.85);
    font-size: 11.5px;
    line-height: 1.45;
    box-shadow: 0 18px 40px -14px rgba(7, 14, 32, 0.6);
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.45s ease,
        transform 0.45s var(--ease-out);
    pointer-events: none;
}

.ws-toast strong {
    color: #fff;
}

.ws-toast-ic {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.ws-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.stage-workspace {
    position: relative;
    width: min(860px, 100%);
    align-self: flex-end;
    margin-right: clamp(0px, 2vw, 32px);
    opacity: 0;
    transform: translate3d(0, 44px, 0);
    will-change: transform, opacity;
}

/* Short desktop viewports: compact the scene so nothing clips. */
@media (min-width: 961px) and (max-height: 860px) {
    .story-pin {
        padding-top: 92px;
        gap: 12px;
    }

    .story-head .section-heading.xl {
        font-size: clamp(1.7rem, 3vw, 2.2rem);
    }

    .story-head .kicker {
        margin-bottom: 6px;
    }

    .stage-site-pill {
        display: none;
    }

    .stage-widget {
        width: 250px;
    }

    .stage-widget .intake-type {
        min-height: 34px;
    }

    .stage-connector {
        height: 18px;
    }

    .stage-workspace {
        width: min(600px, 100%);
    }

    .stage-widget {
        width: 250px;
    }

    .ws-toast {
        font-size: 10px;
        max-width: 250px;
    }

    .story .mock-layout {
        height: 218px;
    }

    .story-captions {
        height: 22px;
    }

    .story-captions p {
        font-size: 13px;
    }

    .story-progress {
        margin-top: 8px;
    }
}

/* Freshly landed inbox row */
.mock-row-new {
    position: relative;
    background: rgba(156, 126, 70, 0.12) !important;
    animation: rowLand 1s var(--ease-out);
}

.mock-row-new::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold);
}

@keyframes rowLand {
    0% {
        background: rgba(156, 126, 70, 0.45);
        transform: translateY(-4px);
    }
    100% {
        background: rgba(156, 126, 70, 0.12);
        transform: translateY(0);
    }
}

/* Mobile connector between the two mocks */
.stage-arrow {
    display: none;
}

.story-footer {
    text-align: center;
}

.story-captions {
    position: relative;
    height: 30px;
}

@media (max-width: 1280px) {
    .story-captions {
        height: 54px;
    }
}

.story-captions p {
    position: absolute;
    inset: 0;
    font-size: clamp(14px, 1.3vw, 16px);
    font-weight: 500;
    color: var(--ink-soft);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.story-captions p.active {
    opacity: 1;
}

.story-progress {
    width: 180px;
    height: 2px;
    border-radius: 2px;
    background: var(--line);
    margin: 14px auto 0;
    overflow: hidden;
}

#storyBar {
    display: block;
    height: 100%;
    background: var(--gold);
    transform-origin: 0 50%;
    transform: scaleX(0);
}

@media (max-width: 960px) {
    .story-track {
        height: auto;
    }

    .story-pin {
        position: static;
        height: auto;
        overflow: visible;
        padding-block: clamp(56px, 9vw, 88px) 40px;
        gap: 32px;
    }

    .story-stage {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .stage-path,
    .stage-card,
    .stage-connector {
        display: none;
    }

    .stage-plugin {
        width: 100%;
        align-self: center;
        align-items: center;
        margin-left: 0;
        margin-bottom: 4px;
    }

    .stage-site-pill {
        align-self: center;
    }

    .stage-workspace {
        width: 100%;
        align-self: center;
        margin-right: 0;
        opacity: 1;
        transform: none;
    }

    /* The visitor's message types itself once the widget scrolls
       into view (widths set by JS, eased here). */
    .intake-type .type-line {
        transition: width 0.6s var(--ease-out);
    }

    .stage-arrow {
        display: flex;
        justify-content: center;
    }

    .stage-arrow i {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 1px solid rgba(156, 126, 70, 0.4);
        background: rgba(156, 126, 70, 0.08);
        color: var(--gold-text);
        font-style: normal;
        font-size: 16px;
        display: grid;
        place-items: center;
        animation: arrowNudge 1.8s ease-in-out infinite;
    }

    @keyframes arrowNudge {
        0%,
        100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(6px);
        }
    }

    .story-captions {
        height: auto;
        display: grid;
        gap: 8px;
    }

    .story-captions p {
        position: static;
        opacity: 1;
        text-align: left;
        padding-left: 20px;
        position: relative;
    }

    .story-captions p::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0.55em;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--gold);
    }

    .story-progress {
        display: none;
    }
}

/* Tilt targets interpolate softly back when the pointer leaves. */
[data-tilt-card] {
    will-change: transform;
    transition:
        transform 0.35s var(--ease-out),
        box-shadow 0.4s ease;
}

/* Scroll parallax lives at the end of the reveal block so it wins the
   cascade once an element is revealed — see below. */

/* ── Über-uns-Seite ─────────────────────────────────────
   Baut vollständig auf dem bestehenden System auf; hier stehen
   nur die Seiten-eigenen Bausteine: Narrative, Facts-Band,
   Werte-Karten, Weg-Timeline und Team-Band. */

.about-hero {
    padding-top: clamp(128px, 20vh, 190px);
    padding-bottom: clamp(88px, 12vh, 128px);
}

/* Active nav link (current page) */
.site-nav .nav-active {
    color: #fff;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .site-nav .nav-active,
    .site-header.scrolled .site-nav .nav-active {
        color: var(--gold-soft);
    }
}

/* Narrative — editorial two-column story */
.narrative {
    background: var(--paper);
}

.narrative-body {
    max-width: 640px;
}

.narrative-lead {
    font-family: var(--display);
    font-size: clamp(1.6rem, 2.6vw, 2.15rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 28px;
}

.narrative-lead::before {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    border-radius: 2px;
    background: var(--gold);
    margin-bottom: 26px;
}

.narrative-body p:not(.narrative-lead) {
    font-size: 16px;
    line-height: 1.85;
    color: var(--ink-soft);
    margin-bottom: 20px;
}

.narrative-body strong {
    color: var(--ink);
}

/* Facts band — navy strip with the stat tiles */
.facts {
    background: var(--navy);
    position: relative;
    overflow: hidden;
    padding-block: clamp(40px, 6vw, 64px);
    margin-inline: clamp(10px, 1.2vw, 18px);
    margin-block: clamp(14px, 2vw, 26px);
    border-radius: 34px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 640px) {
    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hero-stat {
    padding: clamp(20px, 3vw, 26px) 16px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-stat:last-child {
    border-right: none;
}

@media (max-width: 640px) {
    .hero-stat:nth-child(2) {
        border-right: none;
    }

    .hero-stat:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }
}

.hero-stat-value {
    display: block;
    font-family: var(--body);
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: clamp(28px, 3.6vw, 36px);
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.hero-stat-label {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.62);
    letter-spacing: 0.04em;
}

/* Werte — numbered cards */
.values {
    background: var(--paper-warm);
    border-top: 1px solid var(--line);
    padding-bottom: clamp(64px, 9vw, 112px);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    margin-top: clamp(16px, 3vw, 32px);
}

@media (max-width: 1080px) {
    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .values-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.value-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: clamp(24px, 3vw, 32px);
    position: relative;
    overflow: hidden;
    transition:
        transform 0.35s var(--ease-out),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -28px rgba(7, 14, 32, 0.35);
    border-color: rgba(156, 126, 70, 0.45);
}

.value-num {
    display: block;
    font-family: var(--body);
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 40px;
    line-height: 1;
    color: rgba(156, 126, 70, 0.35);
    margin-bottom: 18px;
    transition: color 0.35s ease;
}

.value-card:hover .value-num {
    color: var(--gold-heading);
}

.value-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.value-text {
    font-size: 14px;
    line-height: 1.75;
    color: var(--ink-soft);
}

/* Weg — vertical scroll-lit timeline on navy */
.journey {
    background: var(--navy);
    position: relative;
    overflow: hidden;
    padding-bottom: clamp(72px, 10vw, 120px);
    margin-inline: clamp(10px, 1.2vw, 18px);
    margin-block: clamp(14px, 2vw, 26px);
    border-radius: 34px;
}

.journey-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 500px at 50% 20%, rgba(156, 126, 70, 0.08), transparent 62%);
    pointer-events: none;
}

.journey .container {
    position: relative;
}

.timeline {
    position: relative;
    max-width: 720px;
    margin-inline: auto;
    margin-top: clamp(24px, 4vw, 48px);
    padding-left: 44px;
}

.timeline-line,
.timeline-fill {
    position: absolute;
    left: 10px;
    top: 8px;
    bottom: 8px;
    width: 2px;
}

.timeline-line {
    background: rgba(255, 255, 255, 0.12);
}

.timeline-fill {
    background: linear-gradient(180deg, var(--gold-deep), var(--gold-soft));
    transform-origin: 50% 0;
    transform: scaleY(0);
    box-shadow: 0 0 12px rgba(156, 126, 70, 0.5);
}

.timeline-item {
    position: relative;
    padding-bottom: clamp(40px, 6vw, 64px);
    opacity: 0.45;
    transition: opacity 0.45s ease;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item.lit {
    opacity: 1;
}

.timeline-dot {
    position: absolute;
    left: -44px;
    top: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition:
        background-color 0.45s ease,
        border-color 0.45s ease,
        box-shadow 0.45s ease;
}

.timeline-item.lit .timeline-dot {
    background: var(--gold);
    border-color: transparent;
    box-shadow: 0 0 0 6px rgba(156, 126, 70, 0.16);
    animation: numPop 0.5s var(--ease-out);
}

.timeline-tag {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 6px;
}

.timeline-title {
    font-family: var(--body);
    font-weight: 700;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.timeline-text {
    font-size: 14.5px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.62);
    max-width: 560px;
}

/* Team band */
.team-band {
    background: var(--navy-dark);
    position: relative;
    overflow: hidden;
    padding-block: clamp(88px, 12vw, 128px);
    margin-inline: clamp(10px, 1.2vw, 18px);
    margin-block: clamp(14px, 2vw, 26px);
    border-radius: 34px;
}

.team-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 460px at 50% 50%, rgba(156, 126, 70, 0.07), transparent 62%);
    pointer-events: none;
}

.team-band .container {
    position: relative;
}

.team-quote {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: #fff;
    max-width: 780px;
    margin-inline: auto;
}

.team-quote em {
    color: var(--gold-soft);
}

.team-note {
    margin-top: 28px;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.62);
}

.team-note a {
    color: var(--gold-soft);
    font-weight: 600;
    border-bottom: 1px solid rgba(214, 192, 150, 0.4);
    transition: border-color 0.25s ease;
}

.team-note a:hover {
    border-color: var(--gold);
}

/* ── Team — die vier Mitgründer:innen ──────────────────── */

.team-people {
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding-bottom: clamp(72px, 10vw, 128px);
}

.team-intro {
    max-width: 660px;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    margin-top: clamp(20px, 3vw, 40px);
}

@media (max-width: 1080px) {
    .people-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .people-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.person-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: clamp(24px, 2.6vw, 32px);
    transition:
        transform 0.5s var(--ease-out),
        box-shadow 0.5s var(--ease-out),
        border-color 0.5s var(--ease-out);
}

.person-card:hover {
    border-color: rgba(156, 126, 70, 0.4);
    box-shadow: 0 32px 64px -28px rgba(7, 14, 32, 0.2);
}

/* Monogram plaque — stands in until the portraits arrive. */
.person-avatar {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--navy-mid), var(--navy-dark));
    border: 1px solid rgba(156, 126, 70, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: var(--gold-soft);
    font-family: var(--display);
    font-size: 22px;
    letter-spacing: 0.02em;
    margin-bottom: 18px;
    transition: transform 0.45s var(--ease-out);
}

.person-card:hover .person-avatar {
    transform: scale(1.07) rotate(-3deg);
}

.person-name {
    font-weight: 800;
    font-size: 18.5px;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.person-role {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-text);
    margin-bottom: 14px;
}

.person-text {
    font-size: 14px;
    line-height: 1.62;
    color: var(--ink-soft);
}

.team-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: clamp(32px, 5vw, 56px);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
}

/* Craft (Wie wir bauen) shares the personas layout on white */
.craft {
    background: var(--paper);
}

/* ── Reveal-on-scroll (driven by JS) ───────────────────── */

[data-reveal] {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition:
        opacity 0.8s var(--ease-out),
        transform 0.8s var(--ease-out),
        filter 0.8s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

[data-reveal][data-reveal-blur] {
    filter: blur(10px);
}

[data-reveal][data-reveal-left] {
    transform: translate3d(-52px, 14px, 0);
}

[data-reveal][data-reveal-right] {
    transform: translate3d(52px, 14px, 0);
}

[data-reveal][data-reveal-zoom] {
    transform: scale(0.86) translate3d(0, 26px, 0);
}

[data-reveal][data-reveal-flip] {
    transform: perspective(900px) rotateX(16deg) translate3d(0, 34px, 0);
    transform-origin: 50% 100%;
}

/* Children cascade once the ancestor (or the element itself, when it
   carries both attributes) reveal fires. */
[data-reveal] .stagger-kids > *,
[data-reveal].stagger-kids > * {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.55s var(--ease-out),
        transform 0.55s var(--ease-out);
}

[data-reveal].revealed .stagger-kids > *:nth-child(1),
[data-reveal].stagger-kids.revealed > *:nth-child(1) { transition-delay: 0.15s; }
[data-reveal].revealed .stagger-kids > *:nth-child(2),
[data-reveal].stagger-kids.revealed > *:nth-child(2) { transition-delay: 0.24s; }
[data-reveal].revealed .stagger-kids > *:nth-child(3),
[data-reveal].stagger-kids.revealed > *:nth-child(3) { transition-delay: 0.33s; }
[data-reveal].revealed .stagger-kids > *:nth-child(4),
[data-reveal].stagger-kids.revealed > *:nth-child(4) { transition-delay: 0.42s; }
[data-reveal].revealed .stagger-kids > *:nth-child(5),
[data-reveal].stagger-kids.revealed > *:nth-child(5) { transition-delay: 0.51s; }
[data-reveal].revealed .stagger-kids > *:nth-child(6),
[data-reveal].stagger-kids.revealed > *:nth-child(6) { transition-delay: 0.6s; }

[data-reveal].revealed .stagger-kids > *,
[data-reveal].stagger-kids.revealed > * {
    opacity: 1;
    transform: none;
}

[data-reveal][data-reveal-wipe] {
    clip-path: inset(0 0 100% 0);
    transition:
        opacity 0.8s var(--ease-out),
        transform 0.8s var(--ease-out),
        clip-path 0.95s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal][data-reveal-wipe].revealed {
    clip-path: inset(0 0 -8% 0);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
    will-change: auto;
}

/* Scroll parallax — JS feeds --parallax-y/--parallax-x/--lean; revealed
   elements (or ones without a reveal) ride them. Placed after the
   .revealed reset so the vars win the cascade at equal specificity.
   Hover/tilt transforms fold the vars in so the layers never fight. */
[data-parallax].revealed,
[data-parallax]:not([data-reveal]),
[data-parallax-x].revealed,
[data-parallax-x]:not([data-reveal]),
[data-lean].revealed,
[data-lean]:not([data-reveal]) {
    transform: translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0) rotate(var(--lean, 0deg));
}

[data-parallax].product-card:hover {
    transform: translate3d(var(--parallax-x, 0px), calc(var(--parallax-y, 0px) - 6px), 0) rotate(var(--lean, 0deg));
}

/* ── Reduced motion — the whole page settles instantly ─── */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .preloader {
        display: none;
    }

    body.loading {
        overflow: auto;
    }

    .cursor-dot,
    .cursor-ring {
        display: none;
    }

    [data-reveal],
    [data-reveal][data-reveal-blur],
    .lp-rise {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .word-inner,
    .letter-inner {
        opacity: 1;
        transform: none;
    }

    .process-fill {
        transform: scaleX(1);
    }

    .showcase-step {
        opacity: 1;
        transform: none;
    }

    /* Pinned scrub tracks collapse — the scenes show their final state
       without the long empty scroll runway. */
    .story-track,
    .manifesto-track {
        height: auto !important;
    }

    .story-pin,
    .manifesto-pin {
        position: static;
        height: auto;
    }

    .manifesto-pin {
        padding-block: clamp(96px, 14vw, 144px);
    }

    .story-pin {
        padding-block: 48px;
    }

    .stage-path,
    .stage-card,
    .stage-glow,
    .stage-trail {
        display: none;
    }

    .story-captions {
        height: auto;
    }

    .story-captions p {
        position: static;
        opacity: 1;
        transform: none;
    }
}

/* ── SVG line icons ────────────────────────────────────── */

.feature-icon svg,
.capability-icon svg {
    width: 22px;
    height: 22px;
}

.persona-icon svg,
.benefit-icon svg {
    width: 22px;
    height: 22px;
}

/* ── Mobile swipe decks — card grids become snap carousels ── */

@media (max-width: 960px) {
    .values-grid,
    .people-grid,
    .integrations-grid,
    .product-cards,
    .showcase-stack {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 14px;
        margin-inline: calc(-1 * clamp(20px, 4vw, 40px));
        padding-inline: clamp(20px, 4vw, 40px);
        padding-bottom: 14px;
        scroll-padding-inline: clamp(20px, 4vw, 40px);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .values-grid::-webkit-scrollbar,
    .people-grid::-webkit-scrollbar,
    .integrations-grid::-webkit-scrollbar,
    .product-cards::-webkit-scrollbar,
    .showcase-stack::-webkit-scrollbar {
        display: none;
    }

    .value-card,
    .person-card,
    .integration-card {
        flex: 0 0 80%;
        scroll-snap-align: center;
    }

    .product-card {
        flex: 0 0 86%;
        scroll-snap-align: center;
    }

    .showcase-stack .stack-card {
        flex: 0 0 87%;
        scroll-snap-align: center;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
    }

    /* Swipe affordance under each deck. */
    .swipe-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 2px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--ink-muted);
    }

    .swipe-hint::before,
    .swipe-hint::after {
        content: "";
        width: 28px;
        height: 1px;
        background: currentColor;
        opacity: 0.4;
    }
}

@media (min-width: 961px) {
    .swipe-hint {
        display: none;
    }
}
