/* ============================================================
   TWENTYONE — Production stylesheet
   Design tokens & values are the source of truth (handoff §6).
   Mobile-first responsive ladder (handoff §11).
   Fonts are loaded via <link> in each page <head>.
   ============================================================ */

/* Logo typeface — Nexa.
   Nexa is a commercial font (not on Google Fonts). Drop the licensed
   web-font files into assets/fonts/ with these exact names and the logo
   picks them up automatically. Until then it falls back to a geometric
   sans so nothing looks broken. */
@font-face {
  font-family: 'Nexa';
  src: url('fonts/Nexa-Regular.woff2') format('woff2'),
       url('fonts/Nexa-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nexa';
  src: url('fonts/Nexa-Bold.woff2') format('woff2'),
       url('fonts/Nexa-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors */
  --paper: #F5F0E8;
  --paper-deep: #EDE6DB;
  --ink: #1A1714;
  --ink-soft: #2B2620;
  --muted: #7A736B;
  --muted-2: #A9A199;
  --rule: rgba(26, 23, 20, 0.10);
  --rule-strong: rgba(26, 23, 20, 0.22);
  --accent: oklch(0.58 0.13 38);          /* terracotta */
  --accent-soft: oklch(0.58 0.13 38 / 0.10);
  --accent-ink: oklch(0.42 0.10 36);

  /* Type */
  --serif: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --sans:  'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, Menlo, monospace;
  --logo:  'Nexa', 'Geist', 'Helvetica Neue', Arial, sans-serif;

  /* Sizing */
  --max: 1240px;
  --radius: 2px;

  /* Fluid tokens — base (≥320px) then stepped up the ladder (§11.3) */
  --gutter: 20px;
  --section-y: 80px;
  --hero-pad-top: 120px;
}
@media (min-width: 480px)  { :root { --gutter: 24px; --section-y: 96px;  --hero-pad-top: 140px; } }
@media (min-width: 768px)  { :root { --gutter: 28px; --section-y: 120px; --hero-pad-top: 168px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --section-y: 160px; --hero-pad-top: 200px; } }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--ink); color: var(--paper); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

/* Accessibility helpers */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  transform: translateY(-150%);
  transition: transform 200ms cubic-bezier(.2,.7,.2,1);
}
.skip-link:focus { transform: translateY(0); }

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

