/* ─────────────────────────────────────────────────────────
   CPH AI Hub — design tokens & base styles
   System: warm paper + ink + terracotta. Newsreader display,
   Geist body, JetBrains Mono captions. Editorial / Scandinavian.
   ───────────────────────────────────────────────────────── */

:root {
  /* warm paper palette (default) */
  --paper: #F2EDE2;
  --paper-2: #EAE3D2;
  --ink: #1A1815;
  --ink-2: #423D35;
  --muted: #6E665A;
  --rule: #1A1815;          /* hairline rules use ink */
  --rule-soft: #C9C0AC;
  --accent: #C24A1F;        /* terracotta */
  --accent-ink: #8A2F0E;
  --highlight: #E8DBC2;     /* warm tint for cards */
  --tag-jobs: #2E5D4F;
  --tag-society: #6B3E1F;
  --tag-both: #1A1815;

  --f-display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --f-body: 'Geist', 'Söhne', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --gutter: 28px;
  --rad: 0px;               /* sharp corners for editorial feel */
  --maxw: 1280px;
  --maxw-narrow: 760px;
}

/* ── palette variants (toggled via data-palette on <html>) ─ */
html[data-palette="cool"] {
  --paper: #ECEDE8;
  --paper-2: #DEE0D8;
  --ink: #15171A;
  --ink-2: #3A3D44;
  --muted: #6A6E78;
  --rule: #15171A;
  --rule-soft: #BFC2BB;
  --accent: #2D5A86;
  --accent-ink: #1B3E5E;
  --highlight: #DDE0D6;
}
html[data-palette="contrast"] {
  --paper: #F4EFE3;
  --paper-2: #E9E2CF;
  --ink: #0E0D0B;
  --ink-2: #2A2620;
  --muted: #5A5446;
  --rule: #0E0D0B;
  --rule-soft: #C5BCA4;
  --accent: #B8002C;
  --accent-ink: #6E001B;
  --highlight: #E5DAB8;
}
html[data-palette="mono"] {
  --paper: #EFEEEA;
  --paper-2: #E2E1DD;
  --ink: #161513;
  --ink-2: #3D3B36;
  --muted: #6A6862;
  --rule: #161513;
  --rule-soft: #C4C2BB;
  --accent: #161513;
  --accent-ink: #161513;
  --highlight: #DCD9D1;
}

/* ── type pairing variants ───────────────────────────────── */
html[data-type="invert"] {
  --f-display: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --f-body: 'Newsreader', Georgia, serif;
}
html[data-type="sans"] {
  --f-display: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --f-body: 'Geist', ui-sans-serif, system-ui, sans-serif;
}

/* ── density ─────────────────────────────────────────────── */
html[data-density="compact"] { --gutter: 20px; }
html[data-density="comfy"] { --gutter: 36px; }

/* ── reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--paper); }

/* ── paper texture (subtle) ──────────────────────────────── */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(26,24,21,0.025) 1px, transparent 1px),
    radial-gradient(rgba(26,24,21,0.018) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 1px;
  mix-blend-mode: multiply;
  z-index: 1;
}

