/* ═══════════════════════════════════════════════════════════════
   Formwork — site styles v1
   Palette: Ink-Blue · Type: Playfair Display + Instrument Sans · Logo: 02
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Colour */
  --paper: #F1EAD8;
  --paper-2: #E9E2CE;     /* one step down, for section shifts */
  --warm:  #E4DBC5;       /* card ground, muted surface */
  --rule:  #B8AF98;       /* hairlines */
  --ink:   #1A1612;       /* body text, mark */
  --ink-2: #4A423A;       /* muted text, secondary */
  --accent: #3E556A;      /* ink-blue accent, used sparingly */
  --accent-2: #2E4256;    /* deeper accent for hover */

  /* Type */
  --font-display: "Playfair Display", ui-serif, Georgia, serif;
  --font-body:    "Instrument Sans", ui-sans-serif, system-ui, sans-serif;

  /* Type scale — only hero H1 is huge. Real hierarchy. */
  --fs-h1:      clamp(1.5rem, 3vw, 2.4rem);
  --fs-h2:      clamp(1.875rem, 3vw, 2.5rem);
  --fs-h3:      1.375rem;
  --fs-body:    1.125rem;
  --fs-lede:    1.3rem;
  --fs-eyebrow: 0.8125rem;

  --lh-h1:   1.15;
  --lh-h2:   1.1;
  --lh-h3:   1.25;
  --lh-body: 1.65;
  --lh-lede: 1.5;

  /* Space scale */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 40px;
  --sp-5: 64px;
  --sp-6: 96px;
  --sp-7: 144px;

  /* Rhythm — within-group is ~1/3 of between-group */
  --gap-eyebrow-h: 0.75rem;   /* eyebrow → heading */
  --gap-h-body:    1.25rem;   /* heading → body */
  --gap-item:      2.5rem;    /* between list items */
  --gap-intro:     3.5rem;    /* section intro → its list */
  --section-pad:   4rem;      /* section top/bottom */
  --section-pad-m: 2.5rem;    /* mobile */

  --max-w: 1180px;
  --measure: 62ch;
  --gutter: clamp(24px, 5vw, 56px);

  /* Motion — restrained. One orchestrated moment per page. */
  --ease:     cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 180ms;
  --dur-med:  420ms;
  --dur-slow: 1350ms;

  /* Extra colour tokens used by animated states */
  --concrete: #928C82;  /* muted mid-grey — used for dimmed pain text */
}

/* ─── Reset + base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  /* Sticky-footer scaffolding — pushes footer to viewport bottom on short pages */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }

img, svg { display: block; max-width: 100%; }

/* Reduced motion respected globally */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Skip link for keyboard users */
.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; z-index: 100;
  font-family: var(--font-body); font-size: 14px;
}
.skip:focus { left: 16px; top: 16px; }

/* Focus states */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ─── Type primitives ──────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  /* Playfair's fi/fl/ff ligatures fuse into single glyphs — reads as squished at display size. */
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "hlig" 0;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: 0; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-variation-settings: "SOFT" 30, "opsz" 60; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-variation-settings: "SOFT" 30, "opsz" 32; letter-spacing: -0.015em; }
h4 { font-size: 1.125rem; line-height: 1.3; font-variation-settings: "SOFT" 30, "opsz" 24; }

p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--accent); }

.lede { font-size: var(--fs-lede); line-height: var(--lh-lede); color: var(--ink-2); }

/* Small caps utility — labels, section markers, eyebrows */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2);
  display: inline-block;
}
.eyebrow.accent { color: var(--accent); }

.num {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
}

