/* ==========================================================================
   Chaas Toborg — Editorial site
   Design tokens, layout primitives, components.
   ========================================================================== */

:root {
  /* Palette */
  --paper: #f6f1e7;            /* warm paper / off-white */
  --paper-soft: #efe8d9;       /* slightly deeper paper for bands */
  --paper-edge: #e6dfce;       /* subtle borders on paper */

  --ink: #0e1a2b;              /* deep ink navy */
  --ink-soft: #1a2740;         /* navy block backgrounds */
  --graphite: #2a2d34;         /* body text */
  --graphite-soft: #4a4f59;    /* secondary text */
  --graphite-muted: #5d646d;   /* meta / labels — tightened for AA */

  --sage: #7e8a76;             /* muted sage accent */
  --sage-deep: #5d6957;
  --copper: #a96a3b;           /* burnished copper / brass — decorative */
  --copper-deep: #8a5128;      /* copper for text (passes AA) */
  --copper-darker: #6d4220;    /* copper for small text on copper bg */
  --signal: #3a5f8a;           /* restrained signal blue (AI details) */

  --rule: rgba(14, 26, 43, 0.14);
  --rule-strong: rgba(14, 26, 43, 0.32);
  --rule-on-dark: rgba(246, 241, 231, 0.18);

  /* Typography */
  --font-serif: "Source Serif 4", "Source Serif Pro", "Iowan Old Style",
                "Apple Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Söhne", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono",
               Menlo, Consolas, monospace;

  /* Type scale (fluid) */
  --fs-meta: 0.78rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.1875rem;
  --fs-h4: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-h3: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  --fs-h2: clamp(1.875rem, 1.4rem + 2vw, 2.875rem);
  --fs-h1: clamp(2.375rem, 1.6rem + 3.4vw, 4.25rem);
  --fs-display: clamp(2.625rem, 1.6rem + 4.4vw, 5rem);

  /* Spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* Layout */
  --max: 1240px;
  --max-narrow: 880px;
  --radius: 4px;
  --radius-lg: 8px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11", "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--copper-deep); }
:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Headings — editorial serif */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-4);
}
h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -0.005em; }

p { margin: 0 0 var(--s-4); }
p.lead { font-size: var(--fs-lead); color: var(--graphite); line-height: 1.55; max-width: 64ch; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.container.narrow { max-width: var(--max-narrow); }

.section { padding: var(--s-9) 0; }
.section--tight { padding: var(--s-8) 0; }
.section--paper-soft { background: var(--paper-soft); }
.section--ink {
  background: var(--ink);
  color: var(--paper);
}
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--paper); }
.section--ink a { color: var(--paper); }
.section--ink p { color: rgba(246, 241, 231, 0.86); }

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}
.rule--strong { background: var(--rule-strong); }
.rule--on-dark { background: var(--rule-on-dark); }

/* Eyebrow label */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite-muted);
  font-weight: 600;
  margin: 0 0 var(--s-4);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--copper);
}
.section--ink .eyebrow { color: rgba(246, 241, 231, 0.72); }
.section--ink .eyebrow::before { background: var(--copper); }

/* Section header block */
.section-head { margin-bottom: var(--s-7); max-width: 56rem; }
.section-head p { color: var(--graphite-soft); max-width: 62ch; }

