/* Tavyaan — neutral system, light + dark */

:root {
  /* Palette — LIGHT (default, pure white) */
  --paper: #FFFFFF;
  --paper-deep: #F4F4F4;
  --surface-soft: #FAFAFA;
  --surface-strong: #F2F2F2;
  --ink: #0B0B0C;
  --ink-soft: #232326;
  --ink-mute: #6E6E73;
  --ink-faint: #A8A8AD;
  --rule: #E6E6E8;
  --rule-soft: #EFEFF1;

  --accent: #1FB39A;       /* mint from mark */
  --accent-deep: #0F8E78;
  --gold: #B89865;
  --gold-deep: #8E7140;

  color-scheme: light;

  /* Type */
  --display: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Scale (comfortable default) */
  --pad-page: clamp(40px, 6vw, 128px);
  --pad-section: 120px;
  --gutter: clamp(20px, 3vw, 48px);
  --measure: 64ch;

  --fs-display: clamp(48px, 7.2vw, 112px);
  --fs-h2: clamp(34px, 4.4vw, 64px);
  --fs-h3: clamp(22px, 2vw, 30px);
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-micro: 11px;
}

/* DARK */
:root[data-theme="dark"] {
  --paper: #0A0A0B;
  --paper-deep: #131316;
  --surface-soft: #131316;
  --surface-strong: #1A1A1E;
  --ink: #F4F4F5;
  --ink-soft: #D4D4D8;
  --ink-mute: #8E8E94;
  --ink-faint: #56565B;
  --rule: #25252A;
  --rule-soft: #1C1C20;
  color-scheme: dark;
}

/* Respect OS preference when no explicit theme set */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --paper: #0A0A0B;
    --paper-deep: #131316;
    --surface-soft: #131316;
    --surface-strong: #1A1A1E;
    --ink: #F4F4F5;
    --ink-soft: #D4D4D8;
    --ink-mute: #8E8E94;
    --ink-faint: #56565B;
    --rule: #25252A;
    --rule-soft: #1C1C20;
    color-scheme: dark;
  }
}

/* Density modes */
:root[data-density="compact"]    { --pad-section: 80px;  --fs-body: 16px; }
:root[data-density="comfortable"]{ --pad-section: 120px; --fs-body: 17px; }
:root[data-density="spacious"]   { --pad-section: 168px; --fs-body: 18px; }

/* Accent swap */
:root[data-accent="mint"] { --accent: #1FB39A; --accent-deep: #0F8E78; }
:root[data-accent="gold"] { --accent: #B89865; --accent-deep: #8E7140; }
:root[data-accent="ink"]  { --accent: #14110D; --accent-deep: #000;    }

/* Type-pairing swap */
:root[data-type="editorial"] { --display: "Instrument Serif", serif; --sans: "Geist", system-ui, sans-serif; }
:root[data-type="modern"]    { --display: "Geist", system-ui, sans-serif; --sans: "Geist", system-ui, sans-serif; }
:root[data-type="classic"]   { --display: "Newsreader", "Times New Roman", serif; --sans: "Inter Tight", system-ui, sans-serif; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "ss02", "cv11";
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* Layout primitives */
.page {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--pad-page);
}

.section {
  padding-top: var(--pad-section);
  padding-bottom: var(--pad-section);
  border-top: 1px solid var(--rule);
}
.section:first-of-type { border-top: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  transform: translateY(-1px);
  vertical-align: middle;
}

.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.018em;
  color: var(--ink);
}

.display em {
  font-style: italic;
  color: var(--ink-soft);
}

h2.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h3.sub-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}

p.lede {
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.32;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  max-width: 30ch;
  margin: 0;
}

p, .body { max-width: var(--measure); }
p { margin: 0 0 1em; color: var(--ink-soft); }

.muted { color: var(--ink-mute); }

hr.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); background: #000; }
.btn .arr { width: 14px; height: 14px; }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn.ghost:hover { border-color: var(--ink); background: transparent; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: saturate(140%) blur(0px);
  -webkit-backdrop-filter: saturate(140%) blur(0px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, backdrop-filter .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--paper) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 8px 24px -16px rgba(0,0,0,0.10);
}

/* ============================================================
   Reveal-on-scroll
   Auto-applied to section heads via JS. Add class="reveal"
   to any other element to opt in. Respects prefers-reduced-motion.
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Chapter numerals — editorial decoration for section heads.
   Renders the data-chapter attribute as a huge faint serif numeral
   behind the eyebrow + title. Plus an accent hairline that draws
   across when the section reveals.
   ============================================================ */
.section-head { position: relative; isolation: isolate; }

.section-head[data-chapter]::before {
  content: attr(data-chapter);
  position: absolute;
  top: -0.22em;
  left: -0.06em;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(140px, 18vw, 260px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  user-select: none;
  z-index: -1;
  white-space: nowrap;
  transform: translateY(8px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1);
}
.section-head.is-in[data-chapter]::before {
  opacity: 0.06;
  transform: translateY(0);
}

/* Animated accent rule that draws across when section enters view */
.section-head[data-chapter]::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 1.1s cubic-bezier(.2,.7,.2,1) .15s;
}
.section-head.is-in[data-chapter]::after {
  width: 64px;
}

/* Keep eyebrow + title above the chapter numeral */
.section-head .eyebrow,
.section-head .section-title {
  position: relative;
  z-index: 1;
}

/* Dark theme bumps numeral opacity for visibility */
:root[data-theme="dark"] .section-head.is-in[data-chapter]::before { opacity: 0.09; }

/* Mobile: smaller numeral, sits as a faint backdrop above the eyebrow */
@media (max-width: 760px) {
  .section-head[data-chapter]::before {
    font-size: clamp(96px, 26vw, 140px);
    top: -0.08em;
    left: -0.04em;
  }
  .section-head.is-in[data-chapter]::before { opacity: 0.05; }
  .section-head[data-chapter]::after { bottom: -14px; }
  .section-head.is-in[data-chapter]::after { width: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .section-head[data-chapter]::after { transition: none; width: 64px; }
  .section-head[data-chapter]::before { transform: none; }
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 17px;
}
.brand img { width: 28px; height: 28px; }
:root[data-theme="dark"] .brand img {
  filter: invert(1) hue-rotate(180deg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand img {
    filter: invert(1) hue-rotate(180deg);
  }
}
.brand .tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  border: 1px solid var(--rule);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: 4px;
}
.nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.nav ul a { transition: color .15s ease; white-space: nowrap; }
.nav ul a:hover { color: var(--ink); }
.brand .tag { white-space: nowrap; }
@media (max-width: 1000px) { .brand .tag { display: none; } }
@media (max-width: 760px) { .nav-inner > ul { display: none; } }

/* Hero */
.hero {
  padding-top: 120px;
  padding-bottom: var(--pad-section);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
}
.hero h1 {
  margin: 24px 0 0;
  max-width: 18ch;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  margin-top: 64px;
  align-items: end;
}
.hero-meta .lede-col { grid-column: span 7; }
.hero-meta .cta-col  { grid-column: span 5; display: flex; gap: 12px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
@media (max-width: 860px) {
  .hero-meta .lede-col, .hero-meta .cta-col { grid-column: span 12; justify-content: flex-start; }
}

/* Sections grid */
.two-col {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

.section-head {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-head .eyebrow { display: block; margin-bottom: 0; }
.section-head .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
}

.body-col p { color: var(--ink-soft); margin-bottom: 1.2em; }
.body-col p:last-child { margin-bottom: 0; }
.body-col p strong { color: var(--ink); font-weight: 600; }

/* Pullquote / inset */
.inset {
  border-left: 1px solid var(--ink);
  padding-left: 24px;
  font-family: var(--display);
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.32;
  color: var(--ink);
  margin: 32px 0;
  max-width: 36ch;
}

/* Stat row */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
  margin: 40px 0 0;
}
.stat .n {
  font-family: var(--display);
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat .l {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 12px;
}
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } }

/* Cards */
.card {
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--surface-soft);
  padding: 28px;
  position: relative;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 18px 40px -24px rgba(0,0,0,0.18);
  border-color: color-mix(in oklab, var(--accent) 35%, var(--rule));
}
.card:hover::before { opacity: 1; }

