/* =========================================================
   Research meets Revenue — redesign
   Token system mirrors the Figma draft:
   off-white ground, near-black ink, one lab blue accent.
   ========================================================= */

:root {
  --bg:        #F7F7F4;
  --ink:       #0E1116;
  --muted:     #6B6F76;
  --line:      #D9D9D4;
  --blue:      #143A96;
  --blue-pale: #BFD1FF;
  --white:     #FFFFFF;

  --sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --brand: "Libre Caslon Text", Georgia, "Times New Roman", serif;

  --pad: clamp(20px, 6.25vw, 120px);   /* 120px at 1920 */
  --gap: clamp(24px, 2vw, 32px);
  --section-y: clamp(64px, 7vw, 120px);
}

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

  html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--ink); color: var(--white); padding: 12px 20px;
}
.skip:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- shared type ---------- */

.label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.label-accent { color: var(--blue); font-weight: 500; }
.label-open   { color: var(--blue-pale); }
.block-label  { display: block; margin: 0 0 24px; font-weight: 400; }

.display {
  font-weight: 500;
  font-size: clamp(56px, 11.2vw, 216px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin: 0;
}
.display em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--blue);
  font-size: 1.09em;
  letter-spacing: -0.02em;
}
.display b { font-weight: 700; }

/* the brand lockup is set in Libre Caslon Text Italic throughout:
   a serif italic needs looser tracking and more leading than the sans it
   replaces, and "meets" no longer needs a size bump to match a second face */
.brand-type {
  font-family: var(--brand);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 0.95;
}
.brand-type em {
  font-family: inherit;
  font-size: 1em;
  letter-spacing: inherit;
}
  .brand-type b,
  .brand-type .brand-word {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.05em;
  }

h2 {
  font-weight: 500;
  font-size: clamp(36px, 3.75vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 16px 0 0;
}

h3 { font-weight: 500; letter-spacing: -0.03em; margin: 0; }

.hero-subheading {
  width: 100%;
  margin: clamp(10px, 1.2vw, 18px) 0 clamp(20px, 2.5vw, 40px);
  color: #8c1515;
  font-family: var(--serif);
  font-size: clamp(48px, 5.2vw, 88px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.lead {
  font-size: clamp(24px, 2.1vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 22ch;
}

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 2px;
  font-weight: 500; font-size: 18px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease;
}
.btn-sm { padding: 12px 22px; font-size: 16px; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #0E2A70; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-white { background: var(--white); color: var(--blue); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.link {
  color: var(--blue); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid transparent;
}
.link:hover { border-bottom-color: var(--blue); }

/* ---------- nav ---------- */

.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--ink);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 16px var(--pad);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-size: 18px; line-height: 1.15;
  text-decoration: none;
}
.wordmark em { color: var(--blue); }
.nav-links { display: flex; gap: 40px; }
.nav-links a {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
}
.nav-links a:hover { color: var(--blue); }


/* ---------- fact ticker ---------- */

.factbar { display: flex; align-items: stretch; background: var(--bg); }
.factbar-viewport {
  flex: 1 1 auto; min-width: 0;
  display: flex; overflow: hidden;
}
.factbar-track {
  display: flex; flex: 0 0 auto;
  list-style: none; margin: 0; padding: 0;
  animation: ticker 60s linear infinite;
}
.factbar-track li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 11px clamp(20px, 2.2vw, 40px);
  white-space: nowrap;
  border-right: 1px solid var(--line);
}
.factbar-track b { font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }

@keyframes ticker { to { transform: translateX(-100%); } }

.factbar:hover .factbar-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .factbar-track { animation: none; }
  .factbar-viewport { overflow-x: auto; }
  .factbar-track[aria-hidden="true"] { display: none; }
}

/* ---------- hero partner row ---------- */

.partners { align-self: stretch; margin-top: clamp(4px, 1vh, 24px); }
.partners .block-label { margin-bottom: 12px; }
.partners .logos { margin-top: 0; }
.partners .media-logo img {
  filter: grayscale(1);
  opacity: 0.55;
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(48px, 6vw, 112px) var(--pad) clamp(64px, 7vw, 120px);
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: clamp(28px, 3vw, 44px);
  position: relative;
  background: var(--bg);
}
/* inside the curtain the hero is one screen: everything is sized against
   viewport height too, so headline, lead, buttons and the partner row all
   stay above the fold and nothing is stranded once the panels cover it */
.curtain > .hero {
  padding-top: clamp(16px, 2.5vh, 48px);
  padding-bottom: clamp(12px, 1.8vh, 36px);
  gap: clamp(8px, 1.2vh, 22px);
}
.curtain > .hero .display { font-size: min(clamp(56px, 11.2vw, 216px), 14vh); }
.curtain > .hero .lead    { font-size: min(clamp(24px, 2.1vw, 40px), 3.4vh); }
.curtain > .hero .media-logo { width: min(clamp(108px, 15vw, 210px), 23vh); }

