/* ==========================================================================
   LekkerLogic 2026: "spec sheet" design
   Dark-only, graphite canvas, hairline structure, one mint signal color.
   Sections:
     1  Tokens            8  Why custom (before / after)
     2  Base              9  Services cells
     3  Primitives        10 Process stages
     4  Navigation        11 AI practices
     5  Hero + console    12 Contact + form
     6  Sections          13 Footer
     7  Work              14 Case-study sheet
                          15 Responsive / 16 Motion
   ========================================================================== */

/* 1 Tokens ---------------------------------------------------------------- */
:root {
    color-scheme: dark;

    --bg: #08090b;            /* page */
    --bg-1: #0d0f12;          /* raised panel */
    --bg-2: #13161a;          /* inset / bar */
    --bg-3: #1b1f24;          /* selected */
    --line: rgba(255, 255, 255, .07);
    --line-2: rgba(255, 255, 255, .11);
    --line-3: rgba(255, 255, 255, .18);

    --fg: #eceef1;            /* headings, primary text  (17:1 on --bg) */
    --fg-2: #a1a7b0;          /* body                    (8.2:1)        */
    --fg-3: #7f8690;          /* labels, meta            (5.3:1 on bg, 4.9:1 on bg-2) */
    --fg-4: #4b525c;          /* decorative only: gutters, rules */

    --signal: #62e8b4;        /* the one accent: cursor, active state, indices, focus */
    --signal-tint: rgba(98, 232, 180, .09);
    --signal-ring: rgba(98, 232, 180, .22);
    --sky: #7cc4ff;           /* supporting accents: used for per-item color coding */
    --violet: #a99bff;
    --amber: #f3c56b;
    --grad: linear-gradient(95deg, #62e8b4 0%, #7cc4ff 45%, #a99bff 100%);
    --warn: #f3c56b;
    --del: #f0a19a;
    --del-tint: rgba(240, 120, 110, .07);

    --sans: 'Instrument Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

    --wrap: 1300px;
    --gutter: 32px;
    --rail: calc(var(--wrap) + 2 * var(--gutter));
    --radius: 12px;
    --sec-pad: 120px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

/* 2 Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg-2);
    font: 400 16px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
html.has-sheet { overflow: hidden; }
h1, h2, h3, h4 { margin: 0; color: var(--fg); font-weight: 600; letter-spacing: -.012em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: rgba(98, 232, 180, .3); color: #fff; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 4px; }

main, .footer, .nav { position: relative; z-index: 1; }
.wrap { width: 100%; max-width: var(--rail); margin-inline: auto; padding-inline: var(--gutter); }

.nowrap { white-space: nowrap; }
.vh {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
    position: fixed; left: 16px; top: -60px; z-index: 100;
    background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* 3 Primitives ------------------------------------------------------------ */
.mono-label {
    font: 500 12px/1.4 var(--mono);
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--fg-3);
}
.mono-idx { font: 500 12px/1.4 var(--mono); color: var(--signal); letter-spacing: .02em; }
.signal-dot {
    display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    background: var(--signal); box-shadow: 0 0 0 3px var(--signal-tint), 0 0 12px var(--signal-ring);
    margin-right: 10px; vertical-align: 1px;
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent;
    font: 500 14.5px/1 var(--sans); letter-spacing: -.005em; white-space: nowrap;
    cursor: pointer; text-decoration: none;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn i { font-size: 1.05em; line-height: 1; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 7px; }
.btn-lg { height: 48px; padding: 0 20px; font-size: 15.5px; border-radius: 9px; }
.btn-primary { background: var(--signal); color: #04221a; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15), 0 8px 24px -10px rgba(98, 232, 180, .55); }
.btn-primary:hover { background: #86f0c7; }
.btn-ghost { background: rgba(255, 255, 255, .025); border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); border-color: var(--line-3); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.icon-btn {
    display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
    border: 1px solid var(--line-2); border-radius: 8px; background: transparent;
    color: var(--fg-2); font-size: 18px; cursor: pointer; transition: background-color .15s, color .15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .05); color: var(--fg); }

.link-arrow { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--fg-2); transition: color .15s; }
.link-arrow:hover { color: var(--fg); }

/* Browser-window frame for real screenshots */
.frame { display: block; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.frame img { display: block; width: 100%; height: auto; }
.frame-bar {
    display: flex; align-items: center; gap: 14px; height: 32px; padding: 0 12px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.frame-dots { display: inline-flex; gap: 6px; }
.frame-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-3); }
.frame-url { display: inline-flex; align-items: center; gap: 6px; font: 400 11.5px/1 var(--mono); color: var(--fg-3); }

/* Key/value spec table */
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec dt { font: 500 11.5px/1.6 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); }
.spec dd { margin: 0; font-size: 14px; line-height: 1.5; color: var(--fg); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font: 400 11.5px/1 var(--mono); color: var(--fg-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 8px; }

.private-chip {
    display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
    border: 1px solid var(--line-2); border-radius: 7px; background: var(--bg-2);
    font: 500 12px/1 var(--mono); color: var(--fg); letter-spacing: .02em;
}
.private-chip i { color: var(--signal); font-size: 14px; }

/* 4 Navigation ------------------------------------------------------------ */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(8, 9, 11, .72);
    -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); border-radius: 8px; }
.mark { display: block; flex: none; }
.mark-box { fill: rgba(255, 255, 255, .03); stroke: var(--line-3); }
.mark-l { fill: none; stroke: var(--fg); stroke-width: 2; stroke-linecap: square; }
.mark-dot { fill: var(--signal); }
.wordmark { font: 600 18px/1 var(--sans); letter-spacing: -.012em; color: var(--fg); }
.wordmark span { color: var(--fg-2); }
/* Header brand: larger than the footer one */
.nav .brand { gap: 12px; }
.nav .mark { width: 36px; height: 36px; }
.nav .wordmark { font-size: 23px; letter-spacing: -.018em; }
@media (max-width: 640px) {
    .nav .mark { width: 32px; height: 32px; }
    .nav .wordmark { font-size: 20px; }
}
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 7px 12px; border-radius: 7px; font-size: 14.5px; color: var(--fg-2); transition: color .15s, background-color .15s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--fg); }
.nav-links a:hover { background: rgba(255, 255, 255, .04); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu .wrap { display: flex; flex-direction: column; padding-block: 8px 20px; }
.mobile-menu a:not(.btn) {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--fg);
}
.mobile-menu a:not(.btn) i { color: var(--fg-3); }
.mobile-menu .btn { margin-top: 20px; height: 48px; }