/* Trio */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.trio .card { display: flex; flex-direction: column; gap: 14px; min-height: 280px; }
.trio .card .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.trio .card h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0;
}
.trio .card p { font-size: 15px; line-height: 1.5; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

/* Tracks */
.track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding: 48px 0;
  border-top: 1px solid var(--rule);
}
.track:last-child { border-bottom: 1px solid var(--rule); }
.track .meta { display: flex; flex-direction: column; gap: 12px; }
.track .meta .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.track h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 44px);
  letter-spacing: -0.015em;
  margin: 4px 0 0;
}
.track .body p { font-size: 16px; }
@media (max-width: 860px) { .track { grid-template-columns: 1fr; } }

/* CTA */
.cta {
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  padding: clamp(40px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}
.cta h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 22ch;
}
.cta p { color: color-mix(in oklab, var(--paper) 70%, var(--ink-mute)); max-width: 40ch; margin: 16px 0 0; }
.cta .ctas { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
.cta .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); justify-content: space-between; }
.cta .btn.ghost { background: transparent; color: var(--paper); border-color: color-mix(in oklab, var(--paper) 30%, transparent); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* Footer */
footer {
  padding: 64px 0 56px;
  border-top: 1px solid var(--rule);
  margin-top: 80px;
}
footer .row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
footer h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 14px;
  font-weight: 500;
}
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
footer ul a { color: var(--ink-soft); }
footer ul a:hover { color: var(--ink); }
footer .bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
@media (max-width: 860px) {
  footer .row { grid-template-columns: 1fr 1fr; }
  footer .bottom { flex-direction: column; gap: 8px; }
}

/* Diagrams */
.diagram {
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--surface-soft);
  padding: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Positioning strip — "Product firm. Not a consultancy." */
.positioning {
  margin-top: 56px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  text-wrap: balance;
}
.positioning > span { white-space: nowrap; }
.positioning > span:last-child { white-space: normal; }
.positioning b {
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.positioning .sep {
  color: var(--ink-faint);
  font-family: var(--display);
  font-style: italic;
  margin: 0 8px;
}

/* Marquee of customers/sectors */
.marquee {
  display: flex;
  gap: 48px;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  white-space: nowrap;
}
.marquee span { opacity: 0.9; }
.marquee .sep { color: var(--ink-faint); }

/* Subtle reveal */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Deployment phases */
.phases {
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
}
.phase {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-mute);
}
.phase span {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}
.phase b { color: var(--ink-soft); font-weight: 500; }
.phase.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.phase.active span { color: var(--accent); }
.phase.active b { color: var(--paper); }
.phase-arrow { color: var(--ink-faint); font-family: var(--display); }
.phase-foot {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 2px;
}
@media (max-width: 720px) {
  .phases { grid-template-columns: auto auto auto; }
  .phase-arrow:nth-of-type(4) { display: none; }
}

/* Portable */
.portable {
  margin-top: 64px;
  padding: 40px 0 0;
}
.portable-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--rule);
}
.portable-row > div {
  padding: 20px 16px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.portable-row > div:last-child { border-right: 0; }
.portable-row b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.portable-row span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.portable-row > div:first-child span { color: var(--accent-deep); }

/* Portable row — status pills coloured by stage */
.portable-row > div { position: relative; }
.portable-row > div span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.portable-row > div span::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
  flex-shrink: 0;
}
.portable-row > div[data-status="active"] span { color: var(--accent-deep); }
.portable-row > div[data-status="building"] span { color: var(--gold-deep); }
.portable-row > div[data-status="queued"] span { color: var(--ink-faint); }
.portable-row > div[data-status="active"] span::before {
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent); }
  50% { box-shadow: 0 0 0 5px color-mix(in oklab, var(--accent) 0%, transparent); }
}
@media (max-width: 720px) {
  .portable-row { grid-template-columns: repeat(2, 1fr); }
  .portable-row > div:nth-child(2) { border-right: 0; }
}

/* Team */
.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.person {
  padding: 32px 28px 32px 0;
  border-right: 1px solid var(--rule);
}
.person:last-child { border-right: 0; padding-right: 0; }
.person:not(:first-child) { padding-left: 28px; }
.person .role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.person p {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.person p em { color: var(--ink-mute); font-style: italic; }
.person-meta {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
@media (max-width: 860px) {
  .people { grid-template-columns: 1fr; }
  .person { border-right: 0; border-bottom: 1px solid var(--rule); padding: 28px 0; }
  .person:not(:first-child) { padding-left: 0; }
  .person:last-child { border-bottom: 0; }
}

/* Bio grid — 3-column comparative table */
.bio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto 1fr auto;
  margin-top: 56px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 960px) {
  .bio-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
}

.bio-col {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: 1 / -1;
  gap: 18px;
  padding: 32px 28px 36px 0;
  border-right: 1px solid var(--rule);
  min-width: 0;
}
.bio-col:last-child { border-right: 0; padding-right: 0; }
.bio-col:not(:first-child) { padding-left: 28px; }
@media (max-width: 960px) {
  .bio-col {
    display: flex;
    flex-direction: column;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 32px 0;
  }
  .bio-col:not(:first-child) { padding-left: 0; }
  .bio-col:last-child { border-bottom: 0; }
}

.bio-col-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bio-col .bio-portrait {
  margin: 4px 0 0;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  display: block;
}
.bio-col .bio-portrait::before { display: none; }
.bio-col .bio-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none;
}

.bio-location { display: flex; align-items: center; gap: 8px; }
.bio-li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--ink-mute);
  border-radius: 2px;
  transition: color .15s ease;
}
.bio-li svg { width: 13px; height: 13px; }
.bio-li:hover { color: var(--ink); }
.bio-col .bio-name {
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1;
  margin: 4px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.bio-col .bio-name .bio-li {
  align-self: flex-start;
  margin-top: 4px;
}
.bio-col .bio-role { font-size: 11px; }
.bio-col .bio-location { margin-top: 2px; }

.bio-col .bio-lede {
  font-family: var(--display) !important;
  font-size: 19px !important;
  line-height: 1.32 !important;
  color: var(--ink) !important;
  letter-spacing: -0.003em;
  max-width: none !important;
  margin: 0 !important;
}

.bio-roles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bio-roles li {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-left: 14px;
  position: relative;
}
.bio-roles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}
.bio-roles li b { color: var(--ink); font-weight: 600; }

.bio-col .bio-throughline {
  margin-top: 0 !important;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  color: var(--ink) !important;
  font-family: var(--sans) !important;
}
.bio-col .bio-throughline em { font-style: italic; color: var(--ink-soft); }
.bio-col .bio-throughline-label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 4px;
}

/* Hiring strip below bio grid */
.bio-grid + .people { grid-template-columns: 1fr; margin-top: 0; border-top: 0; }
.bio-grid + .people .person { padding-top: 28px; padding-bottom: 0; border-right: 0; }

/* Featured bio (Brian) */
.bio-feature {
  margin-top: 56px;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(28px, 5vw, 72px);
  padding: 36px 0 48px;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 860px) {
  .bio-feature { grid-template-columns: 1fr; gap: 28px; }
}
.bio-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
  align-self: start;
}
@media (max-width: 860px) {
  .bio-head { position: static; }
}
.bio-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.bio-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 4.2vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 4px 0 0;
  color: var(--ink);
}
.bio-location {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}
.bio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.bio-tags span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  white-space: nowrap;
}
.bio-portrait {
  margin-top: 8px;
  aspect-ratio: 4 / 5;
  background: var(--surface-soft);
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  position: relative;
  overflow: hidden;
  max-width: 280px;
}
.bio-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0 14px,
    color-mix(in oklab, var(--ink-faint) 18%, transparent) 14px 15px
  );
  opacity: 0.35;
}
.bio-portrait-label {
  position: relative;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.bio-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bio-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 64ch;
}
.bio-body p strong { color: var(--ink); font-weight: 600; }
.bio-lede {
  font-family: var(--display) !important;
  font-size: clamp(22px, 1.8vw, 26px) !important;
  line-height: 1.32 !important;
  color: var(--ink) !important;
  letter-spacing: -0.005em;
  max-width: 36ch !important;
}
.bio-throughline {
  margin-top: 8px !important;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--ink) !important;
}
.bio-throughline-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-right: 8px;
}

