/* Lab theme: a light "lab notebook" (paper, ink, ultramarine) with dark "chamber" sections (lime). */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
:root {
    color-scheme: light;
    --canvas: #f2f0e9;
    --paper: #fbfaf6;
    --panel: #e8e6de;
    --ink: #0f1210;
    --muted: #525954;
    --line: #0f12101a;
    --line-strong: #0f121038;
    --night: var(--canvas);
    --night-text: var(--ink);
    --night-muted: var(--muted);
    --night-line: var(--line);
    --accent: #2c3bff;
    --accent-soft: #2c3bff1f;
    --pale: #e8e6de;
    --signal: var(--accent);
    --mark: #d4ff3a;
    --glow: #2c3bff12;
    --gold: linear-gradient(90deg, var(--accent), var(--accent));
    --ease: cubic-bezier(.22, 1, .36, 1);
    --gutter: max(1.25rem, 4.5vw);
    --section-space: clamp(5rem, 11vw, 10rem);
    --sans: Geist, system-ui, sans-serif;
    --serif: Geist, system-ui, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --px: .5;
    --py: .35;
}

html { scroll-behavior: smooth; background: var(--canvas); }
body, .button { font-family: var(--sans); }
body { background: var(--canvas); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--canvas); }
.frame { width: min(100% - var(--gutter) * 2, 92rem); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 6px;
}

/* Film grain and scroll progress sit above everything but never take input. */
.grain {
    position: fixed;
    inset: -50%;
    z-index: 50;
    pointer-events: none;
    opacity: .07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 51;
    height: 1px;
    background: var(--gold);
    transform-origin: 0 50%;
    transform: scaleX(0);
}

h1, h2, h3 { font-weight: 400; color: var(--ink); }
h1, h2 { letter-spacing: -.055em; }
h1 { font-size: clamp(3.4rem, 8.4vw, 9.5rem); line-height: .92; }
h2 { font-size: clamp(2.6rem, 5.4vw, 6.25rem); line-height: .98; }
h3 { letter-spacing: -.025em; font-weight: 500; }
h1 em, h2 em, .thesis-heading span + span {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -.02em;
    background: var(--gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: .06em;
}
.eyebrow {
    color: var(--muted);
    font-weight: 500;
    font-size: .6875rem;
    letter-spacing: .28em;
}
.eyebrow span, .home-hero .eyebrow span, .page-intro .eyebrow span, .method-section .eyebrow span, .process-aside .eyebrow span {
    width: 1.75rem;
    height: 1px;
    background: var(--accent);
}
.home-hero .eyebrow, .page-intro .eyebrow, .method-section .eyebrow, .process-aside .eyebrow { color: var(--muted); }
.lede { color: var(--muted); font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.65; }

/* Header: transparent over the hero, frosted glass once scrolled. */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 500ms var(--ease), border-color 500ms var(--ease), backdrop-filter 500ms var(--ease);
}
.site-header[data-scrolled] {
    background: color-mix(in srgb, var(--canvas) 72%, transparent);
    backdrop-filter: blur(18px) saturate(1.4);
    border-bottom-color: var(--line);
}
main { padding-top: 5.5rem; }
body:has(.home-hero) main { padding-top: 0; }
.header-inner { min-height: 5.5rem; }
.brand { font-size: .875rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.brand-mark { color: var(--accent); }
.site-nav { gap: clamp(1.5rem, 3vw, 2.75rem); }
.nav-link { color: var(--muted); font-size: .875rem; letter-spacing: .02em; border-bottom-color: transparent; }
.nav-link:hover, .nav-link[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.button {
    border-radius: 999px;
    letter-spacing: .01em;
    transition: background-color 400ms var(--ease), color 400ms var(--ease), border-color 400ms var(--ease), transform 400ms var(--ease), box-shadow 400ms var(--ease);
}
.button-primary, .button-dark {
    color: var(--canvas);
    background: var(--ink);
    box-shadow: 0 0 0 1px #fff2 inset;
}
.button-primary:hover, .button-dark:hover, .header-contact[aria-current] {
    color: var(--canvas);
    background: var(--accent);
    box-shadow: 0 10px 40px -10px #d4ff3a90;
}
.header-contact { padding-inline: 1.25rem; }
.mobile-nav-links { background: color-mix(in srgb, var(--canvas) 94%, transparent); backdrop-filter: blur(18px); }
.skip-link { color: var(--canvas); background: var(--ink); }

/* Hero: full viewport, full-bleed light field, pointer-following glow. */
.home-hero {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    display: grid;
    align-items: end;
    overflow: hidden;
    background: radial-gradient(120% 80% at 70% 30%, #141816 0%, var(--canvas) 62%);
}
.hero-light {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(38rem 38rem at calc(var(--px) * 100%) calc(var(--py) * 100%), #d4ff3a1c, transparent 70%);
    transition: background-position 600ms var(--ease);
}
.home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 40%;
    z-index: -1;
    background: linear-gradient(to bottom, transparent, var(--canvas));
    pointer-events: none;
}
.hero-inner {
    min-height: 0;
    padding-block: 10rem clamp(6rem, 14vh, 9rem);
    align-items: end;
}
.hero-copy { max-width: min(68rem, 100%); width: 100%; }
.hero-copy h1 { max-width: none; text-wrap: wrap; }
.hero-copy h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-copy h1 .line > span { display: block; color: var(--ink); }
.hero-copy h1 em { font-size: 1.08em; }
.hero-copy .eyebrow { margin-bottom: 2rem; }
.hero-copy .lede { max-width: 30rem; margin-top: 2.25rem; color: var(--muted); }
.hero-actions { gap: 2rem; align-items: center; margin-top: 2.5rem; }
.hero-actions .text-link { margin: 0; font-size: .875rem; color: var(--muted); text-decoration: none; letter-spacing: .02em; }
.hero-actions .text-link:hover { color: var(--accent); }
.chapter-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--ink);
    font-size: .9375rem;
    font-weight: 500;
    text-decoration: none;
}
.chapter-link span {
    display: grid;
    width: 3.75rem;
    height: 3.75rem;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    font-size: 1.375rem;
    transition: transform 600ms var(--ease), background-color 600ms var(--ease), color 600ms var(--ease), border-color 600ms var(--ease);
}
.chapter-link:hover span { transform: rotate(45deg) scale(1.06); background: var(--accent); border-color: var(--accent); color: var(--canvas); }
.hero-motion {
    font-family: var(--sans);
    color: var(--muted);
    border-color: var(--line-strong);
    background: #0008;
    backdrop-filter: blur(8px);
}
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    width: 1px;
    height: 3.5rem;
    translate: -50% 0;
    overflow: hidden;
    background: var(--line);
}
.scroll-cue span[aria-hidden] {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, var(--accent));
}

/* Portfolio marquee */
.portfolio-ribbon { background: var(--canvas); border-block: 1px solid var(--line); }
.ribbon-inner { padding-block: 2rem; gap: 2.5rem; }
.marquee {
    display: flex;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee ul { flex: 0 0 auto; flex-wrap: nowrap; gap: 0; }
.marquee li { flex: 0 0 auto; border-left: 0; }
.marquee a {
    display: block;
    padding: 0 clamp(1.5rem, 3vw, 3rem);
    color: var(--muted);
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.5rem, 2.4vw, 2.25rem);
    letter-spacing: -.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: color 400ms var(--ease);
}
.marquee a:hover, .marquee a:focus-visible { color: var(--accent); }
.marquee:hover ul { animation-play-state: paused; }

/* Editorial sections */
.thesis { grid-template-columns: .55fr 1.95fr; gap: clamp(2rem, 5vw, 5rem); }
.thesis-heading { max-width: none; }
.thesis-heading span { display: block; }
.thesis-heading em, .thesis-heading span + span { display: block; font-size: 1.1em; }
.thesis-copy { max-width: 58rem; gap: 2rem; border-top-color: var(--line); color: var(--muted); font-size: 1.125rem; line-height: 1.7; }

.method-section {
    --method-surface: var(--paper);
    position: relative;
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: radial-gradient(70% 90% at 0% 100%, #d4ff3a12, transparent 60%), var(--paper);
    scroll-margin-top: 5.5rem;
}
.method-layout { padding-block: var(--section-space); gap: clamp(3rem, 6vw, 6rem); }
.method-copy h2 { max-width: none; font-size: clamp(2.6rem, 4.6vw, 5rem); }
.method-copy h2 em { display: block; }
.method-steps { border-color: var(--line); }
.method-steps li + li { border-color: var(--line); }
.method-step { padding-block: 1.75rem; transition: background-color 500ms var(--ease), padding 500ms var(--ease); }
.method-step:hover { background: #ffffff05; padding-left: 1rem; }
.method-node { border-color: var(--line-strong); color: var(--accent); background: var(--canvas); }
.method-step-copy strong { font-weight: 500; font-size: 1.25rem; letter-spacing: -.01em; }
.method-arrow { color: var(--accent); transition: transform 500ms var(--ease); }
.method-step:hover .method-arrow { transform: translate(.25rem, -.25rem); }
.text-link { color: var(--accent); text-decoration: none; letter-spacing: .02em; }
.text-link:hover { color: var(--ink); }

.split-heading { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.split-heading h2 { max-width: 16ch; }
.split-heading > p { color: var(--muted); }
.market-grid { gap: 1rem; }

/* Cards share a cursor-following spotlight via --mx/--my from lumen.js. */
[data-glow] { position: relative; isolation: isolate; }
[data-glow]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 50%), #d4ff3a1f, transparent 60%);
    transition: opacity 500ms var(--ease);
}
[data-glow]:hover::before { opacity: 1; }

.market-card {
    padding: .75rem;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--paper);
    transition: border-color 500ms var(--ease), transform 700ms var(--ease);
}
.market-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.market-image { border-radius: .75rem; background: var(--panel); }
.market-image img, .focus-image img { filter: grayscale(1) sepia(.35) brightness(.85) contrast(1.1); transition: transform 1200ms var(--ease), filter 1200ms var(--ease); }
.market-card:is(:hover, :focus-visible) img { transform: scale(1.06); filter: grayscale(.4) sepia(.4) brightness(.95) contrast(1.05); }
.market-detail { padding: 1.25rem .5rem .5rem; }
.market-detail h3 { font-size: 1.375rem; }
.market-detail p { color: var(--muted); }
.market-arrow { border-color: var(--line-strong); color: var(--ink); background: transparent; transition: background-color 500ms var(--ease), color 500ms var(--ease), transform 500ms var(--ease); }
.market-card:is(:hover, :focus-visible) .market-arrow, .product-card:is(:hover, :focus-visible) .market-arrow {
    background: var(--accent);
    color: var(--canvas);
    transform: rotate(45deg);
}

