/* Founderie design tokens v1.0 */
@import url("https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap");

:root {
  /* Color */
  --iron: #16171A;        /* mark, type, dark grounds */
  --bone: #EFE9DC;        /* primary light ground */
  --paper: #F7F3EA;       /* cards, forms, raised surfaces */
  --slate: #5E5B55;       /* secondary text on light */
  --rule: #C9C0AE;        /* hairlines on light */
  --rule-dark: #2E3034;   /* hairlines on iron */
  --muted-on-iron: #D9D1C1; /* body text on iron */
  --gold: #F5B21B;        /* Molten Gold: primary button, one accent per section, type on iron */
  --gold-deep: #7A5A0C;   /* small accent type on bone/paper (gold text on light fails contrast) */

  /* Type */
  --font: "Archivo", system-ui, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fs-eyebrow: 12px;     /* uppercase, letter-spacing .2em */
  --fs-small: 14px;
  --fs-body: 17px;        /* line-height 1.55 to 1.6 */
  --fs-lead: 19px;
  --fs-h3: 26px;
  --fs-h2: clamp(32px, 4vw, 44px);
  --fs-h1: clamp(40px, 6vw, 64px); /* letter-spacing -0.03em, line-height 1.02 */
  --tracking-tight: -0.02em;
  --tracking-eyebrow: 0.2em;

  /* Space (8px base) */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 48px; --s-6: 72px; --s-7: 96px; --s-8: 128px;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1200px;

  /* Depth: paper on iron. Never on the mark. */
  --shadow-1: 0 2px 4px rgba(22,23,26,0.12), 0 12px 24px rgba(22,23,26,0.14);
  --shadow-2: 0 4px 8px rgba(22,23,26,0.16), 0 24px 48px rgba(22,23,26,0.24);
  --shadow-stack: 10px 10px 0 -1px #D9D1C1, 20px 20px 0 -2px #A39882, 0 40px 80px rgba(0,0,0,0.5);
  --lift: translateY(-2px);
  --parallax-ghost: 0.3; /* ghost die scroll factor */

  /* Shape */
  --radius: 0;            /* square corners everywhere; the die is the only chamfer */
  --border: 1px;
}

/* Founderie site styles. founderie-brand/tokens.css is prepended verbatim at
   build (scripts/build.mjs), so every color, size and shadow comes from it.
   Mobile first. Square corners everywhere; the die is the only chamfer. */

:root {
  --nav-h: 64px;
  --ghost: #1F2024;        /* ghost die, iron on iron (BRAND.md 10.4) */
  --cast: #232429;         /* die-sheet pattern and footer wordmark (10.5, 10.6) */
  --strike-ease: cubic-bezier(.2, .9, .2, 1);
  --shadow-stack-lift: 12px 12px 0 -1px #D9D1C1, 24px 24px 0 -2px #A39882, 0 48px 96px rgba(0,0,0,0.5);
  --section-pad: clamp(72px, 10vw, 128px);
  --overhang: 72px;        /* how far the valuation card hangs into the bone section */
  /* From a .wrap column's right edge to the window's: lets an iron column run
     to the edge (the assay slip, the buyer list). */
  --bleed: calc(var(--gutter) + max(0px, (100vw - var(--max) - 2 * var(--gutter)) / 2));
}
@media (min-width: 960px) {
  :root { --nav-h: 76px; --overhang: 160px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bone);
  color: var(--iron);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 768px) { body { font-size: 18px; } }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--iron); }
.num { font-variant-numeric: tabular-nums; }
.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 {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 16px; background: var(--gold); color: var(--iron);
  font-weight: var(--fw-semibold); text-decoration: none;
}
.skip:focus { top: 12px; }

/* Focus: iron ring on light grounds, gold ring on iron (BRAND.md 9). */
:focus-visible { outline: 2px solid var(--iron); outline-offset: 3px; }
.on-iron :focus-visible { outline-color: var(--gold); }
.on-iron .doc :focus-visible { outline-color: var(--iron); }