/* Selection */
::selection { background: color-mix(in oklab, var(--accent) 35%, transparent); color: var(--ink); }

/* Figures — abstract image moments */
.fig {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-strong);
  width: 100%;
}
.fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: var(--img-filter, saturate(0.55) contrast(1.04));
  mix-blend-mode: var(--img-blend, normal);
  transition: filter .35s ease, transform 1.2s ease;
}
.fig:hover img { transform: scale(1.015); }
.fig figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 6px 10px;
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  max-width: calc(100% - 32px);
}
.fig .fig-n { color: var(--accent-deep); }
.fig .fig-c { color: var(--ink-mute); }

/* Bleed wrapper — escapes .page padding/max-width for full-viewport figures */
.bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 0;
  margin-right: 0;
  max-width: 100vw;
}
.bleed .fig { border-radius: 0; }
.bleed .fig figcaption { left: var(--pad-page); }

/* Imagery treatment modes */
:root[data-img="mono"]    { --img-filter: grayscale(1) contrast(1.06); --img-blend: multiply; }
:root[data-img="duotone"] { --img-filter: grayscale(1) contrast(1.1) sepia(0.35) hue-rotate(125deg) saturate(1.4); --img-blend: normal; }
:root[data-img="natural"] { --img-filter: saturate(0.55) contrast(1.04);  --img-blend: normal; }
:root[data-img="off"] .fig { display: none; }

/* Dark mode: switch mono blend so detail survives on dark surface */
:root[data-theme="dark"][data-img="mono"] { --img-filter: grayscale(1) brightness(0.95) contrast(1.05); --img-blend: screen; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-img="mono"] { --img-filter: grayscale(1) brightness(0.95) contrast(1.05); --img-blend: screen; }
}

/* Hero side image */
.hero-figure {
  margin-top: 56px;
}


/* ============================================================
   Partner form modal — functional design-partner intake
   ============================================================ */

.pf-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: color-mix(in oklab, var(--ink) 55%, transparent);
  backdrop-filter: saturate(120%) blur(6px);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
  display: grid;
  place-items: start center;
  padding: clamp(16px, 4vh, 56px) 16px;
  overflow-y: auto;
  animation: pf-fade .18s ease both;
}
@keyframes pf-fade { from { opacity: 0; } to { opacity: 1; } }

.pf-dialog {
  position: relative;
  width: min(720px, 100%);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 56px) clamp(24px, 3vw, 40px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.35), 0 2px 0 rgba(0,0,0,.02);
  animation: pf-rise .26s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes pf-rise {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.pf-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.pf-close:hover { border-color: var(--ink); color: var(--ink); transform: rotate(90deg); }
.pf-close svg { width: 12px; height: 12px; }

.pf-head { display: flex; flex-direction: column; gap: 14px; padding-right: 40px; }
.pf-eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.pf-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent);
}
.pf-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
.pf-sub {
  color: var(--ink-mute);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 56ch;
}

.pf-form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pf-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-soft);
}
.pf-section:first-of-type { padding-top: 0; border-top: 0; }

.pf-section-label {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.pf-grid { display: grid; gap: 16px; }
.pf-grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 580px) { .pf-grid-2 { grid-template-columns: 1fr; } }

.pf-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pf-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.pf-optional {
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pf-input, .pf-textarea {
  width: 100%;
  background: var(--surface-soft);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.4;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.pf-textarea { resize: vertical; min-height: 96px; font-family: var(--sans); }
.pf-input:focus, .pf-textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--paper);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 14%, transparent);
}
.pf-input::placeholder, .pf-textarea::placeholder { color: var(--ink-faint); }

.pf-field-error .pf-input,
.pf-field-error .pf-textarea {
  border-color: #C2453E;
}
.pf-error {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #C2453E;
}

.pf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pf-chip {
  appearance: none;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13.5px;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .12s ease;
}
.pf-chip:hover { border-color: var(--ink-mute); color: var(--ink); }
.pf-chip.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.pf-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface-soft);
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  cursor: pointer;
}
.pf-consent input {
  width: 16px; height: 16px;
  margin-top: 2px;
  accent-color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}
.pf-consent-error { border-color: #C2453E; }

.pf-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 6px;
  flex-wrap: wrap;
}
.pf-foot-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pf-mono { font-family: var(--mono); }
.pf-sep { color: var(--ink-faint); }
.pf-foot-actions { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.pf-foot-actions .btn[disabled] { opacity: 0.6; cursor: progress; }

/* Success state */
.pf-success { display: flex; flex-direction: column; gap: 14px; padding-right: 40px; }
.pf-success-mark {
  width: 56px; height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent-deep);
  margin-bottom: 4px;
}
:root[data-theme="dark"] .pf-success-mark { color: var(--accent); }
.pf-success-mark svg { width: 28px; height: 28px; }

.pf-receipt {
  margin-top: 18px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 4px 18px;
}
.pf-receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
}
.pf-receipt-row:last-child { border-bottom: 0; }
.pf-receipt-row > span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.pf-receipt-row > b { font-weight: 500; color: var(--ink); text-align: right; }

.pf-success-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* Disable iOS scroll bounce on small screens */
@media (max-width: 720px) {
  .pf-dialog { padding: 28px 22px; border-radius: 14px; }
  .pf-close { top: 12px; right: 12px; }
  .pf-head, .pf-success { padding-right: 44px; }
}


/* ============================================================
   Statement page — letter on cream paper
   /statement.html
   ============================================================ */

body.statement-body {
  background: #E9E3D3;
  background-image: radial-gradient(rgba(0,0,0,0.022) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
  min-height: 100vh;
}

/* Override site nav background on the statement page so it blends with desk */
body.statement-body .st-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px clamp(16px, 3vw, 36px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4d4842;
  background: rgba(233, 227, 211, 0.86);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}
.st-topbar a { color: inherit; }
.st-topbar .st-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #1F1B17;
}
.st-topbar .st-brand img { width: 18px; height: 18px; display: block; }
.st-topbar .st-brand b { font-weight: 500; letter-spacing: 0.04em; text-transform: none; font-family: var(--sans); font-size: 13.5px; color: #1F1B17; }
.st-topbar .st-actions { display: inline-flex; align-items: center; gap: 22px; }
.st-topbar .st-actions .sep { color: rgba(0,0,0,0.25); }
.st-topbar .st-actions a:hover,
.st-topbar .st-actions button:hover { color: #1F1B17; }
.st-topbar button.st-link {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

/* Paper wrapper */
.st-paper-wrap {
  padding: clamp(20px, 3.5vw, 56px) clamp(16px, 3vw, 48px) clamp(56px, 6vw, 96px);
}
.st-paper {
  position: relative;
  background: #FBF9F4;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 6vw, 104px) clamp(32px, 5vw, 96px);
  border-radius: 3px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 2px 12px rgba(0,0,0,0.08),
    0 36px 96px rgba(0,0,0,0.14);
}
.st-paper::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent 0%, #B89865 12%, #B89865 88%, transparent 100%);
  opacity: 0.35;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

/* Letterhead at top of paper */
.st-letterhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(28px, 3vw, 40px);
  margin-bottom: clamp(36px, 4vw, 56px);
  border-bottom: 1px solid #E5DECF;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #76706A;
}
.st-letterhead .st-mark {
  display: inline-flex; align-items: center; gap: 12px;
  color: #1F1B17;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: -0.005em;
  text-transform: none;
}
.st-letterhead .st-mark img { width: 22px; height: 22px; display: block; }
.st-letterhead .st-meta {
  text-align: right;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .st-letterhead { flex-direction: column; align-items: flex-start; gap: 12px; }
  .st-letterhead .st-meta { text-align: left; }
}

/* The statement content reuses the same #ceo-statement styles
   from the standalone — replicated below in scoped form */

.st-paper .st-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #76706A;
  display: inline-block;
  margin-bottom: 14px;
}
.st-paper .st-eyebrow .num { color: var(--accent-deep); }
.st-paper .st-eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 10px; transform: translateY(-1px); vertical-align: middle;
}

