@font-face { font-family: "Gloock"; src: url("../fonts/gloock-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
:root {
  color-scheme: dark;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(72% 0.15 27); --color-success: oklch(76% 0.13 150);
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: oklch(7% 0.004 60); --color-paper-2: oklch(11% 0.005 60); --color-paper-3: oklch(15.5% 0.006 60);
  --color-ink: oklch(97% 0.004 80); --color-ink-2: oklch(80% 0.006 80); --color-muted: oklch(66% 0.008 80);
  --color-rule: oklch(100% 0 0 / 0.14);
  /* Ember 2 surfaces: the page stays black. Bands and cards are lighter steps of the same warm black, so sections separate without lines. */
  --color-band: oklch(17% 0.007 60); --color-card: oklch(21% 0.008 60); --color-card-2: oklch(26% 0.009 60);
  --color-edge: oklch(100% 0 0 / 0.07); --color-field-edge: oklch(58% 0.008 80);
  /* Ember 2 accents, one per section. A section picks one with data-accent; everything inside reads --accent.
     Text on a filled accent is always --color-accent-ink. Ratios are checked by tools/check_contrast.py. */
  --accent-ember: oklch(74% 0.18 50); --accent-teal: oklch(79% 0.11 190); --accent-cream: oklch(91% 0.055 85);
  --heat-line: linear-gradient(90deg, var(--heat-2), var(--heat-3) 35%, var(--heat-4) 65%, var(--heat-5));
  --color-accent: oklch(72% 0.19 48); --color-accent-ink: oklch(12% 0.01 60); --color-focus: oklch(76% 0.19 56);
  --heat-0: oklch(12% 0.012 40); --heat-1: oklch(22% 0.07 22); --heat-2: oklch(40% 0.16 27); --heat-3: oklch(60% 0.21 36);
  --heat-4: oklch(76% 0.19 56); --heat-5: oklch(89% 0.14 78); --heat-6: oklch(98% 0.04 95);
  --font-display: "Gloock", "Iowan Old Style", Georgia, serif; --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: "Geist Mono", ui-monospace, monospace;
  --radius-card: 20px; --radius-well: 12px; --radius-btn: 8px; --radius-pill: 999px; --rule-hair: 1px;
  --shadow-card: 0 40px 80px -30px oklch(0% 0 0 / 0.8);
  /* the arrow on secondary links, used as a mask so it takes the text colour */
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4'/%3E%3C/svg%3E");
  --tracking-display: -0.02em; --display-weight: 400;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 35%, transparent); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
/* photographs: warm sepia=50 sat=-12 con=8 exp=-6 */
[data-slot] > img { filter: sepia(0.5) saturate(0.88) contrast(1.08) brightness(0.94); }

/* athanor.com.au: Ember 2 (25 Nov 2026). Brief in docs/redesign-plan.md, rules in CLAUDE.md.
 * Black base. Sections separate with space, lighter bands and cards: no divider lines anywhere.
 * Each section picks one accent with data-accent. The accent colours its label dot, one heading word and its main button.
 * tokens.css and base.css are linked in the page head, before this file. No raw colours or fonts in here. */

:root { --mast-h: 72px; --accent: var(--accent-ember); }
[data-accent="ember"] { --accent: var(--accent-ember); }
[data-accent="teal"] { --accent: var(--accent-teal); }
[data-accent="cream"] { --accent: var(--accent-cream); }

/* ---------- the system: bands, cards, labels, two-tone headings ---------- */
.band { background: var(--color-band); }
.card { background: var(--color-card); border-radius: var(--radius-card); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-edge); padding: var(--space-xl); min-width: 0; }
.label { display: flex; align-items: center; gap: var(--space-sm); font-size: var(--text-sm); line-height: 1.3; color: var(--color-ink-2); }
.label::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
/* Gloock is set tight for display sizes. Below that the word gaps close up, so small serif text gets normal tracking and a little more word space. */
.steps__name, .duo__asks li, .path__quote, .build__problem, .picker__problem, .paper__kicker, .build__pending, .cards__name, .pair__name, .stack__name, .sites__name, .proof__line { letter-spacing: 0; word-spacing: 0.06em; }
.dim { color: var(--color-muted); }
.hot { color: var(--accent); }
.sec { padding-block: var(--section-gap-s); }
/* two black sections in a row have no band between them, so one gap is enough */
.sec:not(.band) + .sec:not(.band) { padding-top: var(--space-xl); }
.sec__head { display: grid; gap: var(--space-lg); justify-items: start; margin-bottom: var(--space-2xl); }
.sec__head .lead { color: var(--color-ink-2); max-width: 44ch; }

/* ---------- buttons: primary is filled in the section accent, secondary is a text link with an arrow ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 50px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-btn);
  font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--primary { background: var(--accent); color: var(--color-accent-ink); }
.btn--primary:hover, .btn--primary:focus-visible { background: color-mix(in oklab, var(--accent) 88%, var(--color-ink)); }
.btn--quiet { background: var(--color-card-2); color: var(--color-ink); }
.btn--quiet:hover { background: color-mix(in oklab, var(--color-card-2) 85%, var(--color-ink)); }
.btn--link { padding: 0; min-height: 44px; color: var(--color-ink); background: transparent; }
.btn--link::after { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--icon-arrow) center / contain no-repeat; mask: var(--icon-arrow) center / contain no-repeat; transition: transform var(--dur-short) var(--ease-out); }
.btn--link:hover::after, .btn--link:focus-visible::after { transform: translateX(4px); }
.btn--link:hover { color: var(--color-ink-2); }
.btn__spin { display: none; width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; }
.btn[aria-busy="true"] .btn__spin { display: inline-block; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-btn); }
.skip:focus-visible { top: var(--space-md); }

/* ---------- masthead ---------- */
.mast__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-lg); min-height: var(--mast-h); }
.mast__links { display: flex; gap: var(--space-lg); }
.mast__links a, .mast__action { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-sm); }
.mast__links a { color: var(--color-ink-2); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.mast__links a:hover, .mast__links a[aria-current="page"] { color: var(--color-ink); }
.mast__links a[aria-current="page"], .mast__action[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.4em; }
.wordmark { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--color-ink); }
.mast__action { justify-self: end; }