/* Copy waiting on David's confirmation: visible until replaced. */
.todo {
  outline: 1px dashed currentColor; outline-offset: 1px;
  padding: 0 3px; background: rgba(245, 178, 27, 0.2);
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-pad); }
/* A 1px rule between bone sections. */
.hairline { padding-top: 0; }
.hairline > .wrap::before {
  content: ""; display: block; height: 1px; background: var(--rule);
  margin-bottom: var(--section-pad);
}
.on-iron { background: var(--iron); color: var(--muted-on-iron); }
.on-iron h1, .on-iron h2, .on-iron h3 { color: var(--bone); }

/* ---------- type ---------- */
h1 {
  font-size: var(--fs-h1); font-weight: var(--fw-semibold);
  letter-spacing: -0.03em; line-height: 1.02;
}
h2 {
  font-size: var(--fs-h2); font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight); line-height: 1.08;
}
h3 { font-size: 22px; font-weight: var(--fw-semibold); letter-spacing: -0.01em; line-height: 1.25; }
.eyebrow {
  margin-bottom: 20px;
  font-size: var(--fs-eyebrow); font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; line-height: 1.5;
  color: var(--gold-deep);
}
.on-iron .eyebrow { color: var(--muted-on-iron); }
.on-iron .eyebrow-gold { color: var(--gold); }
.lead { font-size: var(--fs-lead); line-height: 1.55; }
@media (min-width: 768px) { .lead { font-size: 20px; } }
.muted { color: var(--slate); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 26px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: 17px; font-weight: var(--fw-semibold); line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-small { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn-gold { background: var(--gold); color: var(--iron); }
.btn-outline { border-color: var(--muted-on-iron); color: var(--bone); }
.btn-outline:hover { background: var(--bone); border-color: var(--bone); color: var(--iron); }
.btn-iron { background: var(--iron); color: var(--bone); }
.btn-iron:hover { background: var(--rule-dark); }
.btn-quiet { background: transparent; border-color: var(--rule); color: var(--iron); }
.btn-quiet:hover { border-color: var(--iron); }
.btn:disabled { cursor: progress; opacity: .7; }

/* Gate trace (BRAND.md 10.3): a gold dash runs the gate path under the
   primary button on hover. Primary button only, never the logo. */
.trace {
  position: absolute; left: 0; bottom: -14px;
  width: 100%; height: 9px; overflow: visible; pointer-events: none;
}
.trace path {
  fill: none; stroke: var(--gold); stroke-width: 2;
  stroke-dasharray: 22 100; stroke-dashoffset: 22;
}
.btn-iron .trace { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .btn-gold:hover .trace path,
  .btn-gold:focus-visible .trace path { animation: gate-trace .6s cubic-bezier(.4, 0, .2, 1) both; }
}
@keyframes gate-trace { from { stroke-dashoffset: 22; } to { stroke-dashoffset: -100; } }

/* ---------- the strike: the logo's one move (BRAND.md 10.1) ---------- */
@keyframes strike-in {
  0% { transform: scale(1.22); opacity: 0; }
  45% { transform: scale(.97); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes strike-ring {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.4); opacity: 0; }
}
.mark .die, .mark .ring { transform-box: fill-box; transform-origin: center; }
.mark .ring { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .strike-load .brand .die, .brand.is-striking .die { animation: strike-in .4s var(--strike-ease) both; }
  .strike-load .brand .ring, .brand.is-striking .ring { animation: strike-ring .4s var(--strike-ease) .16s both; }
}

/* ---------- nav (iron) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--rule-dark); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; padding: 6px 0; color: var(--bone); text-decoration: none; }
.brand .mark { width: 30px; height: 30px; overflow: visible; flex: none; }
.brand .wordmark { width: 115px; height: 12.5px; flex: none; }
.nav-links { display: none; }
.nav-end { display: flex; align-items: center; gap: 8px; }
.nav-cta { display: none; }
@media (min-width: 360px) { .nav-cta { display: inline-flex; } }
.nav-toggle {
  display: grid; place-items: center; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--rule-dark); border-radius: 0;
  color: var(--bone); cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before {
  display: block; width: 18px; height: 2px; background: currentColor; transition: transform .2s ease;
}
.nav-toggle .bars { position: relative; transform: translateY(-3px); }
.nav-toggle .bars::before { content: ""; position: absolute; left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(-6px) rotate(-90deg); }
/* The mobile menu drops over the page; it never pushes the page down. */
.nav-panel {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  max-height: calc(100vh - var(--nav-h)); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark);
  background: var(--iron); box-shadow: var(--shadow-2);
}
.nav-panel.is-open, html:not(.js) .nav-panel { display: block; }
/* Without JavaScript the menu can't toggle, so it sits in the page instead. */
html:not(.js) .nav-panel { position: static; box-shadow: none; }
html:not(.js) .nav-toggle { display: none; }
.nav-panel nav { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 28px; }
.nav-panel a:not(.btn) {
  padding: 14px 0; border-bottom: 1px solid var(--rule-dark);
  color: var(--bone); font-size: 20px; font-weight: var(--fw-medium); text-decoration: none;
}
.nav-panel .btn { align-self: flex-start; margin-top: 24px; }
@media (min-width: 960px) {
  .nav-links { display: flex; gap: 32px; }
  .nav-links a {
    padding: 8px 0; color: var(--muted-on-iron);
    font-size: 15px; font-weight: var(--fw-medium); text-decoration: none;
  }
  .nav-links a:hover { color: var(--bone); }
  .nav-toggle, .nav-panel, html:not(.js) .nav-panel { display: none; }
}

/* ---------- hero (iron) ---------- */
.hero {
  --hero-pb: clamp(72px, 9vw, 112px);
  position: relative;
  padding-top: clamp(56px, 9vw, 112px);
  padding-bottom: var(--hero-pb);
}
/* Ghost die (10.4): a huge mark cropped off the right edge, drifting ~48px
   over 20s, on a slow 0.3x parallax layer (app.js). */
.hero-ghost { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ghost-par { position: absolute; top: 56px; right: 0; will-change: transform; }
.ghost {
  width: clamp(420px, 60vw, 820px); height: auto; aspect-ratio: 1;
  color: var(--ghost); transform: translateX(34%);
}
@media (prefers-reduced-motion: no-preference) {
  .ghost-drift { animation: ghost-drift 20s ease-in-out infinite alternate; }
}
@keyframes ghost-drift { from { transform: translateY(0); } to { transform: translateY(-48px); } }

.hero-grid { position: relative; z-index: 1; display: grid; gap: 56px; }
.hero-copy { max-width: 700px; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { max-width: 36em; }
/* A 2px gold rule draws in under the eyebrow. */
.hero-rule {
  display: block; width: 56px; height: 2px; margin: -6px 0 28px;
  background: var(--gold); transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-rule { animation: rule-draw .7s var(--strike-ease) .3s both; }
}
@keyframes rule-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.actions { display: flex; flex-wrap: wrap; gap: 24px 16px; margin-top: 36px; }
.hero-credit { margin-top: 32px; color: var(--muted-on-iron); font-size: 15px; font-weight: var(--fw-medium); }

/* The valuation card hangs over the iron/bone seam with the stacked-sheet shadow. */
.valuation {
  width: calc(100% - 20px);
  margin-bottom: calc(-1 * (var(--hero-pb) + var(--overhang)));
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: end; }
  .valuation { width: auto; margin-right: 20px; }
}
@media (min-width: 1200px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

/* ---------- documents (paper on iron) ---------- */
.doc {
  position: relative;
  padding: 22px;
  background: var(--paper); color: var(--iron);
  font-size: 14px; line-height: 1.45;
  transition: transform .25s ease, box-shadow .25s ease;
}
@media (min-width: 600px) { .doc { padding: 30px; font-size: 15px; } }
.doc-stack { box-shadow: var(--shadow-stack); }
@media (hover: hover) {
  .doc-stack:hover { transform: var(--lift); box-shadow: var(--shadow-stack-lift); }
}
.doc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; border-bottom: 1px solid var(--iron);
}
.doc-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.doc-mark { width: 22px; height: 22px; flex: none; }
.doc-title { font-size: 16px; font-weight: var(--fw-semibold); letter-spacing: -0.01em; }
.doc-tag {
  flex: none; padding: 3px 8px; border: 1px solid currentColor;
  color: var(--gold-deep); font-size: 12px; font-weight: var(--fw-medium);
  letter-spacing: .16em; text-transform: uppercase;
}
.doc-meta { margin-top: 10px; color: var(--slate); font-size: 13px; }
.doc-label {
  display: block; color: var(--slate);
  font-size: 12px; font-weight: var(--fw-medium); letter-spacing: .14em; text-transform: uppercase;
}
.doc-facts { margin-top: 16px; }
.doc-facts div {
  display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--rule);
}
.doc-facts dt { color: var(--slate); }
.doc-facts dd { font-weight: var(--fw-medium); }
.doc-table { width: 100%; margin-top: 22px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.doc-table caption {
  caption-side: top; padding-bottom: 6px; text-align: left; color: var(--slate);
  font-size: 12px; font-weight: var(--fw-medium); letter-spacing: .14em; text-transform: uppercase;
}
.doc-table th, .doc-table td {
  padding: 7px 8px 7px 0; border-bottom: 1px solid var(--rule);
  text-align: left; font-weight: var(--fw-regular); white-space: nowrap;
}
.doc-table thead th {
  border-bottom-color: var(--iron); color: var(--slate);
  font-size: 12px; font-weight: var(--fw-medium); letter-spacing: .14em; text-transform: uppercase;
}
.doc-table tbody th { font-weight: var(--fw-medium); }
.doc-table th:last-child, .doc-table td:last-child { padding-right: 0; text-align: right; }
.doc-table td:last-child { font-weight: var(--fw-semibold); }
.doc-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.doc-foot > div { display: grid; gap: 6px; align-content: start; }
.doc-foot > div:only-child { grid-column: 1 / -1; }
.redact { display: block; width: 100%; max-width: 150px; height: 18px; background: var(--iron); }

/* ---------- the pitch (bone) ---------- */
.pitch { padding-top: calc(var(--section-pad) + var(--overhang)); }
@media (min-width: 960px) { .pitch { padding-top: var(--section-pad); } }
.split { display: grid; }
/* Same columns as the hero, so the pitch stays clear of the card's overhang. */
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; } }
@media (min-width: 1200px) { .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.statement { max-width: 20em; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; }
.statement-body { max-width: 30em; margin-top: 24px; font-size: clamp(20px, 2vw, 24px); line-height: 1.45; }
.definition {
  max-width: 38em; margin-top: 36px; padding-top: 20px;
  border-top: 1px solid var(--rule); color: var(--slate);
}

/* ---------- what qualifies ---------- */
.qualify-lead { max-width: 36em; margin-top: 20px; color: var(--slate); font-size: var(--fs-lead); }
.qualify-card, .qualify-worth { display: flex; flex-direction: column; }
.qualify-num { display: block; margin-bottom: 16px; color: var(--gold-deep); font-size: 15px; font-weight: var(--fw-semibold); letter-spacing: 0.08em; }
.qualify-card .systems {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--rule);
  color: var(--slate); font-size: 14px;
}
.qualify-card h3 + p { margin-bottom: 24px; }
.worth-line { margin: 12px 0 28px; color: var(--bone); font-size: clamp(20px, 2vw, 24px); font-weight: var(--fw-semibold); line-height: 1.3; }
.qualify-worth .btn { margin-top: auto; align-self: flex-start; }