/* the hero is held in place while the panels close, so the page reads as
   frozen until the two sides have met. Only pinned when it actually fits
   the screen — the script adds the class after measuring. */
.curtain.is-pinned > .hero {
  position: sticky;
  top: var(--topbar-h, 0px);
  min-height: calc(100vh - var(--topbar-h, 0px));
  min-height: calc(100svh - var(--topbar-h, 0px));
}

.meta-row {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: clamp(32px, 3vw, 56px);
}



/* ---------- media placeholders ---------- */

.media {
  position: relative;
  background: #ECEAE4;
  overflow: hidden;
}
.media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.media-16-10 { aspect-ratio: 16 / 10; }
.media-tall  { aspect-ratio: 4 / 5; height: 100%; }
.media-logo  { aspect-ratio: 2 / 1; background: transparent; width: clamp(110px, 17.5vw, 260px); }
/* the supplied logos carry a baked-in white plate; multiply drops it onto
   the page ground without needing alpha in the source files */
.media-logo img { object-fit: contain; padding: clamp(8px, 1.8vw, 20px); mix-blend-mode: multiply; }
.media-portrait { width: 160px; aspect-ratio: 1; flex: 0 0 auto; }
.media-lg { width: 200px; }

.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fig { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.fig figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px;
  font-size: 16px; color: var(--muted);
}
.fig figcaption b { color: var(--ink); font-weight: 500; font-size: 17px; }

/* ---------- converge (scroll-linked curtain over the hero) ----------
   Two full-height panels ride above the hero: off-screen while the hero
   is being read, closing over it as the page scrolls on. --progress
   (0…1) is written by the script at the end of the document; 0 is the
   no-JS resting state, which leaves the hero uncovered.              */

/* the scroll room is a real element, not padding: sticky children are
   constrained to the containing block's content box, so padding buys
   no pinning distance */
.curtain { position: relative; }
.curtain-space { height: 92vh; }