/* 5 Hero + console -------------------------------------------------------- */
.hero { position: relative; padding: 96px 0 0; overflow: hidden; }
/* Blueprint grid, masked to fade out around the headline */
.hero-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: center -1px;
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 28%, #000 10%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 55% at 50% 28%, #000 10%, transparent 75%);
}
/* One restrained glow, sitting behind the console */
.hero::before {
    content: ''; position: absolute; left: 50%; top: 380px; width: 1400px; height: 640px;
    transform: translateX(-50%); pointer-events: none;
    background:
        radial-gradient(closest-side at 30% 55%, rgba(98, 232, 180, .13), transparent),
        radial-gradient(closest-side at 72% 45%, rgba(124, 140, 255, .16), transparent);
}
/* Soft color wash behind the headline */
.hero::after {
    content: ''; position: absolute; right: -10%; top: -160px; width: 900px; height: 700px; pointer-events: none;
    background:
        radial-gradient(closest-side at 60% 40%, rgba(169, 155, 255, .12), transparent),
        radial-gradient(closest-side at 30% 70%, rgba(124, 196, 255, .08), transparent);
}
.hero h1 .hl {
    background: var(--grad); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.hero .wrap { position: relative; }
/* Top line of the hero: kicker on the left, whitepaper pill on the right */
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; margin-bottom: 28px; }
.hero-top .hero-kicker { margin-bottom: 0; }
@media (max-width: 760px) { .hero-top { flex-direction: column-reverse; align-items: flex-start; } }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px; flex: none; max-width: 100%; padding: 5px 14px 5px 5px;
    border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .03);
    font-size: 14px; line-height: 1.3; color: var(--fg); transition: border-color .15s, background-color .15s;
}
.hero-badge:hover { border-color: color-mix(in srgb, var(--signal) 45%, transparent); background: var(--signal-tint); }
.hero-badge-tag { padding: 5px 10px; border-radius: 999px; background: var(--signal-tint); box-shadow: inset 0 0 0 1px var(--signal-ring); font: 500 11px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--signal); }
.hero-badge i { color: var(--fg-3); font-size: 15px; transition: transform .2s var(--ease), color .15s; }
.hero-badge:hover i { color: var(--signal); transform: translateX(3px); }
.hero-kicker { display: flex; align-items: center; margin-bottom: 28px; }
.hero-kicker .sep { color: var(--fg-4); margin: 0 10px; }
.hero h1 {
    max-width: 15em;
    font-size: clamp(2.6rem, 1.1rem + 4.8vw, 5.25rem);
    line-height: 1; letter-spacing: -.032em; font-weight: 600;
    font-stretch: 96%;
    text-wrap: balance;
}
.caret {
    display: inline-block; width: .075em; height: .78em; margin-left: .08em;
    background: var(--signal); vertical-align: -.04em;
    box-shadow: 0 0 18px var(--signal-ring);
    animation: blink 1.1s steps(1) infinite;
}
.caret.is-typing { animation: none; }
/* Fixed first line; the typed phrase gets a line of its own so nothing above or beside it reflows */
.hero h1 .hero-line { display: block; text-wrap: wrap; }
.hero h1 .hero-typed { white-space: nowrap; }
/* The longest phrase plus caret is about 9.5em wide, so on narrow phones the headline scales down to keep it on one line (40px = page gutters) */
.hero h1 { font-size: min(clamp(2.6rem, 1.1rem + 4.8vw, 5.25rem), (100vw - 40px) / 9.6); }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px 64px; margin-top: 36px; }
.hero-sub .lead { max-width: 34em; font-size: 18px; line-height: 1.6; color: var(--fg-2); }
.hero-sub .btn-row { flex: none; }