/* ---------- how it works ---------- */
.steps { display: grid; gap: 40px; }
.step-item { padding-top: 24px; border-top: 1px solid var(--iron); }
.step-num {
  display: block; margin-bottom: 20px;
  color: var(--gold-deep); font-size: 48px; font-weight: var(--fw-semibold);
  letter-spacing: -0.03em; line-height: 1;
}
.step-item h3 { margin-bottom: 10px; font-size: var(--fs-h3); }
.step-item p { max-width: 24em; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* ---------- what we clear (iron, die-sheet pattern) ---------- */
.clear {
  /* Clip the card's drop shadow to the iron, so it never smudges the bone below. */
  overflow: hidden;
  background-color: var(--iron);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2264%22%20height%3D%2264%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cpath%20transform%3D%22translate(24.5%2024.5)%20scale(0.15)%22%20fill%3D%22%23232429%22%20fill-rule%3D%22evenodd%22%20d%3D%22M12%200H88L100%2012V88L88%20100H12L0%2088V12Z%20M32%2022H76L70%2036H48V46H66L61%2058H48V78H32Z%20M0%2046H32V58H0Z%22%2F%3E%3C%2Fsvg%3E");
  background-size: 64px 64px;
}
.clear-grid { display: grid; gap: 56px; align-items: center; }
.clear h2 { margin-bottom: 20px; }
.checklist { width: calc(100% - 20px); }
.checks { margin-top: 8px; }
.checks li {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center;
  column-gap: 14px; row-gap: 2px;
  padding: 13px 0; border-bottom: 1px solid var(--rule);
}
.checks .box {
  display: grid; place-items: center; grid-row: span 2;
  width: 22px; height: 22px; border: 1.5px solid var(--iron);
}
.checks .box svg { width: 14px; height: 14px; }
.check-name { font-weight: var(--fw-medium); }
.check-status { grid-column: 2; color: var(--slate); font-size: 13px; }
@media (min-width: 600px) {
  .checks li { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .checks .box { grid-row: auto; }
  .check-status { grid-column: auto; text-align: right; }
}
@media (min-width: 960px) {
  .clear-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; }
  .checklist { width: auto; margin-right: 20px; }
}

/* ---------- why seller-side, where this is going ---------- */
.why .statement { max-width: 22em; }
.why .statement-body { font-weight: var(--fw-semibold); }
.next-grid { display: grid; gap: 28px; }
.next-body { max-width: 36em; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; }
.next-body + .next-body { margin-top: 1em; }
.next-stat {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center;
  max-width: 36em; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--rule);
}
.next-num { color: var(--gold-deep); font-size: 48px; font-weight: var(--fw-semibold); letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.next-cap { color: var(--slate); font-size: 15px; }
@media (min-width: 960px) { .next-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; } }