/* ─── Layout ───────────────────────────────────────────── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section-pad) 0; }
section.tight { padding: calc(var(--section-pad) * 0.75) 0; }
section + section { border-top: 1px solid var(--rule); }
main > section:first-of-type { border-top: 0; padding-top: var(--sp-4); }

/* ─── Nav ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-3) 0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand svg { width: 28px; height: 28px; color: var(--ink); }
.brand .wm {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.025em;
  font-variation-settings: "SOFT" 40, "opsz" 40;
}
.nav-links {
  display: flex; gap: var(--sp-4);
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-size: 15px;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--ink); }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--ink);
  padding: 8px 14px;
  font-family: var(--font-body); font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; color: var(--ink);
}

/* ─── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background 180ms, color 180ms, border-color 180ms;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }

.btn-text {
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  gap: 8px;
}
.btn-text:hover { background: transparent; color: var(--accent); border-bottom-color: var(--accent); }

.arrow { display: inline-block; transition: transform 180ms; }
.btn:hover .arrow { transform: translateX(3px); }

/* ─── Hero ─────────────────────────────────────────────── */
/* Flat structure — all children of the same .wrap, one left edge.
   No flex on hero — .wrap inside behaves identically to header's .wrap.
   Rhythm: nav bottom (24px) + hero pt (40px) = 4rem to eyebrow.
   eyebrow → h1: 0.75rem · h1 → lead: 1.75rem · lead → CTAs: 2rem
   CTAs → image: 4rem desktop / 2rem mobile. */
.hero {
  padding: var(--sp-3) 0 0;
}
.hero > .wrap > .eyebrow { display: block; margin: 0 0 0.75rem; }
.hero > .wrap > h1 {
  margin: 0 0 1rem;
  max-width: 40ch;
  text-wrap: balance;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero > .wrap > h1 .accent { color: var(--accent); }
.hero > .wrap > .lede { max-width: 52ch; margin: 0 0 1.5rem; }
.hero > .wrap > .ctas { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin: 0; }
.hero > .wrap > .hero-note {
  margin: 1.5rem 0 0;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Image — full-bleed (100% of section = 100vw), sits below wrap with 4rem gap. */
.hero > .hero-image {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  background: var(--warm);
  margin-top: 4rem;
}
.hero + section { border-top: 1px solid var(--rule); }

/* ─── Photo placeholders (for pre-shoot builds) ────────── */
.photo {
  background: color-mix(in oklab, var(--accent) 8%, var(--warm));
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex; align-items: flex-end;
  padding: var(--sp-3);
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.photo::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, transparent 49.5%, currentColor 49.5%, currentColor 50.5%, transparent 50.5%),
    linear-gradient(45deg,  transparent 49.5%, currentColor 49.5%, currentColor 50.5%, transparent 50.5%);
  opacity: 0.12;
  pointer-events: none;
}
.photo span { position: relative; z-index: 1; }
.photo-portrait { aspect-ratio: 4/5; }
.photo-landscape { aspect-ratio: 16/10; }
.photo-wide { aspect-ratio: 21/9; }
.photo-banner { aspect-ratio: 5/2; min-height: 280px; }

/* ─── Section: The problem ─────────────────────────────── */
.problem { background: var(--paper-2); }
.problem > .wrap > .eyebrow { display: block; margin: 0 0 0.75rem; }
.problem > .wrap > h2 { margin: 0 0 2rem; }

/* Plain-text two-column list. No buttons, no reveal, always visible. */
.problem-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.problem-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 2rem 0;
  margin: 0;
  border-top: 1px solid color-mix(in oklab, var(--concrete) 30%, transparent);
  color: var(--ink);
}
.problem-list li:first-child { border-top: 0; padding-top: 0; }
.problem-list li:last-child { padding-bottom: 0; }

.problem-text {
  font-family: var(--font-body);
  font-size: 1.375rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  max-width: 44ch;
}
.problem-fix-text {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  max-width: 44ch;
}

/* Wide desktop: two columns side-by-side, top-aligned. */
@media (min-width: 1100px) {
  .problem-list li {
    grid-template-columns: 44ch 44ch;
    gap: 2.5rem;
    align-items: start;
  }
}

/* Reveal on scroll — pain gets a strike-through AND dims, fix fades in from below.
   Progressive: initial hidden state only applies when .js-anim is set,
   so the section still reads if JS never runs. */
.js-anim .problem-list .problem-text {
  text-decoration-line: line-through;
  text-decoration-style: solid;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  transition:
    text-decoration-color 2700ms var(--ease),
    color 2700ms var(--ease) 360ms,
    opacity 2700ms var(--ease) 360ms;
}
.js-anim .problem-list .problem-fix-text {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 840ms var(--ease) 1440ms,
    transform 840ms var(--ease) 1440ms;
  will-change: opacity, transform;
}
.js-anim .problem-list li.in-view .problem-text {
  text-decoration-color: var(--ink-2);
  color: var(--concrete);
  opacity: 0.75;
}
.js-anim .problem-list li.in-view .problem-fix-text {
  opacity: 1;
  transform: none;
}