/* ---------- home hero: the forge sits centred above the words ---------- */
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-lg); padding-block: var(--space-lg) var(--section-gap-s); }
.hero__field { position: relative; width: min(84%, 410px); aspect-ratio: 1; margin: calc(-1 * var(--space-lg)) 0; }
/* the clip sits on pure black: screen blending drops the black so the mark floats with no visible edge */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen;
  /* a soft fade on all four edges, in case the browser does not blend video: the clip has black padding so the mark is never cut */
  -webkit-mask-image: linear-gradient(to right, transparent, var(--color-ink) 9%, var(--color-ink) 91%, transparent), linear-gradient(to bottom, transparent, var(--color-ink) 9%, var(--color-ink) 91%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, var(--color-ink) 9%, var(--color-ink) 91%, transparent), linear-gradient(to bottom, transparent, var(--color-ink) 9%, var(--color-ink) 91%, transparent); mask-composite: intersect; }
.hero__ledge { display: grid; justify-items: center; gap: var(--space-lg); padding-top: var(--space-lg); }
.hero__ledge h1 { max-width: 16ch; line-height: 1.06; }
.hero__aside { display: grid; justify-items: center; gap: var(--space-lg); }
.hero__aside .lead { color: var(--color-ink-2); max-width: 66ch; text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-sm) var(--space-lg); }