.console-wrap { margin-top: 64px; }
.console {
    position: relative;
    background: var(--bg-1);
    border: 1px solid var(--line-2);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .5);
}
/* Hairline highlight along the top edge */
.console::before {
    content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 1px; z-index: 2;
    background: linear-gradient(90deg, transparent, rgba(98, 232, 180, .5), transparent);
}
.console-bar { display: flex; align-items: stretch; justify-content: space-between; height: 42px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.console-tabs { display: flex; min-width: 0; overflow: hidden; scrollbar-width: none; }
.console-tab {
    display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; flex: none;
    border-right: 1px solid var(--line); cursor: pointer;
    font: 400 12px/1 var(--mono); color: var(--fg-3); transition: color .15s;
}
.console-tab i { font-size: 13px; }
.console-tab:hover { color: var(--fg-2); }
.console-tab.is-active { color: var(--fg); background: var(--bg-1); box-shadow: inset 0 1px 0 var(--signal); }
.console-tab.is-active i { color: var(--signal); }
.console-state { display: flex; align-items: center; padding: 0 16px; font: 400 12px/1 var(--mono); color: var(--fg-2); flex: none; }

.console-body { display: grid; grid-template-columns: minmax(0, 1fr) 420px; height: 420px; }
.console-code {
    position: relative; display: flex; margin: 0; padding: 16px 0; overflow: hidden;
    font: 400 12.5px/20px var(--mono); border-right: 1px solid var(--line);
    -webkit-mask-image: linear-gradient(transparent 0, #000 28px, #000 calc(100% - 12px), transparent);
    mask-image: linear-gradient(transparent 0, #000 28px, #000 calc(100% - 12px), transparent);
}
.console-gutter { flex: none; width: 52px; padding-right: 18px; text-align: right; color: var(--fg-4); user-select: none; will-change: transform; }
.console-gutter span { display: block; }
.console-text { display: block; white-space: pre; color: #c9ced6; will-change: transform; font: inherit; }
.cur { display: inline-block; width: 7px; height: 15px; margin-left: 1px; vertical-align: -3px; background: var(--signal); animation: blink 1s steps(1) infinite; }
.tok-comment { color: #6b7380; font-style: italic; }
.tok-keyword { color: #d6b8ff; }
.tok-string { color: #9fe3c6; }
.tok-number { color: #f5b38a; }
.tok-function { color: #9ec3ff; }
.tok-type { color: #f0d58f; }
.tok-var { color: #f0d58f; }
.tok-prop { color: #d5dae1; }
.tok-punct { color: #7c8490; }
.tok-op { color: #b4bcc6; }

.console-side { display: flex; flex-direction: column; min-height: 0; background: #0b0d10; }
.console-h {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    height: 36px; padding: 0 18px; border-bottom: 1px solid var(--line);
    font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3);
}
.console-h-meta { text-transform: none; letter-spacing: 0; color: var(--fg-4); }
.pipe { display: grid; grid-template-columns: repeat(4, 1fr); padding: 18px 10px 16px; border-bottom: 1px solid var(--line); }
.pipe li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.pipe-node {
    position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px;
    border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg-2);
    color: var(--fg-3); font-size: 16px; transition: color .2s, border-color .2s, box-shadow .2s;
}
.pipe-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 10.5px/1.2 var(--mono); color: var(--fg-3); transition: color .2s; }
.pipe li:not(:last-child)::after {
    content: ''; position: absolute; top: 18px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 1px;
    background: var(--line-2);
}
.pipe li.is-done .pipe-node { color: var(--fg); border-color: var(--line-3); }
.pipe li.is-done .pipe-label { color: var(--fg-2); }
.pipe li.is-done:not(:last-child)::after { background: rgba(98, 232, 180, .45); }
.pipe li.is-active .pipe-node { color: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 4px var(--signal-tint), 0 0 22px rgba(98, 232, 180, .25); }
.pipe li.is-active .pipe-label { color: var(--fg); }
/* A data packet travelling out of the active node */
.pipe li.is-active:not(:last-child)::after {
    background: linear-gradient(90deg, transparent, var(--signal), transparent) no-repeat, var(--line-2);
    background-size: 40% 100%, 100% 100%;
    animation: packet 1.1s linear infinite;
}
@keyframes packet { from { background-position: -60% 0, 0 0; } to { background-position: 160% 0, 0 0; } }

.out { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; overflow: hidden; }
.out-line { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 13.5px; line-height: 1.45; color: var(--fg-2); animation: line-in .2s var(--ease); }
.out-line b { color: var(--fg); font-weight: 600; }
.out-line small { display: block; margin-top: 2px; font: 400 11.5px/1.4 var(--mono); color: var(--fg-3); }
.out-line > i { font-size: 15px; line-height: 19px; color: var(--fg-3); }
.out-line.is-ok > i { color: var(--signal); }
.out-line.is-warn > i { color: var(--warn); }
.out-line.is-thinking > i { animation: spin 1s linear infinite; display: inline-block; height: 19px; transform-origin: 50% 50%; }
@keyframes line-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes spin { to { transform: rotate(360deg); } }

.console-status {
    display: flex; align-items: center; gap: 22px; height: 30px; padding: 0 16px;
    border-top: 1px solid var(--line); background: var(--bg-2);
    font: 400 11px/1 var(--mono); color: var(--fg-3); white-space: nowrap;
}
.console-status span { display: inline-flex; align-items: center; gap: 6px; }
.console-status b { font-weight: 500; color: var(--fg-2); }
.console-status i { color: var(--signal); font-size: 12px; }
.console-status .is-right { margin-left: auto; }

.built-for { display: flex; align-items: center; gap: 16px 32px; padding: 40px 0 56px; flex-wrap: wrap; }
.built-for ul { display: flex; flex-wrap: wrap; gap: 8px 0; }
.built-for li { padding: 0 16px; border-left: 1px solid var(--line-2); font-size: 14.5px; color: var(--fg-2); line-height: 1.2; }
.built-for li:first-child { border-left: 0; padding-left: 0; }
.built-for li.built-for-more { flex-basis: 100%; margin-top: 10px; padding-left: 0; border-left: 0; }
.built-for-more a { display: inline-flex; align-items: center; gap: 6px; color: var(--signal); transition: color .15s; }
.built-for-more a:hover { color: #86f0c7; }
.built-for-more i { font-size: 14px; transition: transform .2s var(--ease); }
.built-for-more a:hover i { transform: translateX(3px); }

/* 6 Sections -------------------------------------------------------------- */
.sec { position: relative; padding: var(--sec-pad) 0; border-top: 1px solid var(--line); }

.sec-idx { display: flex; align-items: baseline; gap: 12px; font: 500 12px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3); }
.sec-idx span { color: var(--signal); }
.sec-head { display: grid; grid-template-columns: 3fr 9fr; gap: 24px 32px; margin-bottom: 64px; }
.sec-head .sec-idx { padding-top: 14px; }
.sec h2 { max-width: 20em; font-size: clamp(2rem, 1.25rem + 2.3vw, 3.1rem); line-height: 1.08; letter-spacing: -.026em; font-stretch: 96%; text-wrap: balance; }
.sec-head > div > p, .why-copy > p:not(.sec-idx), .contact-copy > p:not(.sec-idx) { max-width: 38em; margin-top: 20px; font-size: 17.5px; line-height: 1.6; }

/* Section backdrops (01 to 05). Each section gets a faint pattern that fades out from one corner
   (::before, masked) and one or two soft color washes (the section's own background).
   Per-section values are set on the ids below; 06 Contact keeps its own breathing backdrop. */
.sec:not(.sec-contact) {
    --lines: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    --dots: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .15) 1px, transparent 1.6px);
    isolation: isolate; background-image: var(--wash, none); background-repeat: no-repeat;
}
.sec:not(.sec-contact)::before {
    content: ''; position: absolute; inset: 0 0 auto; height: min(100%, 860px); z-index: -1; pointer-events: none;
    background-image: var(--pattern, var(--lines)); background-size: var(--cell, 56px) var(--cell, 56px); background-position: center -1px;
    -webkit-mask-image: var(--fade); mask-image: var(--fade);
}
#work {
    --fade: radial-gradient(ellipse 58% 62% at 92% 6%, #000 4%, transparent 74%);
    --wash: radial-gradient(640px 440px at 92% 60px, rgba(98, 232, 180, .075), transparent 70%), radial-gradient(560px 460px at 2% 46%, rgba(124, 196, 255, .045), transparent 70%);
}
#why {
    --pattern: var(--dots); --cell: 22px;
    --fade: radial-gradient(ellipse 52% 78% at 6% 42%, #000 4%, transparent 74%);
    --wash: radial-gradient(620px 520px at 0% 44%, rgba(169, 155, 255, .085), transparent 70%), radial-gradient(520px 380px at 100% 96%, rgba(98, 232, 180, .04), transparent 70%);
}
#services {
    --fade: radial-gradient(ellipse 58% 62% at 6% 6%, #000 4%, transparent 74%);
    --wash: radial-gradient(640px 440px at 6% 60px, rgba(124, 196, 255, .075), transparent 70%), radial-gradient(560px 420px at 98% 92%, rgba(169, 155, 255, .045), transparent 70%);
}
#process {
    --pattern: var(--dots); --cell: 26px;
    --fade: radial-gradient(ellipse 74% 62% at 50% 78%, #000 4%, transparent 74%);
    --wash: radial-gradient(900px 380px at 50% 82%, rgba(98, 232, 180, .055), transparent 70%), radial-gradient(460px 340px at 96% 10%, rgba(243, 197, 107, .04), transparent 70%);
}
#practices {
    --fade: radial-gradient(ellipse 58% 62% at 94% 6%, #000 4%, transparent 74%);
    --wash: radial-gradient(640px 460px at 94% 60px, rgba(169, 155, 255, .085), transparent 70%), radial-gradient(560px 460px at 0% 52%, rgba(98, 232, 180, .04), transparent 70%);
}

.js .rv { opacity: 0; transform: translateY(10px); transition: opacity .2s ease-out, transform .2s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }

/* 7 Work ------------------------------------------------------------------ */
/* The first two cases are full-width rows, then two cards per row: tiles (screenshot
   on top, summary and tags below), an odd tile out as a full-width row, then the
   compact cards.
   Cards carry only enough to choose; the sheets hold the detail. */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case {
    position: relative; display: flex; flex-direction: column; cursor: pointer;
    background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
}
.case-copy { display: flex; flex-direction: column; padding: 32px; flex: 1; }
.case-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 32px; margin-bottom: 24px; }
.case-top .mono-idx { order: 2; margin-left: auto; }
.case-logo { display: block; width: auto; }
.case h3 { margin: 10px 0 14px; font-size: 28px; line-height: 1.1; letter-spacing: -.022em; }
.case-text { font-size: 15.5px; line-height: 1.6; max-width: 40em; text-wrap: pretty; }
.case .tags { margin-top: 24px; }
.case-actions { margin-top: auto; padding-top: 28px; gap: 20px; }

.case-media {
    position: relative; display: block; padding: 0; border: 0; cursor: pointer; overflow: hidden;
    background:
        radial-gradient(80% 70% at 70% 0%, rgba(98, 232, 180, .07), transparent 70%),
        var(--bg-2);
    border-bottom: 1px solid var(--line);
    order: -1; height: 300px;
}
.case-media .frame {
    position: absolute; top: 32px; left: 32px; width: calc(100% + 40px);
    border-radius: 10px 0 0 0; border-right: 0; border-bottom: 0;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
    transition: transform .2s var(--ease), border-color .2s;
}
.case-media:hover .frame { transform: translate(-4px, -4px); border-color: var(--line-3); }
.case-media:focus-visible { outline-offset: -3px; border-radius: 16px 16px 0 0; }

/* Compact: short crop, logo row, kicker, title, then the two links.
   The frame shows the screenshot's full width (bleeding off the right only), since
   not every screenshot keeps its content top-left (the flight map is centered). */
.case.is-compact .case-media { height: 280px; }
.case.is-compact .case-media .frame { top: 24px; left: 24px; width: 100%; }
.case.is-compact .case-copy { padding: 24px; }
.case.is-compact .case-top { height: 28px; margin-bottom: 16px; }
.case.is-compact .case-logo { max-height: 26px; }
.case.is-compact h3 { margin: 8px 0 0; font-size: 21px; line-height: 1.2; letter-spacing: -.016em; }
.case.is-compact .case-actions { padding-top: 20px; }

/* Full-width row: copy on the left and the screenshot bleeding off the right */
.case.is-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 10fr); }
.case.is-wide .case-media { order: 0; height: auto; min-height: 340px; border-bottom: 0; border-left: 1px solid var(--line); }
.case.is-wide .case-media .frame { top: 32px; left: 40px; width: 110%; }
.case.is-wide .case-top { margin-bottom: 20px; }
/* Text-weight "Case study" action, so five cards don't stack five mint buttons */
.case-open { padding: 0; border: 0; background: none; cursor: pointer; font-weight: 500; color: var(--fg); }
.case-open i { color: var(--accent); transition: transform .2s var(--ease); }
.case:hover .case-open i { transform: translateX(3px); }

/* Also built: icon on the left spanning title + description, so each tile is one block */
.also { margin-top: 64px; }
.also-label { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.also-label .rule { flex: 1; height: 1px; background: var(--line); }
.also-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.also-grid li {
    display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto 1fr;
    column-gap: 16px; row-gap: 4px; align-items: start; padding: 20px 24px; background: var(--bg);
}
.also-grid li > i { grid-row: 1 / span 2; margin: 0; }
.also-grid h3 { margin: 0; padding-top: 1px; font-size: 15.5px; line-height: 1.4; letter-spacing: -.01em; }
.also-grid p { font-size: 14px; line-height: 1.55; }

/* 8 Why custom (before / after) ------------------------------------------- */
/* Four problem -> answer pairs in one panel. The problem half sits recessed and
   muted on the page color; the answer half is raised, tinted with the row's --c
   and carries the icon, so the eye lands on the answers. */
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.why-copy { padding-top: 14px; } /* puts "02 Why custom" on the panel's column-label line */
.why-copy h2 { margin-top: 24px; }
.why-paper { margin-top: 28px; max-width: 100%; height: auto; min-height: 40px; padding-block: 9px; white-space: normal; text-align: left; line-height: 1.3; }
.why-paper i:first-child { color: var(--signal); }
/* Adoption and return prompt under the before/after panel */
.ask {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px 48px;
    margin-top: 64px; padding: 32px 36px; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
    background: radial-gradient(90% 140% at 0 0, rgba(98, 232, 180, .09), transparent 60%), radial-gradient(80% 140% at 100% 100%, rgba(169, 155, 255, .09), transparent 60%), var(--bg-1);
}
.ask::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--grad); opacity: .55; }
.ask .mono-label { display: flex; align-items: center; }
.ask h3 { margin-top: 14px; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.1; letter-spacing: -.024em; font-stretch: 96%; }
.ask p:not(.mono-label) { max-width: 46em; margin-top: 12px; font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.ask .btn { flex: none; }
@media (max-width: 760px) {
    .ask { flex-direction: column; align-items: flex-start; margin-top: 40px; padding: 24px; }
    .ask .btn { width: 100%; }
}
.vs { --split: minmax(0, 1fr) minmax(0, 1.2fr); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.vs-head { display: grid; grid-template-columns: var(--split); background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
.vs-head .mono-label { display: flex; align-items: center; height: 44px; padding: 0 24px; font-size: 11.5px; }
.vs-head-to { padding-left: 32px !important; border-left: 1px solid var(--line-2); color: var(--fg-2); }
.vs-list li { display: grid; grid-template-columns: var(--split); }
.vs-list li + li { border-top: 1px solid var(--line); }
.vs-from { display: flex; flex-direction: column; justify-content: center; padding: 24px 32px 24px 24px; }
.vs-from b { display: block; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--fg-2); }
.vs-from > span:last-child { display: block; margin-top: 4px; text-wrap: pretty; font-size: 14px; line-height: 1.5; color: var(--fg-3); }
.vs-to {
    position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; align-items: center; align-content: center;
    padding: 24px 24px 24px 32px; border-left: 1px solid var(--line-2);
    background: radial-gradient(90% 120% at 0 50%, color-mix(in srgb, var(--c) 7%, transparent), transparent 70%), var(--bg-1);
    transition: background-color .15s;
}
.vs-to b { display: block; font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; color: var(--fg); }
.vs-to div > span:last-child { display: block; margin-top: 4px; text-wrap: pretty; font-size: 14.5px; line-height: 1.5; color: var(--fg-2); }
.vs-icon {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; font-size: 17px; color: var(--c);
    background: color-mix(in srgb, var(--c) 11%, transparent); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
}
/* The connector sits on the seam between the two halves */
.vs-arrow {
    position: absolute; left: -13px; top: 50%; z-index: 1; display: grid; place-items: center;
    width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
    background: var(--bg-2); border: 1px solid var(--line-3); color: var(--fg-2); font-size: 14px;
    transition: transform .15s var(--ease), color .15s, border-color .15s;
}
.vs-list li:hover .vs-arrow { transform: translateX(2px); color: var(--c); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
/* Side tags: read by screen readers everywhere, shown only when the rows stack (15 Responsive) */
.vs-tag { display: block; margin-bottom: 8px; font: 500 11px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3); }
.vs-to .vs-tag { color: color-mix(in srgb, var(--c) 80%, var(--fg)); }
@media (min-width: 641px) {
    .vs-tag {
        position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
        overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
    }
}

/* 9 Services cells -------------------------------------------------------- */
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cells > li { background: var(--bg); padding: 32px; transition: background-color .2s; display: flex; flex-direction: column; }
.cells > li:hover { background: var(--bg-1); }
.cell-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; }
.cell-top .mono-idx { color: var(--fg-3); }
.cell-top i { font-size: 20px; color: var(--fg-2); transition: color .2s; }
.cells > li:hover .cell-top i { color: var(--signal); }
.cells h3 { font-size: 19px; letter-spacing: -.012em; margin-bottom: 10px; }
.cells p { font-size: 15px; line-height: 1.6; }
.cells .eg { margin-top: auto; padding-top: 18px; font: 400 12.5px/1.55 var(--mono); color: var(--fg-2); }
.cells .eg span { display: block; margin-bottom: 4px; padding-top: 16px; border-top: 1px dashed var(--line-2); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3); }
.cells.is-practices > li { padding: 24px 28px; }
.cells.is-practices .cell-top { margin-bottom: 18px; }
.cells.is-practices h3 { font-size: 17px; margin-bottom: 6px; }
.cells.is-practices p { font-size: 14.5px; line-height: 1.55; }

/* 10 Process stages ------------------------------------------------------- */
.stages { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.stages::before { content: ''; position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--signal) 0, var(--line-3) 30%, var(--line-2)); }
.stages li { position: relative; display: flex; flex-direction: column; }
.stage-node { position: relative; width: 15px; height: 15px; margin-bottom: 32px; border: 1px solid var(--line-3); border-radius: 4px; background: var(--bg); transform: rotate(45deg); }
.stages li:first-child .stage-node { border-color: var(--signal); background: var(--signal); box-shadow: 0 0 16px var(--signal-ring); }
.stages h3 { margin: 10px 0 12px; font-size: 26px; letter-spacing: -.022em; }
.stages .mono-idx { color: var(--fg-3); }
.stages p { font-size: 15px; line-height: 1.6; }
.stage-out { display: flex; gap: 8px; align-items: flex-start; margin-top: auto; padding-top: 24px; font: 400 12.5px/1.5 var(--mono); color: var(--fg); }
.stage-out i { color: var(--fg-3); }

/* 11 AI practices --------------------------------------------------------- */
.schema {
    margin: 0 0 32px; padding: 28px 32px 32px; border: 1px solid var(--line-2); border-radius: var(--radius);
    background:
        radial-gradient(circle, rgba(255, 255, 255, .07) 1px, transparent 1.2px) 0 0 / 16px 16px,
        var(--bg-1);
}
.schema figcaption { margin-bottom: 28px; }
.schema ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.schema li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 8px; }
.schema li > i {
    position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px;
    border: 1px solid var(--line-3); border-radius: 12px; background: var(--bg-2); color: var(--fg); font-size: 20px;
}
.schema li.is-human > i { border-color: var(--signal); color: var(--signal); box-shadow: 0 0 0 4px var(--signal-tint), 0 0 24px rgba(98, 232, 180, .2); }
.schema li > div { display: flex; flex-direction: column; }
.schema b { font-size: 15px; font-weight: 600; color: var(--fg); }
.schema span { margin-top: 4px; font: 400 11.5px/1.4 var(--mono); color: var(--fg-3); }
.schema li:not(:last-child)::after { content: ''; position: absolute; top: 24px; left: calc(50% + 32px); right: calc(-50% + 34px); height: 1px; background: var(--line-3); }
.schema li:not(:last-child)::before {
    content: ''; position: absolute; top: 21px; right: calc(-50% + 33px); width: 6px; height: 6px;
    border-top: 1px solid var(--fg-3); border-right: 1px solid var(--fg-3); transform: rotate(45deg);
}

.stack { display: flex; align-items: flex-start; gap: 16px 32px; margin-top: 56px; }
.stack .mono-label { flex: none; padding-top: 7px; }
.stack ul { display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { font: 400 12px/1 var(--mono); color: var(--fg-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 7px 10px; }

/* 12 Contact + form ------------------------------------------------------- */
.sec-contact {
    background:
        radial-gradient(50% 45% at 85% 25%, rgba(169, 155, 255, .09), transparent 70%),
        radial-gradient(45% 40% at 60% 85%, rgba(98, 232, 180, .06), transparent 70%);
}
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.contact-copy h2 { margin-top: 24px; }
.next-steps { margin-top: 40px; border-top: 1px solid var(--line); }
.next-steps li { display: flex; gap: 16px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--fg); }

.form-panel { background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; }
.form-panel-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 44px; padding: 0 24px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.form-panel-bar .mono-label { font-size: 11px; display: inline-flex; align-items: center; }
#contactForm { padding: 28px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field.is-full { grid-column: 1 / -1; }
.field label { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--fg); }
.field .opt { font: 400 11px/1.9 var(--mono); color: var(--fg-3); text-transform: uppercase; letter-spacing: .05em; }
.field input, .field select, .field textarea, .newsletter input {
    display: block; width: 100%; height: 44px; padding: 0 14px;
    background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px;
    font: 400 15px/1.4 var(--sans); color: var(--fg);
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none; appearance: none;
}
.field textarea { height: auto; min-height: 132px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder, .newsletter input::placeholder { color: var(--fg-3); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover, .newsletter input:hover { border-color: var(--line-3); }
.field input:focus, .field select:focus, .field textarea:focus, .newsletter input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-ring); }
.select { position: relative; }
.select select { padding-right: 40px; cursor: pointer; }
.select select option { background: var(--bg-1); color: var(--fg); }
.select i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--fg-3); pointer-events: none; font-size: 18px; }
.field-err { display: none; margin-top: 6px; font-size: 13px; color: var(--del); }
.was-validated .field :invalid { border-color: var(--del); }
.was-validated .field :invalid ~ .field-err { display: block; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap-reverse; }
.form-note { font-size: 13.5px; color: var(--fg-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { display: flex; gap: 10px; align-items: flex-start; margin: 20px 28px 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 14.5px; color: var(--fg); }
.alert[hidden] { display: none; }
.alert i { font-size: 17px; line-height: 1.3; }
.alert.is-ok { border-color: rgba(98, 232, 180, .4); background: var(--signal-tint); }
.alert.is-ok i { color: var(--signal); }
.alert.is-err { border-color: rgba(240, 161, 154, .45); background: var(--del-tint); }
.alert.is-err i { color: var(--del); }
.footer .alert { margin: 0 0 12px; }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.spinner[hidden] { display: none; }

/* 13 Footer --------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.7fr; gap: 40px; }
.footer-brand p { max-width: 30em; margin-top: 20px; font-size: 14.5px; }
/* Footer brand: a big sign-off, about twice the 28px default */
.footer-brand .brand { gap: 16px; }
.footer-brand .mark { width: 56px; height: 56px; }
.footer-brand .wordmark { font-size: 36px; letter-spacing: -.024em; }
@media (max-width: 640px) {
    .footer-brand .mark { width: 46px; height: 46px; }
    .footer-brand .wordmark { font-size: 30px; }
}
.footer-h { margin-bottom: 16px; font: 500 12px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3); }
.footer ul li + li { margin-top: 10px; }
.footer ul a { font-size: 14.5px; color: var(--fg-2); transition: color .15s; }
.footer ul a:hover { color: var(--fg); }
.footer-grid > div > p:not(.footer-h) { font-size: 14.5px; }
.newsletter { display: flex; gap: 8px; margin-top: 16px; }
.newsletter input { flex: 1; min-width: 0; height: 40px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-3); }

/* 14 Case-study sheet (native <dialog>) ----------------------------------- */
.sheet {
    position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0;
    width: min(1120px, 100%); max-width: 100%; height: 100%; max-height: 100%;
    border: 0; border-left: 1px solid var(--line-2);
    background: var(--bg); color: var(--fg-2);
    box-shadow: -40px 0 120px rgba(0, 0, 0, .6);
}
.sheet:focus, .sheet:focus-visible { outline: none; }
.sheet[open] { animation: sheet-in .2s var(--ease); }
.sheet::backdrop { background: rgba(2, 3, 4, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes sheet-in { from { transform: translateX(32px); opacity: 0; } }
.sheet-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.sheet-bar {
    position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 16px;
    height: 60px; padding: 0 24px 0 48px;
    background: rgba(8, 9, 11, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.sheet-bar > .mono-label { display: flex; align-items: center; min-width: 0; white-space: nowrap; }
.sheet-bar-sep { margin: 0 10px; color: var(--fg-4); }
.sheet-bar-name { overflow: hidden; text-overflow: ellipsis; color: var(--fg-2); }
.sheet-bar-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.sheet-body { padding: 56px 48px 64px; }
.sheet-head { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: end; }
.case-brand { display: flex; align-items: center; height: 36px; margin-bottom: 28px; }
.case-brand img { display: block; width: auto; }
.sheet-head h2 { margin: 12px 0 18px; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); line-height: 1.04; letter-spacing: -.03em; font-stretch: 96%; }
.sheet-lead { max-width: 36em; font-size: 18px; line-height: 1.6; }
.sheet-head .btn-row { margin-top: 32px; }
.sheet-hero { margin: 56px 0 0; }
.story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 64px; }
.story-item { padding-top: 24px; border-top: 1px solid var(--line-2); }
.story-item h3 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; font-size: 18px; }
.story-item p { font-size: 15px; line-height: 1.65; }
.sheet-sec { margin-top: 72px; }
.sheet-h { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; font: 500 12px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3); }
.sheet-h::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.highlights li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; padding: 24px; background: var(--bg); }
.highlights i { font-size: 19px; line-height: 1.25; color: var(--fg-2); }
.highlights b { display: block; margin-bottom: 4px; font-size: 15.5px; font-weight: 600; color: var(--fg); }
.highlights span { font-size: 14.5px; line-height: 1.6; }
.highlights.is-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.highlights.is-compact li { padding: 20px 24px; align-items: center; }
.highlights.is-compact b { margin: 0; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.flow li { position: relative; }
.flow-node { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-3); border-radius: 11px; background: var(--bg-2); color: var(--fg); font-size: 19px; }
.flow li:last-child .flow-node { border-color: var(--signal); color: var(--signal); box-shadow: 0 0 0 4px var(--signal-tint); }
.flow li:not(:last-child)::after { content: ''; position: absolute; top: 22px; left: 56px; right: -12px; height: 1px; background: linear-gradient(90deg, var(--line-3), var(--line-2)); }
.flow .mono-label { display: block; margin-top: 18px; font-size: 11.5px; }
.flow b { display: block; margin-top: 6px; font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--fg); }
.gallery-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.gallery-head .sheet-h { margin: 0; flex: 1; min-width: 180px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 10px; }
.seg button { height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; font-size: 13.5px; color: var(--fg-2); cursor: pointer; transition: background-color .15s, color .15s; }
.seg button:hover { color: var(--fg); }
.seg button[aria-selected="true"] { background: var(--bg-3); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.gallery-panel { margin: 0; padding: 24px; background: var(--bg-1); }
.gallery-panel[hidden] { display: none; }
.gallery-panel img { width: auto; max-width: 100%; max-height: 70vh; margin: 0 auto; border-radius: 6px; }
.sheet-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 80px; padding: 28px 32px; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 14px; }
.sheet-foot-title { margin-bottom: 4px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--fg); }

