/* =========================================================
   Salam Founders Fund — core stylesheet
   Monochrome, editorial, hairline-ruled.
   ========================================================= */

@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-latin-wght-italic.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --paper: #f2f1ed;
  --white: #ffffff;
  --line: rgba(10, 10, 10, 0.16);
  --line-strong: rgba(10, 10, 10, 0.9);
  --muted: rgba(10, 10, 10, 0.56);
  --line-inv: rgba(255, 255, 255, 0.16);
  --muted-inv: rgba(255, 255, 255, 0.56);

  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;

  --pad: clamp(16px, 2.6vw, 40px);
  --gap: clamp(12px, 1.6vw, 24px);
  --header-h: 72px;

  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --fs-label: 12px;
  --fs-body: clamp(15px, 1.05vw, 17px);
  --fs-lead: clamp(20px, 1.9vw, 30px);
  --fs-h3: clamp(24px, 2.4vw, 38px);
  --fs-h2: clamp(40px, 6vw, 104px);
  --fs-display: clamp(56px, 11.5vw, 220px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: var(--paper); }

em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.label {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.muted { color: var(--muted); }
.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hairline rules (newspaper) ---------- */
.rule {
  height: 1px;
  background: var(--line);
  transform-origin: left center;
  border: 0;
  margin: 0;
}
.rule--strong { background: var(--line-strong); }
.is-dark .rule { background: var(--line-inv); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.logo {
  display: inline-flex;
  align-items: baseline;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.logo .l-s { display: inline-block; }
.logo .l-t {
  display: inline-block;
  overflow: hidden;
  white-space: pre;
  vertical-align: bottom;
  max-width: var(--w, 10em);
  transition: max-width 0.8s var(--ease), opacity 0.5s var(--ease);
}
.is-compact .logo .l-t { max-width: 0; opacity: 0; }
.is-compact .logo:hover .l-t { max-width: var(--w, 10em); opacity: 1; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
}
.nav a sup { font-size: 9px; letter-spacing: 0.04em; opacity: 0.6; top: -0.6em; position: relative; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none;
  font-size: 14px;
  font-weight: 500;
  align-items: center;
  gap: 10px;
}
.menu-toggle i {
  width: 22px; height: 8px; position: relative; display: inline-block;
}
.menu-toggle i::before, .menu-toggle i::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.menu-toggle i::before { top: 0; }
.menu-toggle i::after { top: 6.5px; }
.menu-open .menu-toggle i::before { top: 3.25px; transform: rotate(45deg); }
.menu-open .menu-toggle i::after { top: 3.25px; transform: rotate(-45deg); }

/* Overlay menu (mobile / JKR-style) */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 24px) var(--pad) var(--pad);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease);
  visibility: hidden;
}
.menu-open .menu-overlay { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-overlay ol { border-top: 1px solid var(--line-inv); }
.menu-overlay li { border-bottom: 1px solid var(--line-inv); overflow: hidden; }
.menu-overlay ol a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0 6px;
  font-size: clamp(44px, 12vw, 120px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease-out);
}
.menu-overlay ol a span { font-size: 12px; letter-spacing: 0.08em; opacity: 0.5; font-weight: 500; }
.menu-open .menu-overlay ol a { transform: none; }
.menu-open .menu-overlay li:nth-child(2) a { transition-delay: 0.05s; }
.menu-open .menu-overlay li:nth-child(3) a { transition-delay: 0.1s; }
.menu-open .menu-overlay li:nth-child(4) a { transition-delay: 0.15s; }
.menu-open .menu-overlay li:nth-child(5) a { transition-delay: 0.2s; }
.menu-open .menu-overlay li:nth-child(6) a { transition-delay: 0.25s; }
.menu-overlay .menu-foot { display: flex; justify-content: space-between; margin-top: 24px; color: var(--muted-inv); }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Page transition curtain ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: flex-end;
  padding: var(--pad);
  transform: translateY(100%);
  pointer-events: none;
  visibility: hidden;
}
.curtain .curtain-mark {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  overflow: hidden;
}
.curtain .curtain-mark span { display: inline-block; }
html.is-entering .curtain { transform: translateY(0); visibility: visible; }
.curtain.is-leaving-in { transition: transform 0.75s var(--ease); transform: translateY(0); pointer-events: auto; visibility: visible; }
.curtain.is-entering-out { transition: transform 0.9s var(--ease); transform: translateY(-100%); visibility: visible; }