/* ---------- who we are (iron) and the founders' portraits ---------- */
.team-grid { display: grid; gap: 48px; align-items: center; }
.team h2 { max-width: 14em; margin-bottom: 24px; }
.team-copy p { max-width: 34em; }
.team-copy p + p { margin-top: 16px; }
/* The section's one gold accent. */
.story-link {
  display: inline-flex; gap: 8px; margin-top: 28px; padding: 6px 0 4px;
  border-bottom: 1px solid currentColor; color: var(--gold);
  font-weight: var(--fw-semibold); text-decoration: none;
}
.story-link:hover { color: var(--bone); }
/* The parent company: Ambaum's logo, in bone, linking to ambaum.com. */
.parent {
  display: grid; justify-items: start; gap: 18px;
  padding-top: 28px; border-top: 1px solid var(--rule-dark);
  color: var(--muted-on-iron); text-decoration: none;
}
.parent-label {
  font-size: var(--fs-eyebrow); font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
}
.parent-logo { display: block; width: 200px; height: auto; }
.parent-link { font-size: 15px; font-weight: var(--fw-medium); }
.parent:hover .parent-link { color: var(--bone); }
@media (min-width: 960px) {
  .parent { justify-self: end; width: 100%; max-width: 420px; padding: 40px 0 0; }
  .parent-logo { width: 300px; }
}
.portrait {
  margin: 0; padding: 6px 6px 10px;
  background: var(--paper); color: var(--iron); box-shadow: var(--shadow-1);
  transition: transform .25s ease, box-shadow .25s ease;
}
@media (hover: hover) { .portrait:hover { transform: var(--lift); box-shadow: var(--shadow-2); } }
.portrait img { display: block; width: 100%; height: auto; }
.portrait figcaption { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--rule); }
.portrait-name { display: block; font-size: 14px; font-weight: var(--fw-semibold); line-height: 1.25; }
.portrait-role { display: block; color: var(--slate); font-size: 12px; line-height: 1.4; }
.portrait-bio { display: block; margin-top: 10px; font-size: 16px; line-height: 1.5; }
.portrait figcaption { padding-inline: 4px; }
@media (min-width: 600px) {
  .portrait { padding: 12px 12px 16px; }
  .portrait-name { font-size: 16px; }
  .portrait-role { font-size: 14px; }
}
@media (min-width: 960px) {
  .team-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 80px; }
}

