/* Peoples Science Institute preview
   Palette sampled from the PSI emblem: pot saffron, tree green, trunk terracotta, banner red. */
:root {
  --paper: #f7f4ee;
  --paper-2: #efe9dd;
  --white: #fffdf9;
  --ink: #15231a;
  --ink-2: #4b5a50;
  --line: rgba(21, 35, 26, 0.14);
  --forest: #1d3a26;
  --forest-2: #274b31;
  --forest-deep: #142a1b;
  --forest-ink: #d9e3d6;
  --leaf: #4f7a3a;
  --saffron: #f2b01e;
  --saffron-2: #f7c955;
  --saffron-soft: #fbedc6;
  --terracotta: #b0473f;
  --brand-red: #a5251f;

  /* One typeface, Satoshi, self hosted from Fontshare files. Hierarchy comes from weight, size and tracking. */
  --sans: "Satoshi", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1280px;
  --section: clamp(84px, 10vw, 160px);
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --hdr-h: 76px;
}

@font-face { font-family: "Satoshi"; src: url("assets/fonts/satoshi-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/satoshi-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis-smooth { scroll-behavior: auto; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
a { color: inherit; }
strong { font-weight: 700; color: var(--ink); }
h1, h2, h3 { font-family: var(--sans); margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6.6vw, 6.2rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 900; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.9rem); line-height: 1.02; letter-spacing: -0.038em; font-weight: 700; }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.22; letter-spacing: -0.022em; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-2); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.55; letter-spacing: -0.012em; color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section-flush { padding-top: 0; }
.section-tint { background: var(--paper-2); }
.section-forest { background: var(--forest); color: var(--forest-ink); }
.section-forest h2, .section-forest h3 { color: #fff; }
.section-forest p { color: var(--forest-ink); }
.section-forest strong { color: #fff; }

/* ---------- Labels, tags, buttons ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px; padding: 7px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
  width: fit-content; align-self: flex-start;
}
.center-head .kicker { align-self: center; }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); flex: none; }
.kicker-light { border-color: rgba(255, 255, 255, 0.28); color: #fff; }

.tag {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 999px;
  background: var(--paper-2); color: var(--ink);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; line-height: 1.4;
}
.tag-soft { background: var(--saffron-soft); }
.tag-on-img { position: absolute; left: 16px; bottom: 16px; background: var(--white); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; }

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 24px; border-radius: 999px;
  background: var(--forest); color: #fff;
  font-weight: 700; font-size: 1rem; line-height: 1; letter-spacing: -0.01em; text-decoration: none;
  transition: background 0.45s var(--ease), transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.btn-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--saffron); color: var(--ink);
  transition: transform 0.6s var(--ease);
}
.btn-icon svg { width: 18px; height: 18px; }
.btn:hover { background: var(--forest-2); transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(21, 35, 26, 0.55); }
.btn:hover .btn-icon { transform: translateX(3px); }
.btn-saffron { background: var(--saffron); color: var(--ink); }
.btn-saffron .btn-icon { background: var(--forest); color: #fff; }
.btn-saffron:hover { background: var(--saffron-2); }
.btn-sm { padding: 6px 6px 6px 20px; font-size: 0.95rem; gap: 12px; }
.btn-sm .btn-icon { width: 34px; height: 34px; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.link-light { color: #fff; font-weight: 700; transition: text-decoration-color 0.4s var(--ease); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: rgba(255,255,255,.4); }
.link-light:hover { text-decoration-color: var(--saffron); }
.split-copy .btn, .duo-cta-copy .btn { margin-top: 14px; }

/* ---------- Header ---------- */
.hdr { position: fixed; z-index: 50; left: 0; right: 0; top: 14px; padding: 0 var(--gutter); pointer-events: none; }
.hdr-bar {
  pointer-events: auto;
  max-width: var(--maxw); margin: 0 auto; height: var(--hdr-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 14px 0 14px;
  background: #FFFFFF;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(21, 35, 26, 0.06), 0 0 0 1px rgba(21, 35, 26, 0.06);
  transition: box-shadow 0.4s var(--ease);
}
.hdr.is-scrolled .hdr-bar { box-shadow: 0 10px 30px -12px rgba(21, 35, 26, 0.28); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; flex: none; }
.brand-mark { width: auto; height: 52px; flex: none; display: block; }
.brand-name { font-family: var(--sans); font-size: 1.22rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--brand-red); white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 14px; border-radius: 999px;
  font-size: 0.97rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); text-decoration: none;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current="page"] { background: var(--paper-2); color: var(--forest); font-weight: 700; }
.hdr-cta { flex: none; }
.hdr-cta[aria-current="page"] { background: var(--forest-2); }
.menu-btn {
  display: none; margin-left: auto; flex: none;
  width: 52px; height: 52px; border-radius: 50%; border: 0; padding: 0;
  background: var(--forest); color: #fff; cursor: pointer;
}
.menu-btn-lines { display: grid; gap: 6px; width: 20px; margin: 0 auto; }
.menu-btn-lines i { display: block; height: 1.8px; background: currentColor; border-radius: 2px; }
.menu-btn-lines i:last-child { width: 13px; justify-self: end; }

@media (max-width: 1180px) {
  .nav, .hdr-cta { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 600px) {
  :root { --hdr-h: 64px; }
  .hdr { top: 10px; padding: 0 12px; }
  .hdr-bar { padding: 0 6px 0 10px; gap: 10px; }
  .brand { gap: 9px; }
  .brand-mark { width: auto; height: 44px; }
  .brand-name { font-size: 1.08rem; }
  .menu-btn { width: 50px; height: 50px; }
}
@media (max-width: 370px) {
  .brand-name { font-size: 1rem; }
}

/* ---------- Mobile / tablet menu (full screen) ---------- */
.menu {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  padding: 10px 12px calc(28px + env(safe-area-inset-bottom));
  background: var(--forest); color: #fff;
  overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden; opacity: 0;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity 0.35s var(--ease); }
.menu-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  height: var(--hdr-h); padding: 0 6px 0 10px;
  background: rgba(255, 255, 255, 0.06); border-radius: 999px; flex: none;
}
.menu-top .brand-name { color: #fff; }
/* menu header uses same full logo, resized only - no plate/padding treatment */
.menu:focus { outline: none; }
.menu-close {
  width: 50px; height: 50px; border-radius: 50%; border: 0; padding: 0; flex: none;
  background: var(--saffron); color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.menu-close svg { width: 22px; height: 22px; }
.menu-nav { flex: 1; display: flex; align-items: center; padding: 28px 10px; }
.menu-nav ul { list-style: none; margin: 0; padding: 0; width: 100%; }
.menu-nav li + li { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.menu-nav a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 13px 4px; min-height: 56px;
  font-family: var(--sans); font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.04em;
  color: #fff; text-decoration: none;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.2s;
}
.menu.is-open .menu-nav a { opacity: 1; transform: none; }
.menu.is-open li:nth-child(2) a { transition-delay: 0.03s; }
.menu.is-open li:nth-child(3) a { transition-delay: 0.06s; }
.menu.is-open li:nth-child(4) a { transition-delay: 0.09s; }
.menu.is-open li:nth-child(5) a { transition-delay: 0.12s; }
.menu.is-open li:nth-child(6) a { transition-delay: 0.15s; }
.menu.is-open li:nth-child(7) a { transition-delay: 0.18s; }
.menu.is-open li:nth-child(8) a { transition-delay: 0.21s; }
.menu-num { font-family: var(--sans); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.1em; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.5); min-width: 22px; }
.menu-nav a:hover, .menu-nav a[aria-current="page"] { color: var(--saffron-2); }
.menu-nav a[aria-current="page"] .menu-num { color: var(--saffron-2); }
.menu-foot { margin: 0; padding: 0 14px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.6); }
html.menu-open, html.menu-open body { overflow: hidden; }
@media (min-width: 1181px) { .menu { display: none; } }

/* ---------- Home hero ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  min-height: max(680px, 100svh); background: var(--forest); color: #fff;
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--hdr-h) + 90px) clamp(24px, 5vw, 72px) 90px max(var(--gutter), calc((100vw - var(--maxw)) / 2));
}
.hero h1 { color: #fff; font-size: clamp(2.9rem, 6vw, 5.8rem); max-width: 11ch; }
.hero-sub { margin: 22px 0 0; font-weight: 300; font-size: clamp(1.45rem, 2.3vw, 2.1rem); line-height: 1.2; letter-spacing: -0.03em; color: var(--saffron-2); }
.hero-text { margin: 28px 0 38px; max-width: 34em; font-size: 1.12rem; color: var(--forest-ink); }
.hero-text strong { color: #fff; }
.hero-media { position: relative; overflow: hidden; }
.hero-media img { position: absolute; left: 0; top: 0; width: 100%; height: 124%; object-fit: cover; object-position: 45% 50%; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: calc(var(--hdr-h) + 64px) var(--gutter) 56px; }
  .hero-media { height: min(72vw, 520px); margin: 0 var(--gutter) 0; border-radius: var(--radius) var(--radius) 0 0; }
}

/* ---------- Stats ---------- */
.stats { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 8px clamp(16px, 3vw, 40px); text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { margin: 0; font-size: clamp(2.6rem, 6vw, 5.4rem); font-weight: 900; line-height: 1; letter-spacing: -0.05em; color: var(--forest); white-space: nowrap; }
.stat-label { margin: 14px 0 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.note { margin: 28px auto 0; max-width: 48em; text-align: center; font-size: 0.86rem; color: #6d786f; }
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { padding: 22px 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Media ---------- */
.media { margin: 0; }
.media-frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
[data-parallax] img { will-change: transform; }
.media-wide .media-frame { aspect-ratio: 21 / 9; }
.media-tall .media-frame { aspect-ratio: 4 / 5; }
.media figcaption, .media + figcaption { margin-top: 12px; font-size: 0.86rem; color: #6d786f; }
@media (max-width: 700px) { .media-wide .media-frame { aspect-ratio: 4 / 3; } }

/* ---------- Split, heads ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.split-copy h2 { margin-bottom: 26px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .media-tall .media-frame { aspect-ratio: 4 / 3; } }

.center-head { max-width: 820px; margin: 0 auto clamp(48px, 6vw, 80px); text-align: center; }
.center-head h2 + .lead { margin-top: 20px; }
.row-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.row-head .lead { max-width: 30em; margin: 0; }
@media (max-width: 760px) { .row-head { grid-template-columns: 1fr; } }

/* ---------- Purpose panels ---------- */
.stack { display: grid; gap: 22px; }
.panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 32px) clamp(22px, 3vw, 32px) clamp(26px, 4.5vw, 64px);
  background: var(--paper); border-radius: calc(var(--radius) + 6px);
}
.panel-label { margin: 0 0 18px; font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.04em; color: var(--forest); }
.section-forest .panel p.panel-label { color: var(--forest); }
.section-forest .panel p.panel-text { color: var(--ink-2); font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; max-width: 30em; }
.section-forest .panel strong { color: var(--ink); }
.panel-media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .panel { grid-template-columns: 1fr; padding: 26px 22px 22px; }
}

/* ---------- Cards ---------- */
.cards { display: grid; gap: clamp(18px, 2vw, 28px); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards-3 { grid-template-columns: 1fr; } }
.card { transition: box-shadow 0.6s var(--ease), transform 0.8s var(--ease); display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--white); text-decoration: none; color: inherit; box-shadow: 0 0 0 1px var(--line); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), scale 1.4s var(--ease); }
.card-body { flex: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 24px 24px 26px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { margin: 0; font-size: 0.98rem; }
.round-arrow { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--forest); color: #fff; transition: background 0.3s, transform 0.4s var(--ease); }
.round-arrow svg { width: 18px; height: 18px; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -28px rgba(21, 35, 26, 0.45); }
a.card:hover .card-media img { transform: scale(1.04); }
a.card:hover .round-arrow { background: var(--saffron); color: var(--ink); transform: rotate(45deg); }

/* ---------- Interlude (full bleed image + approach) ---------- */
.interlude { position: relative; overflow: hidden; background: var(--forest); color: #fff; padding: clamp(140px, 22vw, 320px) 0 var(--section); }
.interlude-media { position: absolute; inset: 0 0 auto 0; height: 85%; overflow: hidden; }
.interlude-media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.interlude-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 58, 38, 0.25) 0%, rgba(29, 58, 38, 0.72) 45%, var(--forest) 100%); }
.interlude-copy { position: relative; }
.interlude h2 { color: #fff; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trio-item { padding: 0 clamp(20px, 3vw, 44px); }
.trio-item + .trio-item { border-left: 1px solid rgba(255, 255, 255, 0.2); }
.trio-num { margin: 0 0 18px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--saffron-2); }
.trio-item h3 { color: #fff; margin-bottom: 12px; }
.trio-item p { color: var(--forest-ink); }
@media (max-width: 820px) {
  .trio { grid-template-columns: 1fr; }
  .trio-item { padding: 26px 0; }
  .trio-item + .trio-item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }
}