/* Typography scale (handoff §6) */
.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 11vw, 132px);   /* tighter floor for small phones (§11.3) */
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
}
@media (min-width: 768px) { .h-display { font-size: clamp(56px, 8.5vw, 132px); line-height: 0.96; } }
.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.h-card {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.italic { font-style: italic; }
.lede {
  font-family: var(--sans);
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 56ch;
}
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.mono { font-family: var(--mono); }

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}
section { padding: var(--section-y) 0; position: relative; }
section + section { padding-top: 0; }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 200ms cubic-bezier(.2,.7,.2,1), background 200ms, color 200ms, border-color 200ms;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-ghost { color: var(--ink); border-color: var(--rule-strong); }
.btn .arrow { display: inline-block; transition: transform 250ms cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .btn-primary:hover { background: var(--accent-ink); }
  .btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .btn:hover .arrow { transform: translateX(3px); }
}
.btn:active { transform: translateY(0); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 900ms cubic-bezier(.2,.7,.2,1), transform 900ms cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 800ms cubic-bezier(.2,.7,.2,1); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 400ms; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  transition: backdrop-filter 300ms, background 300ms, border-color 300ms;
  border-bottom: 1px solid transparent;
}
@media (min-width: 768px) { .nav { padding: 18px 0; } }
.nav.scrolled {
  background: rgba(245, 240, 232, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: var(--logo);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.nav-logo > span { white-space: nowrap; }
.nav-logo .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-9px);
}
.nav-links {
  display: none;
  align-items: center; gap: 28px;
  font-size: 14px;
  color: var(--ink-soft);
}
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1);
}
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover::after { transform: scaleX(1); }
}
.nav-cta { height: 40px; min-height: 40px; padding: 0 18px; font-size: 13px; }
.nav-offer {
  display: none;
  height: 40px; min-height: 40px;
  padding: 0 18px;
  font-size: 13px;
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
@media (min-width: 768px) { .nav-offer { display: inline-flex; } }
@media (hover: hover) and (pointer: fine) {
  .nav-offer:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
}
.nav-cta .cta-full { display: none; }
@media (min-width: 480px) {
  .nav-cta .cta-full { display: inline; }
  .nav-cta .cta-short { display: none; }
}

/* Mobile menu button */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-right: -10px;
}
.nav-toggle svg { display: block; }
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile full-screen sheet */
.nav-sheet {
  position: fixed; inset: 0;
  z-index: 100;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 20px var(--gutter) 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms cubic-bezier(.2,.7,.2,1), visibility 200ms;
}
.nav-sheet.open { opacity: 1; visibility: visible; }
.nav-sheet-top {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 44px;
}
.nav-sheet-close {
  width: 44px; height: 44px; margin-right: -10px;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-sheet-links {
  display: flex; flex-direction: column;
  gap: 4px;
  margin-top: 8vh;
  flex: 1;
}
.nav-sheet-links a {
  font-family: var(--serif);
  font-size: clamp(32px, 9vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  padding: 8px 0;
  color: var(--ink);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 220ms cubic-bezier(.2,.7,.2,1), transform 220ms cubic-bezier(.2,.7,.2,1);
}
.nav-sheet.open .nav-sheet-links a { opacity: 1; transform: none; }
.nav-sheet.open .nav-sheet-links a:nth-child(1) { transition-delay: 60ms; }
.nav-sheet.open .nav-sheet-links a:nth-child(2) { transition-delay: 110ms; }
.nav-sheet.open .nav-sheet-links a:nth-child(3) { transition-delay: 160ms; }
.nav-sheet.open .nav-sheet-links a:nth-child(4) { transition-delay: 210ms; }
.nav-sheet.open .nav-sheet-links a:nth-child(5) { transition-delay: 260ms; }
.nav-sheet-links a[aria-current="page"] { color: var(--accent-ink); font-style: italic; }
.nav-sheet .btn { width: 100%; }
@media (min-width: 768px) { .nav-sheet { display: none; } }

/* Hero */
.hero { padding-top: var(--hero-pad-top); padding-bottom: clamp(80px, 12vw, 140px); position: relative; overflow: hidden; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(32px, 6vw, 56px);
}
.hero-eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(0.58 0.13 38 / 0.5); }
  70% { box-shadow: 0 0 0 12px oklch(0.58 0.13 38 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.58 0.13 38 / 0); }
}
.hero h1 { margin: 0; max-width: 16ch; }
.hero .rotator {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  font-style: italic;
  color: var(--accent-ink);
  min-width: 8ch;
}
.hero .rotator .word {
  display: inline-block;
  transition: opacity 500ms cubic-bezier(.2,.7,.2,1), transform 500ms cubic-bezier(.2,.7,.2,1);
}
.hero .rotator .word.out { opacity: 0; transform: translateY(-10px); }
.hero .rotator .word.in  { opacity: 1; transform: none; }
.hero .rotator .caret {
  display: inline-block;
  width: 3px; height: 0.85em;
  background: var(--accent);
  vertical-align: -0.05em;
  margin-left: 4px;
  animation: blink 1s steps(2, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
  margin-top: clamp(40px, 6vw, 64px);
}
@media (min-width: 1024px) { .hero-row { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-actions .btn { flex: 1 1 auto; min-width: min(100%, 240px); }
@media (min-width: 480px) { .hero-actions .btn { flex: 0 0 auto; } }

/* Grainy backdrop element */
.hero-shape {
  position: absolute;
  right: -8vw;
  top: 12%;
  width: 38vw;
  max-width: 540px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, oklch(0.58 0.13 38 / 0.18), oklch(0.58 0.13 38 / 0.04) 55%, transparent 70%);
  filter: blur(4px);
  pointer-events: none;
  display: none;
  animation: drift 28s ease-in-out infinite;
}
@media (min-width: 768px) { .hero-shape { display: block; } }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-30px, 20px) scale(1.06); }
}

/* Marquee */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding: 22px 0;
  margin-top: clamp(36px, 7vw, 60px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: scroll 50s linear infinite;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 32px; }