.converge {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.converge-pin {
  position: sticky;
  top: var(--topbar-h, 0px);
  height: 100vh;
  height: calc(100svh - var(--topbar-h, 0px));
  overflow: hidden;
  --progress: 0;
}
.converge-media {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  margin: 0;
  overflow: hidden;
  /* a ~150-byte blur of each photo stands in until the file arrives, so the
     panels are never bare while they slide */
  background-color: #ECEAE4;
  background-size: cover;
  background-repeat: no-repeat;
}
.converge-media-left {
  background-image: url("data:image/webp;base64,UklGRmoAAABXRUJQVlA4IF4AAADQAwCdASoUAAsAPrVMn0onJCKhsAgA4BaJZQAAPPY6kSUHL8EKlwAA/hYZxGR7402nWz4Dmy91+E9VZ5BlqJa/5rafqaW0AdHOlzK8qwXzXs44iZX62tOX+9ysAAAA");
  background-position: 58% center;
}
.converge-media-right {
  background-image: url("data:image/webp;base64,UklGRmYAAABXRUJQVlA4IFoAAADwAwCdASoUAA0APrVKn0onJCKhsAgA4BaJZwC06B4aVg37vX8ZZAVgAP7n+aEaXRV0Zoog6guil7Je7w27u0zSKn9lEzXCt7bHWaunVic3Z2CHReIQnDlgAAA=");
  background-position: 33% center;
}
/* the panels crop hard on narrow screens, so each photo is framed on its
   subject rather than on the middle of the file */
.converge-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.converge-media-left img  { object-position: 58% center; }
.converge-media-right img { object-position: 33% center; }
/* the labels ride the outer corners, so they land with the finished frame
   instead of colliding in the middle as the panels close */
.converge-media figcaption {
  position: absolute;
  bottom: clamp(20px, 3vw, 44px);
  z-index: 1;
  color: var(--white);
  text-shadow: 0 1px 14px rgba(0, 0, 0, .5);
  white-space: nowrap;
  opacity: var(--progress, 1);
}
.converge-media-left  { left: 0;  transform: translateX(calc(-100% * (1 - var(--progress, 0)))); }
.converge-media-right { right: 0; transform: translateX(calc(100% * (1 - var(--progress, 0)))); }
.converge-media-left figcaption  { left: clamp(16px, 2.4vw, 40px); }
.converge-media-right figcaption { right: clamp(16px, 2.4vw, 40px); }

@media (prefers-reduced-motion: reduce) {
  .curtain-space { display: none; }
  .curtain.is-pinned > .hero { position: static; min-height: 0; }
  .converge { display: none; }
}

/* ---------- sections ---------- */

.section {
  padding: var(--section-y) var(--pad);
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: var(--gap);
  margin-bottom: clamp(40px, 4vw, 64px);
}
.section-head-stacked { flex-direction: column; align-items: flex-start; gap: 20px; }
.section-head-stacked h2 { margin: 0; }
.section-head-stacked .section-intro { max-width: 78ch; }
.section-intro {
  max-width: 44ch; margin: 0;
  font-size: clamp(18px, 1.3vw, 24px); line-height: 1.4; color: var(--muted);
}

/* ---------- 01 format equation ---------- */

.equation {
  display: grid;
  grid-template-columns: 1fr 96px 1fr 96px 1fr 96px 1fr;
  border: 1px solid var(--ink);
}
.eq-cell { padding: 32px; display: flex; flex-direction: column; gap: 8px; }
.eq-number {
  font-weight: 500; font-size: clamp(64px, 8.3vw, 160px);
  line-height: 1; letter-spacing: -0.06em;
}
.eq-cell b { font-weight: 500; font-size: clamp(20px, 1.45vw, 28px); letter-spacing: -0.02em; }
.eq-note { font-size: 17px; color: var(--muted); }
.eq-op {
  display: flex; align-items: center; justify-content: center;
  font-weight: 300; font-size: clamp(28px, 2.9vw, 56px); color: var(--muted);
  border-left: 1px solid var(--ink); border-right: 1px solid var(--ink);
}
.eq-cell-goal { background: var(--blue); color: var(--white); }
.eq-cell-goal .label,
.eq-cell-goal .eq-note { color: var(--blue-pale); }

/* ---------- 02 reasons ---------- */

.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.reason {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.reasons + .block-label { margin-top: clamp(48px, 5vw, 80px); }
.reason h3 { font-size: clamp(24px, 1.9vw, 36px); }
.reason p { margin: 0; font-size: 19px; line-height: 1.45; color: var(--muted); max-width: 34ch; }

/* ---------- 03 editions ---------- */

.editions { width: 100%; border-collapse: collapse; text-align: left; }
.editions th, .editions td { padding: 32px 0; vertical-align: middle; font-weight: 400; }
.editions thead th { padding: 0 0 14px; border-bottom: 1px solid var(--ink); }
.editions tbody tr { border-bottom: 1px solid var(--line); }
.editions .city { font-weight: 500; font-size: clamp(26px, 2.1vw, 40px); letter-spacing: -0.03em; }
.editions td:last-child { text-align: right; white-space: nowrap; }

.partner-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
}
.logos {
  list-style: none; margin: var(--gap) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: flex-start;
  gap: clamp(12px, 1.5vw, 24px);
}
.logos li { flex: 1 1 0; min-width: 0; }
.partner-group .logos { width: 100%; flex-wrap: nowrap; align-items: center; gap: clamp(12px, 2vw, 28px); }
.partner-group .media-logo { width: 100%; max-width: none; }
.partner-group .media-logo img { width: 100%; }


/* ---------- next edition row ---------- */

.nextrow {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(16px, 2vw, 32px);
  padding-bottom: clamp(32px, 3vw, 48px);
  margin-bottom: clamp(32px, 3vw, 48px);
  border-bottom: 1px solid var(--line);
}
.nextrow-city {
  font-weight: 500; font-size: clamp(26px, 2.1vw, 40px);
  letter-spacing: -0.03em; margin: 0;
}
.nextrow-status { flex: 0 0 auto; }
.nextrow-box {
  display: flex; flex-wrap: wrap; margin: 0;
  border: 1px solid var(--blue);
  flex: 1 1 380px; min-width: 0;
}
.nextrow-box > div {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 24px; min-width: 0;
}
.nextrow-box > div + div { border-left: 1px solid var(--blue); }
.nextrow-box dd { margin: 0; font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }

/* ---------- 04 agenda ---------- */

.agenda-scale {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: var(--gap); padding-bottom: 14px;
}
.scale-track { position: relative; flex: 0 0 55%; height: 16px; }
.scale-track .label {
  position: absolute; bottom: 0; white-space: nowrap;
  left: calc(var(--at) / 240 * 100%);
  transform: translateX(-50%);
}
.scale-track .label:first-of-type { transform: none; }
.scale-track .label:last-of-type { transform: translateX(-100%); }
.slots { list-style: none; margin: 0; padding: 0; }
.slot {
  display: grid;
  grid-template-columns: 124px 1fr 55%;
  align-items: center; gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--ink);
}
.slot-time { font-family: var(--mono); font-weight: 500; font-size: 22px; color: var(--blue); font-variant-numeric: tabular-nums; }
.slot-name { font-weight: 500; font-size: clamp(20px, 1.7vw, 32px); letter-spacing: -0.02em; }
.bar-track { position: relative; height: 12px; }
.bar-track::before {
  content: ""; position: absolute; inset: 50% 0 auto 0; height: 1px; background: var(--line);
}
.bar {
  position: absolute; top: 0; height: 12px; background: var(--ink);
  left: calc(var(--start) / 240 * 100%);
  width: calc(var(--dur) / 240 * 100%);
}
.bar-accent { background: var(--blue); }
.dot {
  position: absolute; top: 0; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--ink);
  left: calc(var(--start) / 240 * 100%); transform: translateX(-100%);
}

