/* ============================================================================
   Ahead Kitchen — marketing site
   Aesthetic: warm editorial × crafted product. Cream "paper" canvas, ink type,
   an ember accent with gold highlights, Fraunces display + Hanken Grotesk body +
   Spline Sans Mono micro-labels, fine grain, orchestrated motion, and a hero
   restaurant-site mock that re-skins itself live.
   ========================================================================== */

:root {
  /* palette */
  --paper:      #f7f2e9;
  --paper-2:    #efe7d8;
  --paper-3:    #e7dcc8;
  --ink:        #1a1814;
  --ink-2:      #221f19;
  --ink-soft:   #4f4a40;
  --ink-faint:  #897f6d;
  --ember:      #c5481f;
  --ember-deep: #9a3514;
  --gold:       #d99a3c;
  --sage:       #5f6a4f;
  --line:       rgba(26, 24, 20, 0.13);
  --line-soft:  rgba(26, 24, 20, 0.07);

  /* layout */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);

  /* type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SFMono-Regular", monospace;

  --step--2: clamp(0.7rem, 0.67rem + 0.15vw, 0.78rem);
  --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.92rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1:  clamp(1.18rem, 1.08rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.25rem + 1vw, 2rem);
  --step-3:  clamp(2rem, 1.55rem + 2.1vw, 3.1rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 4.7rem);
  --step-5:  clamp(3.2rem, 2.1rem + 5vw, 6rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--ember); color: #fff; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 540;
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin: 0;
  font-optical-sizing: auto;
}
em { font-style: italic; }
h1 em, h2 em { color: var(--ember-deep); }
p { margin: 0 0 1rem; }

.wrap {
  width: 100%; max-width: var(--maxw);
  margin-inline: auto; padding-inline: var(--gutter);
  position: relative; z-index: 2;
}

/* micro-label / eyebrow */
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: var(--step--2);
  font-weight: 500;
  color: var(--ember-deep);
  margin: 0 0 1.25rem;
  display: inline-flex; align-items: center; gap: 0.7rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: var(--ember); }
.eyebrow.center { justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 50px; padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-weight: 600; font-size: var(--step-0);
  text-decoration: none; border: 1px solid var(--bg); cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -14px rgba(26,24,20,0.55); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }
.btn svg { width: 1.05em; height: 1.05em; }
.btn--ember { --bg: var(--ember); --fg: #fff; border-color: var(--ember); }
.btn--ember:hover { background: var(--ember-deep); border-color: var(--ember-deep); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper-2); box-shadow: none; }
.btn--lg { min-height: 56px; padding: 0.95rem 2rem; font-size: var(--step-1); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line-soft); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand {
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1);
  letter-spacing: -0.02em; text-decoration: none; color: var(--ink);
}
.brand .mark {
  display: inline-block; width: 0.62rem; height: 0.62rem; border-radius: 50%;
  background: var(--ember); transform: translateY(-0.05em);
  box-shadow: 0 0 0 0 rgba(197,72,31,0.5);
  animation: pulse 3.2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(197,72,31,0.45); }
  50% { box-shadow: 0 0 0 6px rgba(197,72,31,0); }
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: var(--step-0);
  position: relative; transition: color 0.15s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1.5px;
  background: var(--ember); transition: right 0.25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 7vw, 6.5rem); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; z-index: 0; top: -26%; right: -14%;
  width: 64vw; height: 64vw; max-width: 760px; max-height: 760px;
  background:
    radial-gradient(closest-side, rgba(197,72,31,0.22), transparent 70%),
    radial-gradient(closest-side, rgba(217,154,60,0.16), transparent 70%);
  background-position: 0 0, 35% 45%; background-repeat: no-repeat;
  filter: blur(6px); pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(-4%, 3%) scale(1.08); } }
.hero .wrap { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.hero h1 { font-size: var(--step-4); max-width: 15ch; }
.hero-lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 44ch; margin: 1.4rem 0 0; line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; margin-top: 2rem; }
.hero-note {
  font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.04em;
  color: var(--ink-faint); margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem;
}
.hero-note span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-note span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sage); }

@media (min-width: 940px) {
  .hero .wrap { grid-template-columns: 1.02fr 0.98fr; align-items: center; }
}

