/* Linmer Perolino — final site. Team merge: Claude's Lab Report foundation, Webby/Grok's career chart, lens ring and sample tubes, Codex's restraint. Hero by Grok. */
/* Self-hosted Latin subsets (OFL) */
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/anton-normal-a6f395.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-italic-52a6c2.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-normal-2d243d.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-normal-567244.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-normal-567244.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-normal-567244.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Linmer Bench — "a scientist's field notebook". Shared by the static HTML and the WordPress theme. */
:root {
	--ink: #0e0f11;
	--ink-soft: #2a2e33;
	--ink-blue: #1c2731;
	--muted: #5c6269;
	--rule: #cfcbc1;
	--cream: #f2efe8;
	--paper: #e9e5db;
	--sky: #e3eff8;
	--night: #0f1012;
	--night-2: #17191c;
	--lime: #d4f35a;
	--lime-hover: #c4e746;
	--white: #ffffff;
	--display: "Anton", "Oswald", "Impact", "Arial Narrow", sans-serif;
	--serif: "Instrument Serif", "Times New Roman", Georgia, serif;
	--body: "Inter", "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
	--gutter: clamp(16px, 5.2vw, 76px);
	--max: 1480px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; background: var(--cream); color: var(--ink);
	font-family: var(--body); font-size: 16px; line-height: 1.55;
	-webkit-font-smoothing: antialiased; overflow-x: clip;
}
::selection { background: var(--lime); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 200; top: 12px; left: 12px; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 99px; }

/* Focus: dark ring on light paper, lime ring on dark sections */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.site-header :focus-visible, .hero :focus-visible, .book :focus-visible, .site-footer :focus-visible, .page-band :focus-visible { outline-color: var(--lime); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Notebook system ---------- */
/* Graph paper for the light sections */
.paper {
	background-color: var(--cream);
	background-image:
		linear-gradient(rgba(14,15,17,.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(14,15,17,.05) 1px, transparent 1px);
	background-size: 28px 28px;
	background-position: center top;
}
/* Ruler ticks: fine every 8px, long every 40px */
.ruler, .eyebrow::after {
	background:
		linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat,
		repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 8px) left bottom / 100% 5px no-repeat,
		repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 40px) left bottom / 100% 10px no-repeat;
	opacity: .35;
}
/* Margin annotation in an italic hand */
.note { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.2; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.note svg { width: 48px; height: auto; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
/* Ink duotone: shadows -> ink blue, highlights -> paper; full colour on hover/focus */
.duo { position: relative; isolation: isolate; background: var(--cream); overflow: hidden; }
.duo img { filter: grayscale(1) contrast(1.08) brightness(1.04); mix-blend-mode: multiply; transition: filter .7s var(--ease), transform 1s var(--ease); }
.duo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--ink-blue); mix-blend-mode: lighten; pointer-events: none; transition: opacity .7s var(--ease); }
.entry:hover .duo img, .drive:hover .duo img, .entry:focus-within .duo img { filter: none; mix-blend-mode: normal; }
.entry:hover .duo::after, .drive:hover .duo::after, .entry:focus-within .duo::after { opacity: 0; }

/* ---------- Type ---------- */
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .004em; line-height: .96; }
.display em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; font-size: 1.08em; line-height: .8; }
.section-title { font-size: clamp(50px, 6.4vw, 100px); }
.section-sub { margin-top: 14px; font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 34em; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .3s; }
.text-link:hover { color: var(--lime); }

