/* ==========================================================================
   Azelie Studio — home page
   Tokens follow design-system.md (locked Nov 12, 2026). Change them here and
   the whole page follows.
   ========================================================================== */

@font-face {
  font-family: 'Awesome Serif';
  src: url('../fonts/awesome-serif-var.ttf') format('truetype');
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Awesome Serif';
  src: url('../fonts/awesome-serif-italic-var.ttf') format('truetype');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Color */
  --ink: #160f29;
  --teal-deep: #00555e;
  --teal: #0a6770;
  --panel-mid: #0a3a44;
  --eucalyptus: #a7c9bd;
  --paper: #f6f4ef;
  --white: #ffffff;

  --line-hair: rgba(22, 15, 41, 0.08);
  --line-soft: rgba(22, 15, 41, 0.15);
  --line-strong: rgba(22, 15, 41, 0.35);
  --line-inverse: rgba(255, 255, 255, 0.18);

  /* Paper is the default surface */
  --fg: var(--ink);
  --fg-2: #3d3450;
  --fg-3: #6a6378;
  --accent: var(--teal-deep);
  --rule: var(--line-strong);
  --rule-soft: var(--line-soft);

  /* Type */
  --font-serif: 'Awesome Serif', 'Times New Roman', Georgia, serif;
  --font-sans: Arial, Helvetica, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --font-hand: 'Reenie Beanie', cursive;

  /* Shape and space */
  --radius-btn: 8px;
  --radius-card: 14px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 9vw, 128px);
  --nav-h: 64px;

  /* Dark panel and glass */
  --bg-dark-panel:
    radial-gradient(900px 620px at 88% 8%, rgba(167, 201, 189, 0.26), rgba(167, 201, 189, 0) 62%),
    radial-gradient(900px 700px at 0% 100%, rgba(0, 85, 94, 0.55), rgba(0, 85, 94, 0) 65%),
    linear-gradient(155deg, #00555e 0%, #0a3a44 42%, #160f29 100%);
  --glass-fill: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.18);
  --shadow-glass: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 18px 48px rgba(0, 0, 0, 0.28);
  --shadow-glow: 0 12px 36px rgba(167, 201, 189, 0.38);
  --shadow-sm: 0 1px 2px rgba(22, 15, 41, 0.06), 0 1px 1px rgba(22, 15, 41, 0.04);
  --shadow-md: 0 6px 16px rgba(22, 15, 41, 0.08), 0 2px 4px rgba(22, 15, 41, 0.04);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur-base: 280ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--nav-h) + 40px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font: 400 16px/1.55 var(--font-sans);
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3, .serif {
  font-family: var(--font-serif);
  font-weight: 400;
  word-spacing: 0.06em; /* the face sets its word spaces tight */
  text-wrap: balance;
}
.thesis, .checks li, .nav-menu a { word-spacing: 0.08em; }
p { text-wrap: pretty; }

h1 em, h2 em, h3 em, .serif em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

a { color: var(--accent); }
strong { font-weight: 700; color: var(--fg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--eucalyptus);
  color: var(--ink);
  border-radius: var(--radius-btn);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 16px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Type roles ---------- */
.eyebrow {
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.h-display {
  font-size: clamp(2.6rem, 5.6vw, 4.75rem);
  line-height: 1.03;
  letter-spacing: -0.01em;
}
.h-xl {
  font-size: clamp(2.25rem, 3.9vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.h-lg {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.2;
}
.lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--fg-2);
}
.prose > * + * { margin-top: 20px; }
.prose p { max-width: 62ch; }
.measure { max-width: 62ch; }
.thesis {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.25;
}
.small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-3);
}
.eyebrow + h1, .eyebrow + h2, .eyebrow + .head-row { margin-top: 16px; }

/* ---------- Dark panel ---------- */
.panel {
  position: relative;
  isolation: isolate;
  background: var(--bg-dark-panel);
  color: var(--paper);
  --fg: var(--paper);
  --fg-2: rgba(246, 244, 239, 0.84);
  --fg-3: rgba(246, 244, 239, 0.78);
  --accent: var(--eucalyptus);
  --rule: rgba(255, 255, 255, 0.22);
  --rule-soft: var(--line-inverse);
  overflow: clip;
}
/* A soft light that follows the pointer. Set by site.js, fine pointers only. */
.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(167, 201, 189, 0.13), transparent 62%);
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
}
.panel.is-lit::after { opacity: 1; }