/* Closer — static, display serif at h2 size, full container width, 4rem above. */
.problem .closer {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 4rem 0 0;
  max-width: none;
  font-variation-settings: "SOFT" 30, "opsz" 60;
}

/* ─── Section: Three pillars ───────────────────────────── */
.pillars .intro { max-width: none; margin-bottom: var(--gap-intro); }
.pillars .intro .eyebrow { margin-bottom: var(--gap-eyebrow-h); }
.pillars .intro h2 { margin: 0; }
.pillar {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-4);
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.pillar:first-of-type { border-top: 0; padding-top: 0; }
.pillar:last-child { padding-bottom: 0; }
.pillar > div:first-child { display: flex; flex-direction: column; gap: var(--gap-eyebrow-h); }
.pillar h3 { font-size: var(--fs-h3); margin: 0; max-width: 22ch; }
.pillar .body { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink); max-width: 60ch; margin: 0; }
.pillar .num-lead { color: var(--accent); }

/* ─── Section: What we build ───────────────────────────── */
.build .intro { max-width: none; margin-bottom: var(--gap-intro); }
.build .intro .eyebrow { margin-bottom: var(--gap-eyebrow-h); }
.build .intro h2 { margin: 0; }
.build-list { border-top: 1px solid var(--rule); }
.build-item {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr;
  gap: var(--sp-4);
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.build-item h3 { font-size: var(--fs-h3); font-weight: 400; margin: 0; max-width: 22ch; }
.build-item .body { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-2); max-width: 52ch; margin: 0; }

/* ─── Section: What we don't do ────────────────────────── */
.dont .intro { max-width: none; margin-bottom: var(--gap-intro); }
.dont .intro .eyebrow { margin-bottom: var(--gap-eyebrow-h); }
.dont .intro h2 { margin: 0; }
.dont-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dont-list li {
  font-family: var(--font-body);
  font-size: 1.375rem;
  line-height: 1.4;
  max-width: 44ch;
  padding: 1.5rem 0;
  margin: 0;
  color: var(--ink);
}
.dont-list li + li {
  border-top: 1px solid color-mix(in oklab, var(--concrete) 30%, transparent);
}

/* ─── Section: Built by us (proof) ─────────────────────── */
.proof { background: var(--paper-2); }
.proof .intro { max-width: none; margin-bottom: var(--gap-intro); }
.proof .intro .eyebrow { margin-bottom: var(--gap-eyebrow-h); }
.proof .intro h2 { margin: 0 0 var(--gap-h-body); }
.proof .intro .lede { margin: 0; max-width: 60ch; }
.proof-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  padding: var(--gap-item) 0;
  border-top: 1px solid var(--rule);
  align-items: center;
}
.proof-item h3 { font-size: var(--fs-h2); line-height: var(--lh-h2); margin: 0 0 var(--gap-h-body); }
.proof-item .meta {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--gap-eyebrow-h);
  display: inline-block;
}
.proof-item .body { font-size: var(--fs-body); line-height: var(--lh-body); margin: 0 0 var(--gap-item); max-width: 52ch; }
.proof-item dl { margin: 0; display: grid; grid-template-columns: 140px 1fr; gap: 12px 20px; font-size: 0.95rem; }
.proof-item dt { font-weight: 500; color: var(--ink-2); }
.proof-item dd { margin: 0; }

/* Earlier work — smaller-scale sibling of proof-item */
.earlier {
  border-top: 1px solid var(--rule);
  padding-top: var(--gap-item);
  margin-top: var(--gap-item);
}
.earlier-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: -0.015em;
  margin: 0 0 var(--gap-h-body);
  color: var(--ink-2);
}
.earlier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
.earlier-item h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: -0.015em;
  margin: 0 0 var(--gap-h-body);
}
.earlier-item p {
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-2);
  max-width: 44ch;
}
@media (max-width: 700px) {
  .earlier-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
}

