@font-face { font-family: "Space Grotesk"; src: url("./fonts/space-grotesk.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("./fonts/dm-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("./fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("./fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "STIX Two Math"; src: url("./fonts/stix-two-math.woff2") format("woff2"); font-display: swap; }

:root {
  --ink-950: #0e0c0a; --ink-900: #15120f; --ink-850: #1b1714; --ink-700: #28231f;
  --cream: #f1ede5; --cream-2: #cbc2b4; --cream-3: #a69b8c; --gold: #e5b45b; --teal-lit: #7fb8bb;
  --paper: #f1ede5; --paper-2: #ebe5da; --paper-hi: #f7f4ee; --line: #d2cbc0;
  --body: #5c544a; --muted: #6b6258; --rust: #9f4d2e; --teal-deep: #1d6a72;
  --hair-dark: rgba(241, 237, 229, 0.12);
  --f-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-hero: clamp(3.25rem, 1.5rem + 5.4vw, 7rem);
  --fs-chapter: clamp(2.6rem, 1.6rem + 3.4vw, 5rem);
  --fs-h2: clamp(2.25rem, 1.4rem + 2.9vw, 4.25rem);
  --fs-h3: clamp(1.3rem, 1.1rem + 0.6vw, 1.625rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.4vw, 1.3rem);
  --fs-body: 1.0625rem; --fs-small: 0.9375rem; --fs-label: 0.75rem; --fs-micro: 0.6875rem;
  --header-h: 64px; --gutter: clamp(20px, 5vw, 72px); --max: 1320px; --col-gap: clamp(16px, 2.4vw, 32px);
  --section-y: clamp(96px, 11vw, 176px);
  --r-1: 2px; --r-2: 6px; --r-3: 14px; --r-pill: 999px;
  --t-fast: 160ms; --t-base: 260ms; --t-slow: 700ms; --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --glass-dark: rgba(21, 18, 15, 0.62); --glass-paper: rgba(241, 237, 229, 0.74);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); background: var(--ink-950); }
body { margin: 0; font-family: var(--f-body); font-size: var(--fs-body); line-height: 1.72; color: var(--cream); background: var(--ink-950); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-play, .icon-pause, .short-play svg { fill: currentColor; stroke: none; }
[data-theme="dark"] { --focus: var(--gold); --accent: var(--gold); }
[data-theme="light"] { --focus: var(--rust); --accent: var(--rust); }
:focus-visible { outline: 2px solid var(--focus, var(--gold)); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.no-js .js-only { display: none; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: var(--r-pill); background: var(--cream); color: var(--ink-900); font-weight: 600; }
.skip-link:focus { top: 12px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.kicker { display: flex; align-items: center; gap: 12px; font: 500 var(--fs-label)/1.3 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: 0.6; flex: none; }
.kicker-no { color: var(--cream); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); font: 500 0.95rem/1 var(--f-body); letter-spacing: 0.005em; transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast), box-shadow var(--t-fast), color var(--t-fast); }
.button svg { width: 16px; height: 16px; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: scale(0.98); }
[data-theme="dark"] .button-primary { background: var(--cream); color: var(--ink-900); box-shadow: 0 10px 30px -12px rgba(229, 180, 91, 0.45); }
[data-theme="dark"] .button-primary:hover { background: #fff; }
[data-theme="dark"] .button-ghost { box-shadow: inset 0 0 0 1px rgba(241, 237, 229, 0.3); }
[data-theme="dark"] .button-ghost:hover { background: rgba(241, 237, 229, 0.08); }
.button[data-state="copied"] { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold); }

.arrow { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 32%, transparent); transition: transform var(--t-base) var(--ease-out), background-color var(--t-base), color var(--t-base); }
.arrow svg { width: 18px; height: 18px; }
a:hover .arrow { transform: rotate(45deg); background: var(--accent); color: var(--paper); box-shadow: none; }
[data-theme="dark"] a:hover .arrow { color: var(--ink-900); }
.arrow-link { display: inline-flex; align-items: center; gap: 14px; margin-top: 14px; font-weight: 500; font-size: var(--fs-small); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: var(--gutter); color: var(--cream); transition: background-color var(--t-base), color var(--t-base), box-shadow var(--t-base); }
.site-header[data-theme="light"] { color: var(--ink-700); }
.site-header.is-scrolled[data-theme="dark"] { background: var(--glass-dark); box-shadow: inset 0 -1px 0 rgba(241, 237, 229, 0.08); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
.site-header.is-scrolled[data-theme="light"] { background: var(--glass-paper); box-shadow: inset 0 -1px 0 rgba(40, 35, 31, 0.08); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 600 1.15rem/1 var(--f-display); letter-spacing: -0.02em; min-height: 44px; }
.brand-mark { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(241, 237, 229, 0.14); }
.brand-tld { opacity: 0.62; font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); font-size: 0.9rem; transition: background-color var(--t-fast); }
.nav-link:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.sound-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; margin-left: 8px; padding: 0 14px; border-radius: var(--r-pill); font-size: 0.85rem; white-space: nowrap; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 30%, transparent); transition: background-color var(--t-fast); }
.sound-toggle:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.sound-bars { display: flex; align-items: center; gap: 2px; height: 14px; }
.sound-bars i { width: 2px; height: 14px; border-radius: 1px; background: currentColor; transform: scaleY(0.22); }
.sound-toggle:is([data-state="loading"], [data-state="blocked"]) .sound-bars i { opacity: 0.55; }
.sound-toggle[data-state="blocked"] { box-shadow: inset 0 0 0 1px var(--gold); }