.glass {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-glass);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-btn);
  font: 700 16px/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.btn .arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--eucalyptus);
  color: var(--ink);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { background: #b6d4c9; box-shadow: 0 14px 44px rgba(167, 201, 189, 0.5); }
.btn-primary:focus-visible { outline-color: var(--paper); }

.btn-glass {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  color: var(--paper);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.13); }

.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.btn[aria-busy='true'] { opacity: 0.7; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--accent);
  font-weight: 700;
  text-underline-offset: 4px;
}
.link-arrow .arrow { transition: transform var(--dur-base) var(--ease-out); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(167, 201, 189, 0.55);
  border-radius: 999px;
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eucalyptus);
}
.tag-muted { border-color: rgba(246, 244, 239, 0.4); color: rgba(246, 244, 239, 0.78); }
.tag .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  inset: 12px 0 auto 0;
  z-index: 50;
  color: var(--paper);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--nav-h);
  padding: 10px 10px 10px 20px;
  background: rgba(22, 15, 41, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-card);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 36px rgba(22, 15, 41, 0.22);
  transition: background-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
/* At the very top the bar sits on the hero, so it can be lighter glass */
.site-nav.is-top .nav-bar {
  background: var(--glass-fill);
  box-shadow: var(--shadow-glass);
}
.nav-logo { display: inline-flex; align-items: center; min-height: 44px; }
.nav-logo img { height: 24px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 8px 24px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--radius-btn);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.08); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 1px;
  background: var(--eucalyptus);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-links a[aria-current='true']::after { transform: scaleX(1); }
.site-nav :focus-visible { outline-color: var(--eucalyptus); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-btn);
  color: var(--paper);
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle span { position: relative; transform: translateY(-3px); }
.nav-toggle span::before { content: ''; position: absolute; top: 6px; }

.nav-menu {
  inset: calc(12px + var(--nav-h) + 8px) var(--gutter) auto var(--gutter);
  width: auto;
  margin: 0;
  padding: 12px;
  background: rgba(22, 15, 41, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-card);
  color: var(--paper);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}