/* ---------- Buttons / CTAs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0.85rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  background: transparent;
  color: var(--ink);
}
.btn--primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--primary:hover { background: var(--ink-soft); color: var(--paper); }
.btn--ghost { border-color: var(--rule-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--on-dark { border-color: rgba(246, 241, 231, 0.4); color: var(--paper); }
.btn--on-dark:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--copper { background: var(--copper-deep); color: var(--paper); border-color: var(--copper-deep); }
.btn--copper:hover { background: var(--copper-darker); border-color: var(--copper-darker); color: var(--paper); }

.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-5); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--copper); }

.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav a {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--graphite);
  text-decoration: none;
  padding: var(--s-2) 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--copper);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(246, 241, 231, 0.82);
  padding: var(--s-9) 0 var(--s-6);
  margin-top: var(--s-9);
}
.site-footer h4 {
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0 0 var(--s-3);
}
.site-footer p.tagline {
  color: rgba(246, 241, 231, 0.72);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  max-width: 32ch;
  margin-bottom: var(--s-6);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-7);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.site-footer ul a {
  color: rgba(246, 241, 231, 0.78);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-footer ul a:hover { color: var(--paper); }
.site-footer__meta {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule-on-dark);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(246, 241, 231, 0.55);
}
.footer-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.55);
  margin-bottom: var(--s-3);
  font-weight: 600;
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--rule-strong);
  box-shadow: 0 16px 40px -28px rgba(14, 26, 43, 0.35);
}
.card__label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--graphite-muted);
}
.card__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
  font-weight: 500;
}
.card__body { color: var(--graphite-soft); font-size: 1rem; line-height: 1.6; margin: 0; }
.card__takeaway {
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
  font-size: 1rem;
}
.card__index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--copper-deep);
  letter-spacing: 0.06em;
}

/* Card grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.grid-asym {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-7);
  align-items: start;
}

/* ---------- Pull quote ---------- */
.pull-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.3;
  color: var(--ink);
  border-left: 2px solid var(--copper);
  padding: var(--s-3) 0 var(--s-3) var(--s-5);
  max-width: 52ch;
  font-style: italic;
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--s-9) 0 var(--s-8);
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--s-7);
  align-items: center;
}
.hero h1 { margin-bottom: var(--s-5); }
.hero .lead { margin-bottom: var(--s-5); }
.hero__credit {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--graphite-muted);
}
.hero__credit strong { color: var(--ink); font-weight: 600; }

/* Modular card stack visual */
.stack {
  position: relative;
  height: 420px;
  perspective: 1200px;
}
.stack__card {
  position: absolute;
  inset: 0;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  box-shadow: 0 30px 60px -40px rgba(14, 26, 43, 0.45);
}
.stack__card:nth-child(1) { transform: translate(0, 0) rotate(-2deg); z-index: 4; }
.stack__card:nth-child(2) { transform: translate(28px, 28px) rotate(1deg); z-index: 3; opacity: 0.96; }
.stack__card:nth-child(3) { transform: translate(56px, 56px) rotate(-0.5deg); z-index: 2; opacity: 0.92; }
.stack__card:nth-child(4) { transform: translate(84px, 84px) rotate(2deg); z-index: 1; opacity: 0.88; }
.stack__card .card__label { color: var(--copper); }
.stack__card .card__title { font-size: 1.1rem; }
.stack__card .diagram {
  margin-top: auto;
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 56px;
}
.stack__card .diagram span {
  flex: 1;
  background: linear-gradient(180deg, var(--paper-edge), var(--sage));
  border-radius: 2px;
}
.stack__card .diagram span:nth-child(2) { background: var(--copper); opacity: 0.7; }
.stack__card .diagram span:nth-child(4) { background: var(--signal); opacity: 0.6; }

/* ---------- Manifesto / thesis ---------- */
.manifesto {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--s-8);
  align-items: start;
}
.manifesto h2 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.manifesto .body p { color: var(--graphite); font-size: 1.0625rem; line-height: 1.65; max-width: 60ch; }

/* ---------- Case study (Work page) ---------- */
.case {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: var(--s-7);
  padding: var(--s-8) 0;
  border-top: 1px solid var(--rule);
}
.case:first-child { border-top: 0; padding-top: var(--s-5); }
.case__index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--copper-deep);
  letter-spacing: 0.08em;
  margin-bottom: var(--s-4);
}
.case h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); margin-bottom: var(--s-4); }
.case__block { margin-bottom: var(--s-5); }
.case__block h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--graphite-muted);
  margin: 0 0 var(--s-2);
}
.case__block p, .case__block ul { color: var(--graphite); font-size: 1.0625rem; line-height: 1.6; margin: 0; }
.case__block ul { padding-left: 1.2rem; }
.case__block ul li { margin-bottom: var(--s-2); }
.case__signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
  border-top: 1px solid var(--copper);
  padding-top: var(--s-4);
  margin-top: var(--s-5);
}