/* centered hero variant (no device column) */
.hero--centered .wrap { display: block; max-width: 920px; text-align: center; }
.hero--centered .hero-lede { margin-left: auto; margin-right: auto; }
.hero--centered .hero-actions { justify-content: center; }
.hero--centered .hero-note { justify-content: center; }
.hero--centered h1 { margin-left: auto; margin-right: auto; max-width: 18ch; }

/* ---------- device scene (hero + showcase mocks) ---------- */
.device-scene { position: relative; z-index: 2; }

.browser {
  position: relative;
  border-radius: 16px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 40px 80px -50px rgba(26,24,20,0.55), 0 6px 18px -10px rgba(26,24,20,0.25);
}
.browser-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 0.9rem; background: var(--paper-2); border-bottom: 1px solid var(--line-soft);
}
.browser-dots { display: flex; gap: 0.4rem; }
.browser-dots i { width: 0.62rem; height: 0.62rem; border-radius: 50%; background: var(--line); display: block; }
.browser-dots i:first-child { background: #e07a5f; }
.browser-url {
  flex: 1; text-align: center; font-family: var(--font-mono); font-size: var(--step--2);
  color: var(--ink-faint); background: var(--paper); border-radius: 999px; padding: 0.3rem 0.8rem;
  margin: 0 0.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* the faux restaurant site inside the frame */
.resto {
  --m-bg: #14110d; --m-ink: #f6efe2; --m-accent: #e0a458; --m-soft: rgba(246,239,226,0.7);
  --m-photo-a: #3a2a1a; --m-photo-b: #120d08; --m-font: var(--font-display);
  --m-img: linear-gradient(155deg, var(--m-photo-a), var(--m-photo-b));
  background: var(--m-bg); color: var(--m-ink);
  transition: background 0.7s var(--ease), color 0.7s var(--ease);
}
.resto-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.1rem; font-size: 0.72rem;
}
.resto-brand { font-family: var(--m-font); font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em; }
.resto-nav .links { display: flex; gap: 0.85rem; color: var(--m-soft); }
.resto-nav .links span:last-child {
  color: var(--m-bg); background: var(--m-accent); padding: 0.25rem 0.6rem; border-radius: 999px; font-weight: 600;
}
.resto-hero {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.1rem 1.2rem 1.25rem;
}
.resto-hero .photo {
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--m-img);
  background-size: cover; background-position: center; background-color: var(--m-photo-b);
  animation: kenburns 14s ease-in-out infinite alternate;
}
/* legibility scrim so overlaid name/tag stay readable on real photos */
.resto-hero .photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8,6,4,0.82) 2%, rgba(8,6,4,0.34) 46%, rgba(8,6,4,0.06) 100%);
}
.resto-hero .photo::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.05; mix-blend-mode: overlay;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.resto-hero .tag {
  position: relative; z-index: 1; font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--m-accent); margin-bottom: 0.4rem;
}
.resto-hero h4 {
  position: relative; z-index: 1; font-family: var(--m-font); font-weight: 580;
  font-size: clamp(1.3rem, 1rem + 2.2vw, 2.1rem); line-height: 0.98; margin: 0; max-width: 14ch;
  letter-spacing: -0.02em;
}
.resto-menu { padding: 0.9rem 1.2rem 1.15rem; display: grid; gap: 0.55rem; }
.resto-menu .row { display: flex; align-items: baseline; gap: 0.5rem; font-size: 0.74rem; }
.resto-menu .row .name { font-family: var(--m-font); font-weight: 540; }
.resto-menu .row .lead { flex: 1; border-bottom: 1px dotted color-mix(in srgb, var(--m-ink) 30%, transparent); transform: translateY(-3px); }
.resto-menu .row .price { color: var(--m-accent); font-variant-numeric: tabular-nums; }

/* live re-skin crossfade */
.resto.swapping { opacity: 0.0; }
.resto { opacity: 1; transition: opacity 0.45s ease, background 0.7s var(--ease), color 0.7s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .resto-hero .photo { animation: none; }
  .resto, .resto.swapping { transition: none; opacity: 1; }
  .mark { animation: none; }
  .hero::after { animation: none; }
}