.nav-menu::backdrop { background: rgba(22, 15, 41, 0.35); }
.nav-menu a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 12px;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 1.375rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line-inverse);
}
.nav-menu .btn { width: 100%; margin-top: 12px; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 520px) {
  .nav-bar { padding-left: 16px; }
  .nav-right > .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + clamp(56px, 7vw, 96px)) 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px clamp(40px, 5vw, 72px);
}
.hero h1 { margin-top: 28px; max-width: 12em; }
.hero .lead { margin-top: 28px; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.note {
  display: inline-block;
  margin: 30px 0 0 14px;
  font: 400 2.375rem/1 var(--font-hand);
  color: var(--paper);
  transform: rotate(-5deg);
}

/* Before and after */
.ba { max-width: 500px; padding: 8px 0; justify-self: end; width: 100%; }
.ba-card {
  position: relative;
  width: 92%;
  padding: 22px 24px;
  transition: transform 420ms var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.ba-before {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  transform: rotate(-2deg);
}
.ba-after {
  margin: -14px 0 0 8%;
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 24px 56px rgba(0, 0, 0, 0.34);
  transform: rotate(1.5deg);
}
@media (hover: hover) {
  .ba-card:hover { transform: rotate(0deg) translateY(-4px); z-index: 2; }
}
.ba-label { color: var(--fg-3); }
.ba-after .ba-label { color: var(--eucalyptus); }
.ba-row { display: flex; align-items: baseline; gap: 12px; margin-top: 12px; }
.ba-key {
  flex: 0 0 54px;
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.ba-row code {
  font: 500 13px/1.6 var(--font-mono);
  color: var(--fg-2);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 3px 7px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.ba-out { line-height: 1.5; color: var(--fg-3); }
.ba-after .ba-out { color: var(--paper); }
.ba-card .tag { margin-top: 16px; }
.checks { display: grid; gap: 8px; margin-top: 16px; }
.checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 400 1.25rem/1.2 var(--font-serif);
}
.checks svg { flex: none; }

.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 40px;
  margin-top: clamp(48px, 6vw, 80px);
  padding: 18px 0;
  border-top: 1px solid var(--line-inverse);
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.hero .wrap { padding-bottom: 0; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-tight-top { padding-top: 0; }
.divider { border-top: 1px solid var(--line-hair); padding-top: var(--section-y); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px clamp(40px, 6vw, 88px);
  align-items: start;
}
.split-end { align-items: end; }
@media (min-width: 961px) {
  .split-sticky > :first-child { position: sticky; top: calc(var(--nav-h) + 48px); }
  .split > .offset { padding-top: 34px; }
}

.head-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px clamp(40px, 6vw, 88px);
  align-items: end;
}

/* Ghost word band */
.ghost-band {
  position: relative;
  overflow: clip;
  margin-top: clamp(56px, 7vw, 96px);
  padding: clamp(48px, 6vw, 80px) 0;
}
.ghost-words {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font: italic 300 clamp(3rem, 7.5vw, 6.5rem)/1.04 var(--font-serif);
  color: rgba(22, 15, 41, 0.06);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.ghost-words span:last-child { margin-left: -1.4em; }
.ghost-band .wrap { position: relative; }
.pull {
  font-size: clamp(1.9rem, 3.4vw, 2.875rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Hairline columns */
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(24px, 3vw, 48px);
  margin-top: clamp(40px, 5vw, 64px);
}
.ruled { padding-top: 24px; border-top: 1px solid var(--rule); }
.ruled h3 { margin-top: 10px; font-size: 1.75rem; line-height: 1.2; }
.ruled p:not(.eyebrow) { margin-top: 12px; color: var(--fg-2); }

/* ---------- The system ---------- */
.sub { margin-top: clamp(56px, 7vw, 96px); }

.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  margin-top: clamp(40px, 5vw, 64px);
}
.flow-card { padding: 22px; }
.flow-card:first-child { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.14); }
.flow-card:first-child .eyebrow { color: var(--fg-3); }
.flow-card:last-child { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.26); }
.flow-card h3 { margin-top: 10px; font-size: 1.375rem; line-height: 1.2; }
.flow-card:last-child h3 { font-style: italic; font-weight: 300; color: var(--eucalyptus); }
.flow-card p:not(.eyebrow) { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.flow-arrow { align-self: center; font-size: 1.5rem; line-height: 1; color: var(--eucalyptus); }

.io {
  display: grid;
  grid-template-columns: minmax(0, 440px) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px 24px;
  margin-top: 20px;
}
.file { overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.file-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--fg-3);
}
.file-bar i { width: 9px; height: 9px; border-radius: 999px; border: 1px solid rgba(246, 244, 239, 0.45); }
.file-bar span { margin-left: 8px; }
.file-body {
  padding: 16px 18px 20px;
  font: 500 13px/1.75 var(--font-mono);
  color: var(--fg-2);
  counter-reset: line;
}
.file-body li { display: flex; gap: 14px; counter-increment: line; }
.file-body li::before {
  content: counter(line);
  flex: 0 0 18px;
  text-align: right;
  color: rgba(246, 244, 239, 0.45);
}
.file-body .hd { color: var(--eucalyptus); }
figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--fg-3); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile {
  padding: 10px;
  border-radius: 10px;
  transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
@media (hover: hover) {
  .tile:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.12); }
}
.tile p {
  margin-top: 9px;
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
}
/* Tiny document thumbnails, drawn from bars */
.thumb {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 84px;
  padding: 9px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
}
.thumb.dark { background: linear-gradient(155deg, #00555e 0%, #0a3a44 55%, #160f29 100%); }
.thumb.flush { padding: 0; }
.thumb.clear { background: transparent; }
.thumb i, .thumb b { display: block; flex: none; }
.thumb i {
  width: var(--w, 100%);
  height: var(--h, 3px);
  border-radius: 2px;
  background: rgba(22, 15, 41, 0.2);
}
.thumb .k { background: var(--ink); }
.thumb .t { background: var(--teal-deep); }
.thumb .p { background: var(--paper); }
.thumb .e { background: var(--eucalyptus); }
.thumb .band { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 9px; background: linear-gradient(155deg, #00555e 0%, #0a3a44 55%, #160f29 100%); }
.thumb .cols { display: flex; gap: 8px; }
.thumb .cols > b { flex: 1 1 0; display: flex; flex-direction: column; gap: 4px; }
.thumb .pad { padding: 6px 9px 0; }

.gets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px clamp(32px, 5vw, 72px);
  margin-top: clamp(32px, 4vw, 48px);
}
.gets .ruled h3 { font-size: 1.5rem; }
.gets .ruled p:not(.eyebrow) { max-width: 32em; }
.cta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-top: 36px;
  color: var(--fg-2);
}

/* ---------- Process ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 0;
  margin-top: clamp(48px, 6vw, 72px);
}
.step {
  position: relative;
  padding: 28px 28px 0 0;
  border-top: 1px solid var(--line-strong);
}
.step::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--teal-deep);
}
.step .tag { padding: 5px 12px; border-color: var(--line-strong); color: var(--fg-2); }
.step .tag.teal { border-color: rgba(0, 85, 94, 0.55); color: var(--teal-deep); }
.step h3 { margin-top: 18px; font-size: 1.625rem; line-height: 1.2; }
.step p { margin-top: 12px; color: var(--fg-2); }

/* ---------- Who it is for ---------- */
.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(32px, 4vw, 48px);
}
.card {
  padding: clamp(24px, 3vw, 40px);
  background: var(--white);
  border: 1px solid var(--line-hair);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
@media (hover: hover) {
  .card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
}
.card h3 { font-size: 1.75rem; line-height: 1.2; }
.card p { margin-top: 14px; color: var(--fg-2); }

/* ---------- Questions ---------- */
.faq { border-bottom: 1px solid var(--line-soft); }
.faq details { border-top: 1px solid var(--line-soft); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.375rem; line-height: 1.2; transition: color var(--dur-fast) var(--ease-out); }
.faq summary:hover h3 { color: var(--teal-deep); }
.faq .plus {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.faq .plus::before, .faq .plus::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform var(--dur-base) var(--ease-out);
}
.faq .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details p { padding: 0 56px 24px 0; color: var(--fg-2); max-width: 62ch; }

@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    :root { interpolate-size: allow-keywords; }
    .faq details::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size 320ms var(--ease-out), content-visibility 320ms allow-discrete;
    }
    .faq details[open]::details-content { block-size: auto; }
  }
}

