/*
 * JDS theme styles (spec §4–§6; the approved homepage-v4.html and workpage-v2.html). No build step.
 *
 * Fail-open rule (spec §6.9): every "before the animation" state needs the .motion class, which only jds.js adds to
 * <html>, after it has marked what is already on screen. Without the script, with LiteSpeed's JS delay, or when
 * LiteSpeed's Unique CSS drops a rule, everything is simply shown in its final state. Never .rv{opacity:0} with
 * .rv.in{opacity:1}, and no <style> in <noscript>.
 */

/* ---- Fonts (OFL; self-hosted, subset by devtools/fonts/build.py; licences next to the files) ---- */
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026; }
@font-face { font-family: "Hanken Grotesk"; src: url(fonts/hanken-grotesk.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026, U+2190, U+2192; }
@font-face { font-family: "Hanken Grotesk"; src: url(fonts/hanken-grotesk-italic.woff2) format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026, U+2190, U+2192; }
@font-face { font-family: "Mrs Saint Delafield"; src: url(fonts/mrs-saint-delafield.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---- Tokens (spec §4) ---- */
:root {
	--night: #10171e;
	--panel: #16212b;
	--line: #24313d;
	--amber: #ffae2e;
	--paper: #f3ece2;
	--muted: #93a0ac;
	--text: #c3cbd3;
	--ink: #1a1206;
	--ink-soft: #3a2a10;
	--field: #ffd28c;
	--field-line: #765016;
	--serif: "Instrument Serif", "Hanken Grotesk", Georgia, serif;
	--sans: "Hanken Grotesk", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--script: "Mrs Saint Delafield", cursive;
	--gutter: 56px;
	--max: 1100px;
	--measure: 780px;
	--header-h: 76px;
	--header-shrink: 14px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	color-scheme: dark;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--night); color: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; }
.site-main { flex: 1 0 auto; display: flex; flex-direction: column; }
.site-main > * { flex: none; }
.site-main > .connect:only-child { flex: 1 0 auto; }
p { margin: 0 0 1em; color: var(--text); }
a { color: inherit; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap--prose { width: min(100% - 2 * var(--gutter), var(--measure)); }

/* ---- Type ---- */
.sig { font-family: var(--script); color: var(--amber); line-height: 1; font-weight: 400; }
.kicker { color: var(--amber); font-size: 13px; font-weight: 600; letter-spacing: .02em; margin: 0 0 10px; line-height: 1.4; }
.section-head { margin-bottom: 8px; }
.section-title { font-family: var(--serif); font-size: 44px; line-height: 1.02; letter-spacing: -.01em; margin: 0 0 16px; max-width: 680px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 14px; line-height: 1.2; text-decoration: none; transition: background-color .25s, color .25s, border-color .25s, transform .25s; }
.btn--solid { background: var(--amber); color: var(--ink); }
.btn--solid:hover { background: #ffc061; }
.btn--ghost { border: 1px solid rgba(243, 236, 226, .35); color: var(--paper); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn--ink { background: var(--ink); color: var(--amber); font-weight: 700; padding: 15px 30px; }
.btn--ink:hover { background: #2c1f0a; }

/* ---- Header (spec §4): sticky; compact and solid after the hero (jds.js adds .is-stuck) ---- */
.site-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; height: var(--header-h); transition: transform .4s var(--ease); }
/* The shade under the bar holds at least .72 behind the menu text, so the links keep 4.5:1 even over a white photo. */
.site-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(16, 23, 30, .78) 0, rgba(16, 23, 30, .72) 62%, rgba(16, 23, 30, 0) 100%); pointer-events: none; }
.site-header::after { content: ""; position: absolute; inset: 0; background: rgba(16, 23, 30, .94); box-shadow: 0 1px 0 var(--line); opacity: 0; transition: opacity .4s; pointer-events: none; }
.site-header.is-stuck { transform: translateY(calc(-1 * var(--header-shrink))); }
.site-header.is-stuck::after { opacity: 1; }
.site-header__inner { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; transition: transform .4s var(--ease); }
.site-header.is-stuck .site-header__inner { transform: translateY(calc(var(--header-shrink) / 2)); }
.site-header__sig { font-size: 30px; text-decoration: none; padding: 6px 4px 2px; transform-origin: left center; transition: transform .4s var(--ease); }
.site-header.is-stuck .site-header__sig { transform: scale(.86); }
.site-nav { position: static; inset: auto; width: auto; height: auto; margin: 0; padding: 0; border: 0; background: none; color: inherit; overflow: visible; }
.site-nav__list { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 26px; }
.site-nav a { display: inline-block; padding: 6px 0; color: rgba(243, 236, 226, .88); font-size: 14px; text-decoration: none; text-shadow: 0 1px 3px rgba(16, 23, 30, .6); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--amber); }
.menu-toggle, .menu-close { display: none; font: 600 14px/1 var(--sans); color: var(--paper); background: none; border: 1px solid rgba(243, 236, 226, .35); border-radius: 999px; min-height: 40px; padding: 10px 18px; cursor: pointer; }
@media (min-width: 761px) {
	.site-nav { display: block; }
}

/* ---- Homepage hero (spec §5.1 item 1) ---- */
.hero { position: relative; margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); min-height: calc(560px + var(--header-h)); overflow: clip; }
.hero__media { position: absolute; right: 0; top: 0; bottom: 0; width: 58%; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%); mask-image: linear-gradient(to right, transparent 0, #000 30%); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 28%; }
.hero__inner { position: relative; z-index: 1; }
.hero__text { width: min(470px, 46%); padding: 70px 0 150px; }
.hero__sig { font-size: 52px; margin: 0; padding: 8px 10px 4px 2px; }
.hero__title { font-family: var(--serif); font-size: 62px; line-height: .98; letter-spacing: -.015em; margin: 16px 0 18px; }
.hero__title em, .quote__text em { color: var(--amber); }
.hero__intro { font-size: 16px; max-width: 430px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.hero__line { position: absolute; left: 0; bottom: 0; width: 100%; height: 120px; overflow: visible; pointer-events: none; }
.hero__line path, .vhero__line path { fill: none; stroke: var(--amber); stroke-width: 2; }
.vhero__line path { opacity: .8; }

/* ---- The thread (spec §5.1 item 2, §6.2) ---- */
.thread { padding: 90px 0 70px; }
.prologue { position: relative; margin: 34px 0 70px; }
.prologue__tag { font-size: 12px; color: var(--amber); opacity: .85; margin: 0 0 6px; }
.prologue__list { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.prologue__list::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 1px; background: rgba(255, 174, 46, .35); }
.prologue__item { position: relative; padding-top: 34px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.prologue__item::before { content: ""; position: absolute; top: 10px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--night); border: 1.5px solid rgba(255, 174, 46, .7); }
.prologue__year { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; color: #d9cdb9; margin-bottom: 3px; }
.present { position: relative; padding-left: 70px; }
.present__bar { position: absolute; left: 16px; top: 6px; bottom: 0; width: 6px; border-radius: 6px; background: linear-gradient(rgba(255, 174, 46, .35), var(--amber) 30%, var(--amber)); transform-origin: top; transition: transform 2.4s var(--ease); }
.present__ch { position: relative; margin-bottom: 64px; }
.present__ch:last-child { margin-bottom: 0; }
.present__ch::before { content: ""; position: absolute; left: -63px; top: 16px; width: 20px; height: 20px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 8px rgba(255, 174, 46, .16); }
.present__ch::after { content: ""; position: absolute; left: -63px; top: 16px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--amber); opacity: 0; pointer-events: none; }
.present__year { font-family: var(--serif); color: var(--amber); font-size: 72px; line-height: .9; margin: 0; }
.present__ch--next .present__year { font-style: italic; }
.present__title { font-family: var(--serif); font-size: 40px; line-height: 1.05; margin: 6px 0 12px; }
.present__text { font-size: 16px; max-width: 680px; margin: 0 0 14px; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; max-width: 760px; }
.pill { border: 1px solid rgba(255, 174, 46, .45); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; line-height: 1.35; color: var(--paper); }
.pill b { color: var(--amber); font-weight: 600; margin-right: 2px; }
.present__photos { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; margin-top: 16px; max-width: 760px; }
.present__photos img { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; }

/* ---- Impact band (spec §5.1 item 3, §5.2 item 3) ---- */
.impact { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.impact__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100% - 2 * var(--gutter) + 56px, var(--max) + 56px); margin-inline: auto; }
.impact__item { padding: 34px 28px; border-right: 1px solid var(--line); }
.impact__item:last-child { border-right: 0; }
.count { display: block; font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1; color: var(--paper); font-variant-numeric: tabular-nums; white-space: normal; overflow-wrap: anywhere; }
.impact__label { display: block; color: var(--muted); font-size: 13px; margin-top: 10px; line-height: 1.4; }
.impact--venture .impact__item { padding: 30px 26px; }
.impact--venture .count { font-size: 48px; }

/* ---- Quote (spec §5.1 item 4) ---- */
.quote { padding: 110px 0; text-align: center; }
.quote__figure { margin-block: 0; }
.quote__text { margin: 0 auto; max-width: 760px; }
.quote__text p { font-family: var(--serif); font-size: 46px; line-height: 1.1; color: var(--paper); margin: 0; }
.quote__cite { display: block; margin-top: 22px; color: var(--muted); font-size: 14px; }
.quote--venture { padding: 30px 0 70px; text-align: left; }
.quote--venture .quote__text { margin: 0 0 0 74px; max-width: 700px; padding-left: 26px; border-left: 2px solid var(--amber); }
.quote--venture .quote__text p { font-size: 34px; }

/* ---- The map (spec §5.1 item 5, §6.3) ---- */
.map { padding: 70px 0 40px; background: radial-gradient(circle at 65% 50%, #18242f 0, var(--night) 70%); }
.map__canvas { position: relative; aspect-ratio: 870 / 470; margin-top: 10px; }
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map__line { fill: none; stroke: rgba(255, 174, 46, .5); stroke-width: 1.3; transition: stroke-dashoffset .9s ease calc(var(--o, 0) * 120ms); }
.map__line--with { stroke: rgba(255, 174, 46, .34); }
.map__line--next { stroke: var(--amber); stroke-dasharray: 4 6; transition: opacity .6s ease calc(var(--o, 0) * 120ms); }
.map__arc { fill: none; stroke: var(--amber); stroke-width: 1.6; stroke-dasharray: 5 6; transition: opacity .9s ease calc(var(--o, 0) * 120ms + 300ms); }
.map__dot { fill: var(--amber); transform-box: fill-box; transform-origin: center; transition: opacity .5s ease calc(var(--o, 0) * 120ms + 200ms), transform .5s var(--ease) calc(var(--o, 0) * 120ms + 200ms); }
.map__dot--light { fill: var(--paper); }
.map__dot--next { fill: none; stroke: var(--amber); stroke-width: 1.6; stroke-dasharray: 3 3; }
.map__label { font: 12.5px var(--sans); fill: #dfe6ec; transition: opacity .5s ease calc(var(--o, 0) * 120ms + 300ms); }
.map__label--next { fill: var(--amber); }
.map__arc-label { font: italic 16px var(--serif); fill: var(--amber); transition: opacity .9s ease calc(var(--o, 0) * 120ms + 500ms); }
.map__hits { list-style: none; position: absolute; inset: 0; }
.map__node { position: absolute; width: 0; height: 0; }
.map__node:hover, .map__node:focus-within, .map__node.is-open { z-index: 5; }
.map__hit { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.map__hit:hover { box-shadow: 0 0 0 2px rgba(255, 174, 46, .45); }
.map__card { position: absolute; left: -24px; top: 22px; width: 230px; padding: 14px 16px; background: var(--panel); border: 1px solid rgba(255, 174, 46, .5); border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .2s, visibility .2s, transform .2s; }
.map__card::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.map__node--left .map__card { left: auto; right: -24px; }
.map__node--up .map__card { top: auto; bottom: 22px; }
.map__node--up .map__card::before { top: auto; bottom: -14px; }
.map__node:hover .map__card, .map__node:focus-within .map__card, .map__node.is-open .map__card { opacity: 1; visibility: visible; transform: none; }
.map__node.is-dismissed .map__card { opacity: 0; visibility: hidden; }
.map__card p { margin: 0; }
.map__card-role { color: var(--amber); font-size: 12px; font-weight: 600; line-height: 1.35; }
.map__card-title { font-family: var(--serif); font-size: 24px; line-height: 1.1; color: var(--paper) !important; margin: 4px 0 2px !important; }
.map__card-years { font-size: 13px; color: var(--muted) !important; }
.map__card-link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--amber); text-decoration: none; }
.map__card-link:hover { text-decoration: underline; }
.map__list { display: none; list-style: none; margin-top: 18px; border-left: 1.5px solid rgba(255, 174, 46, .6); padding-left: 14px; font-size: 15px; line-height: 1.5; }
.map__list ul { list-style: none; padding-left: 16px; }
.map__item { position: relative; padding: 5px 0; }
.map__item > a, .map__item > span { color: #dfe6ec; text-decoration: none; }
.map__item > a { text-decoration: underline; text-decoration-color: rgba(255, 174, 46, .5); text-underline-offset: 3px; }
.map__list > .map__item > a, .map__list > .map__item > span { color: var(--paper); font-weight: 600; }
.map__list > .map__item::before { content: ""; position: absolute; left: -20px; top: 13px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.map__list ul .map__item::before { content: ""; position: absolute; left: -15px; top: 7px; width: 8px; height: 8px; border-left: 1px solid var(--muted); border-bottom: 1px solid var(--muted); }
.map__item small { color: var(--muted); font-size: 13px; }
.map__item--next > span { color: var(--amber); font-style: italic; }

/* ---- Cards: featured work, the Work index, "what grew out of it" ---- */
.work { padding: 80px 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 22px; min-height: 170px; transition: transform .4s, border-color .4s, opacity .9s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(255, 174, 46, .6); }
/* Where :has() works, the keyboard ring goes round the whole card; elsewhere the link keeps its own ring. */
@supports selector(:has(*)) {
	.card:has(.card__link:focus-visible) { transform: translateY(-4px); border-color: rgba(255, 174, 46, .6); outline: 2px solid var(--amber); outline-offset: 3px; }
	.card__link:focus-visible { outline: none; }
}
.card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; }
.card__kicker { font-size: 12px; color: var(--amber); font-weight: 600; line-height: 1.35; }
.card__years { flex: none; color: var(--muted); font-size: 12px; }
.card__title { font-family: var(--serif); font-size: 28px; line-height: 1.05; margin: 10px 0 8px; }
.card__link { text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.card__text { font-size: 13.5px; margin: 0; line-height: 1.55; }
.cards--small .card { min-height: 0; padding: 18px; }
.cards--small .card__title { font-size: 24px; margin: 6px 0 0; }

/* ---- What's compounding now (spec §5.1 item 7) ---- */
.now { padding: 30px 0 80px; }
.now__list { list-style: none; }
.now__row { display: grid; grid-template-columns: 120px 1fr 160px; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); align-items: baseline; }
.now__year { font-family: var(--serif); font-size: 24px; color: var(--amber); }
.now__title { display: block; font-size: 17px; font-weight: 600; }
.now__text { display: block; color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.status { justify-self: end; font-size: 12px; font-weight: 600; color: var(--night); background: var(--amber); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

/* ---- Writing on the homepage (spec §5.1 item 8) and the Instagram strip ---- */
.writing { padding: 20px 0 60px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.post-card { border-top: 2px solid var(--amber); padding-top: 14px; }
.post-card__meta { color: var(--muted); font-size: 13px; margin: 0; }
.post-card__title { font-family: var(--serif); font-size: 22px; line-height: 1.15; margin: 8px 0 0; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { color: var(--amber); }
/* ---- "Lately, on Instagram" (spec §5.1 item 9): a heading and a link over the full-bleed strip ---- */
.ig { margin: 0; padding: 70px 0 0; }
.ig__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 22px; }
.ig__head .section-title { margin: 0; }
.ig__follow { color: var(--amber); font-size: 15px; font-weight: 600; text-decoration: none; }
.ig__follow:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Connect (spec §5.1 item 10): amber, ink text ---- */
.connect { background: var(--amber); color: var(--ink); padding: 80px 0; scroll-margin-top: var(--header-h); }
.connect__inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px; align-items: start; }
.connect__title { font-family: var(--serif); font-size: 56px; line-height: 1.02; letter-spacing: -.01em; color: var(--ink); margin: 0 0 16px; }
.connect p { color: var(--ink-soft); }
.connect__label { font-weight: 600; color: var(--ink) !important; margin: 6px 0 12px; }
.connect__email { margin: 0; }
.connect :focus-visible { outline-color: var(--ink); }
.connect a:not(.btn) { color: var(--ink); }

/* ---- The contact form (spec §8; JDS Site's jds_connect_form()): the approved mockup's tiles and fields, ink on amber.
   Field borders keep 3:1 against the amber (WCAG 1.4.11). States come from attributes the scripts set ([hidden],
   aria-invalid, aria-busy), never from added classes, so LiteSpeed's Unique CSS has nothing of ours to strip; the fields
   take their width from the column (inputs have size="1"), and the grids wrap, so nothing pushes a phone sideways. ---- */
.cform { position: relative; min-width: 0; }
.cform [hidden] { display: none !important; }
.connect .cform__note { margin: 0 0 18px; padding: 12px 16px; border: 1.5px solid var(--field-line); border-radius: 10px; background: var(--field); color: var(--ink); font-weight: 600; }
.connect .cform__status { margin: 0 0 18px; color: var(--ink); font-weight: 700; }
.connect .cform__status:empty { margin: 0; }
.connect .cform__alt { margin: -8px 0 18px; color: var(--ink); }
.cform__topics { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.cform__legend { margin: 0 0 10px; padding: 0; color: var(--ink); font-weight: 600; }
.cform__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.cform__tile { position: relative; display: block; min-width: 0; }
/* The radio itself covers its tile (no ring is ever drawn on something invisible): its focus ring is the tile's. */
.cform__radio { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; border-radius: 12px; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.cform__face { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px; padding: 14px 8px; border: 1.5px solid var(--field-line); border-radius: 12px; background: var(--field); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.25; text-align: center; transition: background-color .25s, color .25s, border-color .25s; }
.cform__icon { flex: none; width: 28px; height: 28px; }
.cform__radio:hover + .cform__face { border-color: var(--ink); }
.cform__radio:checked + .cform__face { background: var(--ink); border-color: var(--ink); color: var(--amber); }
.cform__radio:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cform__radio[aria-invalid="true"] + .cform__face, .cform__input[aria-invalid="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cform__field { min-width: 0; margin: 0 0 16px; }
.cform__label { display: block; margin: 0 0 6px; color: var(--ink); font-weight: 600; }
.cform__input { display: block; width: 100%; max-width: 100%; min-width: 0; margin: 0; padding: 12px 15px; border: 1.5px solid var(--field-line); border-radius: 10px; background: var(--field); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; }
textarea.cform__input { min-height: 140px; resize: vertical; }
.cform__input:hover { border-color: var(--ink); }
.cform__input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.cform__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 12px; }
.connect .cform__error { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 0; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.4; }
.cform__error::before { content: "!"; display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--ink); color: var(--amber); font-size: 12px; line-height: 1; }
.cform__ts { max-width: 100%; min-height: 65px; margin: 4px 0 16px; }
.connect .cform__ts-note { margin: 0 0 16px; color: var(--ink); font-weight: 600; }
.cform__retry { margin-left: 4px; padding: 6px 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: none; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.connect .cform__actions { margin: 6px 0 0; }
.cform__send { border: 0; font-family: inherit; cursor: pointer; }
.cform__send[aria-busy="true"] { cursor: progress; }
.connect .cform__done-title { margin: 0 0 10px; color: var(--ink); font-family: var(--serif); font-size: 40px; line-height: 1.05; }
/* Windows high contrast replaces the fills, so the chosen tile gets an outline in the system's highlight colour. */
@media (forced-colors: active) {
	.cform__radio:checked + .cform__face { outline: 3px solid Highlight; outline-offset: -6px; }
}

/* ---- Venture page (spec §5.2) ---- */
.vhero { position: relative; margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); min-height: calc(520px + var(--header-h) - 76px); display: flex; align-items: flex-end; overflow: clip; }
.vhero--photo { min-height: 520px; }
.vhero__media { position: absolute; inset: 0; overflow: hidden; }
.vhero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.vhero--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--night) 4%, rgba(16, 23, 30, .55) 45%, rgba(16, 23, 30, .25)); pointer-events: none; }
.vhero:not(.vhero--photo) { min-height: 440px; background: radial-gradient(circle at 70% 30%, #18242f 0, var(--night) 70%); }
.vhero:not(.vhero--photo) .vhero__text { padding-bottom: 130px; }
.vhero__line { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; }
.vhero__text { position: relative; z-index: 2; padding-bottom: 44px; }
.vhero__role { color: var(--amber); font-size: 13px; font-weight: 600; margin: 0; max-width: 640px; }
.vhero__title { font-family: var(--serif); font-size: 76px; line-height: .95; letter-spacing: -.015em; margin: 10px 0 14px; max-width: 760px; }
.vhero__lede { font-size: 18px; color: #e3dbd0; max-width: 600px; margin: 0; }
.vintro { display: grid; grid-template-columns: 1.6fr 1fr; gap: 50px; padding: 54px 0 40px; }
.vintro--solo { grid-template-columns: minmax(0, 780px); }
.vintro__prose p { line-height: 1.65; }
.vintro__prose a, .prose a, .chapter__text a { color: var(--amber); }
.facts { border-left: 2px solid var(--amber); padding-left: 22px; font-size: 14px; margin: 0; align-self: start; }
.facts__row { margin-bottom: 14px; }
.facts__row:last-child { margin-bottom: 0; }
.facts dt { color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.facts dd { margin: 0; color: var(--paper); line-height: 1.5; }
.prose, .vintro__prose, .facts dd { overflow-wrap: break-word; }
.story { position: relative; padding: 70px 0 30px; }
.story__line { position: absolute; top: 70px; bottom: 40px; left: calc((100% - min(100% - 2 * var(--gutter), var(--max))) / 2 + 23px); width: 4px; height: calc(100% - 110px); overflow: visible; }
.story__path { fill: none; stroke-width: 2; }
.story__inner { padding-left: 74px; }
.chapter { position: relative; margin-bottom: 56px; max-width: 640px; }
.chapter::before { content: ""; position: absolute; left: -56px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 6px rgba(255, 174, 46, .15); }
.chapter__year { font-family: var(--serif); color: var(--amber); font-size: 22px; line-height: 1.3; margin: 0; }
.chapter__title { font-family: var(--serif); font-size: 38px; line-height: 1.05; margin: 4px 0 10px; }
.chapter__text { font-size: 15.5px; line-height: 1.65; margin: 0 0 10px; }
.chapter__photo { margin: 12px 0 0; }
.chapter__photo img { width: 100%; border-radius: 8px; }
.chapter__from { margin: 4px 0 0; font-size: 14px; font-weight: 600; }
.chapter__from a { color: var(--amber); text-decoration: none; }
.chapter__from a:hover { text-decoration: underline; }
/* ---- "Things I've been told" (spec §2 rule 8): a quiet aside along the chapters, not a pull-quote ---- */
.told { padding: 0 0 56px; }
.told__box { margin-left: 74px; max-width: 640px; padding: 20px 24px; border: 1px dashed rgba(255, 174, 46, .45); border-radius: 12px; background: rgba(22, 33, 43, .6); }
.told__title { font-size: 14px; font-weight: 600; color: var(--amber); margin: 0 0 12px; }
.told__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.told__said { font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--paper); margin: 0; }
.told__since { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 4px 0 0; }

.grew { padding: 10px 0 60px; }
.grew__title { font-family: var(--serif); font-size: 34px; margin: 0 0 18px; }
.grew .cards { margin-top: 0; }
.credit { color: var(--muted); font-size: 12px; margin: 0 auto 22px; }
.pn { border-top: 1px solid var(--line); }
.pn__inner { display: flex; justify-content: space-between; gap: 24px; padding: 26px 0; }
.pn__link { color: var(--muted); font-size: 13px; text-decoration: none; }
.pn__link b { display: block; color: var(--paper); font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; margin-top: 4px; }
.pn__link:hover b { color: var(--amber); }
.pn__link--next { text-align: right; margin-left: auto; }

/* ---- Pages without a photo: Work index, Journey, Writing, posts, 404 ---- */
.page-head { padding: 64px 0 40px; }
.page-title { font-family: var(--serif); font-size: 76px; line-height: .95; letter-spacing: -.015em; margin: 0 0 16px; max-width: 900px; }
.page-lede, .page-lede p { font-size: 18px; color: #e3dbd0; max-width: 640px; }
.page-head--post .page-title { font-size: 56px; line-height: 1.02; }
.page-head--404 { padding: 110px 0 120px; }
.work-group { padding: 34px 0 30px; }
.work-group__title { font-family: var(--serif); font-size: 44px; line-height: 1; border-top: 1px solid var(--line); padding-top: 26px; }
.story--journey { padding-top: 40px; }
.year-group { margin-bottom: 20px; }
.year-group__year { font-family: var(--serif); color: var(--amber); font-size: 54px; line-height: 1; margin: 0 0 20px -2px; }
.story--journey .chapter__title { font-size: 30px; }
.post-list { list-style: none; padding-bottom: 40px; }
.post-row { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.post-row--photo { grid-template-columns: 1fr 240px; }
.post-row__photo { order: 2; }
.post-row__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.post-row__meta { color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.post-row__title { font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.post-row__title a { text-decoration: none; }
.post-row__title a:hover { color: var(--amber); }
.post-row__text { margin: 10px 0 0; font-size: 15px; }
.pagination { padding: 10px 0 60px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--paper); }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { border-color: var(--amber); color: var(--amber); }
.entry__photo { margin: 0 auto 34px; }
.entry__photo img { width: 100%; border-radius: 8px; }
.prose { padding-bottom: 60px; font-size: 17px; line-height: 1.7; }
.prose p, .prose li { color: var(--text); }
.prose h2, .prose h3 { font-family: var(--serif); color: var(--paper); line-height: 1.1; margin: 1.6em 0 .5em; }
.prose h2 { font-size: 36px; }
.prose h3 { font-size: 28px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose blockquote { margin: 1.5em 0; padding-left: 22px; border-left: 2px solid var(--amber); font-family: var(--serif); font-size: 26px; line-height: 1.25; }
.prose blockquote p { color: var(--paper); }
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.prose .wp-caption, .prose figure { max-width: 100%; }
.prose figure { margin: 1.5em 0; }
.prose figcaption, .prose .wp-caption-text { color: var(--muted); font-size: 13px; margin-top: 6px; }
.prose iframe, .prose video { max-width: 100%; }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; }
.prose .aligncenter { margin-inline: auto; }
.prose::after { content: ""; display: table; clear: both; }
.empty { padding: 20px 0 60px; }

/* ---- When JDS Site is not active ---- */
.updating { padding: 80px 0; }
.updating__title { font-family: var(--serif); font-size: 34px; color: var(--paper); margin: 0 0 6px; }

/* ---- Footer (spec §4) ---- */
.site-footer { padding: 34px 0; border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px 30px; flex-wrap: wrap; }
.site-footer__sig { font-size: 26px; margin: 0; padding: 4px 6px 0 2px; }
.site-footer__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--muted); font-size: 13px; }
.site-footer__meta li:not(:last-child)::after { content: "·"; margin: 0 9px; }
.site-footer__meta a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(147, 160, 172, .4); text-underline-offset: 3px; }
.site-footer__meta a:hover { color: var(--amber); }

/* ---- Motion (spec §6). Before states need .motion (see the top of this file). Lines are solid in their final
   state; the dash that draws them exists only while the motion runs. ---- */
@view-transition { navigation: auto; }
.rv { transition: opacity .9s ease, transform .9s var(--ease); }
@media screen and (prefers-reduced-motion: no-preference) {
	.motion .rv:not(.in) { opacity: 0; transform: translateY(18px); }
	.motion .present:not(.in) .present__bar { transform: scaleY(0); }
	.motion .present__ch.in::after { animation: jds-ring 1.2s ease-out .35s 1; }
	.motion .map__line:not(.map__line--next), .motion .story__path { stroke-dasharray: 1; }
	.motion .map:not(.in) .map__line { stroke-dashoffset: 1; }
	.motion .map:not(.in) .map__line--next, .motion .map:not(.in) .map__arc, .motion .map:not(.in) .map__arc-label, .motion .map:not(.in) .map__label { opacity: 0; }
	.motion .map:not(.in) .map__dot { opacity: 0; transform: scale(.2); }
}
.sig-draw .hero__sig { animation: jds-sig 2.4s ease-out .2s backwards; }
.sig-draw .hero__line path { animation: jds-draw 2.6s ease .8s backwards; }
.drift img { animation: jds-drift 9s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes jds-sig { from { clip-path: inset(-40% 100% -60% -10%); } to { clip-path: inset(-40% -10% -60% -10%); } }
@keyframes jds-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes jds-drift { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes jds-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }

/* ---- Tablets ---- */
@media (max-width: 1024px) {
	:root { --gutter: 40px; }
	.hero__text { width: min(470px, 52%); }
	.hero__title { font-size: 54px; }
	.cards { grid-template-columns: repeat(2, 1fr); }
	.posts { grid-template-columns: 1fr 1fr; }
	.prologue__list { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
	.prologue__list::before { display: none; }
}

/* Below 600px WordPress lets the admin bar scroll away, so the sticky header sits at the very top. */
@media (max-width: 600px) {
	.site-header { top: 0; }
}

/* ---- Phones (spec §6.10): the thread runs down the left edge; the map becomes a list ---- */
@media (max-width: 760px) {
	.site-nav:not(:popover-open) .menu-close { display: none; }
	.menu-toggle { display: inline-flex; }
	.site-nav:popover-open { position: fixed; inset: 0; z-index: 90; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 104px 28px 40px; border: 0; background: var(--night); color: var(--paper); overflow: auto; }
	.site-nav:popover-open .site-nav__list { flex-direction: column; gap: 4px; }
	.site-nav:popover-open a { font-family: var(--serif); font-size: 46px; line-height: 1.15; color: var(--paper); padding: 4px 0; }
	.site-nav:popover-open a[aria-current="page"] { color: var(--amber); }
	.site-nav:popover-open .menu-close { display: inline-flex; position: absolute; top: 18px; right: 20px; }
	.site-nav::backdrop { background: var(--night); }
}
@supports not selector(:popover-open) {
	.menu-toggle, .menu-close { display: none !important; }
}
@media (max-width: 700px) {
	/* Photo drift stays on below 700px (spec §6.6): the Phase 2 phone test held 60 fps with it at 4× CPU slowdown. */
	:root { --gutter: 20px; --header-h: 64px; --header-shrink: 8px; }
	.site-header__sig { font-size: 26px; }
	.section-title { font-size: 34px; }
	.hero { min-height: 0; }
	.hero__media { position: relative; width: 100%; height: min(108vw, 500px); margin-top: calc(-1 * var(--header-h)); -webkit-mask-image: linear-gradient(#000 58%, transparent); mask-image: linear-gradient(#000 58%, transparent); }
	.hero__media img { object-position: 62% 25%; }
	.hero--photo .hero__inner { margin-top: -30vw; }
	.hero__text { width: auto; padding: 24px 0 56px 14px; }
	.hero__sig { font-size: 44px; }
	.hero__title { font-size: 46px; margin: 10px 0 14px; }
	.hero__intro { font-size: 16px; }
	.hero__line { display: none; }
	.hero--home::after { content: ""; position: absolute; left: calc(var(--gutter) - 2px); width: 2px; bottom: 0; height: 46%; background: linear-gradient(rgba(255, 174, 46, 0), var(--amber)); }
	.thread { padding: 40px 0 56px; }
	.thread .section-head, .prologue { padding-left: 18px; }
	.prologue { margin: 26px 0 48px; }
	.prologue__list { grid-template-columns: 1fr; gap: 14px; }
	.prologue__item { padding: 0 0 0 4px; }
	.prologue__item::before { left: -20px; top: 7px; }
	.prologue__year { display: inline; font-size: 20px; margin-right: 6px; }
	.thread { position: relative; }
	.thread::before { content: ""; position: absolute; left: calc(var(--gutter) - 2px); top: 0; bottom: 56px; width: 2px; background: linear-gradient(var(--amber), rgba(255, 174, 46, .55) 30%); }
	.present { padding-left: 36px; }
	.present__bar { left: -4px; width: 6px; top: 0; }
	.present__ch { margin-bottom: 48px; }
	.present__ch::before, .present__ch::after { left: -47px; top: 12px; width: 16px; height: 16px; }
	.present__ch::before { box-shadow: 0 0 0 6px rgba(255, 174, 46, .16); }
	.present__year { font-size: 52px; }
	.present__title { font-size: 30px; }
	.present__photos { grid-template-columns: 1fr; }
	.present__photos img { height: auto; aspect-ratio: 3 / 2; }
	.impact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
	.impact__item { padding: 24px 20px; border-bottom: 1px solid var(--line); }
	.impact__item:nth-child(2n) { border-right: 0; }
	.impact__item:nth-last-child(-n + 2):nth-child(odd), .impact__item:nth-last-child(-n + 2):nth-child(odd) ~ .impact__item { border-bottom: 0; }
	.impact__item:only-child { border-bottom: 0; }
	.count, .impact--venture .count { font-size: 40px; }
	.quote { padding: 70px 0; }
	.quote__text p { font-size: 30px; }
	.quote--venture .quote__text { margin-left: 0; }
	.quote--venture .quote__text p { font-size: 26px; }
	.map { padding: 56px 0 40px; }
	.ig { padding-top: 56px; }
	.map__canvas { display: none; }
	.map__list { display: block; }
	.work { padding: 56px 0; }
	.cards { grid-template-columns: 1fr; }
	.card { min-height: 0; }
	.now { padding: 20px 0 56px; }
	.now__row { grid-template-columns: 1fr auto; gap: 4px 14px; }
	.now__year { grid-column: 1; }
	.status { grid-column: 2; grid-row: 1; align-self: center; }
	.now__body { grid-column: 1 / -1; }
	.posts { grid-template-columns: 1fr; gap: 20px; }
	.connect { padding: 56px 0; }
	.connect__inner { grid-template-columns: 1fr; gap: 20px; }
	.connect__title { font-size: 44px; }
	.vhero, .vhero--photo { min-height: 0; display: block; }
	.vhero__media { position: relative; height: min(100vw, 460px); margin-top: calc(-1 * var(--header-h)); }
	.vhero--photo::after { bottom: auto; height: min(100vw, 460px); top: 0; }
	.vhero--photo .vhero__text { margin-top: -26vw; }
	.vhero:not(.vhero--photo) .vhero__text { padding-top: 80px; padding-bottom: 100px; }
	.vhero__line { height: 80px; }
	.vhero__title { font-size: 48px; }
	.vhero__lede { font-size: 16px; }
	.vintro { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 30px; }
	.story { padding: 48px 0 20px; }
	.story__line { left: calc(var(--gutter) - 1px); top: 48px; height: calc(100% - 78px); }
	.story__inner { padding-left: 30px; }
	.told__box { margin-left: 30px; padding: 18px 18px; }
	.chapter { margin-bottom: 44px; }
	.chapter::before { left: -34px; top: 9px; width: 10px; height: 10px; box-shadow: 0 0 0 5px rgba(255, 174, 46, .15); }
	.chapter__title { font-size: 30px; }
	.story--journey .chapter__title { font-size: 26px; }
	.year-group__year { font-size: 44px; }
	.pn__link b { font-size: 20px; }
	.page-head { padding: 40px 0 28px; }
	.page-title { font-size: 48px; }
	.page-head--post .page-title { font-size: 38px; }
	.page-lede, .page-lede p { font-size: 16px; }
	.post-row--photo { grid-template-columns: 1fr; }
	.post-row__photo { order: 0; }
	.post-row__title { font-size: 26px; }
	.prose { font-size: 16px; }
	.prose .alignleft, .prose .alignright { float: none; margin: 1em 0; }
	.site-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ---- Reduced motion (spec §6.8): nothing moves; every line, number and reveal shows in its final state ---- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	@view-transition { navigation: none; }
}
/* Print and Save as PDF show the final state at once: nothing fades or moves on paper (jds.js settles the rest). */
@media print {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