/* ─── Section: Who we are (about preview) ──────────────── */
.about-preview .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  align-items: end;
}
.about-preview .copy .eyebrow { margin-bottom: var(--gap-eyebrow-h); }
.about-preview .copy h2 { margin: 0 0 var(--gap-h-body); }
.about-preview .copy .body { font-size: var(--fs-body); line-height: var(--lh-body); margin: 0 0 var(--sp-3); max-width: 52ch; }
.about-preview .portraits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}
.about-preview .portraits .cap {
  padding: var(--sp-2) 0;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ─── Section: How it works ────────────────────────────── */
.how { background: var(--paper-2); }
.how .intro { max-width: none; margin-bottom: var(--gap-intro); }
.how .intro .eyebrow { margin-bottom: var(--gap-eyebrow-h); }
.how .intro h2 { margin: 0; }
.step {
  display: grid;
  grid-template-columns: 100px 1fr 1.4fr;
  gap: var(--sp-4);
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.step h3 { font-size: var(--fs-h3); margin: 0; max-width: 24ch; }
.step .body { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-2); max-width: 52ch; margin: 0; }

/* ─── Section: Pilot ──────────────────────────────────── */
.pilot { background: var(--paper-2); }
.pilot > .wrap > .eyebrow { display: block; margin: 0 0 0.75rem; }
.pilot > .wrap > h2 { margin: 0 0 var(--gap-h-body); max-width: 22ch; }
.pilot > .wrap > h2 .accent { color: var(--accent); }
.pilot > .wrap > .lede { max-width: 52ch; margin: 0 0 var(--sp-3); }
.pilot > .wrap > .body { max-width: 60ch; margin: 0 0 var(--sp-3); color: var(--ink-2); }
.pilot > .wrap > .pilot-note { margin: var(--sp-4) 0 0; font-size: 0.9em; color: var(--ink-2); font-style: italic; }
.pilot > .wrap > .ctas { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin: var(--sp-3) 0 0; }

/* ─── Section: Close ───────────────────────────────────── */
.close { text-align: center; padding: var(--section-pad) 0 calc(var(--section-pad) + 2rem); }
.close h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  max-width: 42ch;
  margin: 0 auto var(--gap-h-body);
  text-wrap: balance;
}
.close .accent-word { color: var(--accent); }
.close .ctas { display: inline-flex; justify-content: center; }

/* ─── Footer ───────────────────────────────────────────── */
footer.site-footer {
  padding: var(--sp-5) 0 var(--sp-4);
  border-top: 1px solid var(--ink);
  background: var(--paper);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--rule);
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
  margin: 0 0 var(--sp-2);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 2; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  padding-top: var(--sp-3);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-2);
  flex-wrap: wrap; gap: var(--sp-2);
}
.footer-bottom .brand-mini { display: inline-flex; align-items: center; gap: 10px; }
.footer-bottom .brand-mini svg { width: 20px; height: 20px; }

/* ─── Gentle load fade — the only motion ───────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.fade-in { animation: fadeUp 600ms ease-out both; }

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  section { padding: var(--section-pad-m) 0; }
  .photo-banner { aspect-ratio: 3/2; }
  /* Mobile: no viewport-min on hero either — content sizes it. */
  .hero > .hero-image {
    aspect-ratio: 4/5;
    margin-top: 2rem;
  }
  .problem-item { grid-template-columns: 1fr; gap: var(--sp-2); }
  .pillar { grid-template-columns: 1fr; gap: var(--sp-2); }
  .build-item { grid-template-columns: 60px 1fr; }
  .build-item .body { grid-column: 2 / -1; }
  .proof-item { grid-template-columns: 1fr; gap: var(--sp-4); }
  .about-preview .grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .step { grid-template-columns: 60px 1fr; }
  .step .body { grid-column: 2 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-top: 1px solid var(--rule);
    padding: var(--sp-3) var(--gutter);
    gap: var(--sp-2);
  }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   Sub-page styles (Work, About, How it works, What we build, Contact)
   ═══════════════════════════════════════════════════════════════ */