.hero { position: relative; isolation: isolate; overflow: clip; min-height: max(640px, 100svh); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) auto; column-gap: var(--col-gap); padding: calc(var(--header-h) + 16px) var(--gutter) 20px; background: radial-gradient(90% 80% at 72% 42%, #2b231c 0%, #17130f 46%, var(--ink-950) 100%); }
.hero::after, .story-stage::after, .contact::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: var(--grain); opacity: 0.07; mix-blend-mode: overlay; }
.film { position: relative; z-index: 0; mix-blend-mode: screen; grid-column: 6 / -1; grid-row: 1; align-self: center; justify-self: center; width: min(100%, 76svh, 780px); aspect-ratio: 1; }
.film::after { content: ""; position: absolute; z-index: 1; left: 28.6%; bottom: 74%; width: 1.5px; height: 90%; filter: blur(0.3px); transform-origin: 50% 100%; transform: rotate(-34deg); background: linear-gradient(to top, rgba(255, 248, 236, 0.85), rgba(255, 248, 236, 0)); }
.film-poster, .film-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.film-canvas { opacity: 0; transition: opacity 900ms var(--ease-out); }
.film-poster { transition: opacity 900ms var(--ease-out); }
.film.is-live .film-canvas { opacity: 1; }
.film.is-live .film-poster { opacity: 0; }
.film-note { position: relative; z-index: 1; grid-column: 6 / -1; grid-row: 1; align-self: end; justify-self: center; margin-bottom: 8px; font: 400 var(--fs-micro)/1.4 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-3); }
.film-note b { color: var(--cream); font-weight: 500; }
.hero-copy { position: relative; z-index: 1; grid-column: 1 / 7; grid-row: 1; align-self: end; max-width: 40rem; padding-bottom: clamp(28px, 7vh, 88px); }
.hero-title { margin-top: 22px; font-size: var(--fs-hero); line-height: 0.94; letter-spacing: -0.035em; }
h2 em, .hero-title em { display: block; font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.hero-title em { font-size: 1.1em; line-height: 1; padding-bottom: 0.06em; color: var(--gold); }
.hero-lede { margin-top: 26px; max-width: 34rem; font-size: var(--fs-lead); line-height: 1.6; color: var(--cream-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-rail { position: relative; z-index: 1; grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; gap: 24px; padding-top: 6px; border-top: 1px solid var(--hair-dark); }
.hero-rail ol { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; }
.hero-chapter { display: flex; align-items: center; gap: 10px; min-height: 44px; font: 400 var(--fs-micro)/1.3 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-3); transition: color var(--t-fast); }
.hero-chapter span { color: var(--gold); }
.hero-chapter:hover { color: var(--cream); }
.film-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border-radius: var(--r-pill); font-size: 0.85rem; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(241, 237, 229, 0.26); transition: background-color var(--t-fast), box-shadow var(--t-fast); }
.film-toggle:hover { background: rgba(241, 237, 229, 0.08); }
.film-toggle svg { width: 14px; height: 14px; color: var(--gold); }
.film-toggle[aria-pressed="true"] .icon-play, .film-toggle:not([aria-pressed="true"]) .icon-pause { display: none; }
.film-length { font: 400 var(--fs-micro)/1 var(--f-mono); letter-spacing: 0.08em; color: var(--cream-3); text-transform: uppercase; }

.story { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); padding-inline: var(--gutter); background: var(--ink-950); }
.story-stage { position: sticky; top: 0; grid-column: 1 / -1; grid-row: 1 / span 5; align-self: start; height: 100svh; margin-inline: calc(-1 * var(--gutter)); overflow: hidden; background-color: var(--ink-950); background-image: radial-gradient(70% 70% at 70% 48%, rgba(255, 236, 206, 0.05), transparent 70%); transition: background-color 1.2s var(--ease-out); }
.story-stage[data-scene="1"] { background-color: #0d1719; }
.story-stage[data-scene="2"] { background-color: #16110d; }
.story-stage[data-scene="3"] { background-color: #101315; }
.story-stage[data-scene="4"] { background-color: #15110c; }
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-readout { position: absolute; z-index: 1; top: calc(var(--header-h) + 22px); right: var(--gutter); display: grid; justify-items: end; gap: 6px; font: 400 var(--fs-label)/1.3 var(--f-mono); color: var(--cream-2); }
.stage-readout span + span { font-size: var(--fs-micro); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-3); }
.stage-caption { position: absolute; z-index: 1; right: var(--gutter); bottom: 104px; width: min(46%, 540px); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 12px; border-top: 1px solid var(--hair-dark); font: 400 var(--fs-micro)/1.4 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-3); }
.stage-caption em { font: italic 400 1.05rem/1.3 var(--f-serif); letter-spacing: 0; text-transform: none; color: var(--cream-2); text-align: right; }
.chapter { position: relative; z-index: 1; grid-column: 1 / 6; display: flex; align-items: center; min-height: 100svh; padding-block: 16svh 18svh; }
.chapter:nth-of-type(1) { grid-row: 1; }
.chapter:nth-of-type(2) { grid-row: 2; }
.chapter:nth-of-type(3) { grid-row: 3; }
.chapter:nth-of-type(4) { grid-row: 4; }
.chapter:nth-of-type(5) { grid-row: 5; padding-bottom: 26svh; }
.chapter-card { min-width: 0; max-width: 35rem; }
.chapter-title { margin-top: 22px; font-size: var(--fs-chapter); line-height: 0.98; letter-spacing: -0.03em; text-transform: uppercase; }
.chapter-title > span, .chapter-title > em { display: block; }
.chapter-title > em { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.08em; line-height: 1.02; letter-spacing: -0.01em; text-transform: none; }
.chapter-title .accent { color: var(--gold); }
.chapter-title .accent-teal { color: var(--teal-lit); }
.chapter-lead { margin-top: 24px; font: italic 400 1.45rem/1.3 var(--f-serif); color: var(--cream); }
.chapter-body { margin-top: 10px; color: var(--cream-2); }
.notes { list-style: none; margin-top: 30px; padding: 0; border-top: 1px solid var(--hair-dark); }
.note { position: relative; padding: 16px 0 16px 24px; border-bottom: 1px solid var(--hair-dark); }
.note::before { content: ""; position: absolute; left: 1px; top: 24px; width: 7px; height: 7px; border-radius: 50%; background: rgba(241, 237, 229, 0.2); transition: background-color var(--t-base), box-shadow var(--t-base); }
.note.is-active::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(229, 180, 91, 0.16); }
.note-text { font-size: 0.98rem; line-height: 1.55; color: var(--cream); }
.eq { display: grid; gap: 4px; min-width: 0; margin-top: 10px; }
.eq-label { font: 400 var(--fs-micro)/1.3 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-3); transition: color var(--t-base); }
.eq-label span { color: var(--cream-2); margin-right: 6px; }
.note.is-active .eq-label, .note.is-active .eq-label span { color: var(--gold); }
math { font-family: "STIX Two Math", math; }
.eq math { justify-self: start; max-width: 100%; overflow-x: auto; overflow-y: hidden; padding-block: 4px; math-style: normal; font-size: 1.3rem; color: #eadfcb; }
.eq-flow { font: 400 1.2rem/1.45 "STIX Two Math", Georgia, serif; color: #eadfcb; }
.eq-note { font-size: 0.84rem; line-height: 1.5; color: var(--cream-3); }
.story-rail { position: sticky; bottom: 0; z-index: 3; grid-column: 1 / -1; grid-row: 1 / span 5; align-self: end; display: flex; align-items: center; gap: 22px; margin-inline: calc(-1 * var(--gutter)); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(14, 12, 10, 0.8); box-shadow: inset 0 1px 0 var(--hair-dark); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.rail-segs { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; }
.rail-link { display: grid; gap: 9px; align-content: center; min-height: 44px; font: 400 var(--fs-micro)/1.2 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-3); transition: color var(--t-fast); }
.rail-link:hover { color: var(--cream); }
.rail-link[aria-current] { color: var(--gold); }
.rail-link b { font-weight: 400; }
.rail-track { position: relative; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(241, 237, 229, 0.16); }
.rail-fill { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.rail-time { font: 400 var(--fs-micro)/1 var(--f-mono); letter-spacing: 0.06em; color: var(--cream-3); font-variant-numeric: tabular-nums; }

.daylight { position: relative; overflow: clip; display: grid; justify-items: center; min-height: 86svh; padding: 18svh var(--gutter) 30svh; background: linear-gradient(in oklab to bottom, var(--ink-950) 0%, #1d1611 26%, #5b4836 55%, #bfae96 80%, var(--paper) 100%); }
.daylight::before { content: ""; position: absolute; left: 6%; right: 6%; top: 64%; height: 1px; opacity: 0.75; background: linear-gradient(90deg, transparent, #7a5cff 12%, #2f86e0 26%, #35b9c4 38%, #7cc34d 50%, #f0d24b 62%, #f39a3c 74%, #e0533a 86%, transparent); }
.daylight::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 32% at 50% 66%, rgba(229, 180, 91, 0.3), transparent 70%); }
.daylight-line { position: relative; z-index: 1; max-width: 18ch; text-align: center; font: 500 clamp(1.8rem, 1rem + 2.8vw, 3.4rem)/1.08 var(--f-display); letter-spacing: -0.025em; color: var(--cream); text-wrap: balance; }
.daylight-line em { display: block; font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--gold); letter-spacing: -0.01em; }

.about, .lab, .consulting { background: var(--paper); color: var(--ink-700); }
.about { padding-block: calc(var(--section-y) * 0.6) var(--section-y); }
.lab .wrap, .consulting .wrap { padding-top: var(--section-y); border-top: 1px solid var(--line); }
.lab { padding-bottom: var(--section-y); }
.consulting { padding-bottom: var(--section-y); }
.about .wrap, .lab .wrap, .consulting .wrap { position: relative; }
.about h2, .lab h2, .consulting h2 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -0.03em; }
.about h2 em, .lab h2 em, .consulting h2 em { color: var(--rust); font-size: 1.08em; }
.lab h2 em { display: inline; }
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap); margin-top: 30px; }
.about-grid h2 { grid-column: 1 / 7; }
.about-grid .prose { grid-column: 8 / -1; }
.prose p { max-width: 36rem; color: var(--body); }
.prose p + p { margin-top: 1.1em; }
.prose strong { color: var(--ink-700); font-weight: 600; }
.disciplines { margin-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--ink-700); }
.discipline { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap); align-items: baseline; padding-block: 26px; border-bottom: 1px solid var(--line); }
.discipline dt { grid-column: 1 / 7; display: flex; align-items: baseline; gap: 18px; font: 500 var(--fs-h3)/1.2 var(--f-display); letter-spacing: -0.015em; }
.numeral { width: 2.2ch; flex: none; font: italic 400 1.2em/1 var(--f-serif); color: var(--rust); }
.discipline dd { grid-column: 8 / -1; color: var(--body); font-size: var(--fs-small); }