/* ---------- 05 evidence ---------- */

.photo-grid {
  display: grid; grid-template-columns: 1fr 560px; gap: 16px;
  margin-bottom: clamp(40px, 4vw, 64px);
}
.photo-side { display: flex; flex-direction: column; gap: 16px; }
.fig-large .media { aspect-ratio: auto; flex: 1 1 auto; min-height: 320px; }

.speakers {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink); background: var(--white);
}
.speaker { display: flex; gap: 40px; padding: 40px; align-items: center; }
.speaker + .speaker { border-left: 1px solid var(--ink); }
.amount {
  font-weight: 500; font-size: clamp(48px, 4.6vw, 88px);
  line-height: 1; letter-spacing: -0.05em; margin: 6px 0;
}
.amount-note { margin: 0; color: var(--muted); font-size: 17px; }
.who { margin: 16px 0 0; display: flex; flex-direction: column; gap: 2px; }
.who b { font-weight: 500; font-size: 21px; }

/* ---------- 06 hosts ---------- */

.host-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.host {
  display: flex; align-items: center; gap: 24px;
  border-top: 1px solid var(--ink); padding-top: 24px;
}
.host .media-portrait { width: 96px; }
.host h3 { font-size: clamp(22px, 1.7vw, 30px); margin: 0 0 8px; }
  .host-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .imprint { flex-basis: 100%; max-width: 620px; margin: 20px 0 0; color: #9A9EA5; font-size: 13px; line-height: 1.4; }

/* ---------- 07 closing ---------- */

.closing {
  background: var(--blue); color: var(--white);
  padding: clamp(72px, 7.3vw, 140px) var(--pad);
}
.closing .label { color: var(--blue-pale); }
.display-closing { font-size: clamp(48px, 8.3vw, 160px); line-height: 0.92; }
.display-closing em { color: var(--white); }
.closing-lead {
  max-width: 50ch; margin: 40px 0;
  font-size: clamp(19px, 1.5vw, 28px); line-height: 1.35; color: var(--blue-pale);
}

/* ---------- footer ---------- */

.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding: 32px var(--pad);
  background: var(--ink);
}
.footer .label { color: #9A9EA5; }
.footer-links { display: flex; gap: 32px; }
.footer-links a {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #9A9EA5; text-decoration: none;
}
.footer-links a:hover { color: var(--white); }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1200px) {
  .nav-links { display: none; }
  .nextrow-box { flex-basis: 100%; }
  .photo-grid { grid-template-columns: 1fr; }
  .media-tall { aspect-ratio: 16 / 10; }
  .slot { grid-template-columns: 90px 1fr; }
  .bar-track { grid-column: 1 / -1; }
  /* the decorative time ruler needs room it does not have here;
     every slot already carries its own timestamp */
  .agenda-scale { display: none; }
  /* height:100% + aspect-ratio would blow the column open once the
     photo grid collapses to a single track */
  .media-tall { height: auto; }
}

@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  .partner-groups { grid-template-columns: 1fr; gap: 28px; }
  .partner-group .logos { gap: 10px; }
  .partner-group .media-logo { width: 100%; }
  body { font-size: 17px; }
  .equation { grid-template-columns: 1fr 1fr; }
  .eq-op { display: none; }
  .eq-cell { border-top: 1px solid var(--ink); }
  .reasons,
  .host-row,
  .speakers,
  .figures { grid-template-columns: 1fr; }
  .speaker + .speaker { border-left: 0; border-top: 1px solid var(--ink); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .editions thead { display: none; }
  .editions tbody tr {
    display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 24px 0;
  }
  .editions th, .editions td { padding: 0; }
  .editions td:last-child { text-align: left; grid-column: 1 / -1; margin-top: 12px; }
  .speaker { flex-direction: column; align-items: flex-start; gap: 24px; }
  .host { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 560px) {
  .partners .media-logo { width: min(175px, 46vw); }
  .btn { width: 100%; justify-content: center; }
  .factbar-track li { padding: 10px 20px; }
  .nextrow-box > div { flex: 1 1 100%; }
  .nextrow-box > div + div { border-left: 0; border-top: 1px solid var(--blue); }
  .slot { grid-template-columns: 1fr; gap: 8px; }
  .slot-time { font-size: 20px; }
}