@media (min-width: 768px) { .marquee-track, .marquee-track span { gap: 56px; } }
.marquee-track .sep { color: var(--muted-2); }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Clients / trusted-by */
.clients-head {
  text-align: center;
  margin-bottom: clamp(28px, 5vw, 48px);
}
.clients {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
@media (min-width: 600px)  { .clients { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .clients { grid-template-columns: repeat(6, 1fr); } }
.client {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 24px 16px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  transition: color 220ms, background 220ms;
}
@media (min-width: 768px) { .client { min-height: 120px; } }
.client img {
  max-height: 32px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 220ms, filter 220ms;
}
.client .wordmark {
  font-family: var(--serif);
  font-size: clamp(17px, 2.2vw, 22px);
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}
@media (hover: hover) and (pointer: fine) {
  .client:hover { color: var(--ink); background: var(--paper-deep); }
  .client:hover img { opacity: 1; filter: grayscale(0); }
}

/* Section header pattern */
.sec-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: end;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 1024px) {
  .sec-head { grid-template-columns: 1fr 1.4fr; gap: 48px; padding-bottom: 64px; }
}
.sec-head .left { display: flex; flex-direction: column; gap: 24px; }
.sec-head h2 { margin: 0; }
.sec-head .lede { margin: 0; }

/* Use cases grid */
.cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 8px;
}
.case {
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  position: relative;
}
.case-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.case h3 { margin: 0; }
.case p { margin: 0; color: var(--ink-soft); max-width: 44ch; }
@media (min-width: 768px) {
  .cases { grid-template-columns: 1fr 1fr; }
  .case { padding: 56px 0; }
  .case:nth-child(odd)  { padding-right: 40px; border-right: 1px solid var(--rule); }
  .case:nth-child(even) { padding-left: 40px; }
}

/* Manifesto */
.manifesto {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  padding-top: 40px;
}
@media (min-width: 1024px) {
  .manifesto { grid-template-columns: 1fr 1.6fr; gap: 64px; padding-top: 80px; }
  .manifesto .col-left { position: sticky; top: 120px; }
}
.manifesto p { font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 56ch; }
.manifesto p + p { margin-top: 1.2em; }
.manifesto .pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  color: var(--ink);
}
.manifesto .pull::before { content: "\201C"; color: var(--accent); margin-right: 4px; }

/* About — structured blocks */
.about-block + .about-block {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.about-block > .kicker { display: block; margin-bottom: 20px; }
.about-block h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--ink);
}
.about-block h4 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 32px 0 14px;
}
.about-block p strong { color: var(--ink); font-weight: 500; }
.about-list { list-style: none; padding: 0; margin: 0; }
.about-list li {
  position: relative;
  padding: 14px 0 14px 22px;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 22px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.about-list li strong { color: var(--ink); font-weight: 500; }
.about-list li:last-child { border-bottom: 0; }

/* Founder chip */
.founder {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 28px 0;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-deep);
}
.founder .photo {
  flex: none;
  width: 72px; height: 72px;
  border-radius: 50%;
  background:
    repeating-linear-gradient(135deg, rgba(26,23,20,0.05) 0 8px, transparent 8px 16px),
    var(--paper);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
}
.founder .name { font-family: var(--serif); font-size: 22px; line-height: 1.15; color: var(--ink); }
.founder .role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* HQ photo placeholders */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
}
@media (min-width: 768px) { .hub-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.hub-shot {
  border: 1px solid var(--rule);
  background:
    repeating-linear-gradient(135deg, rgba(26,23,20,0.04) 0 14px, transparent 14px 28px),
    var(--paper-deep);
}
.hub-shot .frame {
  aspect-ratio: 3 / 2;
  display: grid; place-items: center;
  overflow: hidden;
}
/* On phones the single-column shots get the full bleed and read large */
@media (max-width: 767px) { .hub-shot .frame { aspect-ratio: 4 / 3; } }
.hub-shot .cap {
  display: block;
  padding: 12px 14px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.hub-shot .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.founder img.photo { object-fit: cover; }
.hub-shot .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Services */
.services { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 8px; }
.service {
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 280ms;
  position: relative;
  color: inherit;
  text-decoration: none;
}
.service .code { font-family: var(--mono); font-size: 11px; color: var(--accent-ink); letter-spacing: 0.08em; }
.service h3 { margin: 0; }
.service p { margin: 0; color: var(--ink-soft); max-width: 42ch; }
.service-arrow {
  position: absolute;
  top: 40px; right: 0;
  font-size: 18px;
  color: var(--muted);
  transition: transform 300ms cubic-bezier(.2,.7,.2,1), color 200ms;
}
@media (min-width: 768px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service { padding: 48px 36px; border-right: 1px solid var(--rule); }
  .service:nth-child(2n) { border-right: 0; }
  .service:nth-last-child(-n+2):not(:nth-last-child(odd)) { border-bottom: 0; }
  .service-arrow { top: 48px; right: 36px; }
}
@media (hover: hover) and (pointer: fine) {
  .service:hover { background: var(--paper-deep); }
  .service-link:hover .service-arrow { transform: translate(4px, -4px); color: var(--accent-ink); }
}
.service:active { background: var(--paper-deep); }
.deliverables { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.deliverables span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding: 5px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
}

/* Blog teasers (homepage) */
.posts { margin-top: 8px; }
.post {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding 300ms cubic-bezier(.2,.7,.2,1);
}
.post .meta { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; line-height: 1.6; display: flex; gap: 16px; flex-wrap: wrap; }
.post h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.2vw, 28px); margin: 0 0 8px; letter-spacing: -0.01em; line-height: 1.2; }
.post p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
.post .read-cta { font-family: var(--mono); font-size: 12px; color: var(--ink); align-self: center; transition: transform 250ms; display: none; }
@media (min-width: 768px) {
  .post { grid-template-columns: 180px 1fr auto; gap: 48px; padding: 36px 0; }
  .post .meta { flex-direction: column; gap: 0; }
  .post .read-cta { display: block; }
}
@media (hover: hover) and (pointer: fine) {
  .post:hover { padding-left: 12px; }
  .post:hover .read-cta { transform: translateX(4px); color: var(--accent-ink); }
}