/* ---------- Duo CTA (image + forest panel) ---------- */
.duo-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(88vh, 860px); background: var(--forest); }
.duo-cta-media { position: relative; overflow: hidden; min-height: 420px; }
.duo-cta-media img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; }
.duo-cta-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(56px, 8vw, 120px) max(var(--gutter), calc((100vw - var(--maxw)) / 2)) clamp(56px, 8vw, 120px) clamp(32px, 6vw, 96px); }
.duo-cta-copy h2 { color: #fff; max-width: 12ch; margin-bottom: 22px; }
.duo-cta-copy p { color: var(--forest-ink); max-width: 32em; }
.duo-cta-page { min-height: 0; }
.duo-cta-page .duo-cta-copy h2 { max-width: 14ch; }
@media (max-width: 860px) {
  .duo-cta { grid-template-columns: 1fr; min-height: 0; }
  .duo-cta-media { min-height: 0; aspect-ratio: 4 / 3; }
  .duo-cta-copy { padding: 64px var(--gutter) 80px; }
}

/* ---------- Inner page hero ---------- */
.phero { padding: calc(var(--hdr-h) + clamp(72px, 9vw, 130px)) 0 clamp(56px, 7vw, 96px); }
.phero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px 64px; align-items: end; }
.phero-lead { margin: 0; max-width: 30em; padding-bottom: 10px; }
.phero .media { margin-top: clamp(48px, 6vw, 84px); }
@media (max-width: 860px) { .phero-grid { grid-template-columns: 1fr; } .phero-lead { padding-bottom: 0; } }