.st-paper h1.st-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 clamp(28px, 3vw, 40px);
  color: #1F1B17;
  text-wrap: balance;
  max-width: 22ch;
}

.st-body {
  max-width: 68ch;
  margin: 0 auto;
  color: #2C2823;
}
.st-body p {
  margin: 0 0 0.95em;
  color: #2C2823;
  line-height: 1.6;
  font-size: 17px;
}
.st-body p strong { color: #1F1B17; font-weight: 600; }
.st-body p em { color: #1F1B17; font-style: italic; }
.st-body p:last-child { margin-bottom: 0; }

.st-body .st-lede {
  font-family: var(--display);
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: #1F1B17;
  max-width: 18ch;
  font-weight: 400;
}
.st-body .st-lede em { font-style: italic; color: #2C2823; }
.st-body .st-sub {
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.25;
  margin: 0 0 36px;
  color: #2C2823;
  max-width: 36ch;
  font-weight: 400;
}
.st-body .st-sub em { font-style: italic; color: #1F1B17; }

.st-body .st-display-line {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: #1F1B17;
  margin: 26px 0;
  max-width: 64ch;
  text-wrap: balance;
}
.st-body .st-display-line strong { font-weight: 400; }

.st-body .st-standard-line {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.22;
  color: #1F1B17;
  margin: 24px 0 36px;
  max-width: 68ch;
  text-wrap: balance;
}

/* Pullquotes */
.st-pull {
  margin: clamp(36px, 4vw, 56px) auto;
  padding: clamp(28px, 3vw, 40px) 0;
  border-top: 1px solid #1F1B17;
  border-bottom: 1px solid #1F1B17;
  max-width: 56ch;
}
.st-pull p {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: #1F1B17;
  margin: 0;
  text-wrap: balance;
}
.st-pull.values {
  border-top-color: var(--accent);
  border-bottom-color: var(--accent);
}
.st-pull.values p { font-style: italic; }

/* Tier grid */
.st-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #E5DECF;
  border-bottom: 1px solid #E5DECF;
  margin: clamp(36px, 4vw, 56px) 0;
  max-width: none;
}
.st-tier {
  padding: 28px 26px 28px 0;
  border-right: 1px solid #E5DECF;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.st-tier:nth-child(2) { padding-left: 26px; padding-right: 26px; }
.st-tier:nth-child(3) { padding-left: 26px; padding-right: 0; border-right: 0; }
.st-tier-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.st-tier-stance {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.2;
  color: #1F1B17;
}
.st-tier p {
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 860px) {
  .st-tier-grid { grid-template-columns: 1fr; }
  .st-tier, .st-tier:nth-child(2), .st-tier:nth-child(3) {
    padding: 22px 0; border-right: 0; border-bottom: 1px solid #E5DECF;
  }
  .st-tier:last-child { border-bottom: 0; }
}

/* Stakes */
.st-stakes-head {
  margin-top: clamp(36px, 4vw, 52px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid #E5DECF;
}
.st-stakes-lede {
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.3;
  margin: 14px 0 clamp(20px, 2.4vw, 30px);
  color: #2C2823;
  max-width: 56ch;
}
.st-stakes-lede em { font-style: italic; color: #1F1B17; }
.st-stakes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 48px);
  border-top: 1px solid #E5DECF;
  border-bottom: 1px solid #E5DECF;
  padding: clamp(22px, 2.4vw, 30px) 0;
}
.st-stake-n {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: #1F1B17;
}
.st-stake-l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #76706A;
  margin-top: 14px;
  line-height: 1.55;
  max-width: 32ch;
}
.st-stake.people .st-stake-n {
  font-size: clamp(28px, 3vw, 44px);
  font-style: italic;
  color: var(--accent-deep);
}
@media (max-width: 720px) {
  .st-stakes { grid-template-columns: 1fr; gap: 24px; }
}

/* Trajectory cards */
.st-trajectory-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin: clamp(36px, 4vw, 52px) 0 clamp(14px, 1.8vw, 22px);
  padding-top: clamp(18px, 2.2vw, 26px);
  border-top: 1px solid #E5DECF;
}
.st-trajectory-head .eyebrow,
.st-trajectory-head .horizon {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #76706A;
}
.st-trajectory-head .horizon { color: var(--ink-faint); }

.st-trajectory {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.st-tj {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid #E5DECF;
  border-radius: 4px;
  background: #F4F0E6;
}
.st-tj.active {
  background: color-mix(in oklab, var(--accent) 7%, #F4F0E6);
  border-color: var(--accent);
}
.st-tj-n {
  font-family: var(--display);
  font-size: clamp(44px, 4.6vw, 68px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: var(--ink-faint);
}
.st-tj.active .st-tj-n { color: var(--accent-deep); }
.st-tj h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: #1F1B17;
}
.st-tj p {
  font-size: 14px;
  line-height: 1.5;
  color: #2C2823;
  margin: 0;
}
.st-tj-when {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #76706A;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed #E5DECF;
  width: 100%;
}
.st-tj.active .st-tj-when { color: var(--accent-deep); }
@media (max-width: 860px) {
  .st-trajectory { grid-template-columns: 1fr; }
}

.st-trajectory-foot {
  margin: clamp(20px, 2.4vw, 28px) 0 0;
  padding-top: 18px;
  border-top: 1px dashed #E5DECF;
  font-size: 15.5px;
  line-height: 1.55;
  color: #2C2823;
}
.st-trajectory-foot strong { color: #1F1B17; font-weight: 600; }

/* Closing */
.st-standard {
  margin-top: clamp(28px, 3vw, 40px);
}
.st-close {
  margin-top: clamp(36px, 4vw, 52px);
  padding-top: clamp(28px, 3vw, 36px);
  border-top: 1px solid #1F1B17;
}
.st-close p {
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.32;
  color: #1F1B17;
  max-width: 40ch;
  margin: 0 0 20px;
}
.st-close p.architect {
  font-style: italic;
  margin: 28px 0;
}
.st-close p.final {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 32px 0 0;
  max-width: 30ch;
  font-style: normal;
}
.st-close p strong { font-weight: 400; }

/* Sign-off */
.st-signoff {
  margin-top: clamp(40px, 4vw, 56px);
  padding-top: clamp(24px, 2.6vw, 32px);
  border-top: 1px solid #E5DECF;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.st-signoff .sig-name {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(28px, 2.8vw, 40px);
  letter-spacing: -0.01em;
  color: #1F1B17;
  line-height: 1;
}
.st-signoff .sig-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #76706A;
  margin-top: 8px;
}
.st-signoff .sig-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #76706A;
  text-align: right;
  line-height: 1.7;
}

/* Footer beneath the paper */
.st-footer {
  max-width: 1180px;
  margin: clamp(40px, 4vw, 56px) auto 0;
  padding: 0 clamp(16px, 3vw, 36px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(31,27,23,0.55);
  flex-wrap: wrap;
}
.st-footer a { color: inherit; }
.st-footer a:hover { color: #1F1B17; }

/* Print */
@media print {
  body.statement-body { background: #fff; background-image: none; }
  .st-topbar, .st-footer { display: none; }
  .st-paper-wrap { padding: 0; }
  .st-paper {
    max-width: none;
    margin: 0;
    padding: 18mm 20mm;
    box-shadow: none;
    border-radius: 0;
    background: #fff;
  }
  .st-paper::before { display: none; }
  .st-pull, .st-close { break-inside: avoid; }
  .st-trajectory { break-inside: avoid; }
  .st-signoff { break-inside: avoid; }
}


/* Statement teaser card inside the Team section */
.statement-card {
  display: block;
  color: inherit;
  margin-top: clamp(64px, 8vw, 96px);
  padding: clamp(28px, 3.5vw, 44px) clamp(28px, 3.5vw, 48px);
  border: 1px solid var(--rule);
  border-radius: 14px;
  background:
    linear-gradient(180deg, var(--surface-soft) 0%, var(--paper) 100%);
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.statement-card:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -16px rgba(0,0,0,0.18);
}
.statement-card:hover .btn.ghost {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.statement-card .btn { pointer-events: none; }
.statement-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent 0%, var(--gold) 14%, var(--gold) 86%, transparent 100%);
  opacity: 0.5;
}
.statement-card-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(20px, 3vw, 40px);
  align-items: end;
}
.statement-card .eyebrow { display: inline-block; margin-bottom: 14px; }
.statement-card-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 12px;
  max-width: 18ch;
  text-wrap: balance;
}
.statement-card-sub {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-mute);
  margin: 0;
  max-width: 48ch;
}
@media (max-width: 720px) {
  .statement-card-inner { grid-template-columns: 1fr; align-items: start; }
  .statement-card .btn { align-self: flex-start; }
}


/* ============================================================
   Mobile nav — hamburger + drop-down panel (≤760px)
   ============================================================ */

.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  height: 38px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.nav-toggle:hover { border-color: var(--ink); }
.nav-toggle-bars {
  position: relative;
  width: 16px;
  height: 10px;
  display: inline-block;
}
.nav-toggle-bars span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .22s ease, top .22s ease, opacity .15s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 2px; }
.nav-toggle-bars span:nth-child(2) { top: 7px; }
.nav.is-open .nav-toggle-bars span:nth-child(1) { top: 4.5px; transform: rotate(45deg); }
.nav.is-open .nav-toggle-bars span:nth-child(2) { top: 4.5px; transform: rotate(-45deg); }
.nav-toggle-label { line-height: 1; }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.nav-mobile ul {
  list-style: none;
  padding: 8px var(--pad-page) 4px;
  margin: 0;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}
.nav-mobile li { border-bottom: 1px solid var(--rule-soft); }
.nav-mobile li:last-child { border-bottom: 0; }
.nav-mobile a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}
.nav-mobile a .arr {
  width: 14px;
  height: 14px;
  color: var(--ink-faint);
  flex-shrink: 0;
}
.nav-mobile a:hover .arr { color: var(--ink); }