/* FAQ */
.faq-list { margin-top: 8px; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item button {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 24px 0;
  text-align: left;
}
.faq-item .idx { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.faq-item .q { font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }
.faq-item .icon {
  width: 32px; height: 32px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background 250ms, color 250ms, border-color 250ms, transform 350ms;
}
.faq-item.open .icon { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(45deg); }
.faq-item .a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 400ms cubic-bezier(.2,.7,.2,1);
}
.faq-item.open .a-wrap { grid-template-rows: 1fr; }
.faq-item .a-wrap > div { overflow: hidden; }
.faq-item .a {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  max-width: 60ch;
  margin-left: 42px;
  padding-bottom: 28px;
}
@media (min-width: 768px) {
  .faq-item button { grid-template-columns: 60px 1fr auto; gap: 24px; padding: 28px 0; }
  .faq-item .a { margin-left: 84px; }
}

/* CTA */
.cta {
  background: var(--ink);
  color: var(--paper);
  margin: clamp(40px, 7vw, 80px) 0 0;
  border-radius: 4px;
  padding: clamp(40px, 8vw, 120px) clamp(24px, 7vw, 100px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) { .cta { grid-template-columns: 1.6fr 1fr; gap: 64px; } }
.cta::after {
  content: "";
  position: absolute;
  right: -10%; bottom: -30%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.58 0.13 38 / 0.35), transparent 65%);
  pointer-events: none;
}
@media (min-width: 768px) { .cta::after { width: 480px; height: 480px; } }
.cta .kicker { color: var(--muted-2); }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 7vw, 88px); line-height: 1.04; letter-spacing: -0.02em; margin: 24px 0 0; max-width: 14ch; }
.cta h2 .accent { color: oklch(0.78 0.10 38); font-style: italic; }
.cta .body { color: rgba(245, 240, 232, 0.72); margin: 28px 0 0; max-width: 50ch; line-height: 1.55; }
.cta-right { display: flex; flex-direction: column; gap: 28px; position: relative; z-index: 2; }
.cta-meta .label { font-family: var(--mono); font-size: 11px; color: var(--muted-2); letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.cta-meta .val { font-family: var(--serif); font-size: 22px; }
.cta-meta + .cta-meta { margin-top: 18px; }
.cta .btn-primary { background: var(--paper); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .cta .btn-primary:hover { background: oklch(0.78 0.10 38); }
}
.cta-form { display: flex; flex-direction: column; gap: 14px; }
.cta-form label { display: flex; flex-direction: column; gap: 8px; }
.cta-form input {
  background: transparent; border: 0;
  border-bottom: 1px solid rgba(245,240,232,0.4);
  color: var(--paper); padding: 10px 0;
  font: inherit; font-size: 18px; font-family: var(--serif);
  outline: none;
}
.cta-form input:focus-visible { outline: none; border-bottom-color: oklch(0.78 0.10 38); }
.cta-form .btn { align-self: flex-start; }
.cta-form .form-error { font-family: var(--mono); font-size: 12px; color: oklch(0.78 0.10 38); letter-spacing: 0.04em; min-height: 1em; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 80px; }
  .contact-aside { position: sticky; top: 120px; }
}
.contact-aside .kicker { display: block; margin-bottom: 12px; }
.contact-aside h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 28px; }
.contact-detail { padding: 18px 0; border-top: 1px solid var(--rule); }
.contact-detail:first-of-type { border-top: 0; }
.contact-detail .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.contact-detail .val { font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--ink); }
.contact-detail a.val { transition: color 200ms; }
@media (hover: hover) and (pointer: fine) { .contact-detail a.val:hover { color: var(--accent-ink); } }