/* ─── Page hero (reused on all sub-pages) ───────────────── */
.page-hero {
  padding: var(--sp-3) 0 var(--sp-3);
  border-bottom: 1px solid var(--rule);
}
.page-hero .eyebrow { display: block; margin: 0 0 0.75rem; }
.page-hero h1 {
  margin: 0 0 0.75rem;
  max-width: none;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.page-hero h1 .accent { color: var(--accent); }
.page-hero .lede { max-width: 56ch; margin: 0; }

/* ─── Work · Case studies ───────────────────────────────── */
.case { padding: var(--section-pad) 0; }
.case + .case { border-top: 1px solid var(--rule); }
.case-alt { background: var(--paper-2); }
.case-header { margin-bottom: var(--gap-intro); }
.case-header .num { display: block; margin-bottom: 0.75rem; }
.case-header h2 { margin: 0 0 var(--gap-h-body); }
.case-header .case-tag {
  font-family: var(--font-body);
  font-size: var(--fs-lede);
  line-height: var(--lh-lede);
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0;
}
.case-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-5);
  align-items: start;
}
.case-body h3 {
  font-size: var(--fs-h3);
  margin: 0 0 var(--gap-h-body);
  color: var(--accent);
}
.case-body h3:not(:first-child) { margin-top: var(--gap-item); }
.case-body p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  max-width: 60ch;
  color: var(--ink);
  margin: 0;
}
.case-facts dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 20px;
  font-size: 0.95rem;
  margin: 0 0 var(--sp-4);
}
.case-facts dt { font-weight: 500; color: var(--ink-2); }
.case-facts dd { margin: 0; color: var(--ink); }
.case-facts .photo { margin-top: var(--sp-3); }

/* ─── About · Story + founders ──────────────────────────── */
.story { padding: var(--section-pad) 0; }
.story-body h2 {
  margin: 0 0 var(--gap-intro);
  max-width: 20ch;
}
.story-body p {
  font-size: var(--fs-lede);
  line-height: 1.55;
  max-width: 60ch;
  color: var(--ink);
  margin: 0 0 1.25em;
}
.story-body p:last-child { margin-bottom: 0; }

.founders { padding: var(--section-pad) 0; background: var(--paper-2); }
.founders .intro { margin-bottom: var(--gap-intro); }
.founders .intro .eyebrow { display: block; margin-bottom: 0.75rem; }
.founders .intro h2 { margin: 0; }
.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}
.story-layout {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 340px);
  gap: var(--sp-5);
  align-items: start;
}
.story-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  position: sticky;
  top: var(--sp-5);
}
.story-photos .founder-copy h3 {
  font-size: var(--fs-h3);
  line-height: 1.2;
  margin: 0 0 0.25rem;
}
.story-photos .founder-meta {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.founder .photo { margin-bottom: var(--sp-3); }
.founder-copy h3 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  margin: 0 0 var(--gap-eyebrow-h);
}
.founder-meta {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--gap-h-body) !important;
}
.founder-copy p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  max-width: 52ch;
  margin: 0 0 1em;
  color: var(--ink);
}
.founder-copy p:last-child { margin-bottom: 0; }

.why-us { padding: var(--section-pad) 0; }
.why-us .intro { margin-bottom: var(--gap-intro); }
.why-us .intro .eyebrow { display: block; margin-bottom: 0.75rem; }
.why-us .intro h2 { margin: 0; }

/* ─── How it works · Pricing ────────────────────────────── */
.pricing { padding: var(--section-pad) 0; }
.pricing .intro { margin-bottom: var(--gap-intro); }
.pricing .intro .eyebrow { display: block; margin-bottom: 0.75rem; }
.pricing .intro h2 { margin: 0; }
.pricing-body p {
  font-size: var(--fs-lede);
  line-height: var(--lh-lede);
  max-width: 60ch;
  margin: 0 0 1.25em;
  color: var(--ink);
}
.pricing-tiers {
  list-style: none;
  padding: 0;
  margin: var(--sp-4) 0 0;
  border-top: 1px solid var(--rule);
}
.pricing-tiers li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--sp-4);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.tier-name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--ink);
}
.tier-line {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-2);
  max-width: 52ch;
}