.section-head { display: grid; gap: 22px; }
.figures { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 52px; }
.plate { display: grid; align-content: start; gap: 22px; padding: clamp(16px, 2vw, 26px); border-radius: var(--r-2); background: var(--paper-2); box-shadow: inset 0 0 0 1px rgba(40, 35, 31, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 30px 60px -40px rgba(70, 45, 20, 0.45); }
.plate-shorts { grid-column: 1 / 6; }
.plate-bench { grid-column: 6 / -1; }
.plate-lab { grid-column: 1 / -1; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.plate figcaption { display: grid; align-content: start; }
.fig-no { font: 500 var(--fs-micro)/1.3 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust); }
.plate h3 { margin: 10px 0 8px; font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.015em; }
.plate figcaption p:not(.fig-no) { font-size: var(--fs-small); line-height: 1.6; color: var(--body); }
.plate .fig-meta { margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
.shorts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.short-link, .short-frame { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--r-2); background: #d9d0c2; box-shadow: inset 0 0 0 1px rgba(40, 35, 31, 0.1), 0 18px 30px -22px rgba(60, 40, 20, 0.6); }
.short-frame { width: 100%; border: 0; }
.short-link img, .bench-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); }
.short-link:hover img { transform: scale(1.03); }
.short-play { position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(21, 18, 15, 0.74); color: var(--cream); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform var(--t-base) var(--ease-out); }
.short-play svg { width: 16px; height: 16px; margin-left: 2px; }
.short-link:hover .short-play { transform: scale(1.08); }
.short-title { margin: 10px 2px 0; font-size: 0.86rem; line-height: 1.4; color: var(--ink-700); }
.bench-shot { display: block; overflow: hidden; border-radius: var(--r-2); background: var(--ink-900); aspect-ratio: 1168 / 680; }
.bench-shot:hover img { transform: scale(1.02); }
.instrument { display: grid; gap: 18px; }
.readings { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 16px 18px; border-radius: var(--r-2); background: var(--paper-hi); box-shadow: inset 0 0 0 1px rgba(40, 35, 31, 0.08); }
.spectrum { width: 100%; height: clamp(190px, 22vw, 260px); }
.swatches { display: grid; gap: 18px; }
.swatch { display: grid; justify-items: center; gap: 8px; font: 400 var(--fs-micro)/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.swatch-chip { --c: 200 190 175; width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgb(255 255 255 / 0.75) 0 5%, rgb(var(--c)) 36%, color-mix(in oklab, rgb(var(--c)) 58%, black) 100%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35), inset 0 -10px 18px rgb(0 0 0 / 0.16), 0 14px 26px -16px rgba(40, 25, 10, 0.7); }
.controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; }
.control { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 12px; font-size: var(--fs-small); }
.control-name { font-weight: 500; color: var(--ink-700); }
.control output { font: 500 var(--fs-label)/1 var(--f-mono); color: var(--rust); font-variant-numeric: tabular-nums; }
.control input { grid-column: 1 / -1; width: 100%; height: 32px; margin: 0; accent-color: var(--rust); cursor: pointer; }
.readout { min-height: 3em; font-size: 0.86rem; line-height: 1.55; color: var(--muted); }