/* Line-mask reveal (section headings) */
.split .line, .hero-title .line { display: block; overflow: hidden; padding: .1em 0 .16em; margin: -.1em 0 -.16em; }
.split .line > span, .hero-title .line > span { display: inline-block; }
.js .split .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .split.is-in .line > span { transform: none; }
.js .split.is-in .line:nth-child(2) > span { transition-delay: .08s; }
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.pill {
	position: relative; overflow: hidden; isolation: isolate;
	display: inline-flex; align-items: center; gap: 10px;
	background: var(--lime); color: var(--ink);
	font-size: 15px; font-weight: 600; line-height: 1;
	padding: 15px 24px; border-radius: 999px;
	transition: transform .35s var(--ease), color .35s var(--ease);
}
.pill::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--ink); transform: translateY(101%); transition: transform .45s var(--ease); }
.pill:hover, .pill:focus-visible { color: var(--lime); }
.pill:hover::before, .pill:focus-visible::before { transform: none; }
.hero .pill::before, .book .pill::before, .site-footer .pill::before, .page-band .pill::before { background: var(--white); }
.hero .pill:hover, .book .pill:hover, .site-footer .pill:hover, .hero .pill:focus-visible, .book .pill:focus-visible, .site-footer .pill:focus-visible { color: var(--ink); }
.pill .arrow { display: inline-block; transition: transform .35s var(--ease); }
.pill:hover .arrow { transform: translate(3px, -3px); }
.pill-lg { padding: 19px 30px; font-size: 16px; }
.ghost-pill { display: inline-flex; align-items: center; gap: 10px; padding: 18px 28px; border-radius: 999px; border: 1px solid rgba(255,255,255,.32); color: var(--white); font-size: 16px; font-weight: 500; line-height: 1; transition: border-color .3s, background .3s, color .3s; }
.ghost-pill:hover, .ghost-pill:focus-visible { background: var(--white); color: var(--ink); border-color: var(--white); }
.round-link {
	flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	width: 132px; height: 132px; border-radius: 50%; border: 1px solid var(--ink);
	font-size: 12px; font-weight: 600; line-height: 1.3; text-align: center; text-transform: uppercase; letter-spacing: .08em;
	transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.round-link .arrow { font-size: 20px; }
.round-link:hover, .round-link:focus-visible { background: var(--ink); color: var(--lime); }

/* ---------- Eyebrow (specimen label + ruler) ---------- */
.eyebrow { display: flex; align-items: flex-end; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 26px; }
.eyebrow .num { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: none; padding: 3px 8px; border: 1px solid currentColor; border-radius: 3px; line-height: 1.3; }
.eyebrow::after { content: ""; flex: 1; height: 10px; margin-bottom: 4px; }
.eyebrow .eyebrow-link { order: 3; font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 500; white-space: nowrap; }
.eyebrow.on-dark { color: #c9cdd2; }
.eyebrow.on-dark .num { color: var(--lime); }
.eyebrow.on-dark .eyebrow-link { color: var(--white); }

.section { position: relative; padding: clamp(64px, 7vw, 112px) 0; }

/* ---------- Progress + cursor ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--lime); transform-origin: 0 50%; transform: scaleX(0); }
.cursor {
	position: fixed; left: 0; top: 0; z-index: 130; pointer-events: none;
	width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
	background: var(--lime); color: var(--ink); display: grid; place-items: center;
	font: 600 12px var(--body); letter-spacing: .12em; text-transform: uppercase;
	transform: translate3d(-200px, -200px, 0); scale: 0; transition: scale .35s var(--ease);
}
.cursor.is-active { scale: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; color: var(--white); transition: transform .5s var(--ease); }
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(15,16,18,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(255,255,255,.08); opacity: 0; transition: opacity .4s var(--ease);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; transition: padding .4s var(--ease); }
.site-header.is-scrolled .header-inner { padding-top: 12px; padding-bottom: 12px; }
.brand img { width: clamp(124px, 11.5vw, 172px); height: auto; }
.header-right { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.main-nav ul { list-style: none; display: flex; gap: clamp(20px, 2.4vw, 36px); margin: 0; padding: 0; }
.main-nav a { position: relative; font-size: 15px; font-weight: 500; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; align-items: center; gap: 10px; background: transparent; border: 1px solid rgba(255,255,255,.35); color: var(--white); border-radius: 999px; padding: 9px 15px; font: 500 14px var(--body); cursor: pointer; }
.menu-toggle-icon { position: relative; width: 16px; height: 8px; }
.menu-toggle-icon::before, .menu-toggle-icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-toggle-icon::before { top: 0; }
.menu-toggle-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { top: 3px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { top: 3px; transform: rotate(-45deg); }

/* ---------- Hero (Grok proposal) ----------
   Full-screen (100svh) with the real video as background. Poster = first video frame = LCP.
   Phones get a 560x720 portrait crop of the same clip. Field-notebook overlay: graph margin,
   ruler ticks, Fig. caption, live timecode and a 44px instrument toggle (pause/play). */
.hero {
	position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: var(--white);
	min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
	--title: clamp(56px, min(7.4vw, 12.4svh), 132px);
}
.hero-media {
	position: absolute; inset: 0; z-index: -3;
	--s: 0; clip-path: inset(calc(var(--s) * 7%) calc(var(--s) * 5%) calc(var(--s) * 7%) calc(var(--s) * 5%) round calc(var(--s) * 28px));
	transform: scale(calc(1 - var(--s) * .06)); transform-origin: 50% 40%;
}
.hero-media picture, .hero-media img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0% 20%; }
.hero-video { opacity: 0; transition: opacity .8s var(--ease); }
.hero-video.is-playing { opacity: 1; }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(15,16,18,.9) 0%, rgba(15,16,18,.72) 24%, rgba(15,16,18,.28) 42%, rgba(15,16,18,0) 56%),
		linear-gradient(180deg, rgba(15,16,18,.62) 0%, rgba(15,16,18,0) 18%, rgba(15,16,18,0) 58%, rgba(15,16,18,.92) 100%);
}
/* Graph-paper margin on the left third, fading out before the face */
.hero-grid {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
	background-size: 28px 28px; background-position: var(--gutter) 0;
	-webkit-mask-image: linear-gradient(90deg, #000 0%, #000 22%, transparent 44%); mask-image: linear-gradient(90deg, #000 0%, #000 22%, transparent 44%);
}
.hero-ruler { position: absolute; right: calc(var(--gutter) - 26px); top: 110px; bottom: 150px; width: 12px; color: var(--white); opacity: .35;
	background:
		repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px 8px) right top / 6px 100% no-repeat,
		repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px 40px) right top / 12px 100% no-repeat; }