/* ── typography ──────────────────────────────────────────── */
.serif { font-family: var(--f-display); }
.mono  { font-family: var(--f-mono); }
.label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.fig {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.h-display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(42px, 6vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.012em;
}
.h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
}
.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
}
.body { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.small { font-size: 13px; color: var(--muted); }

/* ── layout ──────────────────────────────────────────────── */
.shell { position: relative; z-index: 2; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; border-top: 1px solid var(--rule); }
.section:first-of-type { border-top: 0; }
.section-tight { padding: 56px 0; }
.col-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.col-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.col-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.eyebrow { display:flex; align-items:baseline; gap:14px; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.eyebrow .num { font-family: var(--f-mono); font-size:11px; color: var(--muted); letter-spacing: .08em; }
.eyebrow .ttl { font-family: var(--f-mono); font-size:11px; color: var(--ink); letter-spacing: .12em; text-transform: uppercase; }
.eyebrow .meta { margin-left:auto; font-family: var(--f-mono); font-size:11px; color: var(--muted); letter-spacing: .08em; }

/* ── header / nav ────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(8px);
  transition: background .25s ease, backdrop-filter .25s ease;
}
.header.scrolled {
  background: rgba(242, 237, 226, 0.92);
  backdrop-filter: blur(14px);
}
.header.scrolled .header-inner { padding-top: 10px; padding-bottom: 10px; }
.header-inner { transition: padding .25s ease; }

.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
  z-index: 1;
}
.header-inner {
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px var(--gutter); gap: 24px;
  max-width: var(--maxw); margin: 0 auto;
}
.brand { display:flex; align-items:center; gap:12px; flex-shrink: 0; }
.brand-mark { width: 28px; height: 28px; flex-shrink: 0; }
.brand-name { font-family: var(--f-display); font-size: 19px; letter-spacing: -0.01em; font-weight:500; white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--accent); }

.nav { display:flex; gap: 0; align-items:center; }
.nav a {
  font-family: var(--f-body);
  font-size: 14px;
  padding: 8px 14px;
  color: var(--ink);
  position: relative;
  letter-spacing: -0.005em;
}
.nav a:hover { color: var(--accent); }
.nav a.active { color: var(--accent); }
.nav a.active::after {
  content:""; position:absolute; left:14px; right:14px; bottom:-15px;
  height: 2px; background: var(--accent);
}
.nav .num { font-family: var(--f-mono); font-size: 10px; color: var(--muted); margin-right: 4px; }

.nav a.nav-cta {
  font-family: var(--f-body); font-size: 14px;
  padding: 8px 16px;
  background: var(--ink); color: var(--paper);
  margin-left: 8px;
  transition: background .15s, color .15s;
}
.nav a.nav-cta:hover { background: var(--accent); color: var(--paper); }

/* mobile menu */
.mob-toggle { display:none; padding: 8px; background: transparent; border: 1px solid var(--rule); font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; }

/* ── buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px;
  font-family: var(--f-body); font-size: 14px;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  transition: background .15s, color .15s, border-color .15s;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active, .btn-ghost:active, .btn-link:active { transform: scale(0.985); }

.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-link {
  display:inline-flex; align-items:center; gap:8px;
  border: 0; padding: 0;
  font-family: var(--f-body); font-size: 14px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  background: transparent; color: var(--ink);
}
.btn-link:hover { color: var(--accent); border-color: var(--accent); }
.btn-link .arrow { transition: transform .2s; }
.btn-link:hover .arrow { transform: translateX(4px); }

.btn-sm { padding: 8px 12px; font-size: 13px; }

/* ── cards ───────────────────────────────────────────────── */
.card {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 28px;
  display: flex; flex-direction: column;
  position: relative;
  transition: background .2s, transform .2s;
}
.card:hover { background: var(--paper-2); }
.card.clickable { cursor: pointer; }
.card .card-num {
  position: absolute; top: 12px; right: 14px;
  font-family: var(--f-mono); font-size: 10px; color: var(--muted); letter-spacing: .08em;
}

/* ── tags / chips ────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center;
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid var(--rule);
  color: var(--ink);
  background: transparent;
}
.chip.jobs { border-color: var(--tag-jobs); color: var(--tag-jobs); }
.chip.society { border-color: var(--tag-society); color: var(--tag-society); }
.chip.both { border-color: var(--tag-both); color: var(--tag-both); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-btn:hover { background: var(--paper-2); }
.chip-btn.active:hover { background: var(--ink); }

/* ── form ────────────────────────────────────────────────── */
.input {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--f-body); font-size: 14px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color .15s, background .15s;
}
.input:focus { border-color: var(--accent); background: var(--paper); }
.input::placeholder { color: var(--muted); }
.input.error { border-color: var(--accent); }
.field-row { display: flex; gap: 0; }
.field-row .input { flex: 1; border-right: 0; }

/* ── footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--rule);
  padding: 80px 0 32px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer h5 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; font-weight: 500; }
.footer ul { list-style: none; padding:0; margin:0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { font-size: 14px; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 24px; border-top: 1px solid var(--rule);
  font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .03em;
}

/* ── placeholder image ───────────────────────────────────── */
.ph {
  position: relative;
  width: 100%; aspect-ratio: 16/10;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  overflow: hidden;
  display: flex; align-items:center; justify-content:center;
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(26,24,21,0.05) 11px 12px);
}
.ph .ph-cap {
  position: relative;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
  padding: 4px 10px;
  border: 1px solid var(--rule);
}
.ph.tone-accent::before { background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(194,74,31,0.16) 11px 12px); }
.ph.tone-ink { background: var(--ink); }
.ph.tone-ink::before { background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(255,255,255,0.08) 11px 12px); }
.ph.tone-ink .ph-cap { background: var(--ink); color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.2); }