.nav-mobile-foot {
  padding: 14px var(--pad-page) 20px;
  border-top: 1px solid var(--rule-soft);
  max-width: 1320px;
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.nav-mobile-foot a { color: var(--ink); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav.is-open .nav-mobile { display: block; }
  .nav-inner { padding-top: 4px; padding-bottom: 4px; }
}

/* Smooth open animation */
.nav-mobile[hidden] { display: none; }
.nav.is-open .nav-mobile {
  animation: nav-mobile-in .22s ease both;
}
@keyframes nav-mobile-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   Statement topbar — tidy at narrow widths
   ============================================================ */
@media (max-width: 600px) {
  body.statement-body .st-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  body.statement-body .st-topbar .st-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 14px 18px;
  }
}


/* ============================================================
   Mobile fixes (≤760px) — real-device validation pass
   ============================================================ */

@media (max-width: 860px) {
  /* Disable sticky section heads when columns stack —
     prevents the eyebrow/title from overlaying body content as you scroll */
  .section-head {
    position: static;
    top: auto;
  }

  /* Hero figure margin tightened on mobile */
  .hero-figure { margin-top: 32px; }
}

/* Force bio-grid to a clean single-column stack on mobile.
   Override the desktop grid-row / subgrid props that were leaking through
   and squeezing the columns into a 3-column layout on narrow screens. */
@media (max-width: 960px) {
  .bio-grid {
    display: block;
    grid-template-columns: none;
    grid-template-rows: none;
  }
  .bio-col {
    display: block;
    grid-row: auto;
    grid-column: auto;
    grid-template-rows: none;
    width: 100%;
    border-right: 0;
    padding: 32px 0;
  }
  .bio-col:not(:first-child) {
    border-top: 1px solid var(--rule);
  }
  .bio-col .bio-portrait {
    max-width: 200px;
    margin: 12px 0 18px;
  }
  .bio-col-head,
  .bio-col .bio-lede,
  .bio-roles,
  .bio-col .bio-throughline {
    margin-top: 16px;
  }
}

/* Belt-and-braces: stop any element from forcing horizontal overflow */
html, body { overflow-x: hidden; }


/* ============================================================
   Mobile breathing-room — explicit, defensive overrides
   ============================================================ */
@media (max-width: 720px) {
  :root {
    --pad-page: 32px;
    --pad-section: 80px;
  }
  /* Defeat any earlier rule that might collapse page padding */
  .page,
  main .page,
  body .page {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }

  /* Trim oversized display sizes that crowd narrow screens */
  .hero .display {
    font-size: clamp(36px, 9vw, 44px) !important;
    line-height: 1.05;
    letter-spacing: -0.02em;
  }
  .section-title,
  h2.section-title {
    font-size: clamp(28px, 8vw, 38px) !important;
    line-height: 1.05;
  }
  .hero .lede {
    font-size: 18px !important;
  }

  /* Keep body type comfortable */
  body { font-size: 16px; }
  p { line-height: 1.6; }

  /* Section breathing room top/bottom */
  .section { padding-top: 64px; padding-bottom: 64px; }
}

/* Smaller phones */
@media (max-width: 380px) {
  :root { --pad-page: 24px; }
  .page, main .page, body .page {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}


/* ============================================================
   Mobile: let the positioning strip wrap, marquee scrollable
   ============================================================ */
@media (max-width: 720px) {
  .positioning > span,
  .positioning > span:last-child {
    white-space: normal;
  }
  .positioning .sep {
    margin: 0 6px;
  }
  /* Marquee becomes a horizontally scrollable strip on touch */
  .marquee {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-right: 24px;
  }
  .marquee::-webkit-scrollbar { display: none; }
}


/* ============================================================
   Partner enquiry page (/partner.html)
   ============================================================ */

body.partner-body {
  background: var(--paper);
  min-height: 100vh;
}

.pp-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 56px) clamp(56px, 6vw, 96px);
}

.pp-intro {
  padding-bottom: clamp(32px, 3.5vw, 48px);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(40px, 4vw, 56px);
}
.pp-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.pp-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent);
}
.pp-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 0 0 16px;
  color: var(--ink);
  text-wrap: balance;
  max-width: 22ch;
}
.pp-title em { font-style: italic; color: var(--ink-soft); }
.pp-sub {
  color: var(--ink-mute);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 28px;
  max-width: 56ch;
}
.pp-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-soft);
}
.pp-meta li {
  padding: 18px 18px 0 0;
  border-right: 1px solid var(--rule-soft);
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.pp-meta li:last-child { border-right: 0; padding-right: 0; }
.pp-meta li:not(:first-child) { padding-left: 18px; }
.pp-meta li span {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.pp-meta li b { color: var(--ink); font-weight: 500; }
@media (max-width: 720px) {
  .pp-meta { grid-template-columns: 1fr; }
  .pp-meta li {
    padding: 16px 0 !important;
    border-right: 0;
    border-bottom: 1px solid var(--rule-soft);
  }
  .pp-meta li:last-child { border-bottom: 0; }
}

.pp-form {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3vw, 40px);
}
.pp-form[hidden] { display: none; }

.pp-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: clamp(24px, 2.4vw, 32px);
  border-top: 1px solid var(--rule-soft);
}
.pp-section:first-of-type { padding-top: 0; border-top: 0; }
.pp-section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.pp-grid { display: grid; gap: 18px; }
.pp-grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .pp-grid-2 { grid-template-columns: 1fr; } }

.pp-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.pp-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.pp-optional {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.pp-field input[type="text"],
.pp-field input[type="email"],
.pp-field textarea {
  width: 100%;
  background: var(--surface-soft);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.4;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.pp-field textarea {
  resize: vertical;
  min-height: 112px;
  line-height: 1.55;
  font-family: var(--sans);
}
.pp-field input:focus,
.pp-field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--paper);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 14%, transparent);
}
.pp-field input::placeholder,
.pp-field textarea::placeholder { color: var(--ink-faint); }