/* full-bleed: keep the headline on the left margin at any width so it never drifts onto the face */
.hero-content { position: relative; max-width: none; padding-top: 104px; padding-bottom: clamp(18px, 3svh, 30px); }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: clamp(12px, 2svh, 22px); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #dfe2e6; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.live-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--lime); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.6); } }
.hero-title { font-size: var(--title); line-height: .94; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero-title em { color: var(--lime); font-size: 1.1em; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 40px; margin-top: clamp(18px, 2.6svh, 32px); }
.hero-cred { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hero-home { margin-top: 6px; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.2; color: #eef0f2; }
.hero-arrow { font-family: var(--body); font-style: normal; color: var(--lime); font-size: .8em; margin: 0 4px; }
.hero-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; }
.hero-link { color: #eef0f2; }
.hero-note { position: absolute; right: calc(var(--gutter) + 2vw); top: 30%; color: var(--lime); font-size: clamp(20px, 1.7vw, 26px); flex-direction: row-reverse; }
.hero-note svg { width: 56px; transform: scaleX(-1) rotate(8deg); }

/* Instrument panel: Fig. caption, timecode, pause/play */
.hero-instrument {
	position: absolute; right: var(--gutter); bottom: 72px; z-index: 2;
	display: flex; align-items: center; gap: 14px; padding: 6px 6px 6px 14px;
	border: 1px solid rgba(255,255,255,.22); border-radius: 6px; background: rgba(15,16,18,.55);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: #d7dbe0;
}
.hero-fig { white-space: nowrap; }
.hero-fig-num { padding: 2px 6px; border: 1px solid currentColor; border-radius: 3px; margin-right: 2px; color: var(--lime); }
.hero-readout { display: inline-flex; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.2); font-variant-numeric: tabular-nums; contain: content; }
.hero-tc { display: inline-block; min-width: 11ch; color: var(--white); }
.hero-led { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.hero.is-video-paused .hero-led, .hero:not(.is-video-on) .hero-led { background: #6b7076; box-shadow: none; }
.hero-toggle {
	position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; cursor: pointer;
	border: 1px solid rgba(255,255,255,.45); border-radius: 4px; background: rgba(255,255,255,.06); color: var(--white);
	transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.hero-toggle[hidden] { display: none; }
.hero-toggle:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.hero .hero-toggle:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
/* pause glyph (two bars) when playing; play triangle when paused */
.hero-toggle-icon { width: 14px; height: 16px; background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 10px, currentColor 10px 14px); }
.hero-toggle[aria-pressed="true"] .hero-toggle-icon { width: 0; height: 0; background: none; border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent currentColor; margin-left: 4px; }
.hero-foot { position: relative; display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 16px; border-top: 1px solid rgba(255,255,255,.14); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #aeb3b9; }
.hero-foot b { color: var(--white); font-weight: 600; margin-left: 6px; }

/* Opening sequence: desktop only, so the phone LCP/text paints immediately */
@media (min-width: 821px) {
	.js .hero-title .line > span { animation: rise 1.1s var(--ease) both; }
	.js .hero-title .line:nth-child(2) > span { animation-delay: .07s; }
	.js .hero-title .line:nth-child(3) > span { animation-delay: .14s; }
	.js .hero-title .line:nth-child(4) > span { animation-delay: .21s; }
	.js .hero-kicker, .js .hero-meta, .js .hero-note, .js .hero-foot, .js .hero-instrument { animation: fade 1s var(--ease) .45s both; }
	.js .hero-ruler { animation: draw-y 1.4s var(--ease) .2s both; }
}
/* Short laptops (1280x720 etc.): keep every control above the fold */
@media (min-width: 821px) and (max-height: 760px) {
	.hero-content { padding-top: 92px; }
	.hero-note { top: 24%; }
	.hero-instrument { bottom: 60px; }
}
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes draw-y { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }


/* ---------- Header + hero on phones (shared hero) ---------- */
@media (max-width: 820px) {
	.header-inner, .site-header.is-scrolled .header-inner { padding-top: 10px; padding-bottom: 10px; }
	.brand img { width: 112px; }
	.menu-toggle { display: inline-flex; position: relative; z-index: 2; }
	.header-cta { display: none; }
	.main-nav { position: fixed; inset: 0; z-index: 1; background: var(--night); display: flex; align-items: flex-end; padding: 0 var(--gutter) 64px; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease-io), visibility 0s linear .7s; }
	.main-nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-io), visibility 0s; }
	.main-nav ul { flex-direction: column; gap: 4px; }
	.main-nav a { font-family: var(--display); text-transform: uppercase; font-size: clamp(56px, 16vw, 96px); line-height: 1.02; }
	.main-nav a::after { display: none; }
	.brand { position: relative; z-index: 2; }

	/* Phone hero: full-screen portrait crop, headline in the bottom ~45%, never over the face */
	.hero { --title: clamp(46px, min(14vw, 8.2svh), 80px); }
	.hero-media { inset: 0 0 22% 0; clip-path: none; transform: none; }
	.hero-media picture, .hero-media img, .hero-video { object-position: 50% 18%; }
	.hero::before { background: linear-gradient(180deg, rgba(15,16,18,.6) 0%, rgba(15,16,18,0) 14%, rgba(15,16,18,0) 32%, rgba(15,16,18,.82) 50%, rgba(15,16,18,.94) 62%, var(--night) 74%); }
	.hero-kicker, .hero-title { text-shadow: 0 1px 18px rgba(0,0,0,.55); }
	.hero-grid { -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 30%, transparent 55%); mask-image: linear-gradient(0deg, #000 0%, #000 30%, transparent 55%); }
	.hero-ruler, .hero-note, .hero-fig { display: none; }
	.hero-content { padding-top: 0; padding-bottom: 18px; }
	.hero-kicker { font-size: 11px; margin-bottom: 12px; }
	.hero-meta { gap: 16px; }
	.hero-home { font-size: 20px; }
	.hero-meta .pill-lg { padding: 16px 24px; }
	.hero-instrument { bottom: 62px; right: var(--gutter); padding: 4px 4px 4px 10px; gap: 10px; font-size: 11px; }
	.hero-meta .pill-lg { margin-right: 120px; }
	.hero-readout { padding-left: 0; border-left: 0; }
	.hero-foot { padding-top: 12px; padding-bottom: 14px; }

	.hero-foot-mid { display: none; }
}
@media (max-width: 420px) {
	.hero-tc { display: none; }
	.hero-meta .pill-lg { margin-right: 64px; }
}
@media (max-width: 820px) and (max-height: 700px) {
	.hero-kicker { display: none; }
	.hero-home { font-size: 18px; }
	.hero-meta { margin-top: 14px; gap: 12px; }
	.hero-meta .pill-lg { padding: 14px 22px; font-size: 15px; }
}

/* =====================================================================
   Claude's entry — "The Lab Report"
   One continuous document: margin index, an eyepiece journey, a specimen
   register, a lined note, a manuscript, three constants, a signed ending.
   ===================================================================== */

/* ---------- Section label (report heading + ruler) ---------- */
.label { display: flex; align-items: flex-end; gap: 12px; margin: 0 0 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-soft); }
.label span { padding: 3px 7px; border-radius: 3px; background: var(--ink); color: var(--lime); line-height: 1.3; }
.label::after { content: ""; flex: 1; height: 10px; margin-bottom: 3px; opacity: .35;
	background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat,
		repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 8px) left bottom / 100% 5px no-repeat,
		repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 40px) left bottom / 100% 10px no-repeat; }