/* phone overlay in hero */
.device-scene .phone {
  position: absolute; z-index: 3; right: -2%; bottom: -8%; width: 31%;
  border-radius: 26px; padding: 0.4rem; background: #16130f;
  box-shadow: 0 30px 60px -30px rgba(26,24,20,0.6);
  border: 1px solid rgba(255,255,255,0.08);
}
.device-scene .phone .screen { border-radius: 20px; overflow: hidden; background: #000; }
.device-scene .phone .notch {
  position: absolute; top: 0.4rem; left: 50%; transform: translateX(-50%);
  width: 34%; height: 0.55rem; background: #16130f; border-radius: 0 0 8px 8px; z-index: 4;
}
@media (max-width: 620px) {
  .device-scene .phone { display: none; }
}

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line-soft); background: var(--paper-2);
  overflow: hidden; padding: 0.9rem 0; position: relative; z-index: 2;
}
.marquee-track {
  display: flex; gap: 2.5rem; width: max-content;
  animation: scroll-x 32s linear infinite; will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
  font-family: var(--font-display); font-size: var(--step-1); color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 2.5rem; white-space: nowrap;
}
.marquee-item::after { content: "✦"; color: var(--ember); font-size: 0.7em; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- generic section ---------- */
section { position: relative; z-index: 2; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--alt { background: var(--paper-2); border-block: 1px solid var(--line-soft); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2 { color: var(--paper); }
.section--ink .eyebrow { color: var(--gold); }
.section--ink .eyebrow::before { background: var(--gold); }
.section-head { max-width: 42ch; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); margin: 0; }
.section--ink .section-head p { color: rgba(247,242,233,0.74); }

/* ---------- transformation ---------- */
.transform { display: grid; gap: 1.25rem; align-items: stretch; }
@media (min-width: 860px) { .transform { grid-template-columns: 1fr auto 1fr; align-items: center; } }
.transform-card {
  border-radius: 16px; border: 1px solid var(--line); padding: 1.5rem; background: var(--paper);
  position: relative; min-height: 220px;
}
.transform-card .lbl {
  font-family: var(--font-mono); font-size: var(--step--2); text-transform: uppercase;
  letter-spacing: 0.16em; margin-bottom: 1.1rem; display: inline-block;
}
.transform-card.before { background: #efe7d8; }
.transform-card.before .lbl { color: var(--ink-faint); }
.transform-card.before .junk { display: grid; gap: 0.6rem; }
.transform-card.before .junk .bit {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-faint);
  padding: 0.55rem 0.7rem; border: 1px dashed var(--line); border-radius: 8px;
  display: flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.4);
}
.transform-card.before .junk .bit::before { content: "⚠"; color: #b8743a; }
.transform-card.after { background: linear-gradient(160deg, var(--ink-2), var(--ink)); color: var(--paper); border-color: transparent; overflow: hidden; }
.transform-card.after .lbl { color: var(--gold); }
.transform-card.after .mini-site { border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.transform-arrow {
  display: grid; place-items: center; color: var(--ember);
  font-family: var(--font-mono); font-size: var(--step--1);
}
.transform-arrow svg { width: 2.4rem; height: 2.4rem; }
@media (max-width: 859px) { .transform-arrow { transform: rotate(90deg); padding: 0.5rem 0; } }

/* ---------- steps ---------- */
.steps { display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative; padding: 1.9rem 1.6rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -28px rgba(26,24,20,0.4); }
.section--alt .step { background: var(--paper); }
.step .ic {
  width: 2.8rem; height: 2.8rem; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--ember) 13%, var(--paper)); color: var(--ember-deep); margin-bottom: 1.1rem;
}
.step .ic svg { width: 1.4rem; height: 1.4rem; }
.step::after {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 1.2rem; right: 1.4rem;
  font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-faint);
}
.step h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); margin: 0; font-size: var(--step-0); }

/* ---------- features ---------- */
.features { display: grid; gap: 1rem; }
@media (min-width: 660px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  padding: 1.6rem; border-radius: 16px; border: 1px solid var(--line); background: var(--paper);
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}
.feature:hover { border-color: color-mix(in srgb, var(--ember) 40%, var(--line)); transform: translateY(-3px); }
.feature .ic {
  width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 11px;
  background: color-mix(in srgb, var(--ember) 12%, var(--paper)); color: var(--ember-deep); margin-bottom: 1rem;
}
.feature .ic svg { width: 1.35rem; height: 1.35rem; }
.feature h3 { font-size: var(--step-1); margin-bottom: 0.45rem; }
.feature p { color: var(--ink-soft); margin: 0; font-size: var(--step-0); }