/* ---------- problem picker: one card per problem ---------- */
.picker__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-lg) var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.picker__head .label { grid-column: 1 / -1; }
.picker__head .lead { color: var(--color-ink-2); max-width: 40ch; }
.picker__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.picker__link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--gap-columns); min-height: 132px; color: var(--color-ink); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.picker__link:hover, .picker__link:focus-visible { background: var(--color-card-2); }
.picker__problem { font-family: var(--font-display); font-size: var(--text-section); line-height: 1.08; max-width: 26ch; text-wrap: balance; }
.picker__go { width: 24px; height: 24px; background: var(--color-ink-2); -webkit-mask: var(--icon-arrow) center / contain no-repeat; mask: var(--icon-arrow) center / contain no-repeat; transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.picker__link:hover .picker__go, .picker__link:focus-visible .picker__go { transform: translateX(6px); background: var(--color-ink); }
.picker__after { padding-top: var(--space-xl); font-size: var(--text-lg); line-height: 1.4; color: var(--color-ink-2); max-width: 60ch; }
/* on a band, a card needs one step more to stand off it */
.band .picker__link, .band .build { background: var(--color-card-2); }
.band .picker__link:hover, .band .picker__link:focus-visible { background: color-mix(in oklab, var(--color-card-2) 90%, var(--color-ink)); }
.picker--compact .picker__head { grid-template-columns: minmax(0, 1fr); margin-bottom: var(--space-xl); }
.picker--compact .picker__list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.picker--compact .picker__item { display: grid; }
.picker--compact .picker__problem { font-size: var(--text-2xl); }

/* ---------- builds: a sideways rail, the problem as each headline ---------- */
.builds { --rail-edge: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); }
.builds__head { display: grid; gap: var(--space-lg); margin-bottom: var(--space-2xl); }
.builds__head .lead { color: var(--color-ink-2); max-width: 40ch; }
.rail-wrap { --card-w: min(76vw, 600px); position: relative; }
.rail { display: flex; gap: var(--space-lg); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rail-edge); padding: var(--space-2xs) var(--rail-edge) var(--space-md); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.rail__btn { position: absolute; z-index: var(--z-raised); top: calc(var(--space-2xs) + var(--card-w) * 0.3125); transform: translateY(-50%); width: 56px; height: 56px; border: 0; border-radius: var(--radius-well); cursor: pointer; display: grid; place-items: center; color: var(--color-ink); background: color-mix(in oklab, var(--color-card-2) 88%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color var(--dur-short) var(--ease-out), opacity var(--dur-short) var(--ease-out); }
.rail__btn--prev { left: var(--space-lg); }
.rail__btn--next { right: var(--space-lg); }
.rail__btn::after { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--icon-arrow) center / contain no-repeat; mask: var(--icon-arrow) center / contain no-repeat; }
.rail__btn--prev::after { transform: scaleX(-1); }
.rail__btn:hover { background: color-mix(in oklab, var(--color-card-2) 80%, var(--color-ink)); }
.rail__btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.rail__btn.is-off { opacity: 0; pointer-events: none; }
.build { flex: 0 0 var(--card-w); scroll-snap-align: start; display: grid; gap: 0; padding: 0; overflow: hidden; grid-template-rows: auto 1fr; }
.build__pic { display: block; min-width: 0; overflow: hidden; }
.build__pic img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; transition: transform var(--dur-long) var(--ease-out); }
a.build__pic:hover img { transform: scale(1.02); }
.build__pic--pending { display: grid; align-content: center; gap: var(--space-sm); aspect-ratio: 16 / 10; padding: var(--space-xl); background: var(--color-card-2); color: var(--color-ink-2); }
.build__pending { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.15; color: var(--color-ink); }
/* a build with no screenshot to show: the case study */
.build__pic--panel { display: grid; align-content: end; aspect-ratio: 16 / 10; padding: var(--space-xl); background: var(--color-paper); text-decoration: none; }
.build__pic--panel .build__pending { font-size: clamp(2rem, 2.6vw + 1rem, 3.5rem); line-height: 1.02; max-width: 12ch; text-wrap: balance; }
.build__text { display: flex; flex-direction: column; gap: var(--space-sm); align-items: flex-start; padding: var(--space-lg) var(--space-xl) var(--space-xl); }
.build__problem { font-size: var(--text-2xl); line-height: 1.1; max-width: 24ch; }
.build__result { font-size: var(--text-md); color: var(--color-ink-2); max-width: 44ch; }
.build__name { color: var(--color-muted); font-size: var(--text-sm); }
/* the link sits at the bottom of every card, so a row of cards lines up */
.build__link { margin-top: auto; }
/* two builds fill the row instead of leaving a gap at the end */
@media (min-width: 60rem) { .rail:has(> .build:nth-child(2):last-child) .build { flex-basis: calc((100% - var(--space-lg)) / 2); } }
.builds__more { padding-top: var(--space-lg); }
.builds + .builds { padding-top: 0; }

/* ---------- service pages: heading beside a panel ---------- */
.path { padding-block: var(--section-gap-s) var(--space-2xl); }
.path__inner { display: grid; gap: var(--space-2xl); }
.path__text { display: grid; gap: var(--space-lg); align-content: center; justify-items: start; min-width: 0; }
.path--stage { padding-block: var(--space-2xl) var(--section-gap-s); }
.path--stage .path__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.path__title { font-size: var(--text-display-s); line-height: 1.05; max-width: 18ch; }
.path__aside { display: grid; gap: var(--space-lg); justify-items: start; min-width: 0; }
.path__quote { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.25; color: var(--color-ink-2); max-width: 30ch; text-wrap: balance; }
.path__body { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 52ch; }
/* no panel: the heading goes large on the left, the quote, line and button sit on the right */
.path--open { padding-block: var(--space-3xl) var(--space-2xl); }
.path--open .path__text { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); align-items: end; }
.path--open .path__title { font-size: var(--text-display); line-height: 1; max-width: 14ch; }