.label.on-dark { color: #c9cdd2; }
.label.on-dark span { background: var(--lime); color: var(--ink); }

/* ---------- Margin index (desktop) ---------- */
.margin-index { position: fixed; left: 14px; top: 50%; z-index: 60; translate: 0 -50%; display: none; color: #fff; mix-blend-mode: difference; opacity: 0; transition: opacity .5s var(--ease); }
.margin-index.is-on { opacity: 1; }
.margin-index ol { list-style: none; margin: 0; padding: 0 0 0 14px; display: grid; gap: 14px; }
.margin-index a { position: relative; display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; opacity: .5; transition: opacity .3s; white-space: nowrap; }
.margin-index a b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; font-weight: 400; }
.margin-index a::after { content: ""; position: absolute; left: -17px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: currentColor; opacity: 0; transition: opacity .3s; }
.margin-index a:hover, .margin-index a:focus-visible, .margin-index a[aria-current="true"] { opacity: 1; }
.margin-index a[aria-current="true"]::after { opacity: 1; }
.margin-rule { position: absolute; left: 0; top: 2px; bottom: 2px; width: 1px; background: rgba(255,255,255,.3); }
.margin-rule i { position: absolute; inset: 0; background: #fff; transform-origin: top; transform: scaleY(var(--read, 0)); }
@media (min-width: 1180px) { .margin-index { display: block; } }

/* ---------- §01 Journey: the eyepiece ---------- */
.scope { position: relative; background-color: var(--cream);
	background-image: linear-gradient(rgba(14,15,17,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(14,15,17,.05) 1px, transparent 1px);
	background-size: 28px 28px; padding-top: clamp(80px, 9vw, 140px); }
.scope-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 96px); align-items: end; }
.scope-intro .label { grid-column: 1 / -1; }
.scope-title { font-size: clamp(64px, 9.6vw, 164px); line-height: .9; }
.scope-intro-copy > p { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.5; color: var(--ink-soft); max-width: 28em; }
.scope-intro-copy em { font-family: var(--serif); font-size: 1.15em; color: var(--ink); }
.stat-row { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; border-top: 1px solid var(--ink); }
.stat-row li { padding: 14px 22px 0 0; margin-right: 22px; border-right: 1px solid rgba(14,15,17,.18); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.stat-row li:last-child { border-right: 0; margin-right: 0; }
.stat-row b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 2.6vw, 42px); line-height: 1; letter-spacing: 0; color: var(--ink); margin-bottom: 6px; }