/* Data governance panel (AI practices section) */
.gov {
    margin: 0 0 24px; padding: 28px 32px 32px; border: 1px solid var(--line-2); border-radius: var(--radius);
    background:
        radial-gradient(70% 90% at 100% 0%, rgba(169, 155, 255, .08), transparent 60%),
        radial-gradient(50% 70% at 0% 100%, rgba(98, 232, 180, .06), transparent 60%),
        var(--bg-1);
}
.gov-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 48px; align-items: center; }
.gov-head .mono-label { display: flex; align-items: center; }
.gov-head h3 { margin-top: 12px; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.1; letter-spacing: -.024em; }
.gov-head > p { font-size: 15px; line-height: 1.6; max-width: 40em; }
.gov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.gov-grid li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; padding: 20px 22px; background: var(--bg); }
.gov-grid li:nth-child(3n+1) { --c: var(--signal); }
.gov-grid li:nth-child(3n+2) { --c: var(--sky); }
.gov-grid li:nth-child(3n+3) { --c: var(--violet); }
.gov-grid i {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; font-size: 17px; color: var(--c);
    background: color-mix(in srgb, var(--c) 11%, transparent); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
}
.gov-grid b { display: block; margin: 6px 0 4px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--fg); }
.gov-grid span { display: block; font-size: 14px; line-height: 1.5; }
@media (max-width: 1140px) { .gov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .gov { padding: 24px 20px; }
    .gov-head { grid-template-columns: 1fr; }
    .gov-grid { grid-template-columns: 1fr; }
    .gov-grid li { padding: 20px; }
}

