/* =========================================================
   TinyCubeWay — redesign (Oct 2026)
   Layout concept: a left-aligned editorial column laid over a living
   event stream; navy and paper bands alternate so each section reads
   as one idea. Amber means "fresh / live" and nothing else.
   ========================================================= */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
/* Variable Source Serif 4 with optical sizes: display cuts at headline sizes */
@font-face { font-family: "Source Serif Display"; font-weight: 200 900; font-style: normal; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2-variations"), url("/assets/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2"); }

:root {
    /* brand (locked) */
    --navy: #001E3C;
    --blue: #0060C0;
    --signal: #FCA200;

    /* derived */
    --abyss: #00152B;
    --navy-raise: #062A4F;
    --blue-light: #6FA8E6;
    --blue-soft: #E6EFF9;
    --signal-ink: #8A5800;
    --paper: #F3F6FA;
    --white: #FFFFFF;
    --ink: #0B1D31;
    --slate: #53667B;
    --line: #D6DFE9;
    --mist: #E3EBF4;
    --haze: #93A8BF;
    --line-navy: rgba(227, 235, 244, 0.14);
    --stale: #8C9DB1;

    --display: "Source Serif Display", "Source Serif 4", Georgia, "Times New Roman", serif;
    --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --wrap: 1200px;
    --gutter: 32px;
    --header-h: 76px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
    margin: 0;
    font: 400 1.0625rem/1.65 var(--sans);
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 14px; z-index: 300; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }

/* Display type: the serif carries the voice; sans does the work */
.display, h1, h2, .principle { font-family: var(--display); font-weight: 380; letter-spacing: -0.022em; font-optical-sizing: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font: 500 1rem/1 var(--sans);
    padding: 17px 24px;
    border-radius: 2px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-signal { background: var(--signal); color: var(--navy); }
.btn-signal:hover { background: #FFB42E; color: var(--navy); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #004E9C; color: var(--white); }
.btn-line { background: transparent; color: var(--mist); border-color: rgba(227, 235, 244, .32); }
.btn-line:hover { border-color: var(--mist); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- Header: one row, mega panels below it ---------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 100;
    top: env(safe-area-inset-top, 0px);
    color: var(--mist);
    transition: background-color .3s ease, border-color .3s ease;
    border-bottom: 1px solid transparent;
}
.site-header.is-solid, .site-header.menu-open { background: rgba(0, 21, 43, .92); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom-color: var(--line-navy); }
.site-header .header-bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font: 600 1.08rem/1 var(--sans); letter-spacing: -0.01em; }
.brand:hover { color: var(--white); }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 28px; height: 100%; }
.menu { display: flex; align-items: stretch; height: 100%; }
.menu-item { display: flex; align-items: stretch; }
.menu-btn {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 0; cursor: pointer; padding: 0 18px;
    font: 400 0.96rem/1 var(--sans); color: var(--mist);
}
.menu-btn::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { color: var(--white); }
.menu-btn[aria-expanded="true"]::after { transform: scaleX(1); }
.chev { transition: transform .2s ease; opacity: .7; }
.menu-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-cta { padding: 12px 18px; font-size: 0.92rem; }
.nav-cta:hover { color: var(--navy); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-navy); color: var(--white); font: 500 0.95rem var(--sans); padding: 9px 14px; border-radius: 2px; cursor: pointer; }