/* ---------- Editorial (label left, prose right) ---------- */
.editorial { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px clamp(40px, 7vw, 120px); align-items: start; }
.editorial-head { position: sticky; top: calc(var(--hdr-h) + 48px); }
.prose p { font-size: 1.12rem; line-height: 1.8; }
.prose .pull { margin-top: 1.6em; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; line-height: 1.28; letter-spacing: -0.03em; color: var(--forest); }
.duo-media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); margin-top: clamp(56px, 7vw, 96px); }
.duo-media .media-frame { aspect-ratio: 4 / 3; }
.phero .duo-media-hero { margin-top: clamp(48px, 6vw, 84px); }
.phero .duo-media-hero .media { margin-top: 0; }
@media (max-width: 860px) {
  .editorial { grid-template-columns: 1fr; }
  .editorial-head { position: static; }
}
@media (max-width: 620px) { .duo-media { grid-template-columns: 1fr; } }

/* ---------- Tiles ---------- */
.tiles { display: grid; gap: clamp(16px, 2vw, 24px); }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .tiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tiles-3 { grid-template-columns: 1fr; } }
.tile { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(26px, 3vw, 40px); background: var(--white); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.tile-num { margin: 0 0 clamp(36px, 5vw, 64px); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--terracotta); }
.tile h3 { margin-bottom: 12px; }
.tile .tag { margin-top: auto; }
.tile p + .tag { margin-top: 22px; }
.section-tint .tile { background: var(--paper); }
.center-note { max-width: 40em; margin: clamp(40px, 5vw, 64px) auto 0; text-align: center; font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 500; line-height: 1.35; letter-spacing: -0.025em; color: var(--forest); }
.center-note-light { color: #fff; }
.section-forest .center-note-light { color: var(--forest-ink); font-size: 1.15rem; font-weight: 400; letter-spacing: -0.01em; }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.fact { padding: 0 clamp(16px, 2.4vw, 36px); }
.fact + .fact { border-left: 1px solid rgba(255, 255, 255, 0.18); }
.fact dt { margin-bottom: 14px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--saffron-2); }
.fact dd { margin: 0; color: var(--forest-ink); }
@media (max-width: 980px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .fact:nth-child(3) { border-left: 0; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; row-gap: 0; }
  .fact { padding: 22px 0; }
  .fact + .fact { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
}

/* ---------- Four roots ---------- */
.roots { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; }
.roots li { display: flex; align-items: baseline; gap: clamp(18px, 3vw, 40px); padding: clamp(18px, 2.4vw, 28px) 0; font-size: clamp(1.6rem, 3.4vw, 2.8rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.04em; color: #fff; }
.roots li + li { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.roots span { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; letter-spacing: 0.1em; color: var(--saffron-2); min-width: 26px; }
.center-btn { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }

/* ---------- Timeline ---------- */
.tl { list-style: none; margin: 0; padding: 0; }
.tl-item { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 16px clamp(32px, 6vw, 96px); padding: clamp(36px, 4.5vw, 64px) 0; }
.tl-item + .tl-item { border-top: 1px solid var(--line); }
.tl-year { margin: 0; font-size: clamp(2.6rem, 5.4vw, 5rem); font-weight: 300; line-height: 0.95; letter-spacing: -0.06em; color: var(--forest); }
.tl-body h3 { margin-bottom: 14px; }
.tl-body p { font-size: 1.08rem; max-width: 38em; }
.tl-media { margin-top: 28px; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 9; }
.tl-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .tl-item { grid-template-columns: 1fr; } }

/* ---------- Projects ---------- */
.projs { display: grid; gap: clamp(72px, 9vw, 140px); }
.proj { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(36px, 6vw, 96px); align-items: center; }
.proj:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.proj:nth-child(even) .proj-media { order: 2; }
.proj-media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--paper-2); }
.proj-media img { width: 100%; height: 100%; object-fit: cover; }
.proj-media-wide { aspect-ratio: auto; background: var(--white); padding: clamp(10px, 1.4vw, 18px); box-shadow: 0 0 0 1px var(--line); }
.proj-media-wide img { height: auto; object-fit: contain; border-radius: 8px; }
.proj-num { margin: 0 0 18px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--terracotta); }
.proj-copy h3 { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.038em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 22px; }
.proj-copy p:last-child { font-size: 1.1rem; }
@media (max-width: 860px) {
  .proj, .proj:nth-child(even) { grid-template-columns: 1fr; }
  .proj:nth-child(even) .proj-media { order: 0; }
}

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 980px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .people { grid-template-columns: 1fr; } }
.person { padding: clamp(24px, 3vw, 36px); background: var(--white); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.person-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); }
.monogram { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--forest); color: var(--saffron-2); font-size: 1.35rem; font-weight: 900; letter-spacing: -0.04em; flex: none; }
.person h3 { margin-bottom: 12px; }
.person p { font-size: 0.98rem; }