/* ─── What we build · Services ──────────────────────────── */
.services { padding: var(--section-pad) 0; }
.service {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
/* Capability statements (What we build page — lead section) */
.capability-stack {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.capability {
  max-width: 78ch;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.capability:first-child { border-top: 0; padding-top: 0; }
.capability h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  color: var(--ink);
}
.capability p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 66ch;
}

/* 2-column (or auto-fit) service grid — for tighter section layouts */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem 2.5rem;
  margin-top: var(--sp-3);
}
.service-grid .service {
  display: block;
  padding: 1rem 0 0;
  border-top: 1px solid var(--rule);
}
.service-grid .service:first-child { border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.service-grid .service-header { margin-bottom: 0.6rem; }
.service-grid .service-header .num {
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.service-grid .service-header h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
}
.service-grid .service-body p {
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 55ch;
  margin: 0.35rem 0 0;
  color: var(--ink-2);
}
.service:first-child { border-top: 0; padding-top: 0; }
.service:last-child { padding-bottom: 0; }
.service-header .num { display: block; margin-bottom: 0.75rem; }
.service-header h2 {
  margin: 0;
  max-width: 14ch;
}
.service-body .lede { margin: 0 0 var(--gap-h-body); max-width: 56ch; }
.service-body p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  max-width: 60ch;
  margin: 0 0 1em;
  color: var(--ink);
}
.service-body p:last-child { margin-bottom: 0; }
.service-body strong { font-weight: 500; color: var(--ink); }

/* ─── Contact · Form ────────────────────────────────────── */
.contact-form-section { padding: var(--section-pad) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-6);
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: var(--sp-3); max-width: 52ch; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  padding: 12px 14px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  color: var(--ink);
  border-radius: 0;
  outline: none;
  width: 100%;
  transition: border-color 180ms, background 180ms;
}
.contact-form input:focus,
.contact-form textarea:focus {
  background: var(--paper);
  border-color: var(--accent);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { align-self: flex-start; margin-top: var(--sp-2); }
.form-note {
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-eyebrow);
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.contact-aside { display: flex; flex-direction: column; gap: var(--sp-4); }
.contact-fact h3 {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
  font-weight: 500;
}
.contact-fact p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  max-width: 40ch;
  margin: 0;
  color: var(--ink);
}

/* ─── Credentials block on About ────────────────────────── */
.credentials {
  border-top: 1px solid var(--rule);
  margin-top: var(--gap-item);
  padding-top: var(--gap-item);
}
.credentials-title {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 var(--sp-3);
}
.credentials-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: var(--sp-3) var(--sp-5);
  max-width: none;
}
.credentials-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-2);
}
.credentials-list li strong { color: var(--ink); font-weight: 500; }
.brand-mark {
  flex: 0 0 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding-top: 2px;
}
.brand-mark svg,
.brand-mark img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}

/* ─── Legal page (privacy) ──────────────────────────────── */
.legal { padding: var(--section-pad) 0; }
.legal-body { max-width: 68ch; }
.legal-body .legal-meta {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: var(--sp-4);
}
.legal-body h2 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  margin: var(--sp-4) 0 var(--gap-h-body);
  color: var(--accent);
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p { font-size: var(--fs-body); line-height: var(--lh-body); margin: 0 0 1em; }
.legal-body ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal-body li { font-size: var(--fs-body); line-height: var(--lh-body); margin-bottom: 0.4em; }
.legal-body a { text-decoration: underline; text-decoration-color: var(--accent); }

/* ─── Responsive fallbacks for sub-pages ────────────────── */
@media (max-width: 900px) {
  .case-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .founder-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .story-layout { grid-template-columns: 1fr; gap: var(--sp-4); }
  .story-photos { position: static; }
  .service { grid-template-columns: 1fr; gap: var(--sp-3); }
  .pricing-tiers li { grid-template-columns: 1fr; gap: var(--sp-1); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
}


/* ═══ Transition band (What we build page) ═══ */
.transition-band {
  background: var(--paper-2);
  padding: 1.75rem 0;
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.transition-band p {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  font-weight: 500;
  max-width: none;
}
/* Section that follows the band shouldn't add another top border */
.transition-band + section { border-top: 0; }

/* ═══ Good fit if — scannable label/value under each service ═══ */
.good-fit {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--rule);
  align-items: baseline;
}
.good-fit dt {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0;
}
.good-fit dd {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}
@media (max-width: 480px) {
  .good-fit { grid-template-columns: 1fr; gap: 2px; }
}