/* ---------- about page ---------- */
.about-hero { padding-block: clamp(56px, 9vw, 112px); }
.about-hero h1 { max-width: 12em; margin-bottom: 24px; }
.about-hero .lead { max-width: 36em; }
.people { display: grid; gap: 32px; }
.people .portrait { padding: 16px 16px 24px; }
.people .portrait img { max-width: 300px; margin-inline: auto; }
.people .portrait-name { font-size: 22px; }
.people .portrait-role { font-size: 15px; }
@media (min-width: 768px) {
  .people { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .people .portrait img { max-width: none; }
}
.story-grid { display: grid; gap: 40px; }
.chapter {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px;
  padding: 28px 0; border-top: 1px solid var(--rule);
}
.chapter:last-child { border-bottom: 1px solid var(--rule); }
.chapter-num {
  grid-row: span 2; color: var(--gold-deep);
  font-size: 30px; font-weight: var(--fw-semibold); letter-spacing: -0.02em; line-height: 1.1;
}
.chapter h3 { margin-bottom: 8px; font-size: var(--fs-h3); }
.chapter-when {
  margin-left: 6px; color: var(--slate); white-space: nowrap;
  font-size: 12px; font-weight: var(--fw-medium); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  vertical-align: middle;
}
.chapter p { max-width: 36em; }
@media (min-width: 960px) {
  .story-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 80px; }
  .story-head { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
  .chapter { grid-template-columns: 72px minmax(0, 1fr); }
  .chapter-num { font-size: 36px; }
}

/* ---------- who it's for ---------- */
.cards { display: grid; gap: 24px; }
.card {
  padding: 32px 28px; background: var(--paper); box-shadow: var(--shadow-1);
  transition: transform .25s ease, box-shadow .25s ease;
}
@media (hover: hover) { .card:hover { transform: var(--lift); box-shadow: var(--shadow-2); } }
.card h3 { margin-bottom: 12px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); } }
/* After .card, so the price card keeps its iron. */
.qualify-worth { background: var(--iron); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 40px; }
.faq-head .muted { margin-top: 16px; }
.qa { border-top: 1px solid var(--rule); }
.qa:last-child { border-bottom: 1px solid var(--rule); }
.qa summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 22px 0; list-style: none; cursor: pointer;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: 19px; line-height: 1.35; }
.qa summary:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.qa-icon { position: relative; flex: none; width: 16px; height: 16px; margin-top: 6px; }
.qa-icon::before, .qa-icon::after {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 2px; background: var(--iron); transition: transform .2s ease;
}
.qa-icon::after { transform: rotate(90deg); }
.qa[open] .qa-icon::after { transform: rotate(0); }
.qa p { max-width: 40em; padding: 0 40px 26px 0; }
@media (min-width: 768px) { .qa summary h3 { font-size: 21px; } }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 80px; }
  .faq-head { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
}