.contact-form { display: grid; gap: 22px; }
.contact-form .field { display: flex; flex-direction: column; gap: 8px; }
.contact-form .row2 { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 600px) { .contact-form .row2 { grid-template-columns: 1fr 1fr; } }
.contact-form label .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-form label .req { color: var(--accent-ink); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 13px 14px;
  width: 100%;
  transition: border-color 200ms, background 200ms;
}
.contact-form textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.contact-form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) center, calc(100% - 13px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--ink); background: var(--paper-deep); }
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .form-error { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); letter-spacing: 0.04em; min-height: 1em; }
.contact-form .btn { justify-self: start; }
.contact-success {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--paper-deep);
  padding: 32px;
}
.contact-success .kicker { display: block; margin-bottom: 14px; }
.contact-success h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 32px); margin: 0 0 10px; letter-spacing: -0.01em; }
.contact-success p { margin: 0; color: var(--ink-soft); }
[hidden] { display: none !important; }

/* Footer */
.footer { padding: 80px 0 36px; border-top: 1px solid var(--rule); margin-top: clamp(60px, 10vw, 120px); }
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
@media (min-width: 480px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 60px; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 1024px) { .footer-brand { grid-column: auto; } }
.footer-brand h3 { font-family: var(--logo); font-weight: 700; font-size: clamp(38px, 5vw, 38px); line-height: 0.95; margin: 0; letter-spacing: 0.01em; }
.footer-brand .tag { color: var(--muted); margin-top: 16px; max-width: 28ch; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.footer-col a { transition: color 200ms; }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover { color: var(--accent-ink); } }
.footer-bottom {
  display: flex; flex-direction: column; gap: 16px;
  justify-content: space-between; align-items: flex-start;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
@media (min-width: 480px) { .footer-bottom { flex-direction: row; align-items: center; } }

/* ===== Interior page header ===== */
.page-head {
  padding-top: var(--hero-pad-top);
  padding-bottom: clamp(56px, 9vw, 100px);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.page-head .crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}
@media (hover: hover) and (pointer: fine) { .page-head .crumbs a:hover { color: var(--accent-ink); } }
.page-head .crumbs .sep { color: var(--muted-2); }
.page-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 120px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 16ch;
}
.page-head .accent-word { color: var(--accent-ink); font-style: italic; }
.page-head .lede { margin-top: 40px; max-width: 60ch; font-size: clamp(18px, 1.4vw, 21px); color: var(--ink-soft); }
.page-head .meta-row {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
@media (min-width: 768px) {
  .page-head .meta-row { grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; padding-top: 32px; }
}
.page-head .meta-row .label { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 8px; }
.page-head .meta-row .val { font-family: var(--serif); font-size: 22px; line-height: 1.2; }

/* ===== Two-column content block ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.two-col .col-left .kicker { display: block; margin-bottom: 12px; }
.two-col .col-left h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.015em; margin: 0; max-width: 14ch; }
.two-col .col-right p { font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 58ch; margin: 0 0 1.2em; }
.two-col .col-right p:last-child { margin-bottom: 0; }
.two-col .col-right p strong { color: var(--ink); font-weight: 500; }
@media (min-width: 1024px) {
  .two-col { grid-template-columns: 1fr 1.6fr; gap: 64px; }
  .two-col .col-left { position: sticky; top: 120px; }
}

/* ===== Numbered process steps ===== */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--rule);
}
.process-step {
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.process-step:last-child { border-bottom: 0; }
.process-step .num {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  color: var(--accent);
  font-style: italic;
}
.process-step h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0; letter-spacing: -0.01em; }
.process-step p { margin: 0; color: var(--ink-soft); max-width: 42ch; }
.process-step .deliverables { margin-top: 12px; }
@media (min-width: 768px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step { padding: 56px 40px 56px 0; border-right: 1px solid var(--rule); }
  .process-step .num { font-size: 72px; }
  .process-step:nth-child(2n) { border-right: 0; padding-left: 40px; padding-right: 0; }
  .process-step:nth-last-child(-n+2):not(:nth-last-child(odd)) { border-bottom: 0; }
}