/* Inner pages */
.page-intro {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60% 90% at 85% 10%, #d4ff3a14, transparent 60%),
        radial-gradient(40% 60% at 10% 100%, #2b3a4a40, transparent 70%),
        var(--canvas);
    border-bottom: 1px solid var(--line);
}
.page-intro-inner { padding-block: clamp(6rem, 13vw, 12rem) clamp(4rem, 8vw, 7rem); }
.page-intro-grid h1 { max-width: none; }
.page-intro-grid h1 em { font-size: 1.08em; }
.page-intro-grid h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.page-intro-grid h1 .line > span { display: block; color: var(--ink); }
.page-intro .hero-light { z-index: 0; }
.page-intro-inner { position: relative; z-index: 1; }
.page-intro-grid .lede { color: var(--muted); }

.team-section { background: var(--canvas); border-top: 1px solid var(--line); }
.team-list { border-top: 0; display: grid; gap: 1rem; }
.team-member {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--paper);
    transition: border-color 500ms var(--ease);
}
.team-member:hover { border-color: var(--line-strong); }
.team-member h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.team-member .role { color: var(--accent); font-weight: 500; letter-spacing: .04em; }
.team-member p { color: var(--muted); }

.portfolio-section { background: var(--canvas); }
.portfolio-grid { gap: 1rem; }
.product-card {
    min-height: 19rem;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--paper);
    transition: border-color 500ms var(--ease), transform 700ms var(--ease), background-color 500ms var(--ease);
}
.product-card:is(:hover, :focus-visible) { border-color: var(--line-strong); background: var(--panel); transform: translateY(-4px); color: var(--ink); }
.product-card h3 { font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1; font-weight: 400; letter-spacing: -.04em; }
.product-card p { color: var(--muted); }
.product-card .product-category { color: var(--accent); letter-spacing: .18em; }
.product-icon { color: var(--accent); border-radius: .875rem; background: var(--panel); }
.focus-list { gap: clamp(4rem, 9vw, 8rem); }
.focus-image img { border-radius: 1.25rem; }
.focus-copy > p:not(.eyebrow) { color: var(--muted); }
.focus-entry, .process-chapter { scroll-margin-top: 7rem; }

.process-aside { top: 7rem; background: var(--paper); border: 1px solid var(--line); border-radius: 1.25rem; }
.process-aside nav a { border-radius: 999px; color: var(--muted); transition: background-color 400ms var(--ease), color 400ms var(--ease); }
.process-aside nav a:hover { background: var(--panel); color: var(--ink); }
.process-aside nav a[aria-current] { color: var(--canvas); background: var(--accent); border-color: var(--accent); }
.workflow-visual span { border-color: var(--line-strong); color: var(--muted); }
.process-chapter { border-color: var(--line); }
.process-chapter > p:not(.eyebrow) { color: var(--muted); }
.process-chapter .chapter-question { border-left: 1px solid var(--accent); background: var(--paper); color: var(--ink); border-radius: 0 .75rem .75rem 0; }
.chapter-question strong { color: var(--accent); font-weight: 500; letter-spacing: .04em; }