.pp-field-error input,
.pp-field-error textarea { border-color: #C2453E; }
.pp-error {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #C2453E;
  min-height: 14px;
  margin-top: 2px;
}
.pp-error:empty { display: none; }

.pp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pp-chip {
  appearance: none;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.pp-chip:hover { border-color: var(--ink-mute); color: var(--ink); }
.pp-chip.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.pp-consent {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface-soft);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  cursor: pointer;
}
.pp-consent input {
  width: 18px; height: 18px;
  margin-top: 1px;
  accent-color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}

.pp-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 8px;
  flex-wrap: wrap;
}
.pp-foot-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pp-mono { font-family: var(--mono); }
.pp-sep { color: var(--ink-faint); }
.pp-foot-actions { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.pp-foot-actions .btn[disabled] { opacity: 0.6; cursor: progress; }

/* Success state */
.pp-success {
  padding-top: 8px;
}
.pp-success-mark {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent-deep);
  margin-bottom: 18px;
}
.pp-success-mark svg { width: 28px; height: 28px; }
.pp-receipt {
  margin-top: 24px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 4px 20px;
  max-width: 480px;
}
.pp-receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
}
.pp-receipt-row:last-child { border-bottom: 0; }
.pp-receipt-row > span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.pp-receipt-row > b { font-weight: 500; color: var(--ink); text-align: right; }

@media (max-width: 720px) {
  .pp-wrap { padding-top: 28px; padding-bottom: 56px; }
  .pp-foot { flex-direction: column-reverse; align-items: stretch; }
  .pp-foot-actions { width: 100%; }
  .pp-foot-actions .btn { flex: 1; justify-content: center; }
}


/* ============================================================
   Partner modal — simple, editorial
   ============================================================ */

.pm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: color-mix(in oklab, var(--ink) 60%, transparent);
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  display: grid;
  place-items: start center;
  padding: clamp(16px, 4vh, 56px) 16px;
  overflow-y: auto;
  animation: pm-fade .2s ease both;
}
@keyframes pm-fade { from { opacity: 0; } to { opacity: 1; } }

.pm-dialog {
  position: relative;
  width: min(560px, 100%);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.35), 0 2px 0 rgba(0,0,0,.02);
  animation: pm-rise .26s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes pm-rise {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.pm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .15s ease, color .15s ease, transform .2s ease;
}
.pm-close:hover { border-color: var(--ink); color: var(--ink); transform: rotate(90deg); }
.pm-close:disabled { opacity: 0.4; cursor: not-allowed; }
.pm-close svg { width: 12px; height: 12px; }

.pm-head { padding-right: 36px; margin-bottom: 22px; }
.pm-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.pm-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent);
}
.pm-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 0 0 10px;
  color: var(--ink);
  text-wrap: balance;
}
.pm-sub {
  color: var(--ink-mute);
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0;
  max-width: 44ch;
}

.pm-form { display: flex; flex-direction: column; gap: 20px; }
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pm-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pm-field-full { grid-column: 1 / -1; }
@media (max-width: 540px) { .pm-grid { grid-template-columns: 1fr; } }

.pm-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.pm-optional {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.pm-input, .pm-textarea {
  width: 100%;
  background: var(--surface-soft);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.4;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.pm-textarea { resize: vertical; min-height: 100px; line-height: 1.55; font-family: var(--sans); }
.pm-input:focus, .pm-textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--paper);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 14%, transparent);
}
.pm-input::placeholder, .pm-textarea::placeholder { color: var(--ink-faint); }

/* Quick-pick chip groups */
.pm-chipfield { gap: 10px; }
.pm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pm-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px 9px 12px;
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: -0.003em;
  color: var(--ink-soft);
  background: var(--surface-soft);
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.pm-chip:hover {
  border-color: var(--ink-mute);
  color: var(--ink);
}
.pm-chip:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 14%, transparent);
}
.pm-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid var(--rule-soft);
  background: transparent;
  transition: background .15s ease, border-color .15s ease;
}
.pm-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.pm-chip.is-active .pm-chip-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.pm-field-error .pm-input,
.pm-field-error .pm-textarea { border-color: #C2453E; }
.pm-error {
  font-family: var(--mono);
  font-size: 11px;
  color: #C2453E;
  margin-top: 2px;
}
.pm-error-banner {
  background: color-mix(in oklab, #C2453E 10%, transparent);
  border: 1px solid color-mix(in oklab, #C2453E 35%, var(--rule));
  color: #C2453E;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.pm-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
  flex-wrap: wrap;
}
.pm-foot-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-mute);
}
.pm-mono { font-family: var(--mono); }

/* --- North Star easter egg --- */
.hero-figure { position: relative; }

/* Invisible hotspot — placed over the astronaut floating in the photo */
.ns-hotspot {
  position: absolute;
  /* Astronaut sits roughly centred, upper third of the frame */
  left: 46%;
  top: 22%;
  width: 6%;
  aspect-ratio: 1 / 1.4;
  min-width: 44px;
  min-height: 60px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 5;
  outline: none;
  appearance: none;
  border-radius: 50%;
  /* Faint ambient breathe so the curious can find it */
  animation: ns-hotspot-breathe 4.2s ease-in-out infinite;
  transition: background .25s ease, box-shadow .25s ease;
}
@keyframes ns-hotspot-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.0); }
  50%      { box-shadow: 0 0 24px 2px rgba(255,255,255,0.18); }
}
.ns-hotspot:hover {
  background: radial-gradient(
    closest-side,
    rgba(255,255,255,0.22),
    transparent 70%
  );
  box-shadow: 0 0 32px 4px rgba(255,255,255,0.35);
}
.ns-hotspot.is-armed,
.ns-hotspot.is-lit {
  pointer-events: none;
  animation: none;
  box-shadow: none;
}

.northstar {
  position: absolute;
  top: 8%;
  right: 22%;
  z-index: 4;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  opacity: 0;
  transition: opacity .8s ease;
}
.northstar.is-armed {
  opacity: 0.35;
  color: color-mix(in oklab, #FFFFFF 80%, var(--ink-mute));
}
.northstar.is-armed .ns-aura { opacity: 0.18; }
.northstar.is-armed .northstar-svg { animation: ns-search 2s ease-in-out infinite; }

.northstar.is-lit {
  opacity: 1;
  animation: ns-vanish 1.2s ease-in 3.8s forwards;
}

@keyframes ns-vanish {
  0%   { opacity: 1; filter: brightness(1); transform: scale(1); }
  35%  { opacity: 1; filter: brightness(1.6); transform: scale(1.05); }
  100% { opacity: 0; filter: brightness(1); transform: scale(0.6); }
}
@keyframes ns-search {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50%      { opacity: 0.6;  transform: scale(1.05); }
}

.northstar-svg {
  width: clamp(90px, 9vw, 130px);
  height: clamp(90px, 9vw, 130px);
  overflow: visible;
  position: relative;
  z-index: 2;
}
.northstar.is-lit .northstar-svg {
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.85));
  animation: ns-arrive 1.6s cubic-bezier(.18, .88, .2, 1) 1;
}
@keyframes ns-arrive {
  0%   { opacity: 0; transform: scale(0.05) rotate(-180deg); filter: blur(8px) brightness(2); }
  35%  { opacity: 1; transform: scale(1.35) rotate(-15deg); filter: blur(0) brightness(1.8); }
  55%  { transform: scale(0.92) rotate(8deg); filter: brightness(1.1); }
  75%  { transform: scale(1.05) rotate(-3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); filter: brightness(1); }
}

/* Diamond — slow rotation + breathing */
.northstar.is-lit .ns-diamond {
  transform-origin: 60px 60px;
  animation: ns-spin 18s linear 1.6s infinite, ns-diamond-breathe 2.6s ease-in-out 1.6s infinite;
}
@keyframes ns-spin {
  to { transform: rotate(360deg); }
}
@keyframes ns-diamond-breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.78; }
}