/* ---------- The Weekly Brief ---------- */
.brief h2 { max-width: 19em; font-size: clamp(2.4rem, 4.6vw, 3.75rem); line-height: 1.06; letter-spacing: -0.01em; }
.brief-row {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 540px);
  justify-content: space-between;
  align-items: end;
  gap: 28px clamp(40px, 6vw, 88px);
  margin-top: 32px;
}
.signup { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.field { flex: 1 1 240px; min-width: 0; display: grid; gap: 8px; }
.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  background: var(--glass-fill);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-btn);
  color: var(--paper);
  font: 400 16px/1 var(--font-sans);
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.field input::placeholder { color: rgba(246, 244, 239, 0.6); }
.field input:hover { border-color: rgba(255, 255, 255, 0.45); }
.field input:focus-visible {
  outline: 2px solid var(--eucalyptus);
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.1);
}
.signup-note { margin-top: 12px; }
.signup-msg { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--paper); }
.signup-msg:empty { display: none; }
.signup-msg[data-kind='ok'] { color: var(--eucalyptus); }

/* ---------- Scope and pricing ---------- */
.scope h2 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -0.01em; }
.scope-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
  gap: 40px clamp(40px, 6vw, 88px);
}
.request-card { padding: clamp(20px, 3vw, 32px); }
.request { display: grid; gap: 20px; }
.request .field { flex: none; }
.choice { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; min-width: 0; }
.choice legend { padding: 0; margin-bottom: 8px; }
.opt, .check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  color: var(--fg-2);
  line-height: 1.4;
}
.opt {
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-btn);
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.opt:hover { border-color: rgba(255, 255, 255, 0.45); }
.opt:has(input:checked) {
  background: rgba(167, 201, 189, 0.14);
  border-color: var(--eucalyptus);
  color: var(--paper);
}
.opt input, .check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--eucalyptus);
}
.opt:has(input:focus-visible), .check:has(input:focus-visible) {
  outline: 2px solid var(--eucalyptus);
  outline-offset: 2px;
}
.opt input:focus-visible, .check input:focus-visible { outline: none; }
.field textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--glass-fill);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-btn);
  color: var(--paper);
  font: 400 16px/1.5 var(--font-sans);
  resize: vertical;
}
.field textarea:focus-visible { outline: 2px solid var(--eucalyptus); outline-offset: 2px; background: rgba(255, 255, 255, 0.1); }
.request-msg { font-size: 14px; line-height: 1.5; color: var(--paper); }
.request-msg:empty { display: none; }
.request-msg[data-kind='ok'] { color: var(--eucalyptus); }