/* ---------- Footer ---------- */
.ftr { background: var(--forest-deep); color: var(--forest-ink); padding: clamp(64px, 8vw, 110px) 0 32px; overflow: hidden; }
.ftr .ftr-giant {
  margin: 0 0 clamp(48px, 6vw, 80px); font-size: clamp(2.5rem, 8.4vw, 8.2rem); font-weight: 900; line-height: 0.92; letter-spacing: -0.055em;
  color: transparent; background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03)); -webkit-background-clip: text; background-clip: text;
}
.ftr-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: clamp(36px, 4vw, 52px) 0; border-top: 1px solid rgba(255, 255, 255, 0.14); border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.ftr-about .ftr-logo { width: 120px; height: auto; margin-bottom: 18px; display: block; }
.ftr .ftr-title { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.03em; color: #fff; margin-bottom: 10px; }
.ftr p { color: var(--forest-ink); font-size: 0.98rem; }
.ftr-about p:last-child { max-width: 26em; }
.ftr-head { margin-bottom: 16px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--saffron-2) !important; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr ul a { color: #fff; text-decoration: none; transition: color 0.4s var(--ease); }
.ftr ul a:hover { color: var(--saffron-2); }
.ftr-muted { color: rgba(217, 227, 214, 0.7) !important; font-size: 0.9rem !important; }
.ftr-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-top: 26px; }
.ftr-bar p { margin: 0; font-size: 0.88rem; color: rgba(217, 227, 214, 0.75); }
@media (max-width: 900px) { .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ftr-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ftr-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Motion ----------
   Framer Motion feel without React: long ease out curves, no springs, no overshoot.
   site.js adds .is-in (reveals), .is-loaded (hero sequence) and the parallax transforms. */
:root { --ease-out: cubic-bezier(0.22, 1, 0.36, 1); --reveal-dur: 1.1s; }

/* Fade and rise, with stagger delay set per element by site.js (--rd) */
.js .reveal { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity var(--reveal-dur) var(--ease-out) var(--rd, 0s), transform var(--reveal-dur) var(--ease-out) var(--rd, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Images settle from a gentle zoom as they enter. Parallax frames keep a 1.1 base so the drift never shows an edge. */
:where([data-parallax]:not(.hero-media):not(.interlude-media):not(.duo-cta-media)) { --base: 1.1; }
:where([data-parallax]:not(.hero-media):not(.interlude-media):not(.duo-cta-media)) img { scale: var(--base); }
.media-frame img, .panel-media img, .tl-media img, .proj-media img { transition: scale 1.6s var(--ease-out); }
.js .reveal .media-frame img, .js .reveal .card-media img, .js .reveal .panel-media img, .js .reveal .tl-media img, .js .reveal .proj-media img, .js .reveal.proj .proj-media img { scale: calc(var(--base, 1) * 1.12); }
.js .reveal.is-in .media-frame img, .js .reveal.is-in .card-media img, .js .reveal.is-in .panel-media img, .js .reveal.is-in .tl-media img, .js .reveal.is-in .proj-media img { scale: var(--base, 1); }

/* Page load hero sequence: kicker, headline word by word, subline, text, buttons, then the photo */
.js [data-load] { opacity: 0; transform: translate3d(0, 22px, 0); }
.js.is-loaded [data-load] { opacity: 1; transform: none; transition: opacity 1s var(--ease-out) var(--ld, 0s), transform 1.1s var(--ease-out) var(--ld, 0s); }
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-words .w > span { display: inline-block; }
.js .split-words .w > span { transform: translate3d(0, 108%, 0); }
.js.is-loaded .split-words .w > span { transform: none; transition: transform 1.15s var(--ease-out) calc(var(--ld, 0s) + var(--wi, 0) * 0.06s); }
.js .split-words[data-load] { opacity: 1; transform: none; }
.js .hero-media::after { content: ""; position: absolute; inset: 0; background: var(--forest); transform-origin: 50% 0; transition: transform 1.3s var(--ease-out) 0.25s; z-index: 1; }
.js.is-loaded .hero-media::after { transform: scaleY(0); }
.js .hero-media img { scale: 1.14; transition: scale 2.2s var(--ease-out) 0.25s; }
.js.is-loaded .hero-media img { scale: 1; }

/* Parallax layers only ever get translate3d from site.js */
[data-parallax] img, [data-depth] { will-change: transform; }

/* Calm hover states */
.tile, .person { transition: transform 0.8s var(--ease-out), box-shadow 0.8s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover, .person:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -30px rgba(21, 35, 26, 0.4); }
  .menu-nav a:hover { transform: translateX(6px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js [data-load], .js .split-words .w > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .hero-media::after { display: none; }
  .js .hero-media img, .js .reveal img, [data-parallax] img { scale: 1 !important; transform: none !important; transition: none !important; }
  .hero-media img { height: 100%; }
  [data-depth] { transform: none !important; }
  .menu, .menu-nav a { transition: none !important; }
  .menu-nav a { opacity: 1; transform: none; }
  .card, .card-media img, .btn, .btn-icon, .round-arrow, .tile, .person { transition: none !important; }
  .btn:hover, a.card:hover, .tile:hover, .person:hover { transform: none; }
}