/* ── hero / homepage specific ────────────────────────────── */
.hero { padding: 24px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: end;
}
.hero-headline {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.hero-headline em { font-style: italic; color: var(--accent); font-weight: 400; }

/* kinetic line-mask wrappers — used by hero entrance timeline.
   Padding/negative margin reserves room for Newsreader's ascenders + descenders
   so overflow:hidden never clips the tops of i/f/j or the bottom of g/y. */
.line-mask {
  display: block;
  overflow: hidden;
  padding: 0.18em 0 0.08em;
  margin: -0.18em 0 -0.08em;
}
.line-mask .line { display: block; will-change: transform; }

/* default-hidden state for any GSAP-controlled element so we don't get FOUC if JS is slow */
.kin-hero-pending .hero-headline .line { transform: translateY(105%); }
.kin-hero-pending .hero-side,
.kin-hero-pending .hero-meta-list,
.kin-hero-pending .hero-actions { opacity: 0; }
.hero-side { font-family: var(--f-body); font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.hero-meta-list { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.hero-meta-list li { padding: 8px 0; border-bottom: 1px solid var(--rule-soft); display:flex; justify-content:space-between; }

.hero-actions { display: flex; gap: 12px; margin-top: 28px; }

/* ── three-circles centerpiece ───────────────────────────── */
.circles-stage {
  position: relative;
  padding: 72px 0 56px;
  background: var(--paper);
}
.circles-stage svg { display: block; margin: 0 auto; max-width: 100%; height: auto; }

.circles-legend {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.legend-item h4 {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  margin: 0 0 10px; color: var(--ink); font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.legend-item h4 .dot { width: 9px; height: 9px; border: 1.5px solid currentColor; border-radius: 50%; }
.legend-item h4 .dot.fill { background: currentColor; }
.legend-item p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.legend-item.jobs h4 { color: var(--ink); }
.legend-item.society h4 { color: var(--ink); }
.legend-item.knowledge h4 { color: var(--accent); }

/* ── format card ─────────────────────────────────────────── */
.format-card {
  border: 1px solid var(--rule);
  padding: 32px 28px 28px;
  background: var(--paper);
  display:flex; flex-direction:column;
  position: relative;
  transition: background .2s ease, transform .25s cubic-bezier(0.2, 0.8, 0.2, 1);
  min-height: 280px;
}
.format-card:hover { background: var(--paper-2); transform: translateY(-2px); }
.format-card .arrow { transition: transform .2s ease; }
.format-card:hover .arrow { transform: translateX(4px); }
.format-card .icon-wrap { width: 44px; height: 44px; margin-bottom: 24px; color: var(--ink); }
.format-card h3 { font-family: var(--f-display); font-size: 26px; font-weight: 500; line-height: 1.1; margin: 0 0 10px; letter-spacing: -0.01em; }
.format-card p { margin: 0 0 24px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.format-card .foot { margin-top: auto; display:flex; justify-content: space-between; align-items: baseline; }
.format-card.coming-soon { opacity: 0.85; }
.format-card.coming-soon .badge { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); padding: 3px 7px; }

/* ── event card ──────────────────────────────────────────── */
.event-card {
  border: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 32px;
  padding: 28px 32px;
  align-items: center;
  background: var(--paper);
}
.event-card.hero-event {
  grid-template-columns: 280px 1fr 200px;
  padding: 36px 36px;
  background: var(--paper-2);
}
.event-date {
  font-family: var(--f-mono); font-size: 12px;
  display: flex; flex-direction: column; gap: 3px;
}
.event-date .day { font-family: var(--f-display); font-size: 64px; line-height: 0.9; font-weight: 400; letter-spacing: -0.02em; }
.event-date .month { letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.event-date .time { color: var(--muted); margin-top: 8px; letter-spacing: .04em; }
.event-content h3 { margin: 0 0 8px; font-family: var(--f-display); font-size: 28px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; }
.event-content .meta { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.event-content p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }

/* small (past) event card */
.event-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}
.event-row .e-date { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.event-row .e-title { font-family: var(--f-display); font-size: 22px; font-weight: 400; letter-spacing: -0.01em; }
.event-row .e-meta { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* ── article card ────────────────────────────────────────── */
.article-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: background .2s ease, transform .25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.article-card:hover { background: var(--paper-2); transform: translateY(-2px); }
.article-card .ph { aspect-ratio: 4/3; border-left: 0; border-right: 0; border-top: 0; }
.article-card .a-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.article-card .a-tags { display:flex; gap:6px; flex-wrap: wrap; }
.article-card h3 { font-family: var(--f-display); font-size: 24px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.15; margin: 0; text-wrap: balance; }
.article-card p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.article-card .a-meta { display:flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; margin-top: auto; padding-top: 8px; }

.article-list {
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

/* ── article (detail) ────────────────────────────────────── */
.article-page { padding: 64px 0 96px; }
.article-page header { margin-bottom: 48px; }
.article-page h1 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(36px, 5vw, 64px); line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
  text-wrap: balance;
}
.article-page .meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11px; color: var(--muted);
  letter-spacing: .06em; text-transform: uppercase;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
}
.article-body { font-family: var(--f-display); font-weight: 400; font-size: 19px; line-height: 1.6; color: var(--ink); max-width: 70ch; }
.article-body p { margin: 0 0 1.4em; }
.article-body h2 { font-family: var(--f-display); font-size: 32px; font-weight: 500; letter-spacing: -0.012em; margin: 1.5em 0 0.5em; }
.article-body blockquote {
  margin: 1.6em 0; padding: 0 0 0 28px;
  border-left: 3px solid var(--accent);
  font-style: italic; color: var(--ink);
  font-size: 22px; line-height: 1.4;
}
.article-body .pull {
  font-family: var(--f-display);
  font-size: 30px; line-height: 1.2;
  margin: 1.6em 0;
  color: var(--accent-ink);
  font-style: italic;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
}
.article-body code { font-family: var(--f-mono); font-size: 0.9em; background: var(--paper-2); padding: 2px 5px; border: 1px solid var(--rule-soft); }
.article-body .figure { margin: 2em 0; }
.article-body .figure .ph { aspect-ratio: 16/9; }
.article-body .figure figcaption { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; margin-top: 10px; }

/* ── partners strip ──────────────────────────────────────── */
.partners {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-bottom: 0;
}
.partner-cell {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 32px 24px;
  display: flex; align-items: center; justify-content: center;
  filter: grayscale(1) contrast(0.85);
  opacity: 0.65;
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: opacity .2s, filter .2s;
}
.partner-cell:last-child { border-right: 1px solid var(--rule); }
.partner-cell:hover { opacity: 1; filter: grayscale(0) contrast(1); transform: scale(1.02); }
.partner-cell { transition: opacity .2s ease, filter .2s ease, transform .25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.partner-cell.accent { font-style: italic; }
.partner-cell.mono { font-family: var(--f-mono); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }

/* ── team grid ───────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card {
  display: flex; flex-direction: column; gap: 14px;
}
.team-card .t-photo {
  position: relative;
  width: 100%; aspect-ratio: 4/5;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  display:flex; align-items:center; justify-content:center;
  overflow: hidden;
}
.team-card .t-photo::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(26,24,21,0.06) 11px 12px);
}
.team-card .t-photo .glyph {
  position: relative;
  font-family: var(--f-display); font-size: 56px;
  color: var(--ink);
}
.team-card h3 { font-family: var(--f-display); font-size: 22px; font-weight: 400; margin: 0; letter-spacing: -0.01em; }
.team-card .role { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.team-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.team-card .links { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; }

/* ── join cards ──────────────────────────────────────────── */
.join-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--rule); }
.join-cell { padding: 40px 32px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; min-height: 380px; }
.join-cell:last-child { border-right: 0; }
.join-cell .num { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.join-cell h3 { font-family: var(--f-display); font-size: 32px; font-weight: 400; margin: 18px 0 12px; letter-spacing: -0.012em; line-height: 1.05; }
.join-cell .price { font-family: var(--f-display); font-size: 44px; font-weight: 400; color: var(--accent); margin: 18px 0 6px; letter-spacing: -0.02em; }
.join-cell .price-unit { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.join-cell ul.benefits { list-style: none; padding: 0; margin: 16px 0 24px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
.join-cell ul.benefits li::before { content: "→ "; color: var(--accent); font-family: var(--f-mono); }
.join-cell .cta-wrap { margin-top: auto; }

/* ── stream page hero ────────────────────────────────────── */
.stream-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 72px 0;
  border-bottom: 1px solid var(--rule);
  align-items: end;
}
.stream-hero h1 { font-size: clamp(48px, 7vw, 96px); line-height: 0.96; }
.stream-meta { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; display: flex; flex-direction: column; gap: 8px; }
.stream-meta div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--rule-soft); }

.focus-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.focus-item { padding: 36px 28px 28px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 14px; }
.focus-item:last-child { border-right: 0; }
.focus-item .num { font-family: var(--f-display); font-size: 56px; line-height: 1; color: var(--accent); font-weight: 400; letter-spacing: -0.02em; }
.focus-item h3 { font-family: var(--f-display); font-size: 22px; font-weight: 500; margin: 0; }
.focus-item p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* ── newsletter ──────────────────────────────────────────── */
.newsletter {
  background: var(--ink); color: var(--paper);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.newsletter .lede { color: rgba(255,255,255,0.78); }
.newsletter h2 { color: var(--paper); margin-top: 0; }
.newsletter .field-row .input {
  background: transparent; color: var(--paper);
  border-color: rgba(255,255,255,.3);
}
.newsletter .field-row .input::placeholder { color: rgba(255,255,255,.45); }
.newsletter .btn {
  background: var(--accent); border-color: var(--accent); color: var(--paper);
}
.newsletter .btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.newsletter .small { color: rgba(255,255,255,.55); }

/* ── empty states ────────────────────────────────────────── */
.empty {
  border: 1px dashed var(--rule);
  padding: 56px 32px;
  text-align: center;
  background: transparent;
}
.empty .label { margin-bottom: 14px; }
.empty h3 { font-family: var(--f-display); font-size: 28px; font-weight: 400; margin: 0 0 12px; }
.empty p { margin: 0 auto 24px; max-width: 50ch; color: var(--ink-2); }

/* ── reduced-motion guard ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .kin-hero-pending .hero-headline .line { transform: none; }
  .kin-hero-pending .hero-side,
  .kin-hero-pending .hero-meta-list,
  .kin-hero-pending .hero-actions { opacity: 1; }
}

/* ── responsive utility for inline-style grids ──────────────
   Wrap any inline `display:grid` block in `.resp-stack` to force
   single-column on mobile. `.resp-2col` collapses to 2 columns
   instead of 1 (useful for 4-cell ledger blocks). */
@media (max-width: 960px) {
  .resp-stack { grid-template-columns: 1fr !important; gap: 32px !important; }
  .resp-2col { grid-template-columns: 1fr 1fr !important; }
}

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .col-2, .col-3, .col-4 { grid-template-columns: 1fr; }
  .article-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .join-grid { grid-template-columns: 1fr; }
  .join-cell { border-right: 0; border-bottom: 1px solid var(--rule); }
  .join-cell:last-child { border-bottom: 0; }
  .focus-list { grid-template-columns: 1fr; }
  .focus-item { border-right: 0; border-bottom: 1px solid var(--rule); }
  .newsletter { grid-template-columns: 1fr; padding: 36px; gap: 24px; }
  .stream-page-hero { padding-top: 24px !important; }
  .stream-page-hero .eyebrow { margin-bottom: 16px !important; }
  .stream-hero p.lede { margin-top: 20px !important; font-size: 17px !important; }
  .stream-hero { grid-template-columns: 1fr; gap: 28px; padding: 24px 0; }
  .stream-hero h1 { font-size: clamp(56px, 14vw, 88px) !important; }
  .stream-meta { font-size: 10.5px; }
  .event-card, .event-card.hero-event { grid-template-columns: 1fr; gap: 18px; }
  .section { padding: 56px 0; }
  .eyebrow {
    flex-wrap: wrap;
    row-gap: 6px;
    column-gap: 12px;
    padding-bottom: 10px;
    margin-bottom: 20px;
  }
  .eyebrow .num, .eyebrow .ttl { white-space: nowrap; }
  .eyebrow .meta {
    margin-left: 0;
    flex-basis: 100%;
    color: var(--muted);
    opacity: 0.85;
  }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 12px var(--gutter); align-items: stretch; }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
  .nav.open a.active::after { display: none; }
  .nav.open .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
  .mob-toggle { display: inline-block; }
  .circles-legend { grid-template-columns: 1fr; gap: 18px; }
}