/* ---------- the assay (BRAND.md 11) ---------- */
.assay { position: relative; overflow-x: clip; }
.assay-grid { display: grid; }
.assay-main { padding-block: var(--section-pad); }
.assay-intro { margin-top: 16px; color: var(--slate); font-size: var(--fs-lead); }
.assay-form { margin-top: 40px; }
.progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.progress span { height: 4px; background: var(--rule); transition: background-color .2s ease; }
.progress span.is-done { background: var(--gold); }
.progress span.is-current { background: var(--iron); }
.progress-label { min-height: 1.5em; margin-top: 12px; color: var(--slate); font-size: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.step { min-width: 0; margin: 28px 0 0; padding: 0; border: 0; }
.step legend { padding: 0; margin-bottom: 28px; }
.station {
  display: block; margin-bottom: 8px;
  color: var(--gold-deep); font-size: var(--fs-eyebrow); font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
}
.step-q {
  display: block; outline: none;
  font-size: clamp(26px, 3vw, 32px); font-weight: var(--fw-semibold);
  letter-spacing: -0.02em; line-height: 1.15;
}
.field { margin-bottom: 28px; }
.field label, .field-label { display: block; margin-bottom: 10px; font-size: 17px; font-weight: var(--fw-medium); }
.req { color: var(--gold-deep); }
.optional { margin-left: 6px; color: var(--slate); font-size: 14px; font-weight: var(--fw-regular); }
.field input, .field textarea {
  display: block; width: 100%; min-height: 54px; padding: 14px 16px;
  background: var(--paper); color: var(--iron);
  border: 1px solid var(--rule); border-radius: 0;
  font: inherit; font-size: 18px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--iron); outline-offset: 0; border-color: var(--iron); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 46px; padding: 10px 16px;
  background: var(--paper); color: var(--iron);
  border: 1px solid var(--rule); border-radius: 0;
  font-size: 16px; font-weight: var(--fw-medium); line-height: 1.25; text-align: left;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--iron); }