/* ---------- showcase (distinct mocks) ---------- */
.showcase { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .showcase { grid-template-columns: repeat(3, 1fr); } }
.showcase .browser { box-shadow: 0 30px 60px -44px rgba(26,24,20,0.5); transition: transform 0.3s var(--ease); }
.showcase .browser:hover { transform: translateY(-6px) rotate(-0.4deg); }
.showcase figcaption {
  font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.06em;
  color: var(--ink-faint); margin-top: 0.85rem; text-align: center; text-transform: uppercase;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.75rem; max-width: 800px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper);
  padding: 0 1.4rem; overflow: hidden; transition: border-color 0.2s ease;
}
.faq details[open] { border-color: color-mix(in srgb, var(--ember) 35%, var(--line)); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 0; font-family: var(--font-display);
  font-size: var(--step-1); font-weight: 540; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; width: 1.1rem; height: 1.1rem; flex: none; }
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; background: var(--ember); border-radius: 2px;
  inset: 50% 0; height: 2px; transform: translateY(-50%); transition: transform 0.25s var(--ease);
}
.faq summary .plus::after { transform: translateY(-50%) rotate(90deg); }
.faq details[open] summary .plus::after { transform: translateY(-50%) rotate(0); }
.faq details p { color: var(--ink-soft); margin: 0 0 1.2rem; max-width: 64ch; }

/* ---------- closing CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; background: var(--ink); color: var(--paper);
  border-radius: 26px; padding: clamp(2.75rem, 7vw, 5rem); text-align: center;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(197,72,31,0.5), transparent 55%),
    radial-gradient(80% 100% at 90% 110%, rgba(217,154,60,0.3), transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--paper); font-size: var(--step-3); margin-bottom: 1rem; }
.cta-band p { color: rgba(247,242,233,0.8); max-width: 48ch; margin: 0 auto 2rem; font-size: var(--step-1); }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn--ghost { --fg: var(--paper); border-color: rgba(247,242,233,0.35); }
.cta-band .btn--ghost:hover { background: rgba(247,242,233,0.09); }

/* ---------- footer ---------- */
.site-footer { padding: clamp(3rem, 6vw, 5rem) 0 2.5rem; border-top: 1px solid var(--line); margin-top: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; gap: 2.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-grid h4 {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.16em;
  font-size: var(--step--2); color: var(--ink-faint); margin: 0 0 1rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.footer-links a { text-decoration: none; color: var(--ink-soft); transition: color 0.15s ease; }
.footer-links a:hover { color: var(--ember-deep); }
.footer-brand p { color: var(--ink-soft); max-width: 36ch; margin: 1rem 0 0; font-size: var(--step-0); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; align-items: center;
  margin-top: 2.75rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft);
  color: var(--ink-faint); font-family: var(--font-mono); font-size: var(--step--2);
}

/* ---------- legal/policy pages ---------- */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: var(--step-3); margin-bottom: 0.5rem; }
.legal .updated { font-family: var(--font-mono); color: var(--ink-faint); font-size: var(--step--2); margin: 0 0 2.5rem; }
.legal h2 { font-size: var(--step-2); margin: 2.5rem 0 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); }
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--step-1); margin: 1.5rem 0 0.5rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.5rem; }
.legal a { color: var(--ember-deep); }
.legal .fill { background: color-mix(in srgb, var(--ember) 16%, var(--paper)); border-radius: 4px; padding: 0.05em 0.4em; font-weight: 600; color: var(--ember-deep); }
.legal .note { background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem 1.4rem; font-size: var(--step--1); color: var(--ink-soft); margin: 2rem 0 0; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- mobile nav ---------- */
@media (max-width: 820px) {
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    background: transparent; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; color: var(--ink);
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .mobile-menu {
    display: none; position: fixed; inset: 74px 0 auto 0; z-index: 49; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 1.25rem var(--gutter) 1.75rem;
    box-shadow: 0 24px 40px -28px rgba(26,24,20,0.4);
  }
  .mobile-menu.open { display: block; animation: drop 0.25s var(--ease); }
  @keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .mobile-menu ul { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.25rem; }
  .mobile-menu a { display: block; padding: 0.9rem 0.5rem; text-decoration: none; color: var(--ink); font-size: var(--step-1); font-family: var(--font-display); border-bottom: 1px solid var(--line-soft); }
  .mobile-menu .btn { width: 100%; margin-top: 0.5rem; }
}
@media (min-width: 821px) { .mobile-menu { display: none !important; } }