/* ===== Capabilities list ===== */
.cap-list { margin-top: 8px; }
.cap-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.cap-row:first-child { border-top: 1px solid var(--rule); }
.cap-row .num { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.cap-row h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 28px); margin: 0; letter-spacing: -0.01em; line-height: 1.2; }
.cap-row p { margin: 0; color: var(--ink-soft); max-width: 52ch; }
@media (min-width: 768px) {
  .cap-row { grid-template-columns: 80px 1.4fr 2fr; gap: 32px; padding: 32px 0; }
  .cap-row .num { padding-top: 4px; }
}

/* Stack band */
.stack-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.stack-grid .stack-cell {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.stack-grid .stack-cell .kicker { display: block; margin-bottom: 12px; }
.stack-grid .stack-cell .list { font-family: var(--serif); font-size: 22px; line-height: 1.35; }
@media (min-width: 480px) { .stack-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) {
  .stack-grid { grid-template-columns: repeat(4, 1fr); }
  .stack-grid .stack-cell { padding: 32px 24px; border-right: 1px solid var(--rule); }
  .stack-grid .stack-cell:first-child { padding-left: 0; }
  .stack-grid .stack-cell:last-child { padding-right: 0; border-right: 0; }
}

/* ===== Related (adjacent) ===== */
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--rule);
}
.related-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  color: inherit;
  transition: padding 250ms cubic-bezier(.2,.7,.2,1);
}
.related-card .code { font-family: var(--mono); font-size: 11px; color: var(--accent-ink); letter-spacing: 0.08em; }
.related-card h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
.related-card p { margin: 0; color: var(--ink-soft); font-size: 14px; max-width: 32ch; }
.related-card .read-cta { font-family: var(--mono); font-size: 12px; color: var(--ink); margin-top: 4px; transition: transform 250ms, color 200ms; }
@media (min-width: 768px) {
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .related-card { padding: 40px 32px 40px 0; border-bottom: 0; border-right: 1px solid var(--rule); }
  .related-card:last-child { border-right: 0; }
  .related-card:not(:first-child) { padding-left: 32px; }
}
@media (hover: hover) and (pointer: fine) {
  .related-card:hover { padding-top: 32px; padding-bottom: 48px; }
  .related-card:hover .read-cta { transform: translateX(4px); color: var(--accent-ink); }
}

/* ===== Services index ===== */
.services-index {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 8px;
  border-top: 1px solid var(--rule);
}
.service-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px 20px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  color: inherit;
  transition: padding 300ms cubic-bezier(.2,.7,.2,1), background 250ms;
  position: relative;
}
.service-row .code { font-family: var(--mono); font-size: 13px; color: var(--accent-ink); letter-spacing: 0.06em; padding-top: 8px; }
.service-row .title h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 6vw, 42px); margin: 0; letter-spacing: -0.015em; line-height: 1.05; }
.service-row .desc { grid-column: 2; }
.service-row .desc p { margin: 0 0 14px; color: var(--ink-soft); font-size: 16px; max-width: 50ch; line-height: 1.55; }
.service-row .read-cta {
  grid-column: 2;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-ink);
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 250ms, color 200ms;
}
.service-row .deliverables span { padding: 4px 10px; }
@media (min-width: 768px) {
  .service-row { grid-template-columns: 90px 1fr 1.4fr auto; gap: 48px; padding: 48px 0; }
  .service-row .code { padding-top: 8px; }
  .service-row .desc { grid-column: auto; }
  .service-row .read-cta { grid-column: auto; align-self: center; color: var(--ink); }
}
@media (hover: hover) and (pointer: fine) {
  .service-row:hover { padding-left: 16px; padding-right: 16px; background: var(--paper-deep); }
  .service-row:hover .read-cta { transform: translateX(6px); color: var(--accent-ink); }
}
.service-row:active { background: var(--paper-deep); }

/* ===== Blog index ===== */
.blog-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.blog-filters::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .blog-filters { flex-wrap: wrap; overflow: visible; margin-bottom: 56px; } }
.blog-filter {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background 200ms, color 200ms, border-color 200ms;
}
.blog-filter.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .blog-filter:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
}