/* the panel beside a heading: a real screenshot */
.demo { margin: 0; padding: var(--space-sm); }
.demo__cap a { display: inline-block; padding-block: var(--space-xs); color: var(--color-ink-2); }
.demo__cap { padding: var(--space-md) var(--space-md) var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.demo__shot { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; border-radius: var(--radius-well); }

/* ---------- /work/ and /about/ ---------- */
.case .sec__head .lead { max-width: 60ch; }
.band .cards__item { background: var(--color-card-2); }
.founder__card { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; padding: var(--space-sm) var(--space-2xl) var(--space-sm) var(--space-sm); background: var(--color-card-2); }
/* the photo goes here (ABOUT['photo']); until then the forge mark holds the space */
.founder__photo { display: grid; place-items: center; height: 100%; min-height: 420px; overflow: hidden; border-radius: var(--radius-well); background: var(--color-paper); }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__photo .founder__mark { width: 240px; height: auto; mix-blend-mode: screen; }
.founder__text { display: grid; gap: var(--space-md); padding-block: var(--space-xl); }
.founder__text h2 { margin-bottom: var(--space-sm); }
.founder__text p { line-height: 1.6; color: var(--color-ink-2); max-width: 62ch; }
.founder__text h2 + p { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink); }
.details { padding-bottom: var(--section-gap-s); }
.details__card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--space-3xl); }
.details__card h2 { font: 500 var(--text-md)/1.45 var(--font-body); letter-spacing: 0; margin-bottom: var(--space-2xs); }
.details__card p { font-size: var(--text-sm); color: var(--color-ink-2); max-width: 60ch; }

/* ---------- story blocks (one per kind in build_pages.py): each has its own shape ---------- */
/* statement: one very large line */
.statement { padding-block: var(--section-gap); }
.statement__line { font-family: var(--font-display); font-size: var(--text-display); line-height: 1.04; letter-spacing: var(--tracking-display); max-width: 20ch; text-wrap: balance; }
.statement__line span { display: block; }

/* steps: three numbered cards. The one with a price is filled with the section accent and carries the price. */
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr); gap: var(--space-md); }
.steps__item { display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-lg); min-height: 340px; }
.steps__num { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1; color: var(--color-muted); }
.steps__name { font-size: var(--text-2xl); line-height: 1.1; max-width: 12ch; align-self: start; }
.steps__text { color: var(--color-ink-2); line-height: 1.45; max-width: 32ch; text-wrap: balance; }
.steps__item--lit { background: var(--accent); box-shadow: none; color: var(--color-accent-ink); }
.steps__item--lit .steps__num, .steps__item--lit .steps__text { color: var(--color-accent-ink); }
.steps__foot { display: grid; gap: var(--space-md); }
.steps__price { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-md); }
.steps__sum { font-family: var(--font-display); font-size: clamp(3rem, 3vw + 1.5rem, 4.5rem); line-height: 1; letter-spacing: var(--tracking-display); }
.steps__terms { font-size: var(--text-sm); line-height: 1.35; font-weight: 500; }
.steps__terms span { display: block; }
.steps__action { margin-top: var(--space-xl); }

/* sheet: text beside the example document */
.sheet__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: center; }
.sheet .sec__head { margin-bottom: 0; }
.paper { margin: 0; }
.paper__page { display: grid; gap: var(--space-xs); padding: var(--space-lg); }
.paper__kicker { padding: var(--space-xs) var(--space-md) var(--space-md); font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.2; }
.paper__block { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-xs) var(--space-lg); padding: var(--space-lg) var(--space-md); border-radius: var(--radius-well); background: var(--color-card-2); }
.paper__head { font-family: var(--font-body); font-weight: 500; font-size: var(--text-md); line-height: 1.45; letter-spacing: 0; }
.paper__block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); color: var(--color-ink-2); }