.consulting-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap); }
.consulting-head { grid-column: 1 / 6; display: grid; align-content: start; gap: 24px; }
.consulting-body { grid-column: 7 / -1; }
.principle { font: italic 400 1.4rem/1.45 var(--f-serif); color: var(--ink-700); }
.method { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 44px 0; padding: 0; }
.method li { padding-top: 14px; border-top: 1px solid var(--ink-700); }
.method-no { font: 500 var(--fs-micro)/1 var(--f-mono); letter-spacing: 0.1em; color: var(--rust); }
.method h3 { margin: 10px 0 6px; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.method p { font-size: 0.86rem; line-height: 1.5; color: var(--body); }
.case { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 8px; border-block: 1px solid var(--line); transition: background-color var(--t-base); }
.case:hover { background: rgba(40, 35, 31, 0.035); }
.case-text > span { display: block; }
.case-label { font: 500 var(--fs-micro)/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust); }
.case-name { margin-top: 12px; font: 600 1.8rem/1.1 var(--f-display); letter-spacing: -0.02em; }
.case-detail { margin-top: 8px; max-width: 26rem; font-size: var(--fs-small); line-height: 1.6; color: var(--body); }
.case-role { margin-top: 10px; font-size: 0.86rem; color: var(--rust); }

.contact { position: relative; isolation: isolate; overflow: clip; padding-block: var(--section-y); background: radial-gradient(80% 90% at 30% 110%, #2d231a 0%, var(--ink-950) 62%); color: var(--cream); }
.contact .wrap { position: relative; z-index: 1; }
.contact h2 { margin-top: 26px; font-size: clamp(3rem, 1.4rem + 6.4vw, 7.75rem); line-height: 0.94; letter-spacing: -0.04em; }
.contact h2 em { display: inline; color: var(--gold); font-size: 1.06em; }
.contact-lede { margin-top: 26px; max-width: 32rem; font-size: var(--fs-lead); line-height: 1.6; color: var(--cream-2); }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 44px; padding: 0; list-style: none; font: 400 var(--fs-label)/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.contact-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--cream-2); transition: color var(--t-fast); }
.contact-links a:hover { color: var(--gold); }