.blog-index { margin-top: 8px; border-top: 1px solid var(--rule); }
.blog-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  color: inherit;
  transition: padding 280ms cubic-bezier(.2,.7,.2,1);
}
.blog-row.hide { display: none; }
.blog-row .rowmeta { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; display: flex; gap: 12px; }
.blog-row .rowmeta .category { color: var(--accent-ink); text-transform: uppercase; }
.blog-row .date, .blog-row .category { display: none; }
.blog-row h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.3vw, 30px); margin: 0 0 8px; letter-spacing: -0.01em; line-height: 1.2; }
.blog-row p { margin: 0; color: var(--ink-soft); max-width: 60ch; line-height: 1.55; }
.blog-row .read-cta { font-family: var(--mono); font-size: 12px; color: var(--ink); align-self: center; transition: transform 250ms, color 200ms; display: none; }
@media (min-width: 768px) {
  .blog-row { grid-template-columns: 160px 90px 1fr auto; gap: 48px; padding: 36px 0; }
  .blog-row .rowmeta { display: none; }
  .blog-row .date { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; padding-top: 6px; }
  .blog-row .category { display: block; font-family: var(--mono); font-size: 11px; color: var(--accent-ink); letter-spacing: 0.06em; text-transform: uppercase; padding-top: 8px; }
  .blog-row .read-cta { display: block; }
}
@media (hover: hover) and (pointer: fine) {
  .blog-row:hover { padding-left: 12px; }
  .blog-row:hover .read-cta { transform: translateX(4px); color: var(--accent-ink); }
}

.blog-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  margin-bottom: 48px;
  align-items: center;
}
@media (min-width: 768px) {
  .blog-featured { grid-template-columns: 1fr 1fr; gap: 64px; padding: 56px 0; margin-bottom: 56px; }
}
.blog-featured .image-stand-in {
  aspect-ratio: 16/10;
  background:
    repeating-linear-gradient(135deg, rgba(26,23,20,0.04) 0 14px, transparent 14px 28px),
    var(--paper-deep);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
@media (min-width: 768px) { .blog-featured .image-stand-in { aspect-ratio: 4/3; } }
.blog-featured .meta { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 16px; display: flex; gap: 16px; flex-wrap: wrap; }
.blog-featured .meta .cat { color: var(--accent-ink); }
.blog-featured h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.5vw, 56px); line-height: 1.05; letter-spacing: -0.015em; margin: 0; }
.blog-featured p { margin: 20px 0 28px; color: var(--ink-soft); max-width: 50ch; font-size: 17px; line-height: 1.55; }

/* ===== Article (single blog post) ===== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
}
.article-aside { padding-top: 12px; }
.article-aside .label { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 12px; }
.article-aside ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-family: var(--mono); font-size: 12px; }
.article-aside ul a { color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) { .article-aside ul a:hover { color: var(--accent-ink); } }
.article-aside.left { display: none; }
.article-aside.right { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 1024px) {
  .article-layout { grid-template-columns: 1fr minmax(0, 700px) 1fr; gap: 48px; margin-top: 80px; }
  .article-aside.left { display: block; position: sticky; top: 110px; align-self: start; }
}

.prose {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  font-family: var(--sans);
  max-width: 65ch;
}
.prose p { margin: 0 0 1.4em; }
.prose p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 4em;
  line-height: 0.85;
  float: left;
  padding: 0.08em 0.12em 0 0;
  color: var(--accent-ink);
}
@media (min-width: 768px) { .prose p:first-child::first-letter { font-size: 5.2em; } }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.015em; color: var(--ink); margin: 2em 0 0.6em; line-height: 1.1; scroll-margin-top: 100px; }
.prose h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -0.01em; color: var(--ink); margin: 1.8em 0 0.4em; scroll-margin-top: 100px; }
.prose a { color: var(--accent-ink); border-bottom: 1px solid var(--accent-soft); transition: border-color 200ms, color 200ms; }
@media (hover: hover) and (pointer: fine) { .prose a:hover { border-bottom-color: var(--accent); } }
.prose blockquote {
  margin: 1.8em 0;
  padding: 0 0 0 28px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink);
}
.prose code {
  font-family: var(--mono);
  font-size: 14px;
  padding: 2px 6px;
  background: var(--paper-deep);
  border-radius: 3px;
  color: var(--ink);
}
.prose pre {
  margin: 1.8em 0;
  padding: 24px;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  color: var(--ink);
}
.prose pre code { background: none; padding: 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.prose li { margin-bottom: 0.4em; }
.prose figure {
  margin: 2em 0;
  border: 1px solid var(--rule);
  background:
    repeating-linear-gradient(135deg, rgba(26,23,20,0.04) 0 14px, transparent 14px 28px),
    var(--paper-deep);
}
.prose figure .ph {
  aspect-ratio: 16/9;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase;
  text-align: center; padding: 16px;
}
.prose figcaption { padding: 16px 20px; background: var(--paper); border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Article header */
.article-head {
  padding-top: var(--hero-pad-top);
  padding-bottom: clamp(48px, 8vw, 80px);
  border-bottom: 1px solid var(--rule);
}
.article-head .crumbs { display: flex; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 32px; }
.article-head .crumbs .sep { color: var(--muted-2); }
.article-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5.5vw, 72px); line-height: 1.05; letter-spacing: -0.015em; margin: 0; max-width: 20ch; }
.article-head .standfirst { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 26px); color: var(--ink-soft); line-height: 1.4; margin-top: 28px; max-width: 60ch; }
.article-head .meta-row {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
@media (min-width: 768px) { .article-head .meta-row { grid-template-columns: repeat(4, 1fr); margin-top: 56px; } }
.article-head .meta-row .label { font-size: 11px; color: var(--muted); display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.08em; }

/* Author chip */
.author { display: flex; gap: 14px; align-items: center; }
.author .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), oklch(0.78 0.10 38));
  color: var(--paper);
  font-family: var(--serif);
  font-size: 16px;
  display: grid; place-items: center;
  flex: none;
}
.author .name { font-family: var(--sans); font-size: 14px; color: var(--ink); font-weight: 500; }
.author .role { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

/* 404 */
.notfound { min-height: 70dvh; min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 160px var(--gutter) 80px; }
.notfound .code { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.notfound h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 12vw, 120px); line-height: 1; margin: 24px 0 0; letter-spacing: -0.02em; }
.notfound p { color: var(--ink-soft); margin: 24px 0 36px; max-width: 44ch; }