/* look: four short items with big numbers */
.look__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); }
.look__item { display: grid; align-content: start; gap: var(--space-md); }
.look__num { font-family: var(--font-display); font-size: clamp(4.5rem, 7vw, 8rem); line-height: 0.85; letter-spacing: var(--tracking-display); color: var(--color-muted); }
.look__text { font-size: var(--text-lg); line-height: 1.3; max-width: 16ch; text-wrap: balance; }

/* pull: full width band, one very large line */
.pull__inner { display: grid; gap: var(--space-xl); justify-items: start; }
.pull__line { font-size: var(--text-display); line-height: 1; max-width: 16ch; }
.pull__line--wide { font-size: var(--text-display-s); line-height: 1.05; max-width: 26ch; }
.pull__side { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-lg) var(--space-3xl); width: 100%; }
.pull__side p { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 62ch; }

/* duo: two short columns */
.duo__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3xl); }
.duo__col { display: grid; align-content: start; gap: var(--space-lg); }
.duo__col h2 { font-family: var(--font-body); font-size: var(--text-sm); letter-spacing: 0; }
.duo__col p { font-size: var(--text-lg); line-height: 1.4; max-width: 60ch; }
.duo__asks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); }
.duo__asks li { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.25; max-width: 28ch; text-wrap: balance; }

/* cards: name and one line. Widths come from spans in content.py, out of 12 columns */
.cards__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-md); }
.cards__item { grid-column: span 4; display: grid; grid-template-rows: 1fr auto; gap: var(--space-xl); min-height: 220px; }
.cards__item--6 { grid-column: span 6; }
.cards__name { font-size: var(--text-2xl); line-height: 1.1; }
.cards__text { color: var(--color-ink-2); line-height: 1.45; max-width: 64ch; text-wrap: balance; }
.cards__item--small { grid-column: 1 / -1; min-height: 0; grid-template: auto / auto 1fr; align-items: baseline; gap: var(--space-xs) var(--space-lg); padding-block: var(--space-lg); }
.cards__item--small .cards__name { font-size: var(--text-xl); }

/* pair: two plain columns of short lines */
.pair__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl) var(--space-3xl); }
.pair__col { display: grid; align-content: start; gap: var(--space-lg); }
.pair__name { font-size: var(--text-section); line-height: 1.05; }
.sec__head + .pair__inner .pair__name { font-size: var(--text-2xl); }
.pair > .container > .label, .proof > .container > .label { margin-bottom: var(--space-lg); }
.pair__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); font-size: var(--text-lg); line-height: 1.4; color: var(--color-ink-2); }
.pair__note { display: grid; gap: var(--space-xs); margin-top: var(--space-md); padding: var(--space-lg); color: var(--color-ink-2); }
.pair__note h3, .pair__note h4 { margin: 0; font: 500 var(--text-md)/1.45 var(--font-body); letter-spacing: 0; color: var(--color-ink); }

/* proof: one line and one link */
.proof__inner { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-lg) var(--space-3xl); }
.proof__line { font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1.15; max-width: 34ch; text-wrap: balance; }

/* prices: large, one per line */
.prices__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-lg) var(--space-3xl); align-items: end; }
.prices__inner .label { grid-column: 1 / -1; }
.prices__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); font-family: var(--font-display); font-size: clamp(2.5rem, 4vw + 0.5rem, 4.25rem); line-height: 1.04; letter-spacing: var(--tracking-display); }
.prices__side { display: grid; gap: var(--space-lg); justify-items: start; }
.prices__list li { text-wrap: balance; }
.prices__side p { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 26ch; }

/* sites: five cards in a row, each with a plain layout sketch */
.sites__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-md); }
.sites__item { display: grid; align-content: space-between; gap: var(--space-xl); padding: var(--space-lg); }
.sites__sketch { width: 100%; height: auto; fill: color-mix(in oklab, var(--color-card-2) 82%, var(--color-ink)); }
.sites__sketch rect { rx: 2px; }
.sites__sketch .on { fill: var(--color-muted); }
.sites__name { font-size: var(--text-xl); line-height: 1.15; min-height: 2.3em; display: grid; align-content: end; }

/* stack: numbered cards beside the heading */
.stack__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl) var(--gap-columns); align-items: start; }
.stack__inner .sec__head { margin-bottom: 0; position: sticky; top: var(--space-2xl); }
.stack__inner .sec__head h2 { max-width: 12ch; }
.stack__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.stack__item { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--space-xs) var(--space-lg); align-items: baseline; padding: var(--space-lg) var(--space-xl); }
.stack__num { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1; color: var(--color-muted); }
.stack__name { font-size: var(--text-2xl); line-height: 1.1; }
.stack__text { grid-column: 2; color: var(--color-ink-2); line-height: 1.45; }