.mega {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); color: var(--ink);
    box-shadow: 0 30px 60px rgba(0, 21, 43, .28);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s ease, transform .22s var(--ease), visibility 0s linear .22s;
}
.menu-item.open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .22s var(--ease); }
.mega-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; padding-block: 48px 56px; }
.mega-intro { border-right: 1px solid var(--line); padding-right: 48px; }
.mega-title { font: 400 2.1rem/1.1 var(--display); letter-spacing: -0.02em; margin-bottom: 16px; color: var(--ink); }
.mega-intro p:not(.mega-title) { color: var(--slate); font-size: 0.98rem; }
.mega-more { display: inline-block; margin-top: 8px; font-weight: 500; }
.mega-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; align-content: start; }
.mega-links a { display: block; padding: 16px 0 18px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.mega-links b { display: block; font: 400 1.22rem/1.25 var(--display); letter-spacing: -0.01em; margin-bottom: 4px; transition: color .15s ease; }
.mega-links span { display: block; font-size: 0.9rem; color: var(--slate); line-height: 1.5; }
.mega-links a:hover b { color: var(--blue); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; isolation: isolate;
    background: radial-gradient(120% 90% at 82% 42%, #0A3460 0%, var(--navy) 46%, var(--abyss) 100%);
    color: var(--mist);
    padding: calc(var(--header-h) + 120px) 0 0;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-copy { max-width: 760px; }
.hero h1 {
    color: var(--white);
    font-size: clamp(2.75rem, 6.4vw, 5.6rem);
    line-height: 1.0;
    letter-spacing: -0.03em;
    font-weight: 360;
    margin-bottom: 36px;
}
.hero-eyebrow { margin: 0 0 20px; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--haze); }
.hero-lede { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--mist); max-width: 600px; margin-bottom: 44px; }
.hero-lede strong { color: var(--white); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.text-link { color: var(--mist); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(227, 235, 244, .35); }
.text-link:hover { color: var(--white); text-decoration-color: var(--white); }
.hero-caption { margin: 88px 0 0; font-size: 0.82rem; color: var(--haze); display: flex; align-items: center; gap: 10px; }
.hero-caption .live-dot { color: var(--signal); box-shadow: 0 0 0 4px rgba(252, 162, 0, .18); }

.hero-index { margin-top: 28px; border-top: 1px solid var(--line-navy); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-index a { display: block; padding: 26px 24px 30px 0; text-decoration: none; color: var(--mist); border-right: 1px solid var(--line-navy); transition: color .2s ease; }
.hero-index li + li a { padding-left: 24px; }
.hero-index li:last-child a { border-right: 0; }
.hero-index b { display: block; font: 400 1.22rem/1.25 var(--display); color: var(--white); margin-bottom: 6px; letter-spacing: -0.01em; }
.hero-index span { font-size: 0.9rem; color: var(--haze); line-height: 1.5; display: block; }
.hero-index a:hover b { color: var(--signal); }

/* ---------- Section scaffolding ---------- */
.band { padding: 128px 0; }
.band-paper { background: var(--paper); }
.band-white { background: var(--white); }
.band-navy { background: var(--navy); color: var(--mist); }
.band-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; margin-bottom: 72px; }
.band-head p { padding-top: 0.7rem; }
.band-head h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.04; }
.band-head p { color: var(--slate); font-size: 1.08rem; margin: 0; max-width: 470px; }
.band-navy .band-head h2 { color: var(--white); }
.band-navy .band-head p { color: var(--haze); }

/* ---------- Stock over a day: what each copy would have told the agent ---------- */
.drift { margin: 0; background: var(--white); border: 1px solid var(--line); }
.drift-legend { display: flex; flex-wrap: wrap; gap: 10px 32px; padding: 28px 40px 0; font-size: 0.9rem; color: var(--slate); }
.lg { display: inline-flex; align-items: center; gap: 10px; }
.lg::before { content: ""; width: 26px; height: 0; border-top: 8px solid rgba(11, 29, 49, .13); }
.lg-stream::before { border-top: 2px solid var(--signal); }
.lg-batch::before { border-top: 2px dashed var(--stale); }
.drift-plot { padding: 16px 28px 8px; }
.drift-hint { display: none; }
.drift-svg { width: 100%; height: auto; overflow: visible; cursor: ew-resize; touch-action: pan-y; }
.drift-svg:focus-visible { outline: 2px solid var(--signal); outline-offset: 6px; }
.drift-svg .grid { stroke: var(--line); stroke-width: 1; }
.drift-svg .tick { font: 400 12px var(--mono); fill: var(--slate); }
.drift-svg .axis { font: 400 12.5px var(--sans); fill: var(--slate); }
.drift-svg .note { font: 400 12.5px var(--sans); fill: var(--slate); }
.drift-svg .drift { fill: url(#hatch); }
.drift-svg .hatch-line { stroke: rgba(140, 157, 177, .35); stroke-width: 2; }
.drift-svg .drift-label { font: italic 400 17px var(--display); fill: var(--slate); }
.drift-svg .export { stroke: var(--stale); stroke-width: 1; stroke-dasharray: 2 4; }
.drift-svg .s-truth { fill: none; stroke: var(--ink); stroke-width: 10; stroke-linejoin: round; opacity: .13; }
.drift-svg .s-stream { fill: none; stroke: var(--signal); stroke-width: 2.25; stroke-linejoin: round; }
.drift-svg .s-batch { fill: none; stroke: var(--stale); stroke-width: 2; stroke-dasharray: 7 6; }
.drift-svg .scrub-line { stroke: var(--ink); stroke-width: 1; }
.drift-svg .scrub-truth { fill: var(--signal); stroke: var(--white); stroke-width: 2.5; }
.drift-svg .scrub-batch { fill: var(--white); stroke: var(--stale); stroke-width: 2; }
.drift-svg .scrub-tag { fill: var(--ink); }
.drift-svg .scrub-time { font: 400 12px var(--mono); fill: var(--white); }
.drift-svg .hit { fill: transparent; }
.drift-svg.drawn .s-stream { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 2.4s var(--ease) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.drift-read { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.dr { display: grid; gap: 4px; padding: 26px 28px 28px; border-left: 1px solid var(--line); min-width: 0; }
.dr:first-child { border-left: 0; padding-left: 40px; }
.dr-k { font-size: 0.86rem; color: var(--slate); }
.dr-v { font: 400 2.5rem/1.1 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.dr-s { font-size: 0.84rem; color: var(--slate); }
.dr-stream .dr-v { color: var(--signal-ink); }
.dr-batch .dr-v { color: var(--stale); }
.drift figcaption { padding: 16px 40px; font-size: 0.84rem; color: var(--slate); background: var(--paper); border-top: 1px solid var(--line); }

/* ---------- Reference architecture with four chapters ---------- */
.arch { margin: 0 0 56px; }
.arch-scroll { overflow-x: auto; }
.arch-svg { width: 100%; min-width: 860px; height: auto; }
.arch-svg text { font-family: var(--sans); }
.arch-svg .node rect { fill: var(--white); stroke: var(--ink); stroke-width: 1.1; }
.arch-svg .node.key rect { stroke-width: 1.4; }
.arch-svg .n-t { font-size: 14px; font-weight: 600; fill: var(--ink); }
.arch-svg .n-s { font-size: 12px; fill: var(--slate); }
.arch-svg .col-t { font-size: 13px; fill: var(--slate); }
.arch-svg .zone-r { fill: var(--paper); stroke: var(--line); stroke-width: 1; transition: stroke .3s ease, fill .3s ease; }
.arch-svg .zone-t { font-family: var(--display); font-size: 17px; fill: var(--ink); }
.arch-svg .z-s { font-size: 12.5px; fill: var(--slate); }
.arch-svg .edge { fill: none; stroke: var(--ink); stroke-width: 1.1; opacity: .7; }
.arch-svg .edge.dash { stroke-dasharray: 4 4; opacity: .5; }
.arch-svg .ah { fill: var(--ink); }
.arch-svg .seg { fill: none; stroke: var(--ink); stroke-width: 1; }
.arch-svg .seg-new { fill: var(--signal); }
.arch-svg .live { fill: var(--signal); }
.arch-svg .layer { fill: var(--white); stroke: var(--ink); stroke-width: 1; }
.arch-svg .hub { fill: var(--white); stroke: var(--signal); stroke-width: 1.5; }
.arch-svg .hub-t { font-size: 11.5px; fill: var(--ink); }
.arch-svg .cross rect { fill: none; stroke: var(--stale); stroke-width: 1; stroke-dasharray: 3 4; }
.arch-svg .cross-t { font-size: 13px; font-weight: 600; fill: var(--ink); }
.arch-svg .cross-s { font-size: 12.5px; fill: var(--slate); }
.arch-svg .zone { transition: opacity .35s ease; }
.arch[data-active] .zone { opacity: .32; }
.arch[data-active="context"] .zone[data-zone="context"],
.arch[data-active="semantic"] .zone[data-zone="semantic"],
.arch[data-active="stream"] .zone[data-zone="stream"],
.arch[data-active="lakehouse"] .zone[data-zone="lakehouse"] { opacity: 1; }
.arch[data-active="context"] .zone[data-zone="context"] .zone-r,
.arch[data-active="semantic"] .zone[data-zone="semantic"] .zone-r,
.arch[data-active="stream"] .zone[data-zone="stream"] .zone-r,
.arch[data-active="lakehouse"] .zone[data-zone="lakehouse"] .zone-r { stroke: var(--signal); stroke-width: 1.5; fill: #FFF8EA; }

.chapters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-bottom: 56px; }
.chapter {
    position: relative; display: grid; align-content: start; gap: 10px; text-align: left;
    background: none; border: 0; border-right: 1px solid var(--line); padding: 28px 28px 30px 0; cursor: pointer;
    font-family: var(--sans); color: var(--slate);
}
.chapter + .chapter { padding-left: 28px; }
.chapter:last-child { border-right: 0; }
.chapter::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.chapter[aria-selected="true"]::before { transform: scaleX(1); }
.ch-n { font: 400 0.84rem/1 var(--mono); color: var(--slate); }
.ch-q { font: 400 1.25rem/1.3 var(--display); letter-spacing: -0.01em; color: var(--slate); transition: color .2s ease; }
.ch-name { font-size: 0.88rem; font-weight: 500; color: var(--blue); }
.chapter:hover .ch-q, .chapter[aria-selected="true"] .ch-q { color: var(--ink); }
.chapter[aria-selected="true"] .ch-n { color: var(--signal-ink); }

.practice { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; min-width: 0; }
.practice-lead h3 { font: 400 clamp(1.9rem, 3vw, 2.6rem)/1.08 var(--display); letter-spacing: -0.02em; margin-bottom: 18px; }
.practice-promise { font: 400 1.25rem/1.45 var(--display); color: var(--slate); margin-bottom: 28px; max-width: 460px; }
.tools { margin: 0; font-size: 0.86rem; color: var(--slate); display: grid; gap: 6px; }
.tools span { font-family: var(--mono); font-size: 0.86rem; color: var(--ink); line-height: 1.6; }
.good { font-size: 0.88rem; color: var(--slate); margin-bottom: 4px; }
.practice-body ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; counter-reset: g; }
.practice-body li { padding: 18px 0 18px 26px; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.5; position: relative; }
.practice-body li::before { content: ""; position: absolute; left: 2px; top: 27px; width: 10px; height: 1.5px; background: var(--signal); }
@media (min-width: 981px) { .practice:not(.is-active) { display: none; } }

/* ---------- Engagement: a real sequence ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 40px; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 20px; height: 1px; background: var(--line-navy); }
.steps li { position: relative; counter-increment: step; padding-top: 64px; }
.steps li::before {
    content: counter(step); position: absolute; top: 0; left: 0;
    width: 41px; height: 41px; border-radius: 50%; display: grid; place-items: center;
    font: 400 0.9rem/1 var(--mono); color: var(--mist); background: var(--navy); border: 1px solid rgba(227, 235, 244, .3);
}
.steps li:first-child::before { background: var(--signal); color: var(--navy); border-color: var(--signal); }
.steps h3 { font: 400 1.6rem/1.2 var(--display); color: var(--white); margin-bottom: 8px; letter-spacing: -0.012em; }
.steps .term { display: block; font: 400 0.86rem/1.5 var(--mono); color: var(--blue-light); margin-bottom: 18px; }
.steps li:first-child .term { color: var(--signal); }
.steps p { color: var(--haze); font-size: 0.98rem; margin: 0; }

/* ---------- Engineering notes ---------- */
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.note a { display: flex; flex-direction: column; height: 100%; padding: 30px 0 36px; border-top: 1px solid var(--ink); color: var(--ink); text-decoration: none; }
.note .topic { font-size: 0.86rem; color: var(--blue); font-weight: 500; margin-bottom: 14px; }
.note h3 { font: 400 1.45rem/1.22 var(--display); letter-spacing: -0.012em; margin-bottom: 14px; transition: color .2s ease; }
.note p { color: var(--slate); font-size: 0.98rem; margin-bottom: 20px; }
.note .len { margin-top: auto; font: 400 0.82rem/1 var(--mono); color: var(--slate); }
.note a:hover h3 { color: var(--blue); }
.note.lead { grid-column: span 2; grid-row: span 2; margin-bottom: 40px; }
.note.lead a { background: var(--navy); color: var(--white); padding: 48px 48px 44px; border-top: 0; justify-content: flex-end; min-height: 420px; position: relative; overflow: hidden; }
.note.lead .len { margin-top: 8px; }
.note.lead a::before {
    content: ""; position: absolute; inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(111, 168, 230, .10) 0 1px, transparent 1px 64px),
        radial-gradient(60% 70% at 85% 20%, rgba(0, 96, 192, .55), transparent 70%);
    pointer-events: none;
}
.note.lead a > * { position: relative; }
.note.lead .topic { color: var(--signal); }
.note.lead h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.1; max-width: 560px; }
.note.lead p { color: var(--haze); font-size: 1.05rem; max-width: 520px; }
.note.lead .len { color: var(--haze); }
.note.lead a:hover h3 { color: var(--signal); }
.notes-more { margin: 48px 0 0; }
.notes-more a { font-weight: 500; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 80px; align-items: start; }
.principle { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.1; margin-bottom: 36px; }
.facts { color: var(--slate); max-width: 560px; }
.facts.small { font-size: 0.92rem; margin-top: 28px; }
.people { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.person { padding: 30px 0 32px; border-bottom: 1px solid var(--line); }
.person h3 { font: 400 1.75rem/1.2 var(--display); letter-spacing: -0.012em; }
.person .role { margin: 6px 0 14px; font-size: 0.92rem; color: var(--blue); font-weight: 500; }
.person p:last-child { margin: 0; color: var(--slate); }

/* ---------- Contact ---------- */
.contact { background: var(--abyss); color: var(--mist); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 80% at 10% 0%, rgba(0, 96, 192, .28), transparent 60%); pointer-events: none; }
.contact .wrap { position: relative; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 88px; align-items: start; }
.contact h2 { color: var(--white); font-size: clamp(2.3rem, 4.6vw, 3.8rem); line-height: 1.04; margin-bottom: 24px; }
.contact-lede { font-size: 1.12rem; color: var(--mist); max-width: 520px; margin-bottom: 40px; }
.review-list { display: grid; gap: 0; margin-bottom: 36px; border-top: 1px solid var(--line-navy); max-width: 520px; }
.review-list li { padding: 14px 0 14px 26px; border-bottom: 1px solid var(--line-navy); position: relative; color: var(--mist); }
.review-list li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.details { display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; margin-top: 52px; font-size: 0.95rem; }
.details dt { color: var(--haze); }
.details dd { margin: 0; color: var(--white); }
.details a { color: var(--white); text-decoration-color: rgba(227, 235, 244, .35); }
.details a:hover { text-decoration-color: var(--white); }

.form { background: var(--navy-raise); border: 1px solid var(--line-navy); padding: 44px; }
.form h3 { font: 400 1.7rem/1.2 var(--display); color: var(--white); margin-bottom: 6px; }
.form .hint { color: var(--haze); font-size: 0.92rem; margin-bottom: 30px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; margin-bottom: 20px; min-width: 0; }
.field label { font-size: 0.88rem; color: var(--mist); }
.field input, .field select, .field textarea {
    font: 400 1rem/1.4 var(--sans); color: var(--white);
    background: rgba(0, 21, 43, .55); border: 1px solid rgba(227, 235, 244, .2); border-radius: 2px;
    padding: 13px 14px; width: 100%;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--haze) 50%), linear-gradient(135deg, var(--haze) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { color: var(--ink); background: var(--white); }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(147, 168, 191, .75); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(252, 162, 0, .18); }
.form .btn { margin-top: 8px; }
.form-status { margin: 14px 0 0; font-size: 0.92rem; min-height: 1.4em; }
.form-status.ok { color: #7FD3A2; }
.form-status.err { color: #FFB4A8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--abyss); color: var(--haze); border-top: 1px solid var(--line-navy); padding: 40px 0 48px; font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.site-footer .brand { font-size: 1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.site-footer a { color: var(--haze); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer p { margin: 0; }

/* ---------- Booking modal (markup and ids used by js/booking.js) ---------- */
.bk-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0, 18, 36, 0.7); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.bk-overlay[hidden] { display: none; }
.bk-dialog { position: relative; width: min(660px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--white); color: var(--ink); border-radius: 4px; padding: 40px; box-shadow: 0 30px 80px rgba(0, 18, 36, 0.45); }
.bk-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 2px; border: 1px solid var(--line); background: var(--white); cursor: pointer; display: grid; place-items: center; color: var(--slate); }
.bk-close:hover { color: var(--ink); border-color: var(--ink); }
.bk-head { margin-bottom: 24px; padding-right: 44px; }
.bk-head h3 { font: 400 1.8rem/1.15 var(--display); letter-spacing: -0.015em; margin: 6px 0 8px; }
.bk-kicker { font-size: 0.88rem; color: var(--blue); font-weight: 500; }
.bk-sub { color: var(--slate); margin: 0; font-size: 0.95rem; }
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 22px; }
.bk-day { flex: none; width: 76px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 2px; background: var(--white); cursor: pointer; display: grid; gap: 2px; text-align: center; font-family: var(--sans); color: var(--ink); }
.bk-day:hover:not(:disabled) { border-color: var(--blue); }
.bk-day.selected { border-color: var(--navy); background: var(--navy); color: var(--white); }
.bk-day.selected .bk-day-dow, .bk-day.selected .bk-day-mon, .bk-day.selected .bk-day-open { color: var(--haze); }
.bk-day:disabled { opacity: .45; cursor: default; }
.bk-day-dow, .bk-day-mon { font-size: 0.78rem; color: var(--slate); }
.bk-day-dom { font: 400 1.4rem/1.2 var(--display); }
.bk-day-open { font-size: 0.72rem; color: var(--slate); }
.bk-slots-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 12px; }
.bk-slots-head h4 { font-size: 1rem; }
.bk-tz { font-size: 0.82rem; color: var(--slate); }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.bk-slot { border: 1px solid var(--line); border-radius: 2px; background: var(--white); padding: 11px 8px; cursor: pointer; display: grid; gap: 2px; font-family: var(--sans); color: var(--ink); text-align: center; }
.bk-slot:hover { border-color: var(--blue); background: var(--blue-soft); }
.bk-slot-ist { font-weight: 600; font-variant-numeric: tabular-nums; }
.bk-slot-next, .bk-slot-local { font-size: 0.74rem; color: var(--slate); }
.bk-empty { color: var(--slate); }
.bk-back { background: none; border: 0; padding: 0; color: var(--blue); font: 500 0.92rem var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.bk-summary { background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 14px 16px; margin-bottom: 20px; }
.bk-summary-when { font-weight: 600; }
.bk-summary-local, .bk-summary-dur { display: block; font-size: 0.88rem; color: var(--slate); margin-top: 4px; }
.bk-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bk-form .form-group { display: grid; gap: 6px; margin-bottom: 14px; }
.bk-form label { font-size: 0.9rem; font-weight: 500; }
.bk-form input, .bk-form select, .bk-form textarea { font: 400 1rem/1.4 var(--sans); color: var(--ink); border: 1px solid var(--line); border-radius: 2px; padding: 12px; width: 100%; background: var(--white); }
.bk-form input:focus, .bk-form select:focus, .bk-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.bk-error { color: #B42318; font-size: 0.92rem; }
.bk-tick { width: 46px; height: 46px; border-radius: 50%; background: #E3F4EA; color: #116B3A; display: grid; place-items: center; margin-bottom: 14px; }
.bk-done h3 { font: 400 1.8rem/1.15 var(--display); margin-bottom: 14px; }
.bk-done-note { color: var(--slate); }
.bk-cal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.bk-done-close { background: none; border: 0; color: var(--slate); font: 500 0.95rem var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .menu-btn { padding: 0 12px; }
    .menu-btn::after { left: 12px; right: 12px; }
    .nav { gap: 16px; }
}
@media (max-width: 980px) {
    :root { --header-h: 64px; }
    .band { padding: 96px 0; }
    .band-head, .team-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
    .band-head { margin-bottom: 52px; }
    .hero-index { grid-template-columns: 1fr 1fr; }
    .hero-index li:nth-child(2) a { border-right: 0; }
    .hero-index li:nth-child(3) a { padding-left: 0; }
    .hero-index li:nth-child(n+3) a { border-top: 1px solid var(--line-navy); }

    /* menu becomes a drawer with expanding sections */
    .nav-toggle { display: inline-block; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); height: auto; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
           background: var(--abyss); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line-navy); }
    .nav.open { display: flex; }
    .site-header:has(.nav.open) { background: var(--abyss); }
    .menu { flex-direction: column; height: auto; }
    .menu-item { flex-direction: column; border-bottom: 1px solid var(--line-navy); }
    .menu-btn { justify-content: space-between; padding: 18px 0; font-size: 1.05rem; width: 100%; }
    .menu-btn::after { display: none; }
    .mega { position: static; background: none; color: var(--mist); box-shadow: none; transform: none; display: none; opacity: 1; visibility: visible; transition: none; }
    .menu-item.open .mega { display: block; }
    .mega .wrap { padding-inline: 0; }
    .mega-grid { grid-template-columns: 1fr; gap: 0; padding-block: 0 16px; }
    .mega-intro { display: none; }
    .mega-links { grid-template-columns: 1fr; gap: 0; }
    .mega-links a { color: var(--white); border-bottom-color: var(--line-navy); padding: 12px 0 14px 14px; }
    .mega-links li:last-child a { border-bottom: 0; }
    .mega-links b { font-size: 1.05rem; }
    .mega-links span { color: var(--haze); }
    .nav-cta { margin-top: 20px; padding: 15px 18px; }

    .drift-read { grid-template-columns: 1fr 1fr; }
    .dr:nth-child(3) { border-left: 0; padding-left: 40px; }
    .dr:nth-child(n+3) { border-top: 1px solid var(--line); }
    .chapters { display: none; }
    .arch[data-active] .zone { opacity: 1; }
    .arch[data-active] .zone .zone-r { stroke: var(--line); stroke-width: 1; fill: var(--paper); }
    .practice { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; border-top: 1px solid var(--ink); }
    .practice:first-child { border-top: 0; padding-top: 0; }
    .steps { grid-template-columns: 1fr 1fr; gap: 48px 40px; }
    .steps::before { display: none; }
    .notes { grid-template-columns: 1fr 1fr; }
    .note.lead { grid-column: 1 / -1; grid-row: auto; }
    .contact-grid { gap: 56px; }
}
@media (max-width: 760px) {
    :root { --gutter: 20px; }
    .hero { padding-top: calc(var(--header-h) + 64px); }
    .hero h1 { margin-bottom: 26px; }
    .hero-lede { margin-bottom: 32px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-caption { margin-top: 56px; }
    .hero-index { grid-template-columns: 1fr; }
    .hero-index li a, .hero-index li + li a { padding: 20px 0; border-right: 0; }
    .hero-index li + li a { border-top: 1px solid var(--line-navy); }
    .band { padding: 72px 0; }
    .drift-legend { padding: 22px 20px 0; flex-direction: column; gap: 8px; }
    .drift-plot { padding: 12px 4px 4px; overflow-x: auto; }
    .drift-svg { min-width: 640px; }
    .drift-read { grid-template-columns: 1fr 1fr; }
    .dr, .dr:first-child, .dr:nth-child(3) { padding: 18px 20px; }
    .dr-v { font-size: 2rem; }
    .drift figcaption { padding: 14px 20px; }
    .arch { margin-bottom: 40px; }
    .practice-body ul { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; gap: 40px; }
    .notes { grid-template-columns: 1fr; }
    .note.lead a { padding: 32px 24px; min-height: 340px; }
    .field-row, .bk-form .form-row { grid-template-columns: 1fr; gap: 0; }
    .form { padding: 28px 20px; }
    .bk-dialog { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .drift-svg.drawn .s-stream { animation: none; stroke-dashoffset: 0; }
    .mega, .menu-item.open .mega { transition: none; }
}

/* ---------- Inner pages: insights, articles, privacy ---------- */
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
:root {
    /* names used by insights.css */
    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --on-navy: var(--mist);
    --on-navy-muted: var(--haze);
    --amber: var(--signal);
    --amber-ink: var(--signal-ink);
    --blue-ink: #004E9C;
}
.btn-amber { background: var(--signal); color: var(--navy); }
.btn-amber:hover { background: #FFB42E; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--mist); border-color: rgba(227, 235, 244, .32); }
.btn-ghost:hover { border-color: var(--mist); color: var(--white); }

.page-head {
    background: radial-gradient(90% 120% at 85% 0%, #0A3460 0%, var(--navy) 50%, var(--abyss) 100%);
    color: var(--mist);
    padding: calc(var(--header-h) + 96px) 0 80px;
}
.page-head h1 { font-family: var(--display); font-weight: 360; color: var(--white); font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 24px; max-width: 900px; }
.page-head p { color: var(--mist); max-width: 640px; margin: 0; font-size: 1.15rem; line-height: 1.6; }
.prose { max-width: 720px; padding: 72px 0 112px; }
.prose h2 { font: 400 1.7rem/1.2 var(--display); letter-spacing: -0.015em; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.prose ul { list-style: disc; padding-left: 20px; margin-bottom: 1em; }
.insights-index { padding: 88px 0 120px; }
.article-body ul:not([class]), .article-cta ul { list-style: disc; }
.article-body ol:not([class]) { list-style: decimal; }