/* AI section inside a case sheet */
.ai-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: start; margin-bottom: 28px; }
.ai-title { grid-column: 1; font-size: 26px; font-weight: 600; line-height: 1.15; letter-spacing: -.022em; color: var(--fg); }
.ai-intro { grid-column: 2; grid-row: 1 / span 2; font-size: 15.5px; line-height: 1.65; }
.ai-stack { grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.ai-stack li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid var(--line-2); border-radius: 6px; font: 400 11.5px/1 var(--mono); color: var(--fg-2); }
.ai-stack li:first-child { color: var(--fg); border-color: color-mix(in srgb, var(--violet) 45%, transparent); background: color-mix(in srgb, var(--violet) 10%, transparent); }
.ai-stack li:first-child i { color: var(--violet); }
.ai-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ai-grid > li {
    display: flex; flex-direction: column; gap: 14px; padding: 24px;
    background: radial-gradient(120% 70% at 0 0, color-mix(in srgb, var(--c) 8%, transparent), transparent 60%), var(--bg-1);
    border: 1px solid var(--line-2); border-radius: var(--radius);
}
.ai-grid > li:nth-child(1) { --c: var(--violet); }
.ai-grid > li:nth-child(2) { --c: var(--signal); }
.ai-grid > li:nth-child(3) { --c: var(--sky); }
.ai-card-top { display: flex; align-items: center; gap: 12px; }
.ai-icon {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; font-size: 17px; color: var(--c);
    background: color-mix(in srgb, var(--c) 11%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.ai-card-title { font-size: 17px; font-weight: 600; letter-spacing: -.012em; color: var(--fg); }
.ai-io { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font: 400 12px/1.5 var(--mono); }
.ai-io p { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; padding: 9px 12px; color: var(--fg-2); }
.ai-io p + p { border-top: 1px dashed var(--line-2); color: var(--fg); }
.ai-io span { color: var(--fg-3); text-transform: uppercase; font-size: 10.5px; letter-spacing: .05em; line-height: 1.7; }
.ai-io p + p span { color: var(--c); }
.ai-text { font-size: 14.5px; line-height: 1.6; }
@media (max-width: 960px) {
    .ai-head { grid-template-columns: 1fr; }
    .ai-intro { grid-column: 1; grid-row: auto; }
    .ai-grid { grid-template-columns: 1fr; }
}

/* 14b Color layer --------------------------------------------------------- */
/* Each item gets a --c from the supporting palette; components tint from it. */
.cells > li:nth-child(4n+1), .also-grid li:nth-child(4n+1), .schema li:nth-child(1) { --c: var(--signal); }
.cells > li:nth-child(4n+2), .also-grid li:nth-child(4n+2), .schema li:nth-child(2) { --c: var(--sky); }
.cells > li:nth-child(4n+3), .also-grid li:nth-child(4n+3), .schema li:nth-child(3) { --c: var(--violet); }
.cells > li:nth-child(4n+4), .also-grid li:nth-child(4n+4), .schema li:nth-child(5) { --c: var(--amber); }
.schema li.is-human { --c: var(--signal); }
.vs-list li:nth-child(4n+1) { --c: var(--signal); }
.vs-list li:nth-child(4n+2) { --c: var(--sky); }
.vs-list li:nth-child(4n+3) { --c: var(--violet); }
.vs-list li:nth-child(4n+4) { --c: var(--amber); }

/* Icon tiles */
.cell-top i, .also-grid i {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
    color: var(--c); font-size: 19px;
    background: color-mix(in srgb, var(--c) 11%, transparent);
    border: 1px solid color-mix(in srgb, var(--c) 26%, transparent);
}
.cells > li:hover .cell-top i { color: var(--c); }
.cells > li:hover { background: radial-gradient(120% 90% at 0 0, color-mix(in srgb, var(--c) 7%, transparent), transparent 60%), var(--bg-1); }
.cell-top .mono-idx { color: color-mix(in srgb, var(--c) 70%, var(--fg-3)); }

/* AI path diagram */
.schema li > i {
    color: var(--c);
    background: color-mix(in srgb, var(--c) 10%, var(--bg-2));
    border-color: color-mix(in srgb, var(--c) 45%, transparent);
}
.schema li:nth-child(1)::after { background: linear-gradient(90deg, var(--signal), var(--sky)); }
.schema li:nth-child(2)::after { background: linear-gradient(90deg, var(--sky), var(--violet)); }
.schema li:nth-child(3)::after { background: linear-gradient(90deg, var(--violet), var(--signal)); }
.schema li:nth-child(4)::after { background: linear-gradient(90deg, var(--signal), var(--amber)); }

/* Process stages: the timeline runs through the palette */
.stages li:nth-child(1) { --c: var(--signal); }
.stages li:nth-child(2) { --c: var(--sky); }
.stages li:nth-child(3) { --c: var(--violet); }
.stages li:nth-child(4) { --c: var(--amber); }
.stages::before { background: linear-gradient(90deg, var(--signal), var(--sky) 35%, var(--violet) 65%, var(--amber)); opacity: .6; }
.stage-node, .stages li:first-child .stage-node {
    border-color: var(--c); background: color-mix(in srgb, var(--c) 35%, var(--bg));
    box-shadow: 0 0 14px color-mix(in srgb, var(--c) 45%, transparent);
}
.stages .mono-idx { color: var(--c); }
.stage-out i { color: var(--c); }

/* Case cards: each carries its client's accent */
.case { --accent: var(--signal); }
.case[data-case="taakboard"] { --accent: #2dd4bf; }
.case[data-case="hoffman"] { --accent: #ff7a5c; }
.case[data-case="flight-tracking"] { --accent: var(--amber); }
.case[data-case="meeting-notes"] { --accent: var(--violet); }
.case[data-case="visie"] { --accent: var(--sky); }
.case[data-case="teamdna"] { --accent: #7d9bf5; }   /* TeamDNA's sapphire, lifted for the dark page */
.case::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 2;
    background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent); opacity: .8;
}
.case { transition: border-color .2s; }
.case:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line-2)); }
.case-top .mono-idx { color: var(--accent); }
.case-media {
    background:
        radial-gradient(80% 70% at 75% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%),
        radial-gradient(60% 60% at 0% 100%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%),
        var(--bg-2);
}