.contact-form { border-color: var(--line); border-radius: 1.25rem; background: var(--paper); }
.contact-note { color: var(--muted); }
.field label { font-weight: 500; color: var(--muted); letter-spacing: .04em; }
.field input, .field textarea {
    color: var(--ink);
    background: var(--canvas);
    border: 1px solid var(--line-strong);
    border-radius: .75rem;
    transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.field [aria-invalid] { border-color: #c43a1e; }
.form-error { color: #c43a1e; }
.status-box p { color: var(--muted); }

/* Closing band: a dark stage with a slow gold halo instead of a flat fill. */
.contact-band {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--canvas);
    border-top: 1px solid var(--line);
}
.contact-band::before {
    content: "";
    position: absolute;
    inset: -40% -10%;
    z-index: -1;
    background: radial-gradient(45% 55% at 75% 60%, #d4ff3a26, transparent 70%), radial-gradient(35% 45% at 20% 30%, #2b3a4a50, transparent 70%);
}
.contact-band-inner { padding-block: clamp(6rem, 12vw, 11rem); align-items: end; }
.contact-band h2 { max-width: 16ch; font-size: clamp(2.6rem, 5.6vw, 6.5rem); }
.contact-band .eyebrow { color: var(--muted); }
.contact-band .eyebrow span { background: var(--accent); }
.contact-band .button-dark { min-height: 3.75rem; padding-inline: 1.75rem; color: var(--canvas); background: var(--ink); }
.contact-band .button-dark:hover { background: var(--accent); }

.site-footer { background: var(--canvas); border-top: 1px solid var(--line); color: var(--muted); }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--ink); }
.missing-page h1 { font-size: clamp(3rem, 7vw, 7rem); }

/* Portfolio and home focus-card illustrations: inline SVGs that toggle between a resting and a "working" state.
   They play while their portfolio row or home card is hovered (or the card is focused); positions use the individual translate/scale/rotate properties so
   they compose with the ambient keyframes, which only ever animate transform. */
.illo {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: radial-gradient(70% 70% at 50% 45%, #141816, var(--paper));
    transition: border-color 500ms var(--ease);
}
.focus-entry:hover .illo { border-color: var(--line-strong); }
.illo-svg { position: relative; z-index: 0; display: block; width: 100%; height: 100%; }
.illo-svg * { transform-box: fill-box; transform-origin: center; }

/* Communities: members gather at the hub, the network spins, the hub sends out ripples. */
.illo-communities :is(.spin, .orbits) { transform-box: view-box; transform-origin: 384px 288px; }
.illo-communities .links path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.illo-communities .ripple { opacity: 0; }
:is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-communities .spin { rotate: 90deg; }
:is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-communities .node { translate: var(--dx) var(--dy); }
:is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-communities .links path { stroke-dashoffset: 1; }
:is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-communities .hub { scale: 1.1; }

/* Small businesses: the day assembles — blocks slide in, the top block lifts, parcels run the route. */
.illo-operators .parcel { opacity: 0; transform-box: view-box; transform-origin: 0 0; offset-path: path("M248 423l136-78 135 78"); offset-rotate: 0deg; }
:is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-operators .block-top { translate: 0 -46px; }
:is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-operators .shadow { scale: .72; opacity: .5; }
:is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-operators .block-left { translate: 44px -26px; }
:is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-operators .block-right { translate: -44px -26px; }
:is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-operators .mark { translate: 0 -12px; }
:is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-operators .parcel { opacity: 1; }

/* Professional services: files fan out, the work fills in, it gets signed and checked off. */
.illo-services .sheet-left, .illo-services .sheet-right { transform-origin: 50% 100%; }
.illo-services .progress path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.illo-services .progress path:first-child { stroke-dashoffset: .35; }
.illo-services :is(.signature, .check) { stroke-dasharray: 1; stroke-dashoffset: 0; }
.illo-services .courier { opacity: 0; transform-box: view-box; transform-origin: 0 0; offset-path: path("M193 337c26 54 113 90 209 90 102 0 184-37 199-87"); offset-rotate: 0deg; }
:is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-services .sheet-left { translate: -48px 8px; rotate: -7deg; }
:is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-services .sheet-right { translate: 48px 8px; rotate: 7deg; }
:is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-services .sheet-main { translate: 0 -10px; scale: 1.03; }
:is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-services .progress path { stroke-dashoffset: 0; }
:is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-services .badge { scale: 1.15; }
:is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-services .courier { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
    .illo-svg { transition: scale 900ms var(--ease); }
    :is(.focus-entry, .market-card):hover .illo-svg { scale: 1.025; }
    .illo-svg :is(.spin, .node, .hub, .block, .shadow, .mark, .sheet, .badge) {
        transition: translate 1000ms cubic-bezier(.34, 1.4, .64, 1), scale 1000ms cubic-bezier(.34, 1.4, .64, 1), rotate 1400ms var(--ease), opacity 600ms var(--ease);
    }
    .illo-communities .node { transition-delay: var(--d); }
    .illo-communities .links path { transition: stroke-dashoffset 700ms var(--ease); }
    .illo-communities .orbits { animation: illo-spin 90s linear infinite; }
    .illo-communities .node > :first-child { animation: illo-float 5s ease-in-out infinite; animation-delay: calc(var(--d) * -8); }
    .illo-communities .arcs, .illo-operators .route, .illo-services .loop { animation: illo-flow 3s linear infinite; }
    :is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-communities .ripple { animation: illo-ripple 2s var(--ease) infinite; }
    :is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-communities .ripple-2 { animation-delay: 1s; }
    :is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-communities .people circle { animation: illo-hop 700ms ease-in-out infinite alternate; }
    :is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-communities .people circle:nth-child(2) { animation-delay: 140ms; }
    :is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-communities .people circle:nth-child(3) { animation-delay: 280ms; }

    .illo-operators .block-top { animation: illo-float 6s ease-in-out infinite; }
    .illo-operators .block-left, .illo-operators .block-right { transition-delay: 120ms; }
    .illo-operators .parcel { transition: opacity 400ms var(--ease); animation: illo-travel 2.4s cubic-bezier(.65, 0, .35, 1) infinite; }
    .illo-operators .parcel-2 { animation-delay: -1.2s; }
    :is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-operators .route { animation-duration: .8s; }
    :is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-operators .beacon { animation: illo-blink 900ms ease-in-out infinite; }

    .illo-services .sheet-main { animation: illo-float 7s ease-in-out infinite; }
    .illo-services .progress path { transition: stroke-dashoffset 600ms var(--ease); }
    .illo-services .progress path:nth-child(2) { transition-delay: 150ms; }
    .illo-services .progress path:nth-child(3) { transition-delay: 300ms; }
    .illo-services .progress path:nth-child(4) { transition-delay: 450ms; }
    .illo-services .progress path:nth-child(5) { transition-delay: 600ms; }
    .illo-services .badge { transition-delay: 1100ms; }
    .illo-services .courier { transition: opacity 400ms var(--ease); animation: illo-travel 3.2s cubic-bezier(.65, 0, .35, 1) infinite; }
    :is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-services .signature { animation: illo-draw 900ms var(--ease) 800ms both; }
    :is(.focus-entry:hover, .market-card:is(:hover, :focus-visible)) .illo-services .check { animation: illo-draw 500ms var(--ease) 1300ms both; }
}

@keyframes illo-spin { to { transform: rotate(360deg); } }
@keyframes illo-float { 50% { transform: translateY(-6px); } }
@keyframes illo-flow { to { stroke-dashoffset: -36; } }
@keyframes illo-ripple { from { transform: scale(1); opacity: .6; } to { transform: scale(2.6); opacity: 0; } }
@keyframes illo-hop { to { transform: translateY(-5px); } }
@keyframes illo-travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes illo-blink { 50% { opacity: .2; } }
@keyframes illo-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Motion is decoration only: content is fully visible without it. */
@media (prefers-reduced-motion: no-preference) {
    .hero-copy { animation: none; }
    :is(.hero-copy, .page-intro) h1 .line > span { animation: nb-rise 1400ms var(--ease) both; }
    :is(.hero-copy, .page-intro) h1 .line + .line > span { animation-delay: 140ms; }
    :is(.hero-copy, .page-intro-inner) :is(.eyebrow, .lede), .hero-actions { animation: nb-fade 1400ms var(--ease) both; }
    :is(.hero-copy, .page-intro-inner) .eyebrow { animation-delay: 80ms; }
    :is(.hero-copy, .page-intro-inner) .lede { animation-delay: 420ms; }
    .hero-actions { animation-delay: 560ms; }
    .scroll-cue span[aria-hidden] { animation: nb-drip 2400ms var(--ease) infinite; }
    .marquee ul { animation: nb-marquee 38s linear infinite; }
    [data-reveal].revealed { animation: nb-reveal 1100ms var(--ease) both; }
    .thesis-heading.revealed span + span { animation: nb-reveal 1100ms var(--ease) 140ms both; }

    @supports (animation-timeline: scroll()) {
        .scroll-progress { animation: nb-progress linear both; animation-timeline: scroll(root); }
        .home-hero .hero-inner { animation: nb-recede linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
        .market-card, .product-card, .focus-image, .team-member {
            animation: nb-lift linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 60%;
        }
    }
}

@keyframes nb-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes nb-fade { from { opacity: 0; transform: translateY(1rem); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes nb-bloom { from { opacity: 0; transform: scale(1.08); } }
@keyframes nb-drip { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
@keyframes nb-marquee { to { transform: translateX(-100%); } }
@keyframes nb-reveal { from { opacity: 0; transform: translateY(2.5rem); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes nb-progress { to { transform: scaleX(1); } }
@keyframes nb-recede { to { opacity: 0; transform: translateY(-6rem) scale(.97); filter: blur(6px); } }
@keyframes nb-lift { from { opacity: .2; transform: translateY(3rem) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 56rem) {
    .thesis { grid-template-columns: 1fr; }
    .page-intro-grid .lede { margin-top: .5rem; }
}

@media (max-width: 44rem) {
    :root { --gutter: 6vw; }
    h1 { font-size: clamp(2.9rem, 12.5vw, 4.75rem); line-height: .96; }
    h2 { font-size: clamp(2.3rem, 9.5vw, 3.75rem); line-height: 1; }
    main { padding-top: 4.5rem; }
    .header-inner { min-height: 4.5rem; }
    .brand { font-size: .75rem; }
    .brand-mark { width: 2rem; height: 2rem; }
    .site-header:has(.mobile-nav[open]) { background: var(--canvas); }
    .hero-inner { padding-block: 8rem 6.5rem; }
    .hero-copy h1 { font-size: clamp(2.9rem, 12.5vw, 4.75rem); }
    .hero-actions { gap: 1.25rem; }
    .ribbon-inner { flex-direction: column; align-items: stretch; gap: 1rem; padding-block: 1.5rem; }
    .marquee ul { animation-duration: 26s; }
    .thesis { gap: .75rem; }
    .contact-band-inner { align-items: start; }
}

/* Lab (CMS blog) */
.lab-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.lab-filters a {
    padding: .5rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--muted);
    font-size: .875rem;
    text-decoration: none;
    transition: color 400ms var(--ease), background-color 400ms var(--ease), border-color 400ms var(--ease);
}
.lab-filters a:hover { color: var(--ink); border-color: var(--accent); }
.lab-filters a[aria-current] { color: var(--canvas); background: var(--accent); border-color: var(--accent); }
.lab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.lab-grid > li { display: flex; min-width: 0; }
.lab-feature { grid-column: 1 / -1; }
.lab-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--paper);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 500ms var(--ease), transform 700ms var(--ease), background-color 500ms var(--ease);
}
.lab-card:is(:hover, :focus-visible) { border-color: var(--line-strong); background: var(--panel); transform: translateY(-4px); }
.lab-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); }
.lab-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.lab-card:hover .lab-cover img { transform: scale(1.04); }
.lab-card-body { display: flex; flex: 1; flex-direction: column; gap: .875rem; padding: clamp(1.5rem, 2.6vw, 2.25rem); }
.lab-meta { display: flex; flex-wrap: wrap; gap: .75rem; color: var(--accent); font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; }
.lab-card h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.08; font-weight: 400; letter-spacing: -.035em; }
.lab-feature h3 { font-size: clamp(2rem, 4vw, 3.75rem); max-width: 20ch; }
.lab-excerpt { color: var(--muted); line-height: 1.6; }
.lab-feature .lab-excerpt { max-width: 40rem; font-size: 1.125rem; }
.lab-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; color: var(--muted); font-size: .875rem; }
.lab-card-foot .market-arrow { margin-left: auto; }
.lab-card:is(:hover, :focus-visible) .market-arrow { background: var(--accent); color: var(--canvas); transform: rotate(45deg); }
.lab-empty { color: var(--muted); font-size: 1.125rem; }

.lab-article-head .page-intro-inner { max-width: 60rem; }
.lab-article-head h1 { font-size: clamp(2.75rem, 6vw, 6rem); line-height: .98; max-width: 18ch; }
.lab-article-head .lede { margin-top: 1.75rem; max-width: 40rem; }
.lab-back { display: inline-flex; gap: .5rem; margin-bottom: 2.5rem; color: var(--muted); font-size: .875rem; text-decoration: none; transition: color 300ms var(--ease); }
.lab-back:hover { color: var(--accent); }
.lab-byline { margin-top: 1.5rem; color: var(--ink); font-size: .9375rem; }
.lab-article-cover { margin-top: clamp(2rem, 5vw, 4rem); }
.lab-article-cover img { width: 100%; height: auto; border-radius: 1.25rem; border: 1px solid var(--line); }
.lab-prose { max-width: 44rem; padding-block: clamp(3rem, 7vw, 6rem); color: #2b302c; font-size: 1.1875rem; line-height: 1.75; }
.lab-prose > * + * { margin-top: 1.5em; }
.lab-prose :is(h2, h3, h4) { margin-top: 2.25em; color: var(--ink); letter-spacing: -.03em; line-height: 1.15; }
.lab-prose h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.lab-prose h3 { font-size: 1.5rem; }
.lab-prose a { color: var(--accent); text-underline-offset: .2em; }
.lab-prose a:hover { color: var(--ink); }
.lab-prose :is(ul, ol) { padding-left: 1.25em; }
.lab-prose li + li { margin-top: .5em; }
.lab-prose li::marker { color: var(--accent); }
.lab-prose blockquote { margin-inline: 0; padding-left: 1.5rem; border-left: 1px solid var(--accent); color: var(--ink); font-family: var(--serif); font-style: italic; font-size: 1.6em; line-height: 1.3; }
.lab-prose cite { display: block; margin-top: .75rem; color: var(--muted); font-family: var(--sans); font-style: normal; font-size: .875rem; letter-spacing: .04em; }
.lab-prose hr { width: 4rem; margin-block: 3em; border: 0; border-top: 1px solid var(--accent); }
.lab-tags { display: flex; flex-wrap: wrap; gap: .5rem; padding: 2rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.lab-tags a { color: var(--muted); font-size: .875rem; text-decoration: none; }
.lab-tags a:hover { color: var(--accent); }
.lab-more { border-top: 1px solid var(--line); }
.lab-more .split-heading { align-items: end; }

@media (prefers-reduced-motion: no-preference) {
    .lab-article-head :is(.lab-back, .eyebrow, h1, .lede, .lab-byline) { animation: nb-fade 1200ms var(--ease) both; }
    .lab-article-head h1 { animation-delay: 100ms; }
    .lab-article-head .lede { animation-delay: 250ms; }
    .lab-article-head .lab-byline { animation-delay: 350ms; }
    @supports (animation-timeline: view()) {
        .lab-card { animation: nb-lift linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    }
}

@media (max-width: 56rem) {
    .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 44rem) {
    .lab-grid { grid-template-columns: 1fr; }
    .lab-prose { font-size: 1.0625rem; }
}

/* Approach ("How we work") */

.how-story { padding-block: var(--section-space); border-block: 1px solid var(--line); background: radial-gradient(60% 50% at 20% 30%, #d4ff3a0f, transparent 70%), var(--paper); }
.how-story-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.how-stage { position: sticky; top: 7rem; }
.how-stage-inner {
    position: relative;
    height: min(34rem, 72vh);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at 1px 1px, #eef0ea14 1px, transparent 0) 0 0 / 22px 22px,
        radial-gradient(70% 70% at 50% 40%, #151917, var(--canvas));
}
.how-stage-label { position: absolute; left: 1.5rem; bottom: 1.25rem; z-index: 3; color: var(--muted); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.how-stage-label span { position: absolute; left: 0; bottom: 0; white-space: nowrap; opacity: 0; transition: opacity 500ms var(--ease); }
:is([data-active-stage="observe"] .how-stage, [data-stage-view="observe"]) [data-label="observe"], :is([data-active-stage="build"] .how-stage, [data-stage-view="build"]) [data-label="build"], :is([data-active-stage="operate"] .how-stage, [data-stage-view="operate"]) [data-label="operate"] { opacity: 1; }

.how-app {
    position: absolute;
    inset: 9% 9% 15%;
    border: 1px solid #d4ff3a66;
    border-radius: 1rem;
    background: #0b0d0ccc;
    box-shadow: 0 30px 80px -30px #000, 0 0 0 1px #0006;
    opacity: 0;
    scale: .94;
}
.how-app-bar { display: flex; align-items: center; gap: .375rem; padding: .875rem 1rem; border-bottom: 1px solid var(--line); }
.how-app-bar i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--line-strong); }
.how-app-bar b { margin-left: .75rem; color: var(--ink); font-size: .8125rem; font-weight: 500; }

.how-tile {
    position: absolute;
    z-index: 2;
    display: grid;
    gap: .125rem;
    width: 44%;
    padding: .75rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: .875rem;
    background: var(--panel);
    box-shadow: 0 18px 40px -20px #000;
}
.how-tile-kind { color: var(--accent); font-size: .625rem; letter-spacing: .18em; text-transform: uppercase; }
.how-tile strong { color: var(--ink); font-size: 1rem; font-weight: 500; }
.how-tile-note { color: var(--muted); font-size: .75rem; }
.how-tile-note .now, :is(:is([data-active-stage="build"] .how-stage, [data-stage-view="build"]), :is([data-active-stage="operate"] .how-stage, [data-stage-view="operate"])) .how-tile-note .was { display: none; }
:is(:is([data-active-stage="build"] .how-stage, [data-stage-view="build"]), :is([data-active-stage="operate"] .how-stage, [data-stage-view="operate"])) .how-tile-note .now { display: inline; color: #d4ff3a; }
.how-tile-sheet { left: 6%; top: 12%; rotate: -5deg; }
.how-tile-chat { left: 50%; top: 30%; rotate: 4deg; }
.how-tile-mail { left: 12%; top: 54%; rotate: -2deg; }
.how-tile-new { left: 15%; top: 72%; width: 70%; opacity: 0; translate: 0 1.5rem; border-color: var(--accent); }
.how-badge, .how-sync { position: absolute; z-index: 3; padding: .375rem .75rem; border-radius: 999px; font-size: .75rem; letter-spacing: .04em; }
.how-badge { top: 4.5%; right: 6%; color: var(--canvas); background: var(--accent); opacity: 0; scale: .8; }
.how-sync { top: 6%; right: 6%; color: #ff8a61; border: 1px solid #ff8a6155; background: #ff8a6114; }
.how-sync::before { content: ""; display: inline-block; width: .4rem; height: .4rem; margin-right: .5rem; border-radius: 50%; background: #ff8a61; vertical-align: middle; }

/* The three stage states. */
:is(:is([data-active-stage="build"] .how-stage, [data-stage-view="build"]), :is([data-active-stage="operate"] .how-stage, [data-stage-view="operate"])) .how-app { opacity: 1; scale: 1; }
:is(:is([data-active-stage="build"] .how-stage, [data-stage-view="build"]), :is([data-active-stage="operate"] .how-stage, [data-stage-view="operate"])) .how-sync { opacity: 0; }
:is(:is([data-active-stage="build"] .how-stage, [data-stage-view="build"]), :is([data-active-stage="operate"] .how-stage, [data-stage-view="operate"])) .how-tile { left: 15%; width: 70%; rotate: 0deg; border-color: var(--line); background: #ffffff06; box-shadow: none; }
:is([data-active-stage="build"] .how-stage, [data-stage-view="build"]) .how-tile-sheet { top: 26%; }
:is([data-active-stage="build"] .how-stage, [data-stage-view="build"]) .how-tile-chat { top: 44%; }
:is([data-active-stage="build"] .how-stage, [data-stage-view="build"]) .how-tile-mail { top: 62%; }
:is([data-active-stage="operate"] .how-stage, [data-stage-view="operate"]) .how-tile-sheet { top: 22%; }
:is([data-active-stage="operate"] .how-stage, [data-stage-view="operate"]) .how-tile-chat { top: 38%; }
:is([data-active-stage="operate"] .how-stage, [data-stage-view="operate"]) .how-tile-mail { top: 54%; }
:is([data-active-stage="operate"] .how-stage, [data-stage-view="operate"]) .how-tile-new { top: 70%; opacity: 1; translate: 0 0; border-color: var(--accent); background: #d4ff3a12; }
:is([data-active-stage="operate"] .how-stage, [data-stage-view="operate"]) .how-badge { opacity: 1; scale: 1; }

.how-chapter { display: flex; flex-direction: column; justify-content: center; min-height: 82vh; scroll-margin-top: 7rem; }
.how-chapter h3 { margin-top: 1rem; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 400; }
.how-chapter > p:not(.eyebrow, .how-question) { margin-top: 1.5rem; max-width: 34rem; color: var(--muted); font-size: 1.125rem; line-height: 1.7; }
.how-question { margin-top: 2rem; max-width: 34rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-left: 1px solid var(--accent); border-radius: 0 .875rem .875rem 0; background: var(--canvas); color: var(--ink); font-size: 1.0625rem; }
.how-question strong { display: block; margin-bottom: .25rem; color: var(--accent); font-size: .6875rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }

.how-belief-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.how-belief { padding: clamp(1.75rem, 3vw, 2.75rem); border: 1px solid var(--line); border-radius: 1.25rem; background: var(--paper); transition: border-color 500ms var(--ease); }
.how-belief:hover { border-color: var(--line-strong); }
.how-belief h3 { font-size: clamp(1.5rem, 2.4vw, 2.125rem); font-weight: 400; letter-spacing: -.035em; }
.how-belief p { margin-top: .75rem; max-width: 28rem; color: var(--muted); font-size: 1.0625rem; line-height: 1.6; }

.how-next { border-top: 1px solid var(--line); }
.how-next-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.how-next-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.how-next-list li { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.how-next-number { display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent); font-size: .9375rem; }
.how-next-list h3 { font-size: 1.375rem; font-weight: 500; }
.how-next-list p { margin-top: .375rem; color: var(--muted); line-height: 1.6; }

@media (prefers-reduced-motion: no-preference) {
    .how-app, .how-tile, .how-badge, .how-sync {
        transition: left 900ms var(--ease), top 900ms var(--ease), width 900ms var(--ease), rotate 900ms var(--ease), translate 900ms var(--ease), scale 700ms var(--ease), opacity 600ms var(--ease), background-color 600ms var(--ease), border-color 600ms var(--ease), box-shadow 600ms var(--ease);
    }
    .how-tile-chat { transition-delay: 60ms; }
    .how-tile-mail { transition-delay: 120ms; }
    .how-tile-new { transition-delay: 200ms; }
    :is([data-active-stage="observe"] .how-stage, [data-stage-view="observe"]) .how-sync::before { animation: illo-blink 1.4s ease-in-out infinite; }
    :is([data-active-stage="observe"] .how-stage, [data-stage-view="observe"]) .how-tile-sheet { animation: illo-float 6s ease-in-out infinite; }
    :is([data-active-stage="observe"] .how-stage, [data-stage-view="observe"]) .how-tile-chat { animation: illo-float 7s ease-in-out -2s infinite; }
    :is([data-active-stage="observe"] .how-stage, [data-stage-view="observe"]) .how-tile-mail { animation: illo-float 5s ease-in-out -1s infinite; }
}

.how-stage-mini { display: none; }

@media (max-width: 56rem) {
    .how-story-layout, .how-next-layout { grid-template-columns: 1fr; }
    .how-stage { display: none; }
    .how-stage-mini { display: block; margin-bottom: 2rem; }
    .how-stage-inner { height: 19rem; }
    .how-tile { padding: .5rem .75rem; }
    .how-tile strong { font-size: .875rem; }
    .how-tile-note { display: none; }
    .how-chapter { min-height: 0; padding-block: 2.5rem; }
}
@media (max-width: 44rem) {
    .how-belief-grid { grid-template-columns: 1fr; }
    .how-stage-inner { height: 17rem; border-radius: 1rem; }
    .how-stage-label { left: 1rem; bottom: .875rem; font-size: .625rem; }
}

/* Contact */
.contact-layout { grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 6vw, 6rem); }
.contact-aside { position: sticky; top: 7rem; }
.contact-aside h2 { font-size: clamp(2.5rem, 4.5vw, 4.5rem); }
.contact-note { max-width: 26rem; margin-top: 1.25rem; font-size: 1.0625rem; line-height: 1.65; }
.contact-tips { margin-top: 2.5rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--paper); }
.contact-tips ul { display: grid; gap: .875rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.contact-tips li { color: var(--muted); line-height: 1.55; }
.contact-tips strong { color: var(--ink); font-weight: 500; }
.contact-steps { display: grid; gap: .75rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.contact-steps li { display: flex; align-items: center; gap: .875rem; color: var(--muted); font-size: .9375rem; }
.contact-steps li span { display: grid; flex: 0 0 auto; width: 1.875rem; height: 1.875rem; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent); font-size: .8125rem; }

.contact-form { gap: 1.5rem; padding: clamp(1.5rem, 3.5vw, 2.75rem); box-shadow: 0 40px 100px -50px #000; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field input, .field textarea { padding: .875rem 1rem; font-size: 1rem; }
.field ::placeholder { color: #7f867f80; }
.field textarea { min-height: 11rem; line-height: 1.6; }
.form-error-banner { padding: .75rem 1rem; border: 1px solid #c43a1e55; border-radius: .75rem; background: #c43a1e12; }
.contact-topics { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; border: 0; }
.contact-topics[hidden] { display: none; }
.contact-topics legend { width: 100%; margin-bottom: .625rem; padding: 0; color: var(--muted); font-size: .875rem; font-weight: 500; letter-spacing: .04em; }
.contact-topics legend span { color: #7f867f99; font-weight: 400; }
.contact-topics button {
    padding: .5rem .95rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: .875rem;
    cursor: pointer;
    transition: color 300ms var(--ease), border-color 300ms var(--ease), background-color 300ms var(--ease);
}
.contact-topics button:hover { color: var(--ink); border-color: var(--accent); }
.contact-topics button[aria-pressed="true"] { color: var(--canvas); background: var(--accent); border-color: var(--accent); }
.contact-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding-top: .5rem; }
.contact-submit .button { min-height: 3.5rem; padding-inline: 1.75rem; }
.contact-submit > span { color: var(--muted); font-size: .875rem; }

.status-box { justify-items: start; gap: 1rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
.status-mark { display: grid; width: 3.5rem; height: 3.5rem; place-items: center; border-radius: 50%; background: var(--accent); color: var(--canvas); font-size: 1.5rem; }
.status-box h3 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 400; letter-spacing: -.04em; }
.status-box p { font-size: 1.125rem; }
.status-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1rem; }

@media (prefers-reduced-motion: no-preference) {
    .status-mark { animation: nb-fade 900ms var(--ease) both; }
}
@media (max-width: 56rem) {
    .contact-layout { grid-template-columns: 1fr; }
    .contact-aside { position: static; }
}
@media (max-width: 44rem) {
    .field-row { grid-template-columns: 1fr; }
    .contact-steps, .contact-tips { display: none; }
}

/* ───────────────────────── Lab layer ───────────────────────── */

/* Dark "chamber" sections re-scope the tokens, so every copied rule works on both grounds. */
.nb-chamber,
body:has(.nb-hero) .site-header:not([data-scrolled]) {
    color-scheme: dark;
    --canvas: #0b0d0c;
    --paper: #121513;
    --panel: #191d1b;
    --ink: #eef0ea;
    --muted: #9ba29c;
    --line: #eef0ea17;
    --line-strong: #eef0ea30;
    --accent: #d4ff3a;
    --accent-soft: #d4ff3a26;
    --glow: #d4ff3a14;
    --nb-ink: #eef0ea;
    --nb-dim: #68706a;
    --nb-signal: #d4ff3a;
    --nb-alert: #ff6a3d;
    /* The --night-* aliases resolve where declared, so re-point them here too. */
    --night: var(--canvas);
    --night-text: var(--ink);
    --night-muted: var(--muted);
    --night-line: var(--line);
    color: var(--ink);
}
.nb-chamber { background-color: var(--canvas); }
body:has(.nb-hero) .site-header:not([data-scrolled]) { background-color: transparent; }

/* Paper with a faint dot grid. */
body {
    background-color: var(--canvas);
    background-image: radial-gradient(circle at 1px 1px, #0f12101f 1px, transparent 0);
    background-size: 24px 24px;
    letter-spacing: -.005em;
}
.grain { opacity: .05; mix-blend-mode: multiply; }
::selection { background: var(--mark); color: #0f1210; }
.scroll-progress { background: var(--mark); height: 2px; }

h1, h2, h3 { font-family: var(--sans); }
h1, h2 { font-weight: 600; letter-spacing: -.058em; }
h1 { font-size: clamp(3.1rem, 7.6vw, 8.5rem); line-height: .9; }
h2 { font-size: clamp(2.4rem, 5vw, 5.25rem); line-height: .96; }
h3 { font-weight: 600; letter-spacing: -.03em; }

/* Accent words: a highlighter stroke on paper, lime ink in chambers. */
h1 em, h2 em, .thesis-heading span + span {
    font-family: inherit;
    font-style: normal;
    font-weight: inherit;
    letter-spacing: inherit;
    color: inherit;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    background: linear-gradient(transparent 56%, var(--mark) 56%, var(--mark) 82%, transparent 82%) 0 0 / 100% 100% no-repeat;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding: 0 .04em;
}
.nb-chamber :is(h1 em, h2 em, .thesis-heading span + span) { background: none; color: var(--accent); }
.hero-copy h1 em, .page-intro-grid h1 em, .thesis-heading em, .thesis-heading span + span, .method-copy h2 em { font-size: 1em; display: inline; }

.contact-tips-title { color: var(--ink); font-weight: 600; }
.field-hint { margin-top: -.25rem; color: var(--muted); font-size: .875rem; }
.nb-post-meta { color: var(--muted); font-size: .9375rem; }
.lede { font-size: clamp(1.0625rem, 1.25vw, 1.25rem); }

/* Header */
.site-header { view-transition-name: nb-header; }
.site-header[data-scrolled] { background: color-mix(in srgb, var(--canvas) 82%, transparent); }
.mobile-nav-links { background: var(--canvas); }
.brand { font-family: var(--mono); font-size: .8125rem; letter-spacing: .08em; }
.nav-link { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.button { border-radius: 6px; font-family: var(--sans); font-weight: 600; letter-spacing: -.01em; }
.button-primary, .button-dark { box-shadow: none; }
.button-primary:hover, .button-dark:hover, .header-contact[aria-current] { box-shadow: 0 10px 30px -12px var(--accent); }
.header-contact { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.text-link { font-family: var(--mono); font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; }

.nb-chip {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    min-height: 2.25rem;
    padding: .375rem .875rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font: 500 .75rem/1 var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease);
}
.nb-chip:hover { border-color: var(--accent); }
.nb-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--canvas); }
.nb-chip[hidden] { display: none; }
.nb-readout { min-width: 7ch; color: var(--accent); font: 500 .75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

/* The messy-to-tidy field. The dotted grid shows before (and without) JavaScript. */
.nb-field {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, #eef0ea24 1px, transparent 0);
    background-size: 24px 24px;
}
.nb-field canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.nb-hero { background: radial-gradient(90% 75% at 72% 30%, #151a17 0%, var(--canvas) 70%); }
.nb-hero .hero-inner { position: relative; z-index: 1; padding-block: 9rem 9.5rem; pointer-events: none; }
.nb-hero .hero-copy { max-width: min(44rem, 52%); pointer-events: auto; }
.nb-hero .hero-copy h1 { font-size: clamp(3rem, 6.4vw, 7.25rem); }
.nb-hero .hero-copy .lede { max-width: 28rem; }
.nb-hero-bar {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem var(--gutter);
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--canvas) 70%, transparent);
    backdrop-filter: blur(10px);
}
.nb-hint { color: var(--muted); font: 500 .75rem/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.nb-hero-controls { display: flex; align-items: center; gap: .75rem; }
@media (hover: hover) { .nb-hint-touch { display: none; } }
@media (hover: none) { .nb-hint-pointer { display: none; } }

/* Inner page intro: headline on paper, with a light animated scene beside it. */
.nb-intro { background: transparent; border-bottom: 1px solid var(--line); }
.nb-intro-inner { display: grid; grid-template-columns: 1.3fr .9fr; align-items: end; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(8.5rem, 13vw, 11.5rem) clamp(3.5rem, 7vw, 6rem); }
.nb-intro-copy h1 { margin-top: 1.5rem; font-size: clamp(3rem, 6.4vw, 7rem); }
.nb-intro-copy h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.nb-intro-copy h1 .line > span { display: block; color: var(--ink); }
.nb-intro-copy .lede { margin-top: 1.75rem; max-width: 34rem; color: var(--muted); }

/* Cards get registration marks in their corners, like specimen labels. */
:root {
    --nb-ticks:
        linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)),
        linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)),
        linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)),
        linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink));
    --nb-tick-size: 12px 1px, 1px 12px, 12px 1px, 1px 12px, 12px 1px, 1px 12px, 12px 1px, 1px 12px;
    --nb-tick-pos: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
}
:is(.product-card, .market-card, .team-member, .lab-card, .how-belief, .contact-form, .contact-tips, .nb-specimen),
:is(.product-card, .lab-card, .nb-specimen):is(:hover, :focus-visible) {
    border-radius: 4px;
    border-color: var(--line);
    background-color: var(--paper);
    background-image: var(--nb-ticks);
    background-size: var(--nb-tick-size);
    background-position: var(--nb-tick-pos);
    background-repeat: no-repeat;
    box-shadow: none;
}
:is(.product-card, .lab-card, .market-card):is(:hover, :focus-visible) { background-color: #fff; box-shadow: 0 30px 60px -40px #0f121066; }
[data-glow]::before { background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 60%); }
.market-image { border-radius: 2px; background: var(--canvas); }
.market-image img, .focus-image img { filter: none; }
.illo { border-radius: 4px; border-color: var(--line); background: radial-gradient(70% 70% at 50% 45%, var(--paper), var(--canvas)); }
.product-icon { border-radius: 4px; background: var(--panel); }
.market-arrow { border-radius: 4px; }
.product-category, .lab-meta, .team-member .role { font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; }
.product-card h3, .lab-card h3, .how-belief h3 { font-weight: 600; letter-spacing: -.04em; }

/* Portfolio ticker */
.portfolio-ribbon { background: transparent; }
.marquee a { font-family: var(--mono); font-style: normal; font-size: clamp(.875rem, 1.2vw, 1rem); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.marquee a:hover, .marquee a:focus-visible { color: var(--accent); }
.marquee li::after { content: "✳"; color: var(--accent); }
.marquee li { display: flex; align-items: center; }

/* Sections */
.thesis-copy { color: var(--muted); }
.method-section { background: radial-gradient(70% 90% at 100% 0%, #d4ff3a0d, transparent 60%), var(--canvas); }
.method-node { border-radius: 4px; }
.how-story { background: radial-gradient(60% 50% at 20% 30%, #d4ff3a0a, transparent 70%), var(--canvas); }
.how-question { border-radius: 0 4px 4px 0; }
.how-next-number, .contact-steps li span { border-radius: 4px; font-family: var(--mono); }
.lab-prose { color: #2b302c; }
.lab-prose blockquote { font-family: var(--sans); font-style: normal; font-weight: 600; letter-spacing: -.03em; border-left: 3px solid var(--mark); }
.lab-filters a, .contact-topics button { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field textarea { background: #fff; border-radius: 4px; }
.page-intro.lab-article-head { background: transparent; }

/* Closing band */
.contact-band::before { background: radial-gradient(45% 55% at 80% 60%, #d4ff3a1c, transparent 70%), radial-gradient(35% 45% at 15% 30%, #2c3bff26, transparent 70%); }
.contact-band .button-dark:hover { background: var(--accent); color: var(--canvas); }

/* Footer with an animated factory: messy scraps go into the lab, tidy cards come out. */
.site-footer.nb-chamber { padding-block: clamp(3rem, 6vw, 5rem) 2rem; border-top: 0; overflow: hidden; }
.nb-footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.nb-footer-top nav { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.nb-footer-top nav a { color: var(--muted); font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.nb-footer-top nav a:hover { color: var(--accent); }
.nb-footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font: 500 .6875rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* Cursor follower (added by lab.js on fine pointers only). */
.nb-cursor {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 60;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border: 1px solid #fff;
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity 300ms var(--ease), width 350ms var(--ease), height 350ms var(--ease), margin 350ms var(--ease), background-color 350ms var(--ease);
}
.nb-cursor[data-on] { opacity: 1; }
.nb-cursor[data-hover] { width: 60px; height: 60px; margin: -30px 0 0 -30px; background: #fff; }
.nb-cursor[data-hide] { opacity: 0; }
.nb-cursor span { position: absolute; left: 50%; top: calc(100% + 8px); translate: -50% 0; color: #fff; font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
    ::view-transition-old(root) { animation: nb-page-out 280ms var(--ease) both; }
    ::view-transition-new(root) { animation: nb-page-in 560ms var(--ease) both; }
}
@keyframes nb-page-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes nb-page-in { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 56rem) {
    .nb-intro-inner { grid-template-columns: 1fr; }
}
@media (max-width: 44rem) {
    .nb-hero .hero-copy { max-width: 100%; }
    .nb-hero .hero-inner { padding-block: 0 7.5rem; }
    .nb-hero-bar { padding-block: .75rem; }
    .nb-hint { display: none; }
    .nb-hero-controls { width: 100%; justify-content: space-between; gap: .5rem; }
    .nb-hero-controls .nb-chip { padding-inline: .7rem; font-size: .6875rem; }
    .nb-readout { min-width: 0; }
    .nb-intro-inner { padding-top: 7.5rem; }
}

/* Footer factory scene. Static positions come from --x; motion is layered on only when allowed. */
.nb-factory { display: block; width: 100%; height: auto; aspect-ratio: 4 / 1; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.nb-factory * { transform-box: fill-box; transform-origin: center; }
.nb-factory .f-line, .nb-factory .f-dim, .nb-factory .f-lime, .nb-factory .f-alert, .nb-factory .f-check { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nb-factory .f-line { stroke: var(--line-strong); }
.nb-factory .f-dim, .nb-factory .f-dim * { stroke: var(--line); fill: none; stroke-width: 1.5; }
.nb-factory .f-lime { stroke: var(--accent); }
.nb-factory .f-card { fill: var(--paper); stroke: var(--accent); stroke-width: 1.5; }
.nb-factory .f-alert { stroke: var(--nb-alert); }
.nb-factory .f-check { stroke: var(--canvas); stroke-width: 2; }
.nb-factory .f-fill { fill: var(--paper); }
.nb-factory .f-body { fill: var(--panel); }
.nb-factory .f-window { fill: var(--canvas); }
.nb-factory .f-belt { fill: var(--paper); }
.nb-factory .f-mouth { fill: #050606; }
.nb-factory .f-limefill { fill: var(--accent); }
.nb-factory .f-alertfill { fill: var(--nb-alert); }
.nb-factory .f-liquid { fill: #d4ff3a33; }
.nb-factory .f-cone { fill: #d4ff3a0d; }
.nb-factory .f-bubble { fill: none; stroke: #d4ff3a99; stroke-width: 1; }
.nb-factory .f-puff { fill: #eef0ea14; }
.nb-factory .f-tread { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 10 22; opacity: .5; }
.nb-factory .f-text { fill: var(--ink); font: 500 11px var(--mono); text-anchor: middle; }
.nb-factory .f-start { text-anchor: start; }
.nb-factory .f-small { font-size: 9.5px; }
.nb-factory .f-muted { fill: var(--muted); }
.nb-factory .f-lime.f-text, .nb-factory .f-text.f-lime { fill: var(--accent); stroke: none; }
.nb-factory .f-sort rect { fill: #eef0ea40; }
.nb-factory .f-scan { fill: var(--accent); opacity: .8; }
.nb-factory .f-led { fill: var(--accent); }
.nb-factory .f-led-alert { fill: var(--nb-alert); }
.nb-factory .f-flash { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; }
.nb-factory .f-rollers > g { translate: var(--x) 311px; }
.nb-factory .f-rollers circle, .nb-factory .f-rollers path { fill: var(--paper); stroke: var(--line-strong); stroke-width: 1.5; }
.nb-factory .f-item { translate: var(--x) 300px; }
.nb-factory .f-wobble { rotate: var(--tilt); }
.nb-factory .f-lamp line, .nb-factory .f-lamp path { transform-box: view-box; }
.nb-factory .f-lamp { transform-box: view-box; }

@media (prefers-reduced-motion: no-preference) {
    /* Belt speed is shared: 980 units in 12s, so every moving part below is timed to it. */
    .nb-factory .f-in { animation: f-ride-in 12s linear var(--d) infinite; }
    .nb-factory .f-out { animation: f-ride-out 12s linear var(--d) infinite; }
    /* Cards leave the machine unchecked; the check lands when the press does, at 44.9% of the ride (x = 1300). */
    .nb-factory .f-out .f-tick { animation: f-tick 12s linear var(--d) infinite; }
    .nb-factory .f-out .f-card { animation: f-card 12s linear var(--d) infinite; }
    .nb-factory .f-wobble { animation: f-wobble 1.4s ease-in-out infinite alternate; }
    .nb-factory .f-tread { animation: f-tread .392s linear infinite; }
    .nb-factory .f-rollers path { animation: f-spin .54s linear infinite; }
    /* Tidy cards pass under the press every 3s, at 79.6% of each cycle. */
    .nb-factory .f-stamp { animation: f-stamp 3s ease-in-out infinite; }
    .nb-factory .f-flash { animation: f-flash 3s ease-out infinite; }
    .nb-factory .f-scan { animation: f-scan 1.8s ease-in-out infinite alternate; }
    .nb-factory .f-sort rect { animation: f-sort 2.4s ease-in-out var(--delay, 0s) infinite alternate; transform-origin: left center; }
    .nb-factory .f-led { animation: f-blink 1.5s steps(1) var(--delay) infinite; }
    .nb-factory .f-blink { animation: f-blink 1.2s steps(1) infinite; }
    .nb-factory .f-gear { animation: f-spin 4s linear infinite; }
    .nb-factory .f-puff { animation: f-puff 3.6s ease-out var(--delay) infinite; }
    .nb-factory .f-bubble { animation: f-bubble 2.2s ease-in var(--delay) infinite; }
    .nb-factory .f-lamp { transform-origin: var(--ox) 18px; animation: f-sway 5s ease-in-out var(--delay, 0s) infinite alternate; }
    .nb-factory.is-paused, .nb-factory.is-paused * { animation-play-state: paused; }
}
@keyframes f-ride-in { from { translate: -220px 300px; } to { translate: 760px 300px; } }
@keyframes f-ride-out { from { translate: 860px 300px; } to { translate: 1840px 300px; } }
@keyframes f-tick { 0%, 44.6% { opacity: 0; scale: .3; } 46% { opacity: 1; scale: 1.35; } 48%, 100% { opacity: 1; scale: 1; } }
@keyframes f-card { 0%, 44.6% { stroke: var(--line-strong); } 46%, 100% { stroke: var(--accent); } }
@keyframes f-wobble { from { rotate: calc(var(--tilt) - 4deg); } to { rotate: calc(var(--tilt) + 4deg); } }
@keyframes f-tread { to { stroke-dashoffset: -32; } }
@keyframes f-spin { to { rotate: 360deg; } }
@keyframes f-stamp { 0%, 68%, 92%, 100% { translate: 0 0; } 77%, 84% { translate: 0 42px; } }
@keyframes f-flash { 0%, 79% { opacity: 0; scale: .6; } 81% { opacity: .9; scale: .8; } 90%, 100% { opacity: 0; scale: 1.4; } }
@keyframes f-scan { from { translate: 0 0; } to { translate: 0 80px; } }
@keyframes f-sort { from { scale: var(--w, .6) 1; } to { scale: 1 1; } }
@keyframes f-blink { 0% { opacity: 1; } 50% { opacity: .2; } }
@keyframes f-puff { from { translate: 0 0; scale: .6; opacity: .9; } to { translate: 14px -60px; scale: 2.2; opacity: 0; } }
@keyframes f-bubble { from { translate: 0 0; opacity: 1; } to { translate: 0 -46px; opacity: 0; } }
@keyframes f-sway { from { rotate: calc(var(--sway) * -1); } to { rotate: var(--sway); } }

@media (max-width: 44rem) {
    .nb-factory { aspect-ratio: auto; height: 230px; }
}

/* Lab products: specimen cards that open a lab report. */
.nb-specimen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.nb-specimen-grid > li { display: flex; min-width: 0; }
.nb-specimen {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .625rem;
    width: 100%;
    padding: 1.25rem 1.375rem 1.375rem;
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    transition: translate 600ms var(--ease), background-color 400ms var(--ease), box-shadow 600ms var(--ease);
}
.nb-specimen:is(:hover, :focus-visible) { translate: 0 -4px; background-color: #fff; box-shadow: 0 30px 60px -40px #0f121066; }
.nb-specimen-top { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .75rem; border-bottom: 1px dashed var(--line-strong); color: var(--muted); font: 500 .6875rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.nb-status { display: inline-flex; align-items: center; gap: .375rem; color: var(--accent); }
.nb-status::before { content: ""; width: .375rem; height: .375rem; border-radius: 50%; background: currentColor; }
.nb-dish {
    position: relative;
    display: grid;
    place-items: center;
    width: 7.5rem;
    aspect-ratio: 1;
    margin: .75rem auto .5rem;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background:
        radial-gradient(circle, var(--paper) 0 52%, transparent 53%),
        repeating-radial-gradient(circle, transparent 0 8px, var(--line) 8px 9px),
        var(--canvas);
}
.nb-dish img { position: relative; width: 46%; height: 46%; object-fit: contain; border-radius: 12px; }
.nb-dish b { font-size: 2rem; font-weight: 600; }
.nb-dish-ring { position: absolute; inset: -7px; border: 1px dashed var(--accent); border-radius: 50%; opacity: 0; transition: opacity 400ms var(--ease); }
.nb-specimen:is(:hover, :focus-visible) .nb-dish-ring { opacity: 1; }
.nb-specimen h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.nb-specimen-desc { color: var(--muted); line-height: 1.55; }
.nb-specimen-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.nb-specimen:is(:hover, :focus-visible) .market-arrow { background: var(--accent); color: var(--canvas); transform: rotate(45deg); }

html:has(.nb-report[open]) { overflow: hidden; }
.nb-report {
    width: min(66rem, calc(100% - 2rem));
    max-height: min(92vh, 54rem);
    padding: 0;
    overflow: auto;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background:
        radial-gradient(circle at 1px 1px, #eef0ea1c 1px, transparent 0) 0 0 / 24px 24px,
        radial-gradient(70% 60% at 85% 0%, #d4ff3a12, transparent 70%),
        var(--canvas);
    box-shadow: 0 60px 120px -40px #000;
    overscroll-behavior: contain;
}
.nb-report::backdrop { background: #0b0d0cb8; backdrop-filter: blur(6px); }
.nb-report-inner { padding: clamp(1.25rem, 3vw, 2.5rem); }
.nb-report-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.nb-report-id { color: var(--muted); font: 500 .75rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.nb-report-grid { display: grid; grid-template-columns: 15rem 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.nb-dish-lg { width: 13rem; margin: 0 0 1.75rem; }
.nb-dish-lg .nb-dish-ring { opacity: 1; }
.nb-report-facts { margin: 0; border-top: 1px solid var(--line); }
.nb-report-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.nb-report-facts dt { color: var(--muted); font: 500 .6875rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.nb-report-facts dd { margin: 0; text-align: right; font-size: .9375rem; }
.nb-report-body h2 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
.nb-report-lede { max-width: 36rem; margin-top: 1rem; color: var(--ink); font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; }
.nb-report-section { max-width: 38rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px dashed var(--line-strong); }
.nb-report-section h3 { color: var(--accent); font: 500 .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.nb-report-section p { margin-top: .75rem; color: var(--muted); font-size: 1.0625rem; line-height: 1.65; }
.nb-report-actions { margin-top: 2.25rem; }
.nb-report-actions .button { min-height: 3.25rem; padding-inline: 1.5rem; }
.nb-report-nav { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: no-preference) {
    .nb-specimen:is(:hover, :focus-visible) .nb-dish-ring, .nb-dish-lg .nb-dish-ring { animation: f-spin 14s linear infinite; }
    .nb-report[open] { animation: nb-report-in 460ms var(--ease) both; }
    .nb-report[open]::backdrop { animation: nb-backdrop-in 300ms ease-out both; }
    .nb-report[open] .nb-report-body > * { animation: nb-fade 600ms var(--ease) both; }
    .nb-report[open] .nb-report-body > :nth-child(2) { animation-delay: 60ms; }
    .nb-report[open] .nb-report-body > :nth-child(n + 3) { animation-delay: 120ms; }
}
@keyframes nb-report-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes nb-backdrop-in { from { opacity: 0; } }

@media (max-width: 44rem) {
    .nb-report { width: calc(100% - 1rem); max-height: 94vh; }
    .nb-report-grid { grid-template-columns: 1fr; }
    .nb-report-side { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.25rem; align-items: center; }
    .nb-dish-lg { width: 6.5rem; margin: 0; }
    .nb-report-nav .nb-chip { max-width: 48%; overflow: hidden; text-overflow: ellipsis; }
}

/* Inner-page hero scenes: ink line art on the dotted paper, one per page. */
.nb-art { position: relative; width: 100%; max-height: 22rem; aspect-ratio: 3 / 2; background-image: var(--nb-ticks); background-size: var(--nb-tick-size); background-position: var(--nb-tick-pos); background-repeat: no-repeat; }
.nb-art-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.nb-art-svg * { transform-box: fill-box; transform-origin: center; }
.nb-art .h-ink { fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.nb-art .h-dim { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 4 6; stroke-linecap: round; }
.nb-art .h-limefill { fill: var(--mark); }
.nb-art .h-label, .nb-art .h-label text { fill: var(--ink); font: 500 12px var(--mono); letter-spacing: .08em; text-anchor: middle; text-transform: uppercase; }
.nb-art .h-muted, .nb-art .h-muted text { fill: var(--muted); }
.nb-art :is(.a-disc, .p-card, .n-page, .c-card, .l-rack-front) { fill: var(--paper); stroke: var(--ink); stroke-width: 1.75; }
.nb-art :is(.a-pulse, .p-pulse) { fill: var(--mark); stroke: var(--ink); stroke-width: 1.5; transform-box: view-box; transform-origin: 0 0; offset-rotate: 0deg; offset-distance: 16%; }

.art-about .a-track { stroke: none; }
.art-about .a-core { fill: var(--accent); }
.art-about .a-core-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .4; }
.art-about .a-pulse { offset-path: path("M240 70 L370 250 L110 250 Z"); }
.art-approach .p-pulse { offset-path: path("M65 130 L415 130 C420 262 60 262 65 130"); offset-distance: 10%; }
.art-lab .l-glass { fill: #ffffffa6; stroke: var(--ink); stroke-width: 1.75; }
.art-lab .l-liquid { fill: var(--mark); transform-origin: 50% 100%; scale: 1 var(--level); }
.art-lab .l-bubble, .art-contact .c-bubble { fill: none; stroke: var(--ink); stroke-width: 1; opacity: 0; }
.art-notebook .n-tab { fill: var(--mark); stroke: var(--ink); stroke-width: 1.5; }
.nb-art :is(.n-line, .n-draw, .n-mark, .n-check) { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.nb-art .n-line { stroke: var(--ink); stroke-width: 2; }
.nb-art .n-mark { stroke: var(--mark); stroke-width: 13; }
.nb-art .n-draw { stroke: var(--ink); stroke-width: 1.75; }
.nb-art .n-draw-lime { stroke: var(--mark); stroke-width: 8; }
.nb-art .n-check { stroke: var(--accent); stroke-width: 3; }
.art-contact .c-title { fill: var(--accent); text-anchor: start; }
.art-contact .c-caret { fill: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
    /* About: a pulse circles Build → Test → Operate; each station lights as it arrives (side lengths 222/260/222). */
    .art-about .a-pulse { animation: art-orbit 6s linear infinite; }
    .art-about .a-node-1 .a-disc { animation: art-at-0 6s linear infinite; }
    .art-about .a-node-2 .a-disc { animation: art-at-31 6s linear infinite; }
    .art-about .a-node-3 .a-disc { animation: art-at-68 6s linear infinite; }
    .art-about .a-gear { animation: f-spin 9s linear infinite; }
    .art-about .a-core-ring { animation: art-breathe 3s ease-in-out infinite; }
    /* Approach: the pulse runs Observe → Experiment → Keep, then loops back underneath. */
    .art-approach .p-pulse { animation: art-orbit 7s linear infinite; }
    .art-approach .p-node-1 .p-card { animation: art-at-0 7s linear infinite; }
    .art-approach .p-node-2 .p-card { animation: art-at-20 7s linear infinite; }
    .art-approach .p-node-3 .p-card { animation: art-at-40 7s linear infinite; }
    .art-approach .p-loop { animation: f-tread 1.2s linear infinite reverse; }
    /* Lab: liquid levels bob and bubbles rise in each tube. */
    .art-lab .l-liquid { animation: art-bob 3.2s ease-in-out var(--d) infinite; }
    .art-lab .l-bubble { animation: art-rise 2.6s ease-in var(--d) infinite; }
    /* Notebook and contact: lines write themselves, hold, then fade and start again. */
    .nb-art :is(.n-line, .n-draw, .n-mark, .n-check) { animation: art-write 9s var(--ease) calc(var(--i) * .6s) infinite backwards; }
    .art-contact .c-caret { animation: f-blink 1s steps(1) infinite; }
    .art-contact .c-bubble { animation: art-rise 2.4s ease-in var(--d) infinite; }
}
@keyframes art-orbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes art-at-0 { 0%, 5% { fill: var(--mark); } 9%, 92% { fill: var(--paper); } 97%, 100% { fill: var(--mark); } }
@keyframes art-at-20 { 0%, 17% { fill: var(--paper); } 20%, 25% { fill: var(--mark); } 29%, 100% { fill: var(--paper); } }
@keyframes art-at-31 { 0%, 28% { fill: var(--paper); } 31.5%, 36% { fill: var(--mark); } 40%, 100% { fill: var(--paper); } }
@keyframes art-at-40 { 0%, 37% { fill: var(--paper); } 40%, 45% { fill: var(--mark); } 49%, 100% { fill: var(--paper); } }
@keyframes art-at-68 { 0%, 65% { fill: var(--paper); } 68.5%, 73% { fill: var(--mark); } 77%, 100% { fill: var(--paper); } }
@keyframes art-breathe { 50% { scale: 1.35; opacity: .1; } }
@keyframes art-bob { 0%, 100% { scale: 1 var(--level); } 50% { scale: 1 calc(var(--level) + .06); } }
@keyframes art-rise { 0% { opacity: 0; translate: 0 0; } 15% { opacity: .9; } 100% { opacity: 0; translate: 0 -64px; } }
@keyframes art-write { 0% { stroke-dashoffset: 1; opacity: 1; } 14% { stroke-dashoffset: 0; } 82% { stroke-dashoffset: 0; opacity: 1; } 92%, 100% { stroke-dashoffset: 0; opacity: 0; } }

@media (max-width: 56rem) {
    .nb-art { max-height: 17rem; max-width: 30rem; }
}

/* Highlighted words draw their highlighter stroke in as they scroll into view. */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        main :is(h1, h2) em { animation: nb-mark linear both; animation-timeline: view(); animation-range: entry 25% cover 40%; }
    }
}
@keyframes nb-mark { from { background-size: 0% 100%; } }

/* Home "Where we start": copy beside a field-observation panel. */
.nb-observe { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.nb-observe .thesis-heading { max-width: 14ch; font-size: clamp(2.4rem, 4.4vw, 4.75rem); }
.nb-observe .thesis-heading span { display: block; }
.nb-observe-copy p { max-width: 34rem; margin-top: 1.25rem; color: var(--muted); font-size: 1.125rem; line-height: 1.7; }
.nb-observe-copy h2 + p { margin-top: 2rem; }
.nb-observe-panel {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 4px;
    background-color: var(--paper);
    background-image: var(--nb-ticks);
    background-size: var(--nb-tick-size);
    background-position: var(--nb-tick-pos);
    background-repeat: no-repeat;
}
.nb-observe-head, .nb-observe-foot { position: absolute; inset-inline: 0; display: flex; justify-content: space-between; gap: 1rem; padding: .875rem 1.125rem; color: var(--muted); font: 500 .6875rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.nb-observe-head { top: 0; border-bottom: 1px dashed var(--line-strong); }
.nb-observe-foot { bottom: 0; }
.nb-observe-tag { display: inline-flex; align-items: center; gap: .4rem; color: #c43a1e; }
.nb-observe-tag::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.nb-observe-tangle { position: absolute; inset: 12% 6% 10%; width: 88%; height: 78%; }
.nb-observe-tangle path { stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 4 6; stroke-linecap: round; }
.nb-scrap {
    position: absolute;
    display: grid;
    gap: .2rem;
    padding: .625rem .875rem;
    border: 1px solid var(--line-strong);
    border-radius: .625rem;
    background: #fff;
    box-shadow: 0 16px 34px -22px #0f121066;
    font-size: .875rem;
    font-weight: 500;
    white-space: nowrap;
}
.nb-scrap b { color: var(--accent); font: 500 .625rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.nb-scrap-sheet { left: 9%; top: 19%; rotate: -4deg; }
.nb-scrap-chat { right: 7%; top: 42%; rotate: 3deg; }
.nb-scrap-mail { left: 14%; bottom: 17%; rotate: -2deg; }
.nb-lens { position: absolute; left: 22%; top: 24%; z-index: 2; width: clamp(4.5rem, 9vw, 6.5rem); aspect-ratio: 1; pointer-events: none; }
.nb-lens-glass { position: absolute; inset: 0; border: 2px solid var(--ink); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffffffcc, #d4ff3a2e 60%); box-shadow: inset 0 0 0 5px #fbfaf6aa, 0 18px 30px -18px #0f121066; }
.nb-lens-handle { position: absolute; left: 82%; top: 82%; width: 42%; height: 9px; border-radius: 5px; background: var(--ink); rotate: 45deg; transform-origin: 0 50%; }

@media (prefers-reduced-motion: no-preference) {
    .nb-observe-tangle path { animation: f-tread 1.6s linear infinite; }
    .nb-scrap { animation: illo-float 6s ease-in-out infinite; }
    .nb-scrap-chat { animation-duration: 7s; animation-delay: -2s; }
    .nb-scrap-mail { animation-duration: 5.5s; animation-delay: -1s; }
    .nb-lens { animation: nb-lens 10s ease-in-out infinite; }
}
@keyframes nb-lens { 0%, 100% { left: 18%; top: 20%; } 33% { left: 68%; top: 40%; } 66% { left: 22%; top: 58%; } }

/* Closing band: a studio sign-off that points to the notebook and the contact page. */
.nb-cta-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; padding-block: clamp(6rem, 11vw, 10rem) clamp(3.5rem, 7vw, 6rem); }
.nb-cta h2 { max-width: 14ch; font-size: clamp(2.6rem, 5.2vw, 5.75rem); }
.nb-cta-sub { max-width: 30rem; margin-top: 1.25rem; color: var(--muted); font-size: 1.125rem; line-height: 1.6; }
.nb-cta-links { display: grid; gap: .875rem; }
.nb-cta-button { width: 100%; min-height: 3.75rem; justify-content: space-between; padding-inline: 1.5rem; background: var(--accent); color: #0b0d0c; font-size: 1rem; }
.nb-cta-button:hover { background: #e2ff70; color: #0b0d0c; box-shadow: 0 16px 40px -14px #d4ff3a88; }
.nb-cta-button-quiet { border: 1px solid var(--line-strong); background: transparent; color: var(--ink); }
.nb-cta-button-quiet:hover { border-color: var(--accent); background: transparent; color: var(--accent); box-shadow: none; }
.nb-cta-ticker { display: flex; overflow: hidden; padding-block: 1.1rem; border-top: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.nb-cta-ticker p { flex: none; padding-right: 1.25rem; color: var(--muted); font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.nb-cta-ticker b { margin: 0 1rem; color: var(--accent); font-weight: 400; }

@media (prefers-reduced-motion: no-preference) {
    .nb-cta-ticker p { animation: nb-marquee 46s linear infinite; }
}

@media (max-width: 56rem) {
    .nb-observe, .nb-cta-inner { grid-template-columns: 1fr; }
    .nb-observe-panel { max-width: 34rem; }
}
@media (max-width: 44rem) {
    .nb-scrap { font-size: .8125rem; }
}

/* About: the team as lab ID badges. */
.thesis { grid-template-columns: 1fr; }
.thesis-heading { max-width: 18ch; }
.nb-team > h2 { margin-bottom: clamp(2rem, 4vw, 3rem); }
.nb-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.nb-badges > li { display: flex; min-width: 0; }
.nb-badge {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: linear-gradient(160deg, #ffffff, var(--paper) 55%, #f3f1ea);
    box-shadow: 0 1px 0 #ffffff inset, 0 24px 50px -36px #0f121080;
    transform-origin: 50% -2rem;
    transition: box-shadow 500ms var(--ease);
}
.nb-badge:hover { box-shadow: 0 1px 0 #ffffff inset, 0 34px 60px -34px #0f121099; }
.nb-badge-slot { position: absolute; top: .55rem; left: 50%; z-index: 2; width: 2.75rem; height: .45rem; translate: -50% 0; border-radius: 999px; background: var(--canvas); box-shadow: inset 0 1px 2px #0f121033; }
.nb-badge-top { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.125rem .625rem; background: var(--ink); color: #eef0ea; font: 500 .625rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.nb-badge-ai .nb-badge-top { background: var(--mark); color: var(--ink); }
.nb-badge-main { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 1rem; align-items: center; padding: 1.25rem 1.125rem .75rem; }
.nb-badge-photo {
    display: grid;
    place-items: center;
    width: 4.5rem;
    aspect-ratio: 1;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background:
        linear-gradient(var(--line-strong), var(--line-strong)) 50% 0 / 1px 8px no-repeat,
        linear-gradient(var(--line-strong), var(--line-strong)) 50% 100% / 1px 8px no-repeat,
        linear-gradient(var(--line-strong), var(--line-strong)) 0 50% / 8px 1px no-repeat,
        linear-gradient(var(--line-strong), var(--line-strong)) 100% 50% / 8px 1px no-repeat,
        var(--canvas);
    color: var(--ink);
    font: 600 1.375rem/1 var(--mono);
    letter-spacing: .02em;
}
.nb-badge-photo img { width: 64%; height: 64%; object-fit: contain; border-radius: 10px; }
.nb-badge h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.05; }
.nb-badge-role { margin-top: .375rem; color: var(--accent); font: 500 .6875rem/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.nb-badge-chip {
    align-self: start;
    width: 1.75rem;
    height: 1.375rem;
    border: 1px solid #0f121040;
    border-radius: 4px;
    background:
        linear-gradient(90deg, transparent 32%, #0f121033 32% 36%, transparent 36% 64%, #0f121033 64% 68%, transparent 68%),
        linear-gradient(transparent 46%, #0f121033 46% 54%, transparent 54%),
        var(--mark);
}
.nb-badge-meta { display: grid; grid-template-columns: 1fr 1fr; margin: 0 1.125rem; border-block: 1px dashed var(--line-strong); }
.nb-badge-meta div { padding: .625rem 0; }
.nb-badge-meta div + div { padding-left: .875rem; border-left: 1px dashed var(--line-strong); }
.nb-badge-meta dt { color: var(--muted); font: 500 .5625rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.nb-badge-meta dd { margin: .375rem 0 0; font: 500 .8125rem/1.2 var(--mono); }
.nb-badge-bio { flex: 1; padding: 1rem 1.125rem; color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.nb-badge-foot { display: grid; gap: .375rem; padding: .25rem 1.125rem 1.125rem; }
.nb-barcode { display: block; width: 100%; height: 2.25rem; fill: var(--ink); }
.nb-badge-foot span { color: var(--muted); font: 500 .625rem/1 var(--mono); letter-spacing: .32em; text-align: center; }

@media (prefers-reduced-motion: no-preference) {
    .nb-badge:hover { animation: nb-swing 1.6s var(--ease); }
}
@keyframes nb-swing { 20% { rotate: 2.2deg; } 45% { rotate: -1.4deg; } 70% { rotate: .6deg; } 100% { rotate: 0deg; } }

.how-beliefs-more { margin-top: 2rem; }

@media (max-width: 30rem) {
    .nb-footer-top nav { gap: .75rem 1.25rem; }
}