/* Core pulse */
.northstar.is-lit .ns-core {
  transform-origin: 60px 60px;
  animation: ns-core-pulse 2.4s ease-in-out 1.6s infinite;
}
@keyframes ns-core-pulse {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.35); }
}
.northstar.is-lit .ns-pip {
  animation: ns-pip-flicker 1.8s ease-in-out 1.6s infinite;
}
@keyframes ns-pip-flicker {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.7; }
}

/* Lens-flare axis rays — draw in then breathe */
.northstar.is-lit .ns-rays-long rect,
.northstar.is-lit .ns-rays-diag rect {
  transform-origin: 60px 60px;
  transform: scaleY(0.05) scaleX(0.05);
  animation: ns-ray-extend 1.0s cubic-bezier(.16,.7,.2,1) forwards;
}
.northstar.is-lit .ns-rays-long rect:nth-child(1) { animation-delay: 0.45s; }
.northstar.is-lit .ns-rays-long rect:nth-child(2) { animation-delay: 0.55s; }
.northstar.is-lit .ns-rays-diag rect:nth-child(1) { animation-delay: 0.95s; }
.northstar.is-lit .ns-rays-diag rect:nth-child(2) { animation-delay: 1.05s; }

@keyframes ns-ray-extend {
  0%   { transform: scale(0.05); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}

/* Gentle pulse after extension */
.northstar.is-lit .ns-rays-long,
.northstar.is-lit .ns-rays-diag {
  transform-origin: 60px 60px;
  animation: ns-rays-breathe 3.4s ease-in-out 2s infinite;
}
@keyframes ns-rays-breathe {
  0%, 100% { opacity: 1;    transform: scale(1); }
  50%      { opacity: 0.65; transform: scale(0.92); }
}

/* Soft halo behind the star */
.ns-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(160px, 18vw, 260px);
  height: clamp(160px, 18vw, 260px);
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(
    closest-side,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0.22) 30%,
    rgba(255, 255, 255, 0.05) 60%,
    transparent 80%
  );
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
.northstar.is-lit .ns-aura {
  animation:
    ns-aura-arrive 1.2s ease-out 0.3s forwards,
    ns-aura-breathe 4.6s ease-in-out 1.6s infinite;
}
@keyframes ns-aura-arrive {
  0%   { opacity: 0;   transform: translate(-50%, -50%) scale(0.2); }
  60%  { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
  100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
}
@keyframes ns-aura-breathe {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 0.45; }
}

/* Incoming streak — a light trail that whips in then dissolves */
.ns-streak {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(140px, 16vw, 220px);
  height: 1.2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255,255,255,0.05) 20%,
    rgba(255,255,255,0.85) 88%,
    #ffffff 100%
  );
  transform: translate(-100%, -50%) rotate(-22deg);
  transform-origin: 100% 50%;
  opacity: 0;
  filter: blur(0.4px) drop-shadow(0 0 6px rgba(255,255,255,0.7));
  pointer-events: none;
  z-index: 3;
}
.northstar.is-lit .ns-streak {
  animation: ns-streak-fly 0.95s cubic-bezier(.7,.05,.2,1) 0s 1;
}
@keyframes ns-streak-fly {
  0%   { opacity: 0;    transform: translate(-220%, -50%) rotate(-28deg) scaleX(0.2); }
  20%  { opacity: 1;    transform: translate(-200%, -50%) rotate(-26deg) scaleX(1); }
  70%  { opacity: 1;    transform: translate(-50%,  -50%) rotate(-18deg) scaleX(1.1); }
  100% { opacity: 0;    transform: translate(-30%,  -50%) rotate(-12deg) scaleX(0.3); }
}

/* Burst flash at arrival */
.ns-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  filter: blur(1px);
  pointer-events: none;
  z-index: 4;
}
.northstar.is-lit .ns-burst {
  animation: ns-burst-flash 0.9s ease-out 0.85s 1 forwards;
}
@keyframes ns-burst-flash {
  0%   { opacity: 0;    transform: translate(-50%, -50%) scale(0); }
  20%  { opacity: 1;    transform: translate(-50%, -50%) scale(1.5); filter: blur(0); }
  60%  { opacity: 0.6;  transform: translate(-50%, -50%) scale(12); filter: blur(8px); }
  100% { opacity: 0;    transform: translate(-50%, -50%) scale(22); filter: blur(14px); }
}

/* Orbiting micro-sparkles */
.ns-sparkles {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 2;
}
.ns-sparkles i {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.9));
  transform:
    translate(-50%, -50%)
    rotate(var(--a, 0deg))
    translateY(calc(-1 * var(--r, 60px)));
}
.northstar.is-lit .ns-sparkles i {
  animation: ns-sparkle var(--s, 3.8s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes ns-sparkle {
  0%, 100% { opacity: 0;    transform:
    translate(-50%, -50%)
    rotate(var(--a, 0deg))
    translateY(calc(-1 * var(--r, 60px)))
    scale(0.4); }
  25%      { opacity: 0.95; transform:
    translate(-50%, -50%)
    rotate(calc(var(--a, 0deg) + 8deg))
    translateY(calc(-1 * var(--r, 60px)))
    scale(1.1); }
  60%      { opacity: 0.5;  transform:
    translate(-50%, -50%)
    rotate(calc(var(--a, 0deg) + 16deg))
    translateY(calc(-1 * var(--r, 60px) * 1.1))
    scale(0.7); }
}

@media (max-width: 720px) {
  .northstar { top: 6%; right: 12%; }
  .northstar-svg { width: 78px; height: 78px; }
}
.pm-actions { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.pm-actions .btn[disabled] { opacity: 0.6; cursor: progress; }

/* Success state */
.pm-success { padding-right: 36px; }
.pm-success-mark {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent-deep);
  margin-bottom: 16px;
}
:root[data-theme="dark"] .pm-success-mark { color: var(--accent); }
.pm-success-mark svg { width: 26px; height: 26px; }
.pm-success .pm-actions { margin-top: 24px; }

@media (max-width: 540px) {
  .pm-dialog { padding: 26px 22px; border-radius: 14px; }
  .pm-close { top: 12px; right: 12px; }
  .pm-foot { flex-direction: column; align-items: stretch; }
  .pm-actions { width: 100%; }
  .pm-actions .btn { flex: 1; justify-content: center; }
}


/* ============================================================
   404 page (/404.html) — "have you seen this page?" poster
   ============================================================ */

body.fourofour-body {
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.fof {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  padding: clamp(36px, 5vw, 80px) clamp(24px, 4vw, 56px);
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .fof {
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 6vw, 96px);
  }
}

.fof-stack {
  display: contents;
}

/* The poster sits in column 1 on desktop, on top on mobile */
.fof-poster-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  justify-self: center;
}
@media (min-width: 900px) {
  .fof-poster-wrap {
    order: -1;
    justify-self: start;
  }
}

.fof-poster {
  position: relative;
  background: #F7F2E4;
  background-image:
    radial-gradient(rgba(0,0,0,0.04) 0.8px, transparent 0.8px);
  background-size: 12px 12px;
  background-position: 0 0;
  padding: 28px 28px 22px;
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 2px 6px rgba(0,0,0,0.05),
    0 24px 48px -16px rgba(0,0,0,0.18);
  transform: rotate(-3deg);
  transform-origin: center;
  animation: fof-poster-in .6s cubic-bezier(.2,.7,.2,1) both;
  font-family: var(--mono);
}
@keyframes fof-poster-in {
  0%   { opacity: 0; transform: rotate(2deg)  translateY(-12px) scale(0.96); }
  60%  { opacity: 1; transform: rotate(-5deg) translateY(2px)   scale(1.01); }
  100% { opacity: 1; transform: rotate(-3deg) translateY(0)     scale(1);    }
}
.fof-poster:hover { animation: fof-poster-wobble 1s ease-in-out; }
@keyframes fof-poster-wobble {
  0%, 100% { transform: rotate(-3deg); }
  25% { transform: rotate(-1.5deg); }
  75% { transform: rotate(-4.5deg); }
}

/* Push-pin corners */
.fof-poster-corner {
  position: absolute;
  width: 9px; height: 9px;
  background: radial-gradient(circle at 30% 30%, #E0734C 0%, #C2453E 70%, #8a2d28 100%);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.fof-poster-corner-tl { top: -3px; left: -3px; }
.fof-poster-corner-tr { top: -3px; right: -3px; }
.fof-poster-corner-bl { bottom: -3px; left: -3px; }
.fof-poster-corner-br { bottom: -3px; right: -3px; }

.fof-poster-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(31,27,23,0.5);
  margin-bottom: 14px;
}

.fof-poster-title {
  font-family: var(--mono);
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0.04em;
  text-align: center;
  color: #1F1B17;
  padding: 4px 0 14px;
  border-bottom: 2px solid #1F1B17;
  margin-bottom: 18px;
}

.fof-poster-cat {
  display: flex;
  justify-content: center;
  margin: 4px auto 18px;
}
.fof-poster-cat svg {
  width: 70%;
  max-width: 240px;
  height: auto;
  display: block;
  animation: fof-cat-blink 5s steps(1, end) infinite;
}
@keyframes fof-cat-blink {
  0%, 92%, 100% { transform: none; }
  94% { transform: translateY(0.5px); filter: brightness(0.98); }
  96% { transform: translateY(0); }
}
/* The cat's eyes squeeze on click of the poster, for fun */
.fof-poster:active .fof-poster-cat svg { transform: scale(0.98); }

.fof-poster-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px dashed rgba(31,27,23,0.25);
  border-bottom: 1px dashed rgba(31,27,23,0.25);
  padding: 10px 0;
  margin-bottom: 12px;
}
.fof-poster-meta > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 4px 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #2C2823;
}
.fof-poster-meta > div span {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(31,27,23,0.5);
  padding-top: 2px;
}
.fof-poster-meta > div b {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: #1F1B17;
  letter-spacing: -0.005em;
}