/* Hairline gradient above the footer */
.footer { border-top: 0; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--grad); opacity: .35; }

/* 15 Responsive ----------------------------------------------------------- */
@media (max-width: 1140px) {
    .console-body { grid-template-columns: minmax(0, 1fr) 360px; }
    /* Bento folds: the feature turns into a full-width row (copy | screenshot), compact cards go 2x2 */
    .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .also-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
    .stages::before { display: none; }
    .stage-node { margin-bottom: 20px; }
}

@media (max-width: 960px) {
    :root { --sec-pad: 96px; }
    .nav-links { display: none; }
    .menu-btn { display: inline-grid; }
    .hero { padding-top: 64px; }
    .hero-sub { flex-direction: column; align-items: flex-start; gap: 28px; }
    .console-body { grid-template-columns: 1fr; height: auto; }
    .console-code { height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
    .out { height: 236px; flex: none; }
    .sec-head { grid-template-columns: 1fr; margin-bottom: 48px; }
    .sec-head .sec-idx { padding-top: 0; }
    .why, .contact { grid-template-columns: 1fr; gap: 48px; }
    .why-copy { padding-top: 0; }
    .case.is-wide { display: flex; }
    .case.is-wide .case-media { order: -1; flex: none; height: 300px; min-height: 0; border-left: 0; border-bottom: 1px solid var(--line); }
    .case.is-wide .case-media .frame { top: 24px; left: 32px; width: 150%; }
    .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .also-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .schema ol { grid-template-columns: 1fr; gap: 20px; }
    .schema li { flex-direction: row; text-align: left; gap: 16px; padding: 0; }
    .schema li > i { margin: 0; flex: none; }
    .schema li div, .schema li b { display: block; }
    .schema span { margin: 0; }
    .schema li:not(:last-child)::after { top: 48px; bottom: -20px; left: 24px; right: auto; width: 1px; height: auto; }
    .schema li:not(:last-child)::before { display: none; }
    .stack { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .sheet-head { grid-template-columns: 1fr; }
    .story { grid-template-columns: 1fr; gap: 0; }
    .story-item { padding-bottom: 24px; }
    .highlights.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
    .flow li:nth-child(2n)::after { display: none; }
}

@media (max-width: 640px) {
    :root { --gutter: 20px; --sec-pad: 80px; }
    .nav-cta { display: none; }
    .hero { padding-top: 48px; }
    .hero-kicker { font-size: 11px; }
    .hero-sub .lead { font-size: 17px; }
    .hero-sub .btn-row { width: 100%; }
    .hero-sub .btn-row .btn { flex: 1 1 auto; }
    .console-wrap { margin-top: 48px; margin-inline: calc(var(--gutter) * -1 + 8px); }
    .console { border-radius: 12px; }
    .console-code { height: 230px; font-size: 11.5px; line-height: 18px; }
    .console-gutter { width: 36px; padding-right: 12px; }
    .console-tab { padding: 0 12px; }
    .console-state { padding: 0 12px; }
    .console-status { gap: 14px; }
    .console-status .is-hide-sm { display: none; }
    .console-status .is-right-sm { margin-left: auto; }
    .pipe { padding-inline: 4px; }
    .pipe li:not(:last-child)::after { left: calc(50% + 21px); right: calc(-50% + 21px); }
    .out { height: 250px; }
    .built-for { padding: 32px 0 48px; }
    /* Two even columns instead of divider-separated runs, so no line starts with a stray rule */
    .built-for ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; width: 100%; }
    .built-for li, .built-for li:first-child { padding: 0 0 0 12px; border-left: 1px solid var(--line-3); font-size: 14px; }
    .cases { grid-template-columns: 1fr; gap: 16px; }
    .case-copy { padding: 24px; }
    .case.is-compact .case-media { height: 180px; }
    .case.is-wide .case-media { height: 220px; }
    .case.is-wide .case-media .frame { top: 24px; left: 24px; width: 160%; }
    .case h3 { font-size: 26px; }
    .case.is-compact h3 { font-size: 21px; }
    /* One column: a logo row holding only the index (unnamed client) shrinks to an index line */
    .case.is-compact .case-top:not(:has(.case-logo, .private-chip)) { height: auto; margin-bottom: 8px; }
    .case-top:not(:has(.case-logo, .private-chip)) .mono-idx { order: 0; margin-left: 0; }
    .cells, .also-grid { grid-template-columns: 1fr; }
    .cells > li { padding: 28px 24px; }
    .cell-top { margin-bottom: 20px; }
    .also { margin-top: 56px; }
    .also-grid li { padding: 20px; }
    /* Vertical timeline: one rail on the left, the diamond nodes sit on it */
    .stages { grid-template-columns: 1fr; gap: 40px; padding-left: 36px; }
    .stages::before { display: block; top: 8px; bottom: 8px; left: 7px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--signal), var(--line-3) 25%, var(--line-2)); }
    .stage-node { position: absolute; left: -36px; top: 2px; margin: 0; }
    .stages h3 { margin-top: 6px; }
    /* Why custom: each pair stacks, problem above answer; the connector turns downward */
    .vs { border: 0; border-radius: 0; overflow: visible; background: none; }
    .vs-head { display: none; }
    .vs-list { display: grid; gap: 12px; }
    .vs-list li, .vs-list li + li { grid-template-columns: 1fr; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
    .vs-from { padding: 20px 20px 24px; }
    .vs-to { align-items: start; padding: 24px 20px 20px; border-left: 0; border-top: 1px solid var(--line-2); background: radial-gradient(120% 90% at 0 0, color-mix(in srgb, var(--c) 7%, transparent), transparent 70%), var(--bg-1); }
    .vs-arrow { left: 25px; top: -13px; margin-top: 0; transform: rotate(90deg); }
    .vs-list li:hover .vs-arrow { transform: rotate(90deg); }
    .schema { padding: 24px 20px; }
    .fields { grid-template-columns: 1fr; }
    #contactForm { padding: 24px 20px; }
    .alert { margin: 20px 20px 0; }
    .form-panel-bar { padding: 0 20px; }
    .form-foot .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; }
    .sheet { border-left: 0; }
    .sheet-bar { padding: 0 12px 0 20px; height: 56px; }
    .sheet-bar-actions .btn { display: none; }
    .sheet-body { padding: 36px 20px 48px; }
    .sheet-hero { margin-top: 40px; }
    .story { margin-top: 48px; }
    .sheet-sec { margin-top: 56px; }
    .highlights, .highlights.is-compact { grid-template-columns: 1fr; }
    .highlights li { padding: 20px; }
    .flow { grid-template-columns: 1fr; gap: 24px; }
    .flow li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; }
    .flow-node { grid-row: 1 / span 2; }
    .flow .mono-label { margin-top: 2px; }
    .flow b { margin-top: 2px; }
    .flow li:not(:last-child)::after, .flow li:nth-child(2n):not(:last-child)::after { display: block; top: 44px; bottom: -24px; left: 22px; right: auto; width: 1px; height: auto; background: var(--line-3); }
    .gallery-panel { padding: 12px; }
    .seg { width: 100%; }
    .seg button { flex: 1 1 auto; }
    .sheet-foot { padding: 24px 20px; }
    .sheet-foot .btn-row, .sheet-foot .btn { width: 100%; }
}