/* ---------- Buttons (text-roll hover) ---------- */
.roll { display: inline-block; overflow: hidden; vertical-align: top; position: relative; }
.roll > span { display: block; transition: transform 0.6s var(--ease); }
.roll > span + span { position: absolute; inset: 0; transform: translateY(100%); }
a:hover .roll > span:first-child,
button:hover .roll > span:first-child { transform: translateY(-100%); }
a:hover .roll > span + span,
button:hover .roll > span + span { transform: translateY(0); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  padding: 14px 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.is-dark .btn:hover, .btn--light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.arrow { display: inline-block; transition: transform 0.6s var(--ease); }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }

.link-line {
  position: relative;
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size 0.6s var(--ease);
}
.link-line:hover { background-size: 0 1px; background-position: right bottom; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(40px, 9vh, 120px));
  padding-bottom: clamp(40px, 6vw, 80px);
}
.page-hero .meta-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  padding-bottom: 12px;
}
.page-hero .meta-row > :nth-child(1) { grid-column: 1 / span 4; }
.page-hero .meta-row > :nth-child(2) { grid-column: 5 / span 4; }
.page-hero .meta-row > :nth-child(3) { grid-column: 9 / span 4; text-align: right; }
.page-hero h1 {
  font-size: var(--fs-display);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.86;
  margin: clamp(24px, 4vw, 56px) 0 clamp(28px, 4vw, 56px);
  margin-left: -0.05em;
}
.page-hero .intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  padding-top: 20px;
}
.page-hero .intro .lead { grid-column: 5 / span 7; font-size: var(--fs-lead); line-height: 1.22; letter-spacing: -0.02em; font-weight: 400; }
.page-hero .intro .label { grid-column: 1 / span 3; padding-top: 0.5em; }

@media (max-width: 760px) {
  .page-hero .meta-row > :nth-child(2) { display: none; }
  .page-hero .meta-row > :nth-child(1) { grid-column: 1 / span 6; }
  .page-hero .meta-row > :nth-child(3) { grid-column: 7 / span 6; }
  .page-hero .intro .lead, .page-hero .intro .label { grid-column: 1 / -1; }
}

/* ---------- Section scaffolding ---------- */
.section { padding-top: clamp(64px, 9vw, 140px); padding-bottom: clamp(64px, 9vw, 140px); }
.section-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: end;
  padding-bottom: 14px;
}
.section-head .label:first-child { grid-column: 1 / span 4; }
.section-head h2 {
  grid-column: 5 / span 6;
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.section-head .count { grid-column: 11 / span 2; text-align: right; }
@media (max-width: 760px) {
  .section-head .label:first-child, .section-head h2 { grid-column: 1 / -1; }
  .section-head .count { grid-column: 1 / -1; text-align: left; }
}

.is-dark { background: var(--ink); color: var(--paper); }
.is-dark .muted { color: var(--muted-inv); }

/* ---------- Big statements ---------- */
.statement {
  padding-top: clamp(80px, 14vw, 220px);
  padding-bottom: clamp(80px, 14vw, 220px);
}
.statement .label { display: block; margin-bottom: clamp(24px, 3vw, 40px); }
.statement p {
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.95;
  max-width: 15ch;
}
.statement p .w { opacity: 0.14; transition: opacity 0.25s linear; }
.statement p .w.on { opacity: 1; }
.statement--wide p { max-width: 20ch; }

/* ---------- Marquee of beliefs ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  white-space: nowrap;
}
.is-dark .marquee, .marquee.is-dark { border-color: var(--line-inv); }
.marquee-track { display: inline-flex; animation: marquee 48s linear infinite; }
.marquee-track span {
  font-size: clamp(28px, 3.6vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
  padding-right: 0.6em;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.marquee-track span::after { content: ""; width: 0.28em; height: 0.28em; background: currentColor; border-radius: 50%; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Logo grid (Kontrapunkt-style) ---------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.logo-cell {
  position: relative;
  aspect-ratio: 4 / 3;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
.logo-cell .wm { transition: transform 0.7s var(--ease); }
.logo-cell .cell-meta {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.logo-cell .cell-idx {
  position: absolute; left: 14px; top: 12px;
  font-size: 11px; letter-spacing: 0.06em; opacity: 0.4; font-variant-numeric: tabular-nums;
}
.logo-cell:hover { background: var(--ink); color: var(--paper); }
.logo-cell:hover .cell-meta { opacity: 0.7; transform: none; }
.logo-cell:hover .wm { transform: scale(1.04); }
.logo-cell img { max-width: 52%; max-height: 34%; object-fit: contain; filter: grayscale(1); }
.logo-cell:hover img { filter: grayscale(1) invert(1); }
@media (max-width: 1000px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } }

/* Typographic placeholder wordmarks */
.wm { display: inline-flex; align-items: center; gap: 0.35em; font-size: clamp(18px, 2vw, 28px); line-height: 1; white-space: nowrap; }
.wm--bold { font-weight: 800; letter-spacing: -0.05em; text-transform: lowercase; }
.wm--caps { font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; font-size: clamp(13px, 1.25vw, 17px); }
.wm--serif { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 38px); letter-spacing: -0.02em; }
.wm--italic { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.6vw, 38px); }
.wm--light { font-weight: 300; letter-spacing: -0.03em; font-size: clamp(22px, 2.4vw, 34px); }
.wm--mono { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: clamp(14px, 1.3vw, 18px); border: 2px solid currentColor; padding: 0.35em 0.5em 0.3em; }
.wm--dot::before { content: ""; width: 0.7em; height: 0.7em; border-radius: 50%; background: currentColor; }
.wm--sq::before { content: ""; width: 0.62em; height: 0.62em; background: currentColor; }
.wm--ring::before { content: ""; width: 0.66em; height: 0.66em; border-radius: 50%; border: 0.14em solid currentColor; }
.wm--slash::before { content: ""; width: 0.16em; height: 0.9em; background: currentColor; transform: skewX(-18deg); }