/* ===== Reduced motion (handoff §6/§10) ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
  .hero-shape { animation: none !important; }
  .hero-eyebrow .pulse { animation: none !important; }
  .hero .rotator .caret { animation: none !important; }
}

/* ===== Instant offer tool ===== */
.offer-choice { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 8px 0 40px; }
@media (min-width: 600px) { .offer-choice { grid-template-columns: 1fr 1fr; } }
.offer-card {
  display: block; cursor: pointer; position: relative;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: var(--paper); padding: 28px 24px;
  transition: background 200ms, border-color 200ms, transform 200ms;
}
.offer-card:hover { background: var(--paper-deep); }
.offer-card input { position: absolute; opacity: 0; pointer-events: none; }
.offer-card .oc-code { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.offer-card .oc-title { display: block; font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); line-height: 1.1; margin: 10px 0 8px; }
.offer-card .oc-desc { display: block; color: var(--ink-soft); font-size: 15px; margin: 0; }
.offer-card input:checked ~ .oc-title { color: var(--accent-ink); }
.offer-card:has(input:checked) { border-color: var(--ink); background: var(--paper-deep); box-shadow: inset 0 0 0 1px var(--ink); }

.offer-step { display: none; }
.offer-step.on { display: block; }
.offer-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 600px) { .offer-grid { grid-template-columns: 1fr 1fr; } }
.offer-checks { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 600px) { .offer-checks { grid-template-columns: 1fr 1fr; } }
.offer-check {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  padding: 14px 16px; font-size: 15px; color: var(--ink-soft);
  transition: background 200ms, border-color 200ms;
}
.offer-check:hover { background: var(--paper-deep); }
.offer-check input { width: 16px; height: 16px; accent-color: var(--accent-ink); flex: none; }
.offer-check:has(input:checked) { border-color: var(--ink); color: var(--ink); background: var(--paper-deep); }

.offer-result { display: none; }
.offer-result.on { display: block; }
.offer-quote {
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: var(--paper-deep); padding: clamp(28px, 5vw, 56px);
}
.offer-quote .kicker { display: block; margin-bottom: 14px; }
.offer-quote h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 8px; }
.offer-quote .oq-sub { color: var(--ink-soft); margin: 0 0 28px; }
.offer-price {
  font-family: var(--serif); font-size: clamp(36px, 7vw, 72px);
  line-height: 1; letter-spacing: -0.02em; color: var(--ink); margin: 0;
}
.offer-price .cur { color: var(--accent-ink); }
.offer-meta { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 28px 0; padding: 24px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (min-width: 600px) { .offer-meta { grid-template-columns: repeat(3, 1fr); } }
.offer-meta .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.offer-meta .val { font-family: var(--serif); font-size: 22px; }
.offer-scope { list-style: none; padding: 0; margin: 0 0 28px; }
.offer-scope li { position: relative; padding: 8px 0 8px 22px; border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--ink-soft); }
.offer-scope li::before { content: ""; position: absolute; left: 0; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.offer-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.offer-disclaimer { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.02em; margin-top: 22px; }
@media print {
  .nav, .nav-sheet, .footer, .offer-actions, .skip-link { display: none !important; }
  .offer-quote { border: 0; background: #fff; padding: 0; }
}