.chip[aria-pressed="true"] { background: var(--iron); border-color: var(--iron); color: var(--bone); }
.field-err { margin-top: 8px; color: var(--gold-deep); font-size: 15px; font-weight: var(--fw-semibold); }
.has-error input { border: 2px solid var(--gold-deep); }
.has-error .chips .chip { border-color: var(--gold-deep); }
.form-error {
  margin-bottom: 16px; padding: 14px 16px;
  background: var(--paper); border: 1px solid var(--gold-deep); border-left-width: 4px;
  font-weight: var(--fw-medium);
}
.form-nav {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--rule);
}
.form-nav [data-back][hidden] { display: inline-flex; visibility: hidden; }
.form-note { margin-top: 24px; color: var(--slate); font-size: 15px; }
.assay-done { margin-top: 40px; padding: 32px; background: var(--paper); box-shadow: var(--shadow-1); outline: none; }
.assay-done[hidden] { display: none; }
.done-title { margin-bottom: 12px; font-size: clamp(26px, 3vw, 32px); font-weight: var(--fw-semibold); letter-spacing: -0.02em; line-height: 1.15; }
.done-body { max-width: 34em; font-size: 19px; }

/* The assay slip fills in as they answer. */
.slip { font-size: 13.5px; }
.slip-sec { padding-top: 14px; }
.slip-station {
  padding-bottom: 6px; border-bottom: 1px solid var(--iron);
  color: var(--slate); font-size: 12px; font-weight: var(--fw-medium);
  letter-spacing: .16em; text-transform: uppercase;
}
.slip-station .num { margin-right: 6px; color: var(--gold-deep); }
.slip dl div {
  display: grid; grid-template-columns: 8.2em minmax(0, 1fr); gap: 10px;
  padding: 5px 0; border-bottom: 1px dotted var(--rule);
}
.slip dt { color: var(--slate); }
.slip dd { min-height: 1.45em; font-weight: var(--fw-medium); overflow-wrap: anywhere; }
.slip-drawer-head, .slip-bar { display: none; }

/* RECEIVED stamp (Deep Gold), struck on with the logo's motion. */
.stamp { position: absolute; right: 28px; top: 42%; opacity: 0; transform: rotate(-8deg); pointer-events: none; }
.stamp span {
  position: relative; display: block; padding: 10px 18px;
  background: rgba(247, 243, 234, 0.88); border: 3px solid var(--gold-deep); color: var(--gold-deep);
  font-size: 26px; font-weight: 700; letter-spacing: .18em; line-height: 1; text-transform: uppercase;
}
.slip.is-received .stamp { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .slip.is-received .stamp span { animation: strike-in .4s var(--strike-ease) both; }
  .slip.is-received .stamp span::after {
    content: ""; position: absolute; inset: -4px; border: 1px solid var(--gold-deep);
    animation: strike-ring .4s var(--strike-ease) .16s both;
  }
}

/* Desktop: the right column is iron with the paper slip on it. The iron runs
   to the window's right edge and the slip sits centered in it; the extra 20px of
   right padding is room for the stacked sheets behind it. */
@media (min-width: 960px) {
  .assay-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .assay-main { padding-right: 64px; }
  .assay-side {
    margin-right: calc(-1 * var(--bleed));
    padding: var(--section-pad) 68px var(--section-pad) 48px;
  }
  .slip { max-width: 440px; margin-inline: auto; }
}