/* ---------- Featured (flagship) ---------- */
.flagship {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  min-height: min(84vh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 2.4vw, 36px);
}
.flagship .ghost {
  position: absolute;
  left: -0.04em;
  bottom: -0.18em;
  font-size: clamp(120px, 28vw, 520px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
  white-space: nowrap;
  pointer-events: none;
  will-change: transform;
}
.flagship .muted { color: var(--muted-inv); }
.flagship .top { display: flex; justify-content: space-between; gap: 20px; position: relative; }
.flagship h3 {
  font-size: clamp(44px, 7.4vw, 140px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.9;
  position: relative;
}
.flagship .body {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: end;
}
.flagship .body .desc { grid-column: 1 / span 5; font-size: var(--fs-lead); line-height: 1.22; letter-spacing: -0.02em; }
.flagship dl {
  grid-column: 7 / span 6;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-inv);
}
.flagship dl div { padding: 12px 12px 0 0; border-right: 1px solid var(--line-inv); padding-left: 12px; }
.flagship dl div:first-child { padding-left: 0; }
.flagship dl div:last-child { border-right: 0; }
.flagship dt { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-inv); margin-bottom: 6px; }
.flagship dd { font-size: 15px; }
.flag-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); margin-top: 1px; }
.flag-row .flagship { min-height: min(64vh, 620px); }
.flag-row .flagship h3 { font-size: clamp(40px, 5vw, 92px); }
.flag-row .flagship .body .desc { grid-column: 1 / -1; font-size: clamp(17px, 1.4vw, 22px); }
.flag-row .flagship dl { grid-column: 1 / -1; margin-top: 20px; }
.flag-row .flagship .ghost { font-size: clamp(100px, 16vw, 300px); }
.flagship--light { background: #1b1b1b; }
@media (max-width: 900px) {
  .flagship .body .desc, .flagship dl { grid-column: 1 / -1; }
  .flagship dl { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
  .flagship dl div:nth-child(3) { padding-left: 0; }
  .flagship dl div:nth-child(2) { border-right: 0; }
  .flag-row { grid-template-columns: 1fr; }
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--gap);
}
.person {
  padding: 16px 0 clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
  position: relative;
}
.person .idx { display: flex; justify-content: space-between; margin-bottom: 14px; }
.person figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #1a1a1a; }
.person img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-out), filter 0.8s var(--ease);
}
.person:hover img { transform: scale(1.07); filter: grayscale(1) contrast(1.18) brightness(0.92); }
.person .name { margin-top: 16px; font-size: clamp(19px, 1.5vw, 24px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.person .role { margin-top: 4px; color: var(--muted); font-size: 14px; }
.person .name, .person .role { padding-right: 44px; }
.person .li {
  position: absolute; right: 0; bottom: clamp(32px, 4vw, 56px);
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.person .li:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .person .role { font-size: 13px; } .person .li { width: 30px; height: 30px; } }

/* ---------- Columns (newspaper) ---------- */
.columns {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  border-top: 1px solid var(--line);
}
.columns > * {
  padding: 20px var(--gap) 8px;
  border-right: 1px solid var(--line);
}
.columns > *:first-child { padding-left: 0; }
.columns > *:last-child { border-right: 0; padding-right: 0; }
.columns h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; margin: 28px 0 16px; }
.columns p { color: var(--muted); max-width: 42ch; }
.is-dark .columns, .is-dark .columns > * { border-color: var(--line-inv); }
@media (max-width: 860px) {
  .columns { grid-template-columns: 1fr; }
  .columns > * { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0 32px; }
  .is-dark .columns > * { border-color: var(--line-inv); }
  .columns > *:last-child { border-bottom: 0; }
}

/* ---------- About: chapters (stacking) ---------- */
.chapters { position: relative; }
.chapter {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--paper);
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  padding: calc(var(--header-h) + 16px) var(--pad) var(--pad);
  align-content: space-between;
}
.chapter:nth-child(even) { background: #e9e8e3; }
.chapter.is-dark { background: var(--ink); border-top-color: var(--ink); }
.chapter .ch-num { grid-column: 1 / span 3; }
.chapter .ch-kicker { grid-column: 4 / span 5; }
.chapter .ch-when { grid-column: 9 / span 4; text-align: right; }
.chapter h3 {
  grid-column: 1 / span 9;
  font-size: clamp(44px, 7.6vw, 148px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.9;
  align-self: end;
}
.chapter .ch-body {
  grid-column: 9 / span 4;
  align-self: end;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.45;
}
.chapter .ch-body p + p { margin-top: 1em; }
.chapter .ch-year {
  position: absolute;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(120px, 26vw, 460px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
  pointer-events: none;
}
@media (max-width: 860px) {
  .chapter .ch-num { grid-column: 1 / span 6; }
  .chapter .ch-kicker { display: none; }
  .chapter .ch-when { grid-column: 7 / span 6; }
  .chapter h3, .chapter .ch-body { grid-column: 1 / -1; }
  .chapter { align-content: start; row-gap: 32px; }
  .chapter h3 { margin-top: 18vh; }
}

/* ---------- Contextual CTA ---------- */
.cta {
  padding-top: clamp(80px, 11vw, 180px);
  padding-bottom: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line);
}
.cta .cta-top { display: flex; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 4vw, 60px); }
.cta h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.95;
  max-width: 17ch;
}
.cta .cta-sub { margin-top: clamp(20px, 2.4vw, 32px); max-width: 46ch; font-size: var(--fs-lead); line-height: 1.25; letter-spacing: -0.02em; color: var(--muted); }
.cta-button {
  margin-top: clamp(40px, 6vw, 96px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: clamp(22px, 3.4vw, 52px) clamp(24px, 3.4vw, 56px);
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: clamp(28px, 6.2vw, 112px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #2a2a2a;
  transform: translateY(101%);
  transition: transform 0.7s var(--ease);
  z-index: -1;
  border-radius: inherit;
}
.cta-button:hover::before { transform: translateY(0); }
.cta-button .cta-arrow {
  width: clamp(48px, 7vw, 132px);
  height: clamp(48px, 7vw, 132px);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.7s var(--ease);
}
.cta-button .cta-arrow svg { width: 42%; height: 42%; }
.cta-button:hover .cta-arrow { transform: rotate(-45deg); }
.cta .cta-alt { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ---------- Footer (Wolff Olins-style) ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(48px, 6vw, 96px);
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  padding-bottom: clamp(48px, 7vw, 120px);
}
.footer-grid .f-talk { grid-column: 1 / span 6; }
.footer-grid .f-talk p {
  font-size: clamp(30px, 3.6vw, 60px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  max-width: 13ch;
  margin-bottom: 28px;
}
.footer-grid .f-col { grid-column: span 2; display: flex; flex-direction: column; gap: 8px; }
.footer-grid .f-col .label { color: var(--muted-inv); margin-bottom: 8px; }
.footer-grid .f-col a { font-size: 15px; width: fit-content; max-width: 100%; overflow-wrap: anywhere; }
.footer-grid .f-col a:hover { opacity: 0.6; }
.footer-top { display: flex; justify-content: space-between; padding-bottom: 20px; margin-bottom: clamp(36px, 5vw, 72px); border-bottom: 1px solid var(--line-inv); }
.footer-mark {
  display: block;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.78;
  font-size: 13vw; /* refined by JS fit */
  margin: 0 0 0 -0.02em;
  padding-top: 0.06em;
  padding-bottom: 0.05em;
}
.footer-mark span { display: inline-block; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid var(--line-inv);
  color: var(--muted-inv);
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .footer-grid .f-talk { grid-column: 1 / -1; margin-bottom: 24px; }
  .footer-grid .f-col { grid-column: span 4; }
}
@media (max-width: 560px) {
  .footer-grid .f-col { grid-column: span 6; margin-bottom: 20px; }
  .footer-grid .f-col:nth-child(3) { grid-column: 1 / -1; order: 3; }
}

/* ---------- Reveal animations ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-split] .wl { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.js [data-split] .wi { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease-out); }
.js [data-split].in .wi { transform: none; }
.js .rule[data-draw] { transform: scaleX(0); transition: transform 1.4s var(--ease); }
.js .rule[data-draw].in { transform: scaleX(1); }
.js .logo-grid[data-stagger] .logo-cell,
.js .team-grid[data-stagger] .person { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), background 0.5s var(--ease), color 0.5s var(--ease); }
.js .logo-grid[data-stagger] .logo-cell.in,
.js .team-grid[data-stagger] .person.in { opacity: 1; transform: none; }

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.contact-layout aside { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 32px; }
.contact-layout aside a { font-size: var(--fs-lead); letter-spacing: -0.02em; }
.contact-layout form { grid-column: 5 / span 8; }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 40px; }
.topic-list label { cursor: pointer; }
.topic-list input { position: absolute; opacity: 0; pointer-events: none; }
.topic-list span {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 15px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.topic-list input:checked + span { background: var(--ink); color: var(--paper); }
.topic-list input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.field { border-top: 1px solid var(--line); display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: start; }
.field:last-of-type { border-bottom: 1px solid var(--line); }
.field label { padding-top: 22px; }
.field input, .field textarea {
  font: inherit;
  font-size: var(--fs-lead);
  letter-spacing: -0.02em;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 16px 0;
  width: 100%;
  outline: none;
  resize: vertical;
}
.field textarea { min-height: 160px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(10, 10, 10, 0.28); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 28px; flex-wrap: wrap; }
.form-foot .btn { background: var(--ink); color: var(--paper); border-color: var(--ink); padding: 18px 28px; font-size: 17px; }
.form-foot .btn:hover { background: transparent; color: var(--ink); }
@media (max-width: 860px) {
  .contact-layout aside, .contact-layout form { grid-column: 1 / -1; }
  .field { grid-template-columns: 1fr; gap: 0; }
  .field label { padding-top: 14px; }
  .field input, .field textarea { padding-top: 6px; }
}

/* ---------- Partners: tiers ---------- */
.tier-num { font-size: clamp(64px, 8vw, 140px); font-weight: 500; letter-spacing: -0.06em; line-height: 0.9; }

/* ---------- Generic two-col text ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}
.split .s-label { grid-column: 1 / span 4; }
.split .s-body { grid-column: 5 / span 7; font-size: var(--fs-lead); line-height: 1.25; letter-spacing: -0.02em; }
.split .s-body p + p { margin-top: 0.8em; }
@media (max-width: 760px) { .split .s-label, .split .s-body { grid-column: 1 / -1; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .js [data-reveal], .js [data-split] .wi, .js .rule[data-draw],
  .js .logo-grid[data-stagger] .logo-cell, .js .team-grid[data-stagger] .person { opacity: 1 !important; transform: none !important; }
  .statement p .w { opacity: 1; }
  .chapter { position: relative; }
}