/* ---------- Footer ---------- */
.site-foot {
  background: var(--ink);
  color: rgba(246, 244, 239, 0.78);
  padding: 48px 0 24px;
  border-top: 1px solid var(--line-inverse);
}
.site-foot img { width: 100%; max-width: 300px; height: auto; }
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid var(--line-inverse);
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(246, 244, 239, 0.84);
  text-decoration: none;
}
.foot-links a:hover { color: var(--eucalyptus); }
.site-foot :focus-visible { outline-color: var(--eucalyptus); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-arrow { justify-self: center; transform: rotate(90deg); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-grid, .split, .head-row, .brief-row, .scope-row { grid-template-columns: minmax(0, 1fr); }
  .ba { justify-self: start; }
  .cols-3 { grid-template-columns: minmax(0, 1fr); }
  .io { grid-template-columns: minmax(0, 1fr); }
  .io .flow-arrow { justify-self: center; transform: rotate(90deg); }
  .file-fig { max-width: 440px; }
}
@media (max-width: 680px) {
  .gets, .cards-2 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; margin-left: 4px; }
  /* On a phone the timeline runs down the left edge */
  .step { padding: 0 0 40px 28px; border-top: 0; border-left: 1px solid var(--line-strong); }
  .step:last-child { padding-bottom: 0; }
  .step::before { top: 0; left: -5px; }
  .faq details p { padding-right: 0; }
  .note { font-size: 2.125rem; }
}
@media (max-width: 520px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .btn, .signup .btn { width: 100%; }
  .ba-card { width: 96%; padding: 18px; }
  .ba-after { margin-left: 4%; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero: the before card lands, then the after card settles on top of it */
  .hero-copy > * { animation: rise 700ms var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .hero-copy > :nth-child(3) { animation-delay: 160ms; }
  .hero-copy > :nth-child(4) { animation-delay: 240ms; }
  .hero-copy > :nth-child(5) { animation-delay: 520ms; }
  .ba-before { animation: land-before 800ms var(--ease-out) 200ms both; }
  .ba-after { animation: land-after 900ms var(--ease-out) 650ms both; }

  /* Everything below the hero eases in as it enters the viewport.
     Pure CSS: where scroll-driven animation is not supported, content just shows. */
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }
    .ghost-words span:first-child {
      animation: drift-left linear both;
      animation-timeline: view();
    }
    .ghost-words span:last-child {
      animation: drift-right linear both;
      animation-timeline: view();
    }
  }
}
@keyframes rise {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes land-before {
  from { opacity: 0; transform: rotate(-5deg) translateY(24px); }
  to { opacity: 1; transform: rotate(-2deg) translateY(0); }
}
@keyframes land-after {
  from { opacity: 0; transform: rotate(5deg) translateY(36px); }
  to { opacity: 1; transform: rotate(1.5deg) translateY(0); }
}
@keyframes drift-left {
  from { translate: 4% 0; }
  to { translate: -10% 0; }
}
@keyframes drift-right {
  from { translate: -10% 0; }
  to { translate: 4% 0; }
}