.fof-poster-foot {
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(31,27,23,0.55);
}
.fof-poster-foot b {
  color: #1F1B17;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* The text column */
.fof-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.fof-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent);
}

.fof-display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.018em;
  margin: 0 0 20px;
  color: var(--ink);
  text-wrap: balance;
  max-width: 18ch;
}
.fof-display em { font-style: italic; color: var(--ink-soft); }

.fof-lede {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 44ch;
  margin: 0 0 28px;
}

.fof-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 560px) {
  .fof-poster-wrap { max-width: 320px; }
  .fof-display { font-size: clamp(28px, 9vw, 40px); }
  .fof-actions { width: 100%; }
  .fof-actions .btn { flex: 1; justify-content: center; }
}


/* ============================================================
   Prior-affiliations strip — sits between bio grid and hiring block
   ============================================================ */
.aff-strip {
  margin-top: clamp(48px, 5vw, 72px);
  padding: clamp(36px, 4vw, 56px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.aff-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: clamp(24px, 3vw, 36px);
  flex-wrap: wrap;
}
.aff-head .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.aff-lede {
  font-family: var(--display);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.35;
  color: var(--ink-soft);
  margin: 0;
  max-width: 36ch;
}
.aff-lede em { font-style: italic; color: var(--ink); }
.aff-rows { display: flex; flex-direction: column; }
.aff-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(20px, 2.4vw, 28px) 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.aff-row:first-child { border-top: 0; padding-top: 0; }
.aff-row:last-child { padding-bottom: 0; }
.aff-who {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.aff-who small {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 6px;
}
.aff-marks {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(14.5px, 1.3vw, 17px);
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 1.6vw, 22px);
  line-height: 1.7;
}
.aff-marks span { white-space: nowrap; }
.aff-marks .aff-sep {
  color: var(--ink-faint);
  font-weight: 400;
}

@media (max-width: 760px) {
  .aff-row { grid-template-columns: 1fr; gap: 10px; }
  .aff-who small { margin-top: 4px; }
}

/* Tighten transition between affiliations and hiring strip below */
.aff-strip + .people { margin-top: clamp(36px, 4vw, 56px); border-top: 0; }


/* ============================================================
   Architects pullquote — full-width editorial break
   ============================================================ */
.architects-pull {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.architects-pull-inner {
  padding-top: clamp(56px, 6vw, 96px);
  padding-bottom: clamp(56px, 6vw, 96px);
}
.architects-pull p {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 auto;
  max-width: 22ch;
  text-wrap: balance;
  text-align: center;
}
.architects-pull p strong { font-weight: 400; }
.architects-pull p em { font-style: italic; color: var(--ink-soft); }
.architects-pull + .section { border-top: 0; }

/* ============================================================
   Stakes grid — $100T / $2T / Top to bottom
   ============================================================ */
.stakes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(28px, 3vw, 40px) 0;
  margin-top: clamp(28px, 3vw, 40px);
}
.stakes-grid .stake { display: flex; flex-direction: column; min-width: 0; }
.stakes-grid .stake-n {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.stakes-grid .stake.stake-people .stake-n {
  font-size: clamp(26px, 3vw, 40px);
  font-style: italic;
  color: var(--accent-deep);
}
.stakes-grid .stake-l {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin-top: 16px;
  line-height: 1.55;
  max-width: 36ch;
  text-transform: none;
}
@media (max-width: 720px) {
  .stakes-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   Three-tier strip — Tavyaan / Telos42 / Product brands
   ============================================================ */
.three-tier-section {
  border-top: 1px solid var(--rule);
}
.three-tier {
  padding-top: clamp(48px, 5vw, 80px);
  padding-bottom: clamp(48px, 5vw, 80px);
}
.three-tier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 48px);
  margin-bottom: clamp(28px, 3vw, 40px);
  flex-wrap: wrap;
}
.three-tier-head .eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.three-tier-lede {
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.3;
  color: var(--ink-soft);
  margin: 0;
  max-width: 38ch;
}
.three-tier-lede em { font-style: italic; color: var(--ink); }
.three-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.three-tier-card {
  padding: clamp(24px, 3vw, 32px) clamp(20px, 2vw, 28px) clamp(24px, 3vw, 32px) 0;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.three-tier-card:nth-child(2) {
  padding-left: clamp(20px, 2vw, 28px);
  padding-right: clamp(20px, 2vw, 28px);
}
.three-tier-card:nth-child(3) {
  padding-left: clamp(20px, 2vw, 28px);
  padding-right: 0;
  border-right: 0;
}
.three-tier-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.three-tier-stance {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.22;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.three-tier-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 38ch;
}
@media (max-width: 860px) {
  .three-tier-grid { grid-template-columns: 1fr; }
  .three-tier-card,
  .three-tier-card:nth-child(2),
  .three-tier-card:nth-child(3) {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .three-tier-card:last-child { border-bottom: 0; }
}


/* Footer button styled to match link rows */
.footer-link {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-family: var(--sans);
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
  display: inline;
  transition: color .15s ease;
}
.footer-link:hover { color: var(--ink); }


/* ============================================================
   /* === 13" / mid-desktop breakpoint ===
   Tighten display typography + section padding in 720–1280px.
   At 13" MacBook default (~1440px CSS), the previous clamps
   landed near their max values, causing oversized headlines and
   heavy vertical whitespace. This range softens both.
   ============================================================ */
@media (min-width: 720px) and (max-width: 1280px) {
  :root {
    --pad-section: 80px;
    --pad-page: clamp(48px, 6vw, 96px);
    --fs-display: clamp(52px, 7vw, 80px);
    --fs-h2: clamp(34px, 4vw, 48px);
    --fs-h3: clamp(20px, 1.8vw, 26px);
    --fs-body: 16.5px;
  }
  .two-col {
    grid-template-columns: 4fr 7fr;
    gap: clamp(24px, 4vw, 48px);
  }
  /* Drop sticky on iPad / 13" — at these widths the section-head can
     end up visually disconnected from the body it labels because the
     body column is much taller. A static head reads as a tighter pair. */
  .section-head {
    position: static;
    top: auto;
  }
}

/* Slightly wider too — cap display size before max */
@media (min-width: 1281px) and (max-width: 1480px) {
  :root {
    --pad-section: 96px;
    --fs-display: clamp(64px, 6.6vw, 92px);
    --fs-h2: clamp(38px, 4vw, 56px);
  }
}