/* names: platform names in large type */
.names__inner { display: grid; gap: var(--space-lg); justify-items: start; }
.names__line { font-size: var(--text-display); line-height: 1.04; max-width: 24ch; }
.names__inner .lead { color: var(--color-ink-2); max-width: 60ch; }

/* ---------- faq: folded cards ---------- */
.faq__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.faq__inner h2 { max-width: 12ch; }
.faq__inner .sec__head { margin-bottom: 0; }
.faq__list { display: grid; gap: var(--space-xs); }
.faq details { padding: 0 var(--space-lg); border-radius: var(--radius-well); scroll-margin-top: var(--space-2xl); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 68px; padding-block: var(--space-md); cursor: pointer; list-style: none; font-size: var(--text-lg); line-height: 1.3; color: var(--color-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 16px; height: 16px; background: var(--color-muted); -webkit-mask: var(--icon-arrow) center / contain no-repeat; mask: var(--icon-arrow) center / contain no-repeat; transform: rotate(90deg); transition: transform var(--dur-short) var(--ease-in-out); }
.faq details[open] summary::after { transform: rotate(-90deg); }
.faq summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-btn); }
.faq details p { padding-bottom: var(--space-lg); font-size: var(--text-md); line-height: 1.6; color: var(--color-ink-2); max-width: 60ch; }

/* ---------- end band: every page finishes on one line and one button ---------- */
.ask__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl) var(--gap-columns); align-items: end; }
.ask__head { display: grid; gap: var(--space-lg); }
.ask__side { display: grid; gap: var(--space-lg); justify-items: start; }
.ask__side .lead { color: var(--color-ink-2); max-width: 34ch; }

/* ---------- contact: form ---------- */
.contact { padding-block: var(--section-gap-s) var(--section-gap); }
.contact__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-2xl) var(--space-3xl); align-items: start; }
.contact__head { display: grid; gap: var(--space-lg); justify-items: start; position: sticky; top: var(--space-2xl); }
.contact__head h1 { font-size: var(--text-display-s); max-width: 12ch; }
.contact__head h2 { max-width: 12ch; }
.contact__head .lead { color: var(--color-ink-2); max-width: 36ch; }
.contact__direct { color: var(--color-ink-2); }
.contact__direct a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); }

.enquiry { display: grid; gap: var(--space-md); }
.field { display: grid; gap: var(--space-xs); }
.field label { font-size: var(--text-sm); color: var(--color-ink-2); }
.field input, .field textarea, .field select { width: 100%; min-height: 52px; padding: var(--space-sm) var(--space-md); background: var(--color-band); color: var(--color-ink); border: var(--rule-hair) solid var(--color-field-edge); border-radius: var(--radius-btn); outline: 2px solid transparent; outline-offset: -2px; transition: border-color var(--dur-short) var(--ease-out); }
.field select { appearance: none; padding-right: var(--space-2xl); cursor: pointer; }
.field__select { position: relative; }
.field__select::after { content: ""; position: absolute; right: var(--space-md); top: 50%; width: 16px; height: 16px; background: var(--color-muted); -webkit-mask: var(--icon-arrow) center / contain no-repeat; mask: var(--icon-arrow) center / contain no-repeat; transform: translateY(-50%) rotate(90deg); pointer-events: none; }
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--color-ink-2); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline-color: var(--color-focus); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--color-error); }
.field__hint, .idea-state { font-size: var(--text-sm); color: var(--color-muted); }
.idea-state { min-height: 1lh; }
.enquiry.is-ready .idea-state { color: var(--color-ink-2); }
/* the message feeds the furnace: a heat track fills as you write, and the send button lights once there is enough to go on */
.idea-heat { position: relative; display: block; height: 3px; overflow: hidden; border-radius: var(--radius-pill); background: var(--color-card-2); }
.idea-heat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, var(--heat-2), var(--heat-4), var(--heat-6)); transform-origin: left center; transform: scaleX(var(--p, 0)); transition: transform var(--dur-long) var(--ease-out); }
html:not(.js) .idea-state, html:not(.js) .idea-heat { display: none; }
.js .enquiry:not(.is-ready) .btn--primary { background: var(--color-card-2); color: var(--color-ink); box-shadow: none; }
.js .enquiry:not(.is-ready) .btn--primary:hover { background: color-mix(in oklab, var(--color-card-2) 85%, var(--color-ink)); }
.field__msg:empty { margin-top: calc(-1 * var(--space-xs)); }
.field__msg { font-size: var(--text-sm); color: var(--color-error); }
.field--trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.enquiry__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.enquiry__status { min-height: 1lh; font-size: var(--text-sm); color: var(--color-ink-2); }
.enquiry__status.is-error { color: var(--color-error); }
.enquiry__note { font-size: var(--text-sm); color: var(--color-ink-2); }