/* 15b Ambient motion ------------------------------------------------------ */
/* Slow, low-contrast loops that keep the page alive. All of it switches off
   under prefers-reduced-motion (section 16). */

/* Hero: glows drift, the blueprint grid scrolls, the headline gradient shifts */
@keyframes drift-a { 0%, 100% { transform: translateX(-50%) translate3d(0, 0, 0) scale(1); } 50% { transform: translateX(-50%) translate3d(60px, -30px, 0) scale(1.08); } }
@keyframes drift-b { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-80px, 50px, 0) scale(1.1); } }
.hero::before { animation: drift-a 18s ease-in-out infinite; will-change: transform; }
.hero::after { animation: drift-b 24s ease-in-out infinite; will-change: transform; }
@keyframes grid-scroll { to { background-position: center 55px; } }
.hero-grid { animation: grid-scroll 6s linear infinite; }
@keyframes grad-shift { to { background-position: 100% 0; } }
.hero h1 .hl {
    background-image: linear-gradient(95deg, #62e8b4 0%, #7cc4ff 25%, #a99bff 50%, #7cc4ff 75%, #62e8b4 100%);
    background-size: 200% 100%;
    animation: grad-shift 9s ease-in-out infinite alternate;
}

/* Console: the top-edge highlight glides back and forth */
@keyframes edge-glide { 0%, 100% { transform: translateX(-10%); } 50% { transform: translateX(160%); } }
.console::before { left: 0; right: auto; width: 40%; animation: edge-glide 9s ease-in-out infinite; }

/* Primary buttons: an occasional sheen */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%) no-repeat;
    background-size: 250% 100%; background-position: 150% 0;
    animation: sheen 7s ease-in-out infinite 2s;
}
@keyframes sheen { 0%, 70% { background-position: 150% 0; } 100% { background-position: -60% 0; } }