/* ---------- Operating model area cards ---------- */
.area {
  padding: var(--s-7);
  background: var(--paper-soft);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  align-items: start;
}
.area__index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--copper-deep);
  letter-spacing: 0.08em;
  margin-bottom: var(--s-3);
}
.area h3 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.875rem);
  margin-bottom: var(--s-3);
}
.area p { color: var(--graphite); margin-bottom: var(--s-4); }
.area__components h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--graphite-muted);
  margin: 0 0 var(--s-3);
}
.area__components ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2) var(--s-4);
}
.area__components li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.95rem;
  color: var(--graphite);
  line-height: 1.4;
}
.area__components li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 1px;
  background: var(--copper);
}
.area__value {
  grid-column: 1 / -1;
  margin-top: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
  font-size: 1.05rem;
}

/* ---------- Topic lanes ---------- */
.topic {
  padding: var(--s-5) var(--s-5) var(--s-6);
  border: 1px solid var(--paper-edge);
  background: var(--paper);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.topic h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0;
  font-weight: 500;
}
.topic p { color: var(--graphite-soft); margin: 0; font-size: 0.95rem; }
.topic__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

/* ---------- Essay cards ---------- */
.essay {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: var(--s-6);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--rule);
}
.essay:first-child { border-top: 1px solid var(--rule-strong); }
.essay__meta { font-size: 0.85rem; color: var(--graphite-muted); }
.essay__category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-deep);
  margin-bottom: var(--s-2);
}
.essay__index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--graphite-muted);
  letter-spacing: 0.06em;
}
.essay h3 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
  margin-bottom: var(--s-3);
  letter-spacing: -0.005em;
}
.essay p { color: var(--graphite); margin: 0 0 var(--s-3); max-width: 60ch; }
.essay__core {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
  font-size: 1.05rem;
  border-left: 2px solid var(--copper);
  padding-left: var(--s-4);
  max-width: 56ch;
}

/* ---------- Two-column blocks ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: start;
}
.col-card {
  padding: var(--s-6);
  border: 1px solid var(--paper-edge);
  background: var(--paper);
  border-radius: var(--radius-lg);
}
.col-card h3 {
  font-size: 1.4rem;
  margin-bottom: var(--s-3);
}

/* ---------- Closing CTA band ---------- */
.cta-band {
  padding: var(--s-9) 0;
  background: var(--ink);
  color: var(--paper);
  position: relative;
}
.cta-band h2 {
  color: var(--paper);
  max-width: 22ch;
  margin-bottom: var(--s-5);
}
.cta-band p {
  color: rgba(246, 241, 231, 0.82);
  max-width: 56ch;
  font-size: var(--fs-lead);
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  margin-top: var(--s-6);
}
.form .field--full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--graphite-muted);
}
.field input,
.field textarea,
.field select {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(169, 106, 59, 0.15);
}
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.form-note { font-size: 0.85rem; color: var(--graphite-muted); }
.form-note a { color: var(--ink); text-decoration: underline; }

/* ---------- Mobile menu ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--paper);
  padding: var(--s-6);
  flex-direction: column;
  gap: var(--s-5);
  z-index: 49;
  border-top: 1px solid var(--rule);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--ink);
  text-decoration: none;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
}
.mobile-nav a[aria-current="page"] { color: var(--copper); }

/* ---------- Reveal marker (no-op)
   .reveal is kept as a marker class so the JS hook can be added back
   later if desired, but no opacity hiding is applied. Content is always
   visible — the editorial rhythm carries the page without animation. */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .stack { height: 360px; max-width: 420px; margin: var(--s-5) auto 0; }
  .manifesto { grid-template-columns: 1fr; gap: var(--s-5); }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-asym { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; gap: var(--s-4); }
  .area { grid-template-columns: 1fr; }
  .area__components ul { grid-template-columns: 1fr; }
  .essay { grid-template-columns: 1fr; gap: var(--s-3); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
}

@media (max-width: 720px) {
  .section { padding: var(--s-8) 0; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__meta { flex-direction: column; gap: var(--s-2); align-items: flex-start; }
  .hero { padding: var(--s-7) 0 var(--s-6); }
  .stack { height: 320px; }
  .stack__card:nth-child(3),
  .stack__card:nth-child(4) { display: none; }
}