/* ---------- footer ---------- */
.foot { padding-block: var(--space-3xl) var(--space-xl); }
.foot__mast { display: flex; min-width: 0; align-items: center; gap: var(--space-lg); padding-bottom: var(--space-2xl); }
.foot__mark { width: clamp(48px, 4.5vw, 72px); height: auto; flex-shrink: 0; }
.foot__word { font-family: var(--font-display); font-size: clamp(2.5rem, 6.5vw, 5.75rem); line-height: 0.9; letter-spacing: 0.02em; overflow-wrap: break-word; min-width: 0; text-transform: uppercase; color: var(--color-ink); }
.foot__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); padding-bottom: var(--space-2xl); }
.foot__label { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; letter-spacing: 0; color: var(--color-muted); margin-bottom: var(--space-sm); max-width: none; }
.foot__links ul { list-style: none; margin: 0; padding: 0; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--color-ink-2); }
.foot__links a:hover { color: var(--color-ink); text-decoration: underline; }
.foot__links a.foot__small { font-size: var(--text-xs); color: var(--color-muted); }
.foot__legal { font-size: var(--text-sm); color: var(--color-muted); }
.foot__legal a { color: var(--color-ink-2); }

/* ---------- cookie banner (only when analytics is on) ---------- */
.consent { --accent: var(--color-ink); position: fixed; z-index: var(--z-toast); left: var(--space-md); right: var(--space-md); bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin-inline: auto; padding: var(--space-md) var(--space-lg); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); background: var(--color-card); border-radius: var(--radius-well); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-edge), var(--shadow-card); font-size: var(--text-sm); color: var(--color-ink-2); }
.consent a { color: var(--color-ink); }
.consent__actions { display: flex; gap: var(--space-sm); }
.consent .btn { min-height: 44px; }

/* ---------- document pages (privacy, terms, 404, thanks) ---------- */
.doc { padding-block: var(--section-gap-s) var(--section-gap); }
.doc__inner { max-width: 72ch; }
.doc h1 { font-size: var(--text-display-s); margin-bottom: var(--space-md); }
.doc h2 { font-size: var(--text-title); line-height: 1.25; margin-top: var(--space-xl); margin-bottom: var(--space-sm); }
.doc p, .doc li { line-height: 1.7; color: var(--color-ink-2); }
.doc .lead { font-size: var(--text-lead); line-height: 1.5; }
.doc p + p { margin-top: var(--space-md); }
.doc ul { padding-left: var(--space-lg); display: grid; gap: var(--space-xs); }
.doc .doc__date { color: var(--color-muted); font-size: var(--text-sm); }
.doc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); margin-top: var(--space-xl); }

/* the pointer carries an ember: a small dot that trails the cursor and swells over anything you can press */
@property --s { syntax: "<number>"; inherits: false; initial-value: 0.22; }
.ember { position: fixed; left: 0; top: 0; z-index: var(--z-tooltip); width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; pointer-events: none; opacity: 0; transform: translate3d(var(--x, -100px), var(--y, -100px), 0) scale(var(--s, 0.22)); background: radial-gradient(circle, var(--heat-5), var(--heat-3) 45%, color-mix(in oklab, var(--heat-2) 60%, transparent) 70%, transparent 72%); mix-blend-mode: screen; transition: opacity var(--dur-short) var(--ease-out), --s var(--dur-short) var(--ease-out); will-change: transform; }
.ember.is-on { opacity: 0.9; }
.ember.is-hot { --s: 1; opacity: 0.55; }