/* Case cards: a light travels along the accent edge; a spotlight follows the pointer */
.case::before {
    background:
        linear-gradient(90deg, transparent, #fff, transparent) no-repeat,
        linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
    background-size: 18% 100%, 100% 100%;
    animation: edge-run 7s linear infinite;
}
.case:nth-child(2)::before { animation-delay: -1.4s; }
.case:nth-child(3)::before { animation-delay: -2.8s; }
.case:nth-child(4)::before { animation-delay: -4.2s; }
.case:nth-child(5)::before { animation-delay: -5.6s; }
@keyframes edge-run { from { background-position: -25% 0, 0 0; } to { background-position: 125% 0, 0 0; } }
.case:hover { background: radial-gradient(520px circle at var(--mx, 30%) var(--my, 30%), color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%), var(--bg-1); }

/* Service / practice cells and "also built" tiles: pointer spotlight + icon lift */
.cells > li:hover, .also-grid li:hover {
    background: radial-gradient(380px circle at var(--mx, 0) var(--my, 0), color-mix(in srgb, var(--c) 9%, transparent), transparent 65%), var(--bg-1);
}
.also-grid li { transition: background-color .2s; }
.cell-top i, .also-grid i { transition: transform .3s var(--ease), box-shadow .3s; }
.cells > li:hover .cell-top i, .also-grid li:hover i {
    transform: translateY(-3px) rotate(-6deg);
    box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--c) 55%, transparent);
}

/* Process timeline: a pulse runs along the line */
.stages::after {
    content: ''; position: absolute; top: 6px; left: 0; right: 0; height: 3px; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent) no-repeat;
    background-size: 14% 100%;
    filter: blur(.6px);
    animation: line-run 6s cubic-bezier(.5, 0, .5, 1) infinite;
}
@keyframes line-run { from { background-position: -20% 0; } to { background-position: 120% 0; } }

/* AI path: each node lights up in turn, like data moving through */
.schema li > i { --rest: 0 0 0 0 transparent; animation: node-ping 6s ease-in-out infinite; }
.schema li.is-human > i { --rest: 0 0 0 4px var(--signal-tint), 0 0 24px rgba(98, 232, 180, .2); }
.schema li:nth-child(2) > i { animation-delay: .9s; }
.schema li:nth-child(3) > i { animation-delay: 1.8s; }
.schema li:nth-child(4) > i { animation-delay: 2.7s; }
.schema li:nth-child(5) > i { animation-delay: 3.6s; }
@keyframes node-ping {
    0%, 22%, 100% { transform: none; box-shadow: var(--rest); }
    8% { transform: translateY(-3px); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 14%, transparent), 0 0 26px color-mix(in srgb, var(--c) 45%, transparent); }
}

/* Contact backdrop breathes */
@keyframes breathe { 0%, 100% { background-position: 0 0, 0 0; } 50% { background-position: -60px 30px, 50px -20px; } }
.sec-contact { animation: breathe 16s ease-in-out infinite; }

@media (max-width: 1140px) { .stages::after { display: none; } }

/* 16 Motion --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .rv { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