.site-footer { background: var(--ink-950); color: var(--cream-3); padding-block: 40px calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair-dark); font-size: 0.86rem; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto auto; align-items: start; gap: 16px 36px; }
.site-footer .brand { color: var(--cream); font-size: 1.05rem; }
.site-footer .brand-mark { width: 32px; height: 32px; }
.footer-tag { align-self: center; font: 400 var(--fs-micro)/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; }
.site-footer details { max-width: 22rem; }
.site-footer summary { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--cream-2); cursor: pointer; list-style: none; }
.site-footer summary::-webkit-details-marker { display: none; }
.site-footer summary::after { content: "+"; font-family: var(--f-mono); color: var(--gold); }
.site-footer details[open] summary::after { content: "−"; }
.site-footer details p { margin-bottom: 12px; font-size: 0.82rem; line-height: 1.65; }
.site-footer details a { text-decoration: underline; text-underline-offset: 2px; }
.footer-copy { grid-column: 1 / -1; font-size: 0.8rem; }
.status { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: min(90vw, 30rem); padding: 12px 18px; border-radius: var(--r-3); transform: translateX(-50%); background: var(--ink-850); color: var(--cream); font-size: 0.9rem; box-shadow: inset 0 0 0 1px var(--hair-dark), 0 20px 40px -20px rgba(0, 0, 0, 0.6); }
.status:empty { display: none; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .sound-toggle[data-state="on"] .sound-bars i { animation: bars 1.4s var(--ease-out) infinite alternate; }
  .sound-toggle[data-state="blocked"] { animation: cue 1.8s var(--ease-out) infinite; }
  .sound-bars i:nth-child(2) { animation-delay: -0.5s; }
  .sound-bars i:nth-child(3) { animation-delay: -0.9s; }
  .sound-bars i:nth-child(4) { animation-delay: -0.2s; }
  .hero-copy > * { animation: enter 1s var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .hero-copy > :nth-child(3) { animation-delay: 180ms; }
  .hero-copy > :nth-child(4) { animation-delay: 260ms; }
  @supports (animation-timeline: view()) {
    .hero-copy, .film-note { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 90svh; }
    .daylight-line { animation: rise linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    .plate, .method li, .discipline, .case { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}
@keyframes bars { from { transform: scaleY(0.22); } to { transform: scaleY(1); } }
@keyframes cue { from { box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 0 rgba(229, 180, 91, 0.45); } to { box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 10px rgba(229, 180, 91, 0); } }
@keyframes enter { from { opacity: 0.12; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drift { to { opacity: 0; transform: translateY(-6svh); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

@media (max-width: 1039px) {
  .hero-copy { grid-column: 1 / 9; }
  .film, .film-note { grid-column: 5 / -1; }
  .chapter { grid-column: 1 / 7; }
  .stage-caption { width: min(44%, 400px); }
  .plate-shorts, .plate-bench { grid-column: 1 / -1; }
  .plate-shorts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .plate-lab { grid-template-columns: 1fr; }
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consulting-head { grid-column: 1 / -1; }
  .consulting-body { grid-column: 1 / -1; margin-top: 40px; }
  .footer-grid { grid-template-columns: auto 1fr; }
}

@media (max-width: 719px) {
  :root { --header-h: 56px; --fs-body: 1rem; }
  .brand { font-size: 1.05rem; gap: 10px; }
  .brand-mark { width: 32px; height: 32px; }
  .nav-optional { display: none; }
  .sound-toggle { padding: 0 12px; margin-left: 2px; min-height: 44px; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; padding-top: calc(var(--header-h) + 4px); }
  .film { grid-column: 1; grid-row: 1; width: min(88vw, 46svh); }
  .film-note { grid-column: 1; grid-row: 2; align-self: start; margin: -6px 0 0; text-align: center; }
  .hero-copy { grid-column: 1; grid-row: 3; align-self: start; padding: 22px 0 28px; }
  .hero-title { margin-top: 16px; }
  .hero-lede { margin-top: 18px; font-size: 1.05rem; }
  .actions { margin-top: 26px; }
  .hero-rail { grid-row: 4; flex-wrap: wrap; gap: 8px 16px; padding-top: 2px; }
  .hero-rail ol { flex-basis: 100%; gap: 6px; }
  .hero-chapter { font-size: 0; gap: 0; }
  .hero-chapter span { font-size: var(--fs-micro); }
  .film-length { display: none; }
  .story { grid-template-columns: minmax(0, 1fr); }
  .chapter { grid-column: 1; align-items: flex-start; padding: 58svh 0 14svh; }
  .chapter:nth-of-type(5) { padding-bottom: 22svh; }
  .chapter-card { padding: 24px 20px; border-radius: var(--r-3); background: var(--glass-dark); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: inset 0 0 0 1px rgba(241, 237, 229, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 60px -24px rgba(0, 0, 0, 0.6); }
  .chapter-title { margin-top: 16px; }
  .chapter-lead { font-size: 1.3rem; }
  .chapter-card { width: 100%; }
  .eq math { font-size: 1.05rem; }
  .eq-flow { font-size: 1.05rem; }
  .stage-readout { top: calc(var(--header-h) + 12px); }
  .stage-readout span + span { display: none; }
  .stage-caption { top: 50svh; bottom: auto; left: var(--gutter); right: var(--gutter); width: auto; }
  .stage-caption span { display: none; }
  .stage-caption em { text-align: left; font-size: 0.98rem; }
  .story-rail { gap: 12px; padding-top: 10px; }
  .story-rail .film-toggle { padding: 0 12px; }
  .story-rail [data-film-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .rail-segs { gap: 8px; }
  .rail-link b { display: none; }
  .rail-time { display: none; }
  .daylight { min-height: 70svh; padding-top: 14svh; }
  .about-grid, .discipline, .consulting-grid, .figures { grid-template-columns: minmax(0, 1fr); }
  .about-grid h2, .about-grid .prose, .discipline dt, .discipline dd { grid-column: 1; }
  .about-grid .prose { margin-top: 10px; }
  .discipline { gap: 10px; padding-block: 22px; }
  .plate-shorts, .plate-bench, .plate-lab { grid-column: 1; grid-template-columns: minmax(0, 1fr); }
  .readings { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .swatches { grid-template-columns: 1fr 1fr; }
  .swatch-chip { width: 64px; height: 64px; }
  .controls { grid-template-columns: minmax(0, 1fr); }
  .control input { height: 44px; }
  .method { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 16px; margin: 36px 0; }
  .case { padding-inline: 0; }
  .case-name { font-size: 1.55rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .site-footer details { max-width: none; }
}