/* ---------- motion: CSS only, and only where the browser supports it. With it off, every page is already complete. ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* pages cross-fade into each other (Chrome, Edge, Safari). Elsewhere it is a normal page load. */
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 240ms; }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes rise { from { opacity: 0; translate: 0 28px; } }
    @keyframes kindle { from { color: var(--color-muted); } }
    [data-reveal] { animation: rise linear backwards; animation-timeline: view(); animation-range: entry calc(5% + var(--i, 0) * 6%) entry calc(65% + var(--i, 0) * 12%); }
    .statement__line .lit { animation: kindle linear backwards; animation-timeline: view(); animation-range: cover 15% cover 45%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .ember { display: none; }
  .picker__link:hover .picker__go, .btn--link:hover::after, a.build__pic:hover img { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 72rem) {
  .prices__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .sites__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sites__item { grid-column: span 2; }
  .sites__item:nth-child(n + 4) { grid-column: span 3; }
}
@media (max-width: 60rem) {
  .picker__head, .contact__inner, .path--stage .path__inner, .path--open .path__text, .sheet__inner, .duo__inner, .pair__inner, .stack__inner, .faq__inner, .ask__inner { grid-template-columns: minmax(0, 1fr); }
  .path--stage .path__inner, .contact__inner, .sheet__inner, .duo__inner { gap: var(--space-2xl); }
  .path--open { padding-block: var(--space-2xl); }
  .stack__inner .sec__head { position: static; }
  .stack__inner { gap: var(--space-xl); }
  .cards__item, .cards__item--6 { grid-column: span 6; }
  .cards__item--small { grid-column: 1 / -1; }
  .contact__head { position: static; }
  .faq__inner { gap: var(--space-xl); }
  .founder__card { grid-template-columns: minmax(0, 1fr); gap: 0; padding: var(--space-sm); }
  .founder__photo { min-height: 260px; }
  .founder__text { padding: var(--space-lg); }
  .details__card { grid-template-columns: minmax(0, 1fr); }
  .steps__list { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
  .steps__item { min-height: 0; grid-template-rows: auto; gap: var(--space-md); }
  .steps__name { max-width: none; }
  .look__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); }
  .picker__link { min-height: 0; }
  .picker--compact .picker__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .mast__inner { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--space-2xs); padding-block: var(--space-sm); }
  .wordmark { grid-row: 1; grid-column: 1; justify-self: start; font-size: var(--text-xl); }
  .mast__action { grid-row: 1; grid-column: 2; }
  .mast__links { grid-row: 2; grid-column: 1 / -1; }
  .mast__links a { font-size: var(--text-md); }
  .card { padding: var(--space-lg); }
  .demo, .paper__page { padding: var(--space-xs); }
  .cards__list { gap: var(--space-sm); }
  .cards__item, .cards__item--6 { grid-column: 1 / -1; min-height: 0; gap: var(--space-sm); }
  .cards__item--small { grid-template: auto / minmax(0, 1fr); }
  .cards__name { font-size: var(--text-xl); }
  .sites__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
  .sites__item, .sites__item:nth-child(n + 4) { grid-column: auto; padding: var(--space-md); gap: var(--space-md); }
  .sites__item:last-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .sites__name { font-size: var(--text-lg); min-height: 0; }
  .founder__card { padding: var(--space-xs); }
  .founder__text { padding: var(--space-lg) var(--space-md); }
  .stack__item { padding: var(--space-lg); grid-template-columns: 1.5rem minmax(0, 1fr); gap: var(--space-2xs) var(--space-md); }
  .stack__name { font-size: var(--text-xl); }
  .proof__line { font-size: var(--text-2xl); }
  .prices__list { gap: var(--space-md); }
  .prices__list .dim { display: block; font-size: 0.7em; }
  .pair__inner { gap: var(--space-2xl); }
  .faq details { padding: 0 var(--space-md); }
  .sec__head, .builds__head, .picker__head { margin-bottom: var(--space-xl); }
  .sec__head .dim { display: block; }
  .paper__block { grid-template-columns: minmax(0, 1fr); }
  .paper__kicker { padding-top: var(--space-md); }
  .picker__problem { font-size: var(--text-2xl); }
  .picker--compact .picker__problem { font-size: var(--text-xl); }
  .rail-wrap { --card-w: 84vw; }
  .build { padding: 0; }
  .build__text { padding: var(--space-lg); }
  .build__problem { font-size: var(--text-xl); }
  .rail__btn { width: 48px; height: 48px; }
  .rail__btn--prev { left: var(--space-xs); }
  .rail__btn--next { right: var(--space-xs); }
  .foot__links { grid-template-columns: minmax(0, 1fr); }
}