/* Vertical default (phones, reduced motion, no JS) */
.scope-stage { position: relative; margin-top: clamp(56px, 7vw, 110px); padding-bottom: clamp(64px, 8vw, 120px); }
.scope-frame { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: clamp(64px, 9vw, 120px); }
.scope-stop { display: grid; gap: 28px; align-items: center; }
.lens { --f: 1; position: relative; margin: 0 auto; width: min(78vw, 440px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #111;
	box-shadow: 0 0 0 10px var(--ink), 0 0 0 11px var(--cream), 0 0 0 12px rgba(14,15,17,.35), 0 30px 60px -20px rgba(14,15,17,.55); }
.lens img { width: 100%; height: 100%; object-fit: cover; filter: blur(calc((1 - var(--f)) * 14px)) grayscale(calc(1 - var(--f))) contrast(1.05); transform: scale(calc(1.16 - var(--f) * .16)); }
/* vignette */
.lens::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.js .scope:not(.is-pinned) .scope-stop:not(.is-focused) .lens { --f: 0; }
.scope-stop.is-focused .lens { --f: 1; }
.scope-stop.is-focused .lens img { transition: filter 1.6s var(--ease), transform 1.8s var(--ease); }
.scope-count { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.scope-name { margin-top: 18px; font-size: clamp(56px, 7vw, 120px); line-height: .9; }
.scope-meta { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; font-family: var(--serif); font-style: italic; font-size: clamp(21px, 1.8vw, 28px); line-height: 1.2; }
.scope-meta b { font-family: var(--mono); font-style: normal; font-weight: 500; font-size: 12px; letter-spacing: .04em; padding: 6px 10px; border-radius: 99px; background: var(--ink); color: var(--lime); white-space: nowrap; }
.scope-story { margin-top: 16px; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.62; color: var(--ink-soft); max-width: 32em; }
.scope-lesson { margin-top: 20px; display: flex; align-items: baseline; gap: 12px; }
.scope-lesson small { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.scope-lesson em { font-family: var(--serif); font-size: clamp(26px, 2.2vw, 36px); line-height: 1.05; background: linear-gradient(transparent 62%, var(--lime) 62% 92%, transparent 92%); }
.show-pending [data-pending] { outline: 2px dashed #e0702d; outline-offset: 3px; }
@media (min-width: 821px) {
	.scope:not(.is-pinned) .scope-stop { grid-template-columns: minmax(0, 1fr) auto; gap: 6vw; }
	.scope:not(.is-pinned) .lens { order: 2; width: min(40vw, 460px); }
}

/* Pinned mode (JS, >=821px, motion allowed): one stop at a time, focus scrubbed by scroll */
.scope.is-pinned .scope-stage { height: calc(var(--n) * 100vh); height: calc(var(--n) * 100svh); margin-top: clamp(40px, 5vw, 80px); padding-bottom: 0; }
.scope.is-pinned .scope-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.scope.is-pinned .scope-frame { position: relative; flex: 1; display: block; --lens: min(58vh, 36vw); }
.scope.is-pinned .scope-stop { position: absolute; top: 84px; bottom: 0; left: var(--gutter); right: var(--gutter); grid-template-columns: minmax(0, 1fr) var(--lens); gap: 6vw; visibility: hidden; }
.scope.is-pinned .scope-stop.is-active { visibility: visible; }
.scope.is-pinned .lens { order: 2; width: var(--lens); opacity: 0; transition: opacity .5s var(--ease); }
.scope.is-pinned .scope-stop.is-active .lens { opacity: 1; }
.scope.is-pinned .scope-text > * { opacity: 0; transform: translateY(26px); transition: opacity .55s var(--ease), transform .7s var(--ease); }
.scope.is-pinned .scope-stop.is-active .scope-text > * { opacity: 1; transform: none; }
.scope.is-pinned .scope-stop.is-active .scope-text > :nth-child(2) { transition-delay: .05s; }
.scope.is-pinned .scope-stop.is-active .scope-text > :nth-child(3) { transition-delay: .1s; }
.scope.is-pinned .scope-stop.is-active .scope-text > :nth-child(4) { transition-delay: .15s; }
.scope.is-pinned .scope-stop.is-active .scope-text > :nth-child(5) { transition-delay: .2s; }
.scope.is-pinned .scope-stop.is-active .scope-text > :nth-child(6) { transition-delay: .25s; }
@media (min-width: 821px) and (max-height: 780px) {
	.scope.is-pinned .scope-frame { --lens: min(52vh, 34vw); }
	.scope.is-pinned 	.scope.is-pinned .scope-name { font-size: clamp(52px, 6vw, 96px); }
}

/* ---------- §02 Notes: the specimen register ---------- */
.register { position: relative; background: var(--cream); padding: clamp(80px, 9vw, 140px) 0; border-top: 1px solid var(--ink); }
.register-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22em); align-items: end; gap: 18px 48px; }
.register-head .label { grid-column: 1 / -1; }
.register-title { font-size: clamp(64px, 9.6vw, 164px); line-height: .9; }
.register-sub { font-size: clamp(17px, 1.3vw, 19px); color: var(--muted); padding-bottom: 12px; }
.specimen { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: end; }
.specimen-media { display: block; aspect-ratio: 16 / 10; border-radius: 4px; }
.specimen-media img { width: 100%; height: 100%; object-fit: cover; }
.specimen:hover .duo img, .specimen:focus-within .duo img { filter: none; mix-blend-mode: normal; transform: scale(1.03); }
.specimen:hover .duo::after, .specimen:focus-within .duo::after { opacity: 0; }
.slide-label { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--ink); border-radius: 3px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.slide-label > * { padding: 6px 10px; border-right: 1px solid var(--ink); }
.slide-label > :last-child { border-right: 0; }
.slide-label > :first-child { background: var(--ink); color: var(--lime); }
.specimen h3 { margin-top: 22px; font-size: clamp(38px, 3.8vw, 64px); line-height: .98; }
.specimen h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size .55s var(--ease); }
.specimen:hover h3 a, .specimen h3 a:focus-visible { background-size: 100% 3px; }
.specimen-body > p:not(.slide-label) { margin-top: 16px; font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 30em; }
.read-link { display: inline-flex; gap: 10px; margin-top: 22px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.read-link span { transition: transform .3s var(--ease); }
.read-link:hover span { transform: translateX(4px); }

.ledger { margin-top: clamp(64px, 7vw, 110px); }
.ledger-head, .ledger li a { display: grid; grid-template-columns: 64px 128px minmax(0, 1fr) 190px 28px; align-items: baseline; gap: 18px; }
.ledger-head { padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ledger-head span:nth-child(4) { grid-column: 4; }
.ledger ol { list-style: none; margin: 0; padding: 0; }
.ledger li a { position: relative; padding: 20px 0; border-bottom: 1px solid rgba(14,15,17,.16); isolation: isolate; }
.ledger li a::before { content: ""; position: absolute; inset: 0 -14px; z-index: -1; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.ledger li a:hover::before, .ledger li a:focus-visible::before { transform: scaleX(1); }
.l-no, .ledger time, .l-cat { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .03em; }
.l-title { font-family: var(--display); font-size: clamp(24px, 2.2vw, 36px); line-height: 1.05; text-transform: uppercase; transition: transform .45s var(--ease); }
.ledger li a:hover .l-title { transform: translateX(10px); }
.l-go { font-size: 18px; justify-self: end; transition: transform .35s var(--ease); }
.ledger li a:hover .l-go { transform: rotate(45deg); }
.ledger-all { display: inline-flex; gap: 10px; margin-top: 26px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.ledger-preview { position: fixed; left: 0; top: 0; z-index: 70; width: 300px; aspect-ratio: 3 / 2; margin: 0; border-radius: 4px; pointer-events: none; opacity: 0; scale: .9; transition: opacity .25s var(--ease), scale .35s var(--ease); box-shadow: 0 24px 50px -20px rgba(14,15,17,.6); }
.ledger-preview img { width: 100%; height: 100%; object-fit: cover; }
.ledger-preview.is-on { opacity: 1; scale: 1; }
@media (hover: none), (pointer: coarse) { .ledger-preview { display: none; } }

/* ---------- A note in the margin (lined paper) ---------- */
.margin-note { background-color: var(--paper);
	background-image: linear-gradient(rgba(14,15,17,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(14,15,17,.05) 1px, transparent 1px);
	background-size: 28px 28px; padding: clamp(80px, 9vw, 140px) 0; }
.lined { --ln: 44px; position: relative; max-width: 980px; margin: 0 auto; padding: calc(var(--ln) * 1.5) clamp(28px, 6vw, 88px) calc(var(--ln) * 1.2) clamp(84px, 11vw, 150px);
	background-color: #faf8f2; background-image: repeating-linear-gradient(transparent 0 calc(var(--ln) - 1px), rgba(28,98,160,.16) calc(var(--ln) - 1px) var(--ln));
	background-position: 0 calc(var(--ln) * 1.5 - 6px); rotate: -.6deg; box-shadow: 0 1px 0 rgba(14,15,17,.08), 0 40px 70px -40px rgba(14,15,17,.5); }
.lined::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(60px, 8vw, 112px); width: 2px; background: rgba(214,85,64,.55); }
.lined::after { content: ""; position: absolute; top: 22px; left: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(0,0,0,.25), 0 calc(var(--ln) * 4) 0 0 var(--paper), 0 calc(var(--ln) * 8) 0 0 var(--paper); }
.lined-date { font-family: var(--mono); font-size: 12px; line-height: var(--ln); color: var(--muted); }
.lined-text { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 52px); line-height: calc(var(--ln) * 1.5); letter-spacing: -.01em; color: var(--ink); }
.lined-text em { background: linear-gradient(transparent 60%, var(--lime) 60% 88%, transparent 88%); }
.lined-sub { font-size: 17px; line-height: var(--ln); color: var(--muted); }
.lined-sign { width: 180px; margin-top: 8px; filter: invert(1); rotate: -4deg; opacity: .85; }

/* ---------- §03 The manuscript ---------- */
.manuscript { position: relative; overflow: hidden; color: var(--white); padding: clamp(80px, 9vw, 140px) 0;
	background: radial-gradient(ellipse 45% 55% at 22% 32%, #24272c 0%, rgba(15,16,18,0) 70%), var(--night); }
.ms-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.ms-cover { position: relative; display: flex; justify-content: center; padding: 20px 0 40px; perspective: 1200px; }
.ms-glow { position: absolute; left: 50%; top: 50%; width: min(38vw, 480px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(212,243,90,.24) 0%, rgba(240,190,110,.1) 40%, rgba(15,16,18,0) 68%); }
.ms-cover::after { content: ""; position: absolute; left: 50%; bottom: 20px; width: min(26vw, 320px); height: 30px; translate: -50% 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.75), transparent 70%); }
.ms-book { position: relative; z-index: 1; display: block; width: min(26vw, 320px); transition: transform .6s var(--ease); transform-style: preserve-3d; }
.ms-book img { width: 100%; filter: drop-shadow(-22px 30px 32px rgba(0,0,0,.6)); }
.ms-title { font-size: clamp(70px, 9.4vw, 160px); line-height: .9; }
.ms-title em { color: var(--lime); }
.ms-lede { margin-top: 24px; font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.4vw, 38px); line-height: 1.1; }
.ms-desc { margin-top: 14px; font-size: clamp(16px, 1.25vw, 18px); color: #b9bec4; max-width: 30em; }
.tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.tag { position: relative; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 4px 14px; min-width: 300px; padding: 14px 18px 14px 14px; color: var(--ink); background: var(--cream);
	clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 calc(100% - 16px), 0 16px); transition: transform .35s var(--ease), background .3s var(--ease); }
.tag-primary { background: var(--lime); }
.tag:hover, .tag:focus-visible { transform: translateY(-3px) rotate(-.6deg); }
.tag-hole { width: 12px; height: 12px; border-radius: 50%; background: var(--night); box-shadow: inset 0 0 0 2px rgba(255,255,255,.15); }
.tag-kind { font-family: var(--display); font-size: 26px; line-height: 1; }
.tag-spec { font-family: var(--mono); font-size: 11px; letter-spacing: .03em; }
.tag-go { font-size: 20px; }
.ms-free { margin-top: 16px; font-family: var(--mono); font-size: 12px; color: #8d939a; }
.ms-free a { color: #e6e8eb; border-bottom: 1px solid currentColor; }
.ms-free a:hover { color: var(--lime); }
.ms-lower { margin-top: clamp(72px, 8vw, 128px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.contents-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.4); font-family: var(--serif); font-style: italic; font-size: 34px; }
.contents-head span { font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8d939a; }
.contents ol { list-style: none; margin: 0; padding: 0; }
.contents li { display: grid; grid-template-columns: 44px auto 1fr; align-items: baseline; gap: 4px 12px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.c-num { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--lime); }
.c-title { font-family: var(--display); text-transform: uppercase; font-size: clamp(28px, 2.4vw, 38px); line-height: 1; }
.c-lead { border-bottom: 1.5px dotted rgba(255,255,255,.35); transform: translateY(-6px); }
.contents li p { grid-column: 2 / -1; margin-top: 6px; color: #b9bec4; font-size: 16px; line-height: 1.55; max-width: 30em; }
.premise { margin-top: 36px; font-family: var(--serif); font-size: clamp(26px, 2.4vw, 38px); line-height: 1.16; }
.premise small { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--lime); }
.premise em { color: var(--lime); }
.ms-page { position: relative; margin: 0; padding: clamp(32px, 4vw, 60px) clamp(28px, 4vw, 60px); background: #f4f0e6; color: var(--ink); rotate: 1.2deg;
	box-shadow: 0 2px 0 #e2dccd, 0 4px 0 #f4f0e6, 0 6px 0 #ddd6c5, 0 50px 80px -30px rgba(0,0,0,.7); }
.page-run { display: flex; justify-content: space-between; padding-bottom: 10px; margin-bottom: 26px; border-bottom: 1px solid rgba(14,15,17,.25); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ms-page blockquote { margin: 0; font-family: var(--serif); font-size: clamp(19px, 1.5vw, 23px); line-height: 1.55; }
.ms-page blockquote p + p { margin-top: 1em; text-indent: 1.6em; }
.page-drop::first-letter { float: left; font-family: var(--display); font-size: 4.6em; line-height: .8; padding: .08em .12em 0 0; color: var(--ink); }
.ms-page figcaption { margin-top: 26px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.ms-page figcaption cite { font-style: italic; }
.ms-quote { margin: clamp(64px, 7vw, 110px) auto 0; max-width: 30em; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.4vw, 38px); line-height: 1.2; color: #e9ebee; }

/* ---------- §04 Constants: periodic tiles ---------- */
.constants { background-color: var(--cream);
	background-image: linear-gradient(rgba(14,15,17,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(14,15,17,.05) 1px, transparent 1px);
	background-size: 28px 28px; padding: clamp(80px, 9vw, 140px) 0; }
.constants-title { font-size: clamp(56px, 7.6vw, 128px); line-height: .92; }
.constants-sub { margin-top: 16px; font-size: clamp(17px, 1.3vw, 19px); color: var(--muted); }

/* ---------- §05 End of report ---------- */
.report-end { position: relative; overflow: hidden; isolation: isolate; color: #e9ebee; background: var(--night); padding: clamp(80px, 9vw, 140px) 0 36px; }
.end-bg { position: absolute; inset: 0; z-index: -2; }
.end-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; filter: grayscale(.5) brightness(.45); }
.report-end::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--night) 0%, rgba(15,16,18,.78) 40%, rgba(15,16,18,.6) 70%, rgba(15,16,18,.95) 100%); }
.end-title { font-size: clamp(80px, 13vw, 220px); line-height: .88; }
.end-title em { color: var(--lime); font-size: 1em; }
.end-actions { margin-top: clamp(28px, 3vw, 44px); display: flex; flex-wrap: wrap; gap: 12px; }
.signoff { margin-top: clamp(64px, 7vw, 110px); padding-top: 28px; border-top: 1px solid rgba(255,255,255,.18); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 110px); align-items: end; }
.signoff-label { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8d939a; }
.signoff-sign img { width: clamp(180px, 16vw, 240px); margin: 10px 0 6px; }
.signoff-name { padding-top: 10px; border-top: 1px solid rgba(255,255,255,.35); max-width: 340px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.signoff-role { margin-top: 4px; font-size: 14px; color: #a9afb6; }
.signoff-data { margin: 0; display: grid; gap: 0; }
.signoff-data div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.signoff-data dt { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8d939a; padding-top: 2px; }
.signoff-data dd { margin: 0; color: #d7dbe0; }
.signoff-data b { font-family: var(--mono); color: var(--white); font-weight: 500; }
.signoff-data a:hover { color: var(--lime); }
.back-top { display: inline-flex; gap: 8px; margin-top: 32px; color: var(--lime); font-weight: 600; }

/* ---------- Responsive (my sections) ---------- */
@media (max-width: 1100px) {
	.ms-lower { grid-template-columns: 1fr; }
	.ledger-head, .ledger li a { grid-template-columns: 52px 110px minmax(0, 1fr) 150px 22px; }
}
@media (max-width: 820px) {
	.scope-intro, .register-head, .specimen, .ms-grid, .signoff { grid-template-columns: 1fr; }
	.stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
	.stat-row li:nth-child(2) { border-right: 0; }
	.lens { width: min(84vw, 380px); }
	.scope-stop { gap: 34px; }
	.ledger-head { display: none; }
	.ledger li a { grid-template-columns: 34px minmax(0, 1fr) 20px; grid-template-areas: "no title go" "no meta go"; row-gap: 6px; }
	.l-no { grid-area: no; }
	.l-title { grid-area: title; font-size: 24px; }
	.ledger time { grid-area: meta; }
	.l-cat { display: none; }
	.l-go { grid-area: go; }
	.lined { padding-left: 64px; rotate: 0deg; }
	.lined::before { left: 46px; }
	.lined::after { display: none; }
	.ms-book { width: min(58vw, 260px); }
	.ms-glow { width: 80vw; }
	.tag { min-width: 0; width: 100%; }
	.ms-page { rotate: 0deg; }
					.signoff-data div { grid-template-columns: 90px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .split .line > span, .js [data-reveal] { transform: none !important; opacity: 1 !important; }
	.lens { --f: 1 !important; }
	.lens img { transform: none; }
	.ledger-preview { display: none; }
}

/* =====================================================================
   FINAL — team merge (Claude foundation · Webby/Grok chart, ring, tubes · Codex restraint)
   ===================================================================== */

/* Focus rings: lime on every dark section */
.manuscript :focus-visible, .report-end :focus-visible { outline-color: var(--lime); }

/* Hero: secondary link next to the primary button */
.hero-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; }
.hero-link { color: #eef0f2; font-weight: 600; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.45); padding-bottom: 3px; transition: color .3s, border-color .3s; }
.hero-link:hover { color: var(--lime); border-color: var(--lime); }

/* Calmer paper: lighter grid */
.scope, .constants, .margin-note { background-image: linear-gradient(rgba(14,15,17,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(14,15,17,.035) 1px, transparent 1px); }

/* ---------- Journey: lens ring, tags, hospital list ---------- */
.lens { overflow: visible; }
.lens img { border-radius: 50%; }
.lens::after { background: radial-gradient(circle, transparent 60%, rgba(0,0,0,.4) 100%); }
.lens-ring { position: absolute; inset: -15%; width: 130%; height: 130%; pointer-events: none; transform: rotate(calc(var(--p, 0) * -70deg)); overflow: visible; }
.lens-ring text { font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; fill: var(--ink); }
.home-chip { position: absolute; bottom: -24%; left: 50%; translate: -50% 0; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 99px; background: var(--lime); color: var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.home-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.scope-tag { color: var(--muted); }
.benches { margin: 18px 0 0; padding: 0; max-width: 36em; }
.benches div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed rgba(14,15,17,.22); font-size: 13.5px; }
.benches div:first-child { border-top: 1px dashed rgba(14,15,17,.22); }
.benches dt { color: var(--ink-soft); }
.benches dd { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }

/* Vertical (phones / reduced motion / no JS): leave room for the ring */
.scope-frame { gap: clamp(88px, 11vw, 140px); }
.lens { width: min(66vw, 400px); margin-top: 8%; margin-bottom: 8%; }

/* ---------- Fig. 06: career chart ---------- */
.chart { margin: clamp(56px, 7vw, 96px) auto 0; width: 100%; max-width: var(--max); padding: 0 var(--gutter); }
.chart-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.chart-fig { padding: 2px 6px; border: 1px solid currentColor; border-radius: 3px; text-transform: none; }
.lanes { list-style: none; margin: 0; padding: 0; }
.lane { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 16px; border-bottom: 1px solid rgba(14,15,17,.1); }
.lane-btn { display: flex; align-items: center; gap: 10px; padding: 7px 0; background: none; border: 0; cursor: pointer; font: 500 13px var(--body); color: var(--ink-soft); text-align: left; }
.lane-n { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.lane-btn:hover .lane-name { text-decoration: underline; text-underline-offset: 3px; }
.lane-track { position: relative; height: 10px;
	background: repeating-linear-gradient(90deg, rgba(14,15,17,.08) 0 1px, transparent 1px calc(100% / var(--span, 32))); }
.lane-track i { position: absolute; top: 0; bottom: 0; left: calc(var(--a) / var(--span, 32) * 100%); width: max(4px, calc((var(--b) - var(--a)) / var(--span, 32) * 100%)); border-radius: 99px; background: rgba(14,15,17,.25); transition: background .4s var(--ease); }
.lane.is-visited .lane-track i { background: var(--ink); }
.lane.is-active .lane-track i { background: var(--lime); box-shadow: 0 0 0 1.5px var(--ink); }
.lane.is-active .lane-btn { color: var(--ink); font-weight: 600; }
.lane.is-active .lane-n { color: var(--ink); }
.chart-axis { position: relative; height: 22px; margin-left: 186px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.chart-axis span { position: absolute; top: 6px; left: calc(var(--y) / var(--span, 32) * 100%); translate: -50% 0; }
.chart-axis span:first-child { translate: 0 0; }
.chart-axis span:last-child { translate: -100% 0; }

/* ---------- Pinned journey (>=821px, motion allowed) ---------- */
.scope.is-pinned .scope-pin { display: flex; flex-direction: column; }
.scope.is-pinned .scope-frame { --lens: min(44vh, 30vw); }
.scope.is-pinned .scope-stop { top: 76px; bottom: 0; grid-template-columns: minmax(0, 1fr) calc(var(--lens) * 1.3); }
.scope.is-pinned .lens { width: var(--lens); margin: 0 auto; }
.scope.is-pinned .chart { margin-top: 0; padding-bottom: 18px; }
.scope.is-pinned .scope-name { font-size: clamp(48px, 5.2vw, 92px); margin-top: 12px; }
.scope.is-pinned .scope-story { margin-top: 10px; font-size: 16px; line-height: 1.55; }
.scope.is-pinned .scope-lesson { margin-top: 12px; }
.scope.is-pinned .benches { margin-top: 12px; }
.scope.is-pinned .benches div { padding: 5px 0; }
@media (min-width: 821px) and (max-height: 780px) {
	.scope.is-pinned .scope-frame { --lens: min(38vh, 28vw); }
	.scope.is-pinned .scope-where { display: block; }
	.scope.is-pinned .scope-name { font-size: clamp(42px, 4.4vw, 72px); }
	.scope.is-pinned .scope-story { font-size: 15px; }
	.scope.is-pinned .scope-meta { font-size: 20px; margin-top: 10px; }
	.scope.is-pinned .lane-btn { padding: 4px 0; }
	.scope.is-pinned .lane-track { height: 8px; }
}

/* ---------- Journal: calmer serif titles; thumbnails on phones ---------- */
.l-title { font-family: var(--serif); text-transform: none; font-size: clamp(24px, 2.1vw, 32px); line-height: 1.12; letter-spacing: -.005em; }
.l-thumb { display: none; }
.ledger li a:focus-visible { outline-offset: 2px; }

/* ---------- Book: Inside the book + collapsible excerpt ---------- */
.themes details { border-bottom: 1px solid rgba(255,255,255,.14); }
.themes summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; align-items: baseline; gap: 12px; padding: 20px 0; cursor: pointer; list-style: none; }
.themes summary::-webkit-details-marker { display: none; }
.themes summary i { position: relative; width: 14px; height: 14px; align-self: center; justify-self: end; }
.themes summary i::before, .themes summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--lime); transition: transform .35s var(--ease); }
.themes summary i::after { transform: rotate(90deg); }
.themes details[open] summary i::after { transform: rotate(0deg); }
.themes summary:hover .c-title { color: var(--lime); }
.themes details p { margin: -6px 0 20px 56px; color: #b9bec4; font-size: 16px; line-height: 1.55; max-width: 30em; }
.page-more { margin-top: 18px; }
.page-more summary { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; font-family: var(--body); font-weight: 600; font-size: 14px; padding-bottom: 3px; border-bottom: 1px solid currentColor; }
.page-more summary::-webkit-details-marker { display: none; }
.page-more summary i { font-style: normal; transition: transform .3s var(--ease); }
.page-more[open] summary i { transform: rotate(45deg); }
.page-rest p { margin-top: 1em; font-family: var(--serif); font-size: clamp(19px, 1.5vw, 23px); line-height: 1.55; text-indent: 1.6em; }

/* ---------- §04: what drives me (three photo cards) ---------- */
.drives { list-style: none; margin: clamp(48px, 5vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.drive-card { display: flex; flex-direction: column; padding-top: 16px; border-top: 1.5px solid var(--ink); }
.drive-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--paper); }
.drive-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.drive-card:hover .drive-photo img { transform: scale(1.04); }
.drive-photo figcaption { position: absolute; left: 10px; bottom: 10px; padding: 3px 7px; border-radius: 2px; background: var(--cream); font-family: var(--mono); font-size: 11px; }
.drive-no { margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--muted); }
.drive-card h3 { margin-top: 8px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 2.4vw, 38px); line-height: 1; }
.drive-card h3 + p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; line-height: 1.6; max-width: 26em; }

/* ---------- Footer: one line ---------- */
.end-title { font-size: clamp(72px, 11vw, 190px); }
.end-title em { font-size: 1.04em; }
.signoff-data dd a { border-bottom: 1px solid rgba(255,255,255,.35); }

/* ---------- Responsive (final) ---------- */
@media (max-width: 1100px) {
	.drives { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 820px) {
	.lane { grid-template-columns: 118px minmax(0, 1fr); gap: 10px; }
	.chart-axis { margin-left: 128px; }
	.lens { width: min(64vw, 320px); }
	.lens-ring text { font-size: 10.5px; }
	.ledger li a { grid-template-columns: 34px minmax(0, 1fr) 76px; grid-template-areas: "no title thumb" "no meta thumb"; }
	.l-go { display: none; }
	.l-thumb { display: block; grid-area: thumb; width: 76px; height: 54px; object-fit: cover; border-radius: 3px; align-self: center; }
	.hero-ctas { gap: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.lens-ring { transform: none; }
	.drive-photo img { transition: none; }
}

/* Laptops: keep both hero actions clear of the video instrument strip */
@media (min-width: 821px) and (max-width: 1500px) {
	.hero-fig { display: none; }
	.hero-readout { padding-left: 0; border-left: 0; }
}
@media (min-width: 821px) and (max-width: 1180px) {
	.hero-instrument { top: 92px; bottom: auto; }
	.hero-note { top: 32%; }
}

/* ---------- Hero scrub: pinned while scrolling plays the first 5 s of the video ---------- */
.hero-track { position: relative; }
.is-scrub .hero-track { height: calc(100vh + 160vh); height: calc(100svh + 160vh); }
.is-scrub .hero { position: sticky; top: 0; }
.is-scrub .hero-toggle { display: none; }
.hero-scroll b { color: var(--lime); font-weight: 600; margin-left: 4px; display: inline-block; min-width: 4ch; text-align: right; font-variant-numeric: tabular-nums; }
.hero-pct { display: none; }
.is-scrub .hero-pct { display: inline-block; }
/* progress hairline along the bottom of the hero while scrubbing */
.hero-foot::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: calc(var(--scrub, 0) * 100%); background: var(--lime); }
/* the headline drifts up slightly as the clip plays */
.is-scrub .hero-content { transform: translateY(calc(var(--scrub, 0) * -3vh)); }
/* margin index: invisible links must not be focusable */
.margin-index { visibility: hidden; }
.margin-index.is-on { visibility: visible; }
@media (max-width: 420px) { .is-scrub .hero-instrument { display: none; } .is-scrub .hero-meta .pill-lg { margin-right: 0; } }

/* Header logo: centre the signature's ink (not its box) on the nav line */
.brand img { transform: translateY(-8.5%); }