/* Mobile: the slip collapses to a sticky "View slip" drawer. */
@media (max-width: 959px) {
  html { scroll-padding-bottom: 96px; }
  .assay-side {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    max-height: 88vh; max-height: 88dvh; overflow-y: auto;
    padding: 16px var(--gutter) 32px;
    transform: translateY(100%); visibility: hidden;
    transition: transform .3s var(--strike-ease), visibility 0s linear .3s;
  }
  .assay-side.is-open { transform: none; visibility: visible; transition: transform .3s var(--strike-ease); }
  .slip-drawer-head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-bottom: 16px; color: var(--bone); font-weight: var(--fw-semibold);
  }
  .slip-close {
    min-height: 44px; padding: 8px 16px;
    background: transparent; color: var(--bone); border: 1px solid var(--rule-dark);
    font-size: 15px; font-weight: var(--fw-semibold); cursor: pointer;
  }
  .slip { width: calc(100% - 20px); }
  .slip-bar {
    display: block; position: sticky; bottom: 0; z-index: 40;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: var(--iron);
  }
  .slip-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; min-height: 48px; padding: 10px 16px;
    background: transparent; color: var(--bone); border: 1px solid var(--rule-dark);
    font-size: 16px; font-weight: var(--fw-semibold); cursor: pointer;
  }
  .slip-toggle [data-slip-count] { color: var(--muted-on-iron); font-weight: var(--fw-regular); font-size: 14px; }
  .slip-backdrop:not([hidden]) { position: fixed; inset: 0; z-index: 55; background: rgba(22, 23, 26, 0.6); }
  body.slip-open { overflow: hidden; }
  /* Once received, the slip sits in the page so the stamp is seen. */
  .assay.is-received .assay-side {
    /* z-index still applies to a static grid item: reset it so the nav stays on top. */
    position: static; z-index: auto; max-height: none; overflow: visible;
    margin-inline: calc(-1 * var(--gutter)); padding: 40px var(--gutter) 72px;
    transform: none; visibility: visible;
  }
  .assay.is-received .slip-bar, .assay.is-received .slip-drawer-head { display: none; }
}
html:not(.js) .slip-bar { display: none; }

/* ---------- for buyers: the buyer list, laid out like the assay ---------- */
.buyer { position: relative; overflow-x: clip; }
.buyer-grid { display: grid; }
.buyer-main { padding-block: var(--section-pad); }
.buyer-form { margin-top: 40px; }
.buyer-form .form-nav { justify-content: flex-end; }
/* Phone: the checklist sits on a full-width iron band under the form. */
.buyer-side { margin-inline: calc(-1 * var(--gutter)); padding: 56px var(--gutter) 72px; }
@media (min-width: 960px) {
  .buyer-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .buyer-main { padding-right: 64px; }
  .buyer-side {
    margin-left: 0; margin-right: calc(-1 * var(--bleed));
    padding: var(--section-pad) 68px var(--section-pad) 48px;
  }
  .buyer-side .checklist { max-width: 440px; margin-inline: auto; }
}

/* ---------- closing CTA (iron) ---------- */
.closing-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 36px; }
.closing h2 { max-width: 12em; font-size: clamp(36px, 5.4vw, 64px); letter-spacing: -0.03em; line-height: 1.02; }
@media (min-width: 768px) {
  .closing-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

/* ---------- footer: the casting floor (10.6) ---------- */
.site-footer { overflow: hidden; border-top: 1px solid var(--rule-dark); }
.footer-top { position: relative; z-index: 1; display: grid; gap: 24px; padding-top: 56px; padding-bottom: 24px; }
.footer-brand { display: inline-block; color: var(--bone); }
.footer-lockup { width: 202px; height: 40px; }
.footer-text { font-size: 15px; }
.footer-text a { color: var(--bone); }
.footer-legal { margin-top: 6px; }
/* The wordmark at full page width, bottom ~30% cropped by the page edge. */
.footer-cast { width: 100%; aspect-ratio: 922 / 70; margin-top: 32px; overflow: hidden; color: var(--cast); }
.footer-cast svg { width: 100%; height: auto; }
@media (min-width: 768px) {
  .footer-top { grid-template-columns: auto 1fr; align-items: start; gap: 56px; }
}

/* ---------- legal pages ---------- */
.legal-page { padding-block: clamp(56px, 8vw, 96px) var(--section-pad); }
.legal-page .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.legal-page h1 { margin-bottom: 12px; font-size: clamp(36px, 5vw, 52px); }
.legal-page h2 { margin: 44px 0 12px; font-size: 24px; letter-spacing: -0.01em; }
.legal-page p, .legal-page li { margin-bottom: 12px; }
.legal-page ul { padding-left: 22px; list-style: square; }
.legal-page .updated { margin-bottom: 32px; color: var(--slate); font-size: 15px; }

/* Belt and braces: no motion at all under reduced motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
