/* ============================================================
   Immunoengineering Summit — styles
   Token system: html[data-direction="A|B|C"] sets the palette.
   Tweak overrides are applied as inline CSS vars on <html>.
   ============================================================ */

/* ---------- Base / reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink-display, var(--ink)); }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-contrast); }

/* ---------- Direction presets ---------- */
/* A — Lab (teal + deep purple on white) · matches Immunoengineering Lab brand */
html, html[data-direction="A"] {
  --bg: #f6faf9;
  --bg-tint: #eaf5f4;
  --surface: #ffffff;
  --surface-2: #f1f8f7;
  --ink: #34303b;
  --ink-soft: #56505f;
  --ink-display: #3C124D;
  --muted: #8a8694;
  --line: rgba(60,18,77,.14);
  --line-soft: rgba(60,18,77,.08);
  --accent: #178f88;
  --accent-deep: #0e6b66;
  --accent-contrast: #ffffff;
  --accent-2: #3C124D;
  --accent-2-soft: rgba(34,182,175,.16);
  --accent-3: #4fae63;
  --hero-ink: #3C124D;
  --hero-bg: #f1f9f8;
  --shadow: 0 1px 2px rgba(60,18,77,.05), 0 12px 32px -16px rgba(60,18,77,.18);
  --shadow-lg: 0 2px 6px rgba(60,18,77,.06), 0 30px 60px -28px rgba(60,18,77,.26);
}
/* B — Editorial Cream / Maroon */
html[data-direction="B"] {
  --bg: #f4eee2;
  --bg-tint: #efe7d7;
  --surface: #fbf7ee;
  --surface-2: #f6efe1;
  --ink: #211b15;
  --ink-soft: #463c30;
  --ink-display: #211b15;
  --muted: #7a6f5f;
  --line: rgba(33,27,21,.14);
  --line-soft: rgba(33,27,21,.08);
  --accent: #8c2f2a;
  --accent-deep: #6f231f;
  --accent-contrast: #fbf7ee;
  --accent-2: #1f6f74;
  --accent-2-soft: rgba(31,111,116,.14);
  --accent-3: #9a7b3a;
  --hero-ink: #211b15;
  --hero-bg: #f4eee2;
  --shadow: 0 1px 2px rgba(33,27,21,.05), 0 12px 32px -16px rgba(33,27,21,.22);
  --shadow-lg: 0 2px 6px rgba(33,27,21,.06), 0 30px 60px -28px rgba(33,27,21,.34);
}
/* C — Ink (deep purple + teal, dark) · lab palette inverted */
html[data-direction="C"] {
  --bg: #1a0f24;
  --bg-tint: #21142e;
  --surface: #271836;
  --surface-2: #2d1c3e;
  --ink: #f1ecf5;
  --ink-soft: #cfc4d8;
  --ink-display: #ffffff;
  --muted: #9d90ab;
  --line: rgba(241,236,245,.16);
  --line-soft: rgba(241,236,245,.08);
  --accent: #2fc7bf;
  --accent-deep: #54d6cf;
  --accent-contrast: #0c0712;
  --accent-2: #c39ce0;
  --accent-2-soft: rgba(47,199,191,.16);
  --accent-3: #61CE70;
  --hero-ink: #ffffff;
  --hero-bg: #160c1f;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -20px rgba(0,0,0,.7);
  --shadow-lg: 0 2px 8px rgba(0,0,0,.5), 0 36px 70px -30px rgba(0,0,0,.8);
}

/* ---------- Font pairings (tweakable) ---------- */
/* lab (default) — matches Immunoengineering Lab: Roboto Slab + Open Sans */
html, html[data-fonts="lab"] {
  --font-display: "Roboto Slab", Georgia, serif;
  --font-sans: "Open Sans", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
}
html[data-fonts="editorial"] {
  --font-display: "Spectral", Georgia, serif;
  --font-sans: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Spectral", Georgia, serif;
}
html[data-fonts="modern"] {
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
}

/* ---------- Layout primitives ---------- */
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - 48px); margin-inline: auto; }
section { position: relative; }
.section-pad { padding: clamp(40px, 5vw, 72px) 0; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }

.kicker {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.04;
  margin-top: 18px;
  max-width: 18ch;
}
.section-lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-soft);
  margin-top: 20px;
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 2px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, border-color .3s, box-shadow .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  flex: none;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text b { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; white-space: nowrap; color: var(--ink-display); }
.brand-text span { font-family: var(--font-sans); font-size: 11px; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); white-space: nowrap; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 6px 0; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0; background: var(--accent); transition: width .25s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 4px; padding: 11px 40px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 76px; background: var(--hero-bg); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; min-height: min(86vh, 820px); padding: 56px 0; }
.hero-content { position: relative; z-index: 2; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-family: var(--font-sans); font-size: 13px; letter-spacing: .04em; color: var(--muted); margin-bottom: 26px; }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 7.4vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--hero-ink);
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.hero-sub { margin-top: 28px; font-size: clamp(18px, 1.8vw, 22px); color: var(--ink-soft); max-width: 44ch; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: 38px; border-top: 1px solid var(--line); }
.hero-fact { padding: 18px 28px 18px 0; margin-right: 28px; border-right: 1px solid var(--line); }
.hero-fact:last-child { border-right: 0; }
.hero-fact .l { font-family: var(--font-sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero-fact .v { font-family: var(--font-display); font-size: clamp(19px, 2vw, 25px); margin-top: 5px; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* hero visual */
.hero-visual { position: relative; aspect-ratio: 1/1; align-self: center; }
.hero-visual image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.cell-field { position: absolute; inset: 0; }
.hero[data-herostyle="plain"] .cell-field,
.hero[data-herostyle="photo"] .cell-field { display: none; }
.hero[data-herostyle="photo"] .hero-photo { display: block; }
.hero-photo { display: none; position: absolute; inset: 0; }
.hero[data-herostyle="mesh"] .cell-field { opacity: .5; }
.hero-mesh { position: absolute; inset: -10%; display: none; pointer-events: none; }
.hero[data-herostyle="mesh"] .hero-mesh { display: block; }

/* faint full-bleed motif behind whole hero in some styles */
.hero-bgmotif { position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none; }
.hero[data-herostyle="plain"] .hero-bgmotif { opacity: 0; }

/* ---------- Marquee strip ---------- */
.strip { background: var(--accent); color: var(--accent-contrast); padding: 16px 0; overflow: hidden; }
.strip-track { display: flex; gap: 56px; white-space: nowrap; width: max-content; animation: marquee 38s linear infinite; }
.strip-track span { font-family: var(--font-sans); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 56px; opacity: .92; }
.strip-track span::after { content: "✦"; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-lead p { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.55; color: var(--ink); }
.about-lead p + p { margin-top: 22px; color: var(--ink-soft); font-size: 18px; }
.theme-list { display: grid; gap: 0; margin-top: 8px; }
.theme-item { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 22px 0; border-top: 1px solid var(--line); align-items: baseline; }
.theme-item:last-child { border-bottom: 1px solid var(--line); }
.theme-item .num { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .1em; }
.theme-item h4 { font-family: var(--font-display); font-size: clamp(19px, 1.7vw, 23px); }
.theme-item p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }

/* stat band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: clamp(48px,6vw,80px); padding-top: 44px; border-top: 1px solid var(--line); }
.stat .n { font-family: var(--font-display); font-size: clamp(38px, 5vw, 64px); line-height: 1; color: var(--accent); letter-spacing: -.02em; }
.stat .k { font-family: var(--font-sans); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }

/* ---------- Speakers ---------- */
.speakers-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 52px; }
.speaker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.speaker {
  position: relative; background: var(--surface); border: 1px solid var(--line-soft);
  padding: 0; overflow: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
.speaker:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line); z-index: 2; }
.speaker .photo { aspect-ratio: 1/1; position: relative; background: var(--surface-2); overflow: hidden; }
.speaker .photo image-slot { width: 100%; height: 100%; }
.speaker .photo .avatar { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 46px; color: var(--accent); background:
   radial-gradient(120% 120% at 30% 20%, var(--accent-2-soft), transparent 60%); }
.speaker .meta { padding: 20px 20px 24px; }
.speaker .meta .name { font-family: var(--font-display); font-size: 21px; line-height: 1.1; }
.speaker .meta .affil { font-family: var(--font-sans); font-size: 12.5px; letter-spacing: .03em; color: var(--accent); margin-top: 8px; }
.speaker .meta .topic { font-size: 14.5px; color: var(--muted); margin-top: 12px; line-height: 1.45; }
.speaker .tag { position: absolute; top: 14px; left: 14px; z-index: 3; font-family: var(--font-sans); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(6px); color: var(--ink-soft); padding: 5px 9px; border: 1px solid var(--line-soft); }
.speaker.host .tag { background: var(--accent); color: var(--accent-contrast); border-color: transparent; }

/* horizontal card layout */
html[data-cards="horizontal"] .speaker-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
html[data-cards="horizontal"] .speaker { display: grid; grid-template-columns: 150px 1fr; align-items: stretch; }
html[data-cards="horizontal"] .speaker .photo { aspect-ratio: auto; }
html[data-cards="horizontal"] .speaker .meta { align-self: center; }

/* minimal list layout */
html[data-cards="minimal"] .speaker-grid { grid-template-columns: 1fr; gap: 0; }
html[data-cards="minimal"] .speaker { display: grid; grid-template-columns: 64px 1.4fr 1fr auto; gap: 24px; align-items: center; background: transparent; border: 0; border-top: 1px solid var(--line); padding: 22px 8px; }
html[data-cards="minimal"] .speaker:hover { transform: none; box-shadow: none; background: var(--surface); }
html[data-cards="minimal"] .speaker:last-child { border-bottom: 1px solid var(--line); }
html[data-cards="minimal"] .speaker .photo { width: 64px; height: 64px; aspect-ratio: 1/1; border-radius: 50%; }
html[data-cards="minimal"] .speaker .photo .avatar { font-size: 24px; border-radius: 50%; }
html[data-cards="minimal"] .speaker .photo image-slot { border-radius: 50%; overflow: hidden; }
html[data-cards="minimal"] .speaker .meta { padding: 0; display: contents; }
html[data-cards="minimal"] .speaker .meta .name { grid-column: 2; }
html[data-cards="minimal"] .speaker .meta .topic { margin-top: 0; }
html[data-cards="minimal"] .speaker .tag { position: static; }

/* ---------- Program ---------- */
.program { background: var(--bg-tint); }
.day-tabs { display: flex; gap: 4px; margin: 44px 0 0; flex-wrap: wrap; }
.day-tab {
  font-family: var(--font-sans); cursor: pointer; background: transparent; border: 1px solid var(--line);
  padding: 18px 26px; text-align: left; transition: .25s; color: var(--ink-soft); flex: 1; min-width: 200px;
}
.day-tab:hover { border-color: var(--accent); }
.day-tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
html[data-direction="C"] .day-tab[aria-selected="true"] { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.day-tab .d { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; display: inline; }
.day-tab .t { font-family: var(--font-display); font-size: 15px; margin-top: 0; display: inline; margin-left: 10px; }
.day-panel { display: none; margin-top: 4px; border-top: 2px solid var(--ink); }
.day-panel.active { display: block; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.slot { display: grid; grid-template-columns: 150px 1fr auto; gap: 28px; padding: 22px 8px; border-bottom: 1px solid var(--line); align-items: baseline; transition: background .2s; }
.slot:hover { background: var(--surface); }
.slot .time { font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .02em; }
.slot .body .s-theme { font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 22px); }
.slot .body .s-speaker { font-family: var(--font-sans); font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.slot .body .s-speaker b { color: var(--ink-soft); font-weight: 600; }
.slot .tagcol { justify-self: end; }
.slot.break { background: var(--surface-2); }
.slot.break .body .s-theme { font-family: var(--font-sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.slot .pill { font-family: var(--font-sans); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.slot .pill.confirmed { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 40%, transparent); }
.program-note { margin-top: 28px; font-size: 14.5px; color: var(--muted); font-style: italic; }

/* ---------- Registration / CTA band ---------- */
.cta-band { background: var(--ink); color: var(--bg); }
html[data-direction="C"] .cta-band { background: var(--bg-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band .section-title { color: var(--bg); }
html[data-direction="C"] .cta-band .section-title { color: var(--ink); }
.cta-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px,6vw,80px); align-items: center; }
.cta-band .eyebrow { color: var(--accent-deep); }
html[data-direction="A"] .cta-band .eyebrow { color: #e0a27a; }
.reg-tiers { display: grid; gap: 2px; }
.reg-tier { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; background: color-mix(in srgb, var(--bg) 8%, transparent); border: 1px solid color-mix(in srgb, var(--bg) 16%, transparent); }
html[data-direction="C"] .reg-tier { background: var(--surface); border-color: var(--line); }
.reg-tier .who { font-family: var(--font-display); font-size: 19px; }
.reg-tier .who small { display: block; font-family: var(--font-sans); font-size: 12px; letter-spacing: .04em; opacity: .65; margin-top: 3px; }
.reg-tier .price { font-family: var(--font-sans); font-weight: 600; font-size: 15px; letter-spacing: .04em; white-space: nowrap; }
.cta-band p.muted { color: color-mix(in srgb, var(--bg) 70%, transparent); }
html[data-direction="C"] .cta-band p.muted { color: var(--muted); }

/* ---------- Poster / Abstract ---------- */
.poster-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,6vw,80px); align-items: center; }
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 24px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .n { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-family: var(--font-sans); font-weight: 600; font-size: 15px; flex: none; }
.step h4 { font-family: var(--font-display); font-size: 20px; }
.step p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.poster-card { background: var(--surface); border: 1px solid var(--line); padding: clamp(28px,4vw,44px); box-shadow: var(--shadow); }
.poster-card .big { font-family: var(--font-display); font-size: clamp(30px,3.4vw,42px); line-height: 1.05; }
.poster-card .big em { font-style: italic; color: var(--accent); }
.deadline-row { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--font-sans); font-size: 14px; }
.deadline-row:first-of-type { border-top: 1px solid var(--line); margin-top: 26px; }
.deadline-row b { color: var(--accent); }

/* ---------- Venue ---------- */
.venue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,6vw,72px); align-items: center; }
.venue-visual { position: relative; aspect-ratio: 4/3; border: 1px solid var(--line); box-shadow: var(--shadow); }
.venue-visual image-slot { width: 100%; height: 100%; }
.instagram-clip { aspect-ratio: unset; border: none; box-shadow: none; background: transparent; max-height: 620px; overflow: hidden; }
.instagram-clip .instagram-media,
.instagram-clip iframe { display: block !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
.info-list { display: grid; gap: 0; margin-top: 18px; }
.info-row { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.info-row:last-child { border-bottom: 1px solid var(--line); }
.info-row .k { font-family: var(--font-sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.info-row .v { font-size: 16px; color: var(--ink); }
.info-row .v a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); white-space: nowrap; }

/* ---------- Sponsors ---------- */
.sponsors { text-align: center; }
.sponsor-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 48px; }
.sponsor-slot { flex: 1 1 200px; max-width: 240px; aspect-ratio: 16/7; border: 1px dashed var(--line); display: grid; place-items: center; background: var(--surface); transition: .25s; }
.sponsor-slot:hover { border-color: var(--accent); border-style: solid; }
.sponsor-slot image-slot { width: 100%; height: 100%; }
.sponsor-slot .ph { font-family: var(--font-sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sponsor-cta { margin-top: 40px; }

/* ---------- Organizers / Contact ---------- */
.org-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px,6vw,90px); }
.org-people { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; }
.org { display: flex; gap: 16px; align-items: flex-start; }
.org .ava { width: 54px; height: 54px; border-radius: 50%; background: var(--accent-2-soft); display: grid; place-items: center; font-family: var(--font-display); color: var(--accent-2); font-size: 20px; flex: none; }
.org .nm { font-family: var(--font-display); font-size: 18px; }
.org .rl { font-family: var(--font-sans); font-size: 12.5px; color: var(--muted); margin-top: 4px; letter-spacing: .02em; }
.contact-card { background: var(--surface); border: 1px solid var(--line); padding: clamp(28px,4vw,42px); box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--bg); padding: clamp(56px,7vw,88px) 0 36px; }
html[data-direction="C"] .site-footer { background: var(--bg-tint); border-top: 1px solid var(--line); color: var(--ink); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); }
html[data-direction="C"] .footer-top { border-bottom-color: var(--line); }
.site-footer h3, .site-footer h4, .site-footer h5 { color: inherit; }
.footer-brand h3 { font-family: var(--font-display); font-size: 26px; }
.footer-brand p { color: color-mix(in srgb, var(--bg) 66%, transparent); margin-top: 14px; max-width: 42ch; font-size: 15px; }
html[data-direction="C"] .footer-brand p { color: var(--muted); }
.footer-logos { display: flex; gap: 14px; align-items: center; margin-top: 28px; flex-wrap: wrap; }
.logo-chip { background: #fff; border-radius: 12px; padding: 9px 14px; display: inline-flex; align-items: center; height: 56px; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 6px 16px -10px rgba(0,0,0,.2); }
.logo-chip img { height: 100%; width: auto; display: block; }
.logo-chip.mark { padding: 7px; width: 56px; justify-content: center; }
.hosted-by { display: flex; align-items: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hosted-by .hb-label { font-family: var(--font-sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.footer-logos image-slot { width: 92px; height: 48px; }
.footer-logos .logo-ph { width: 92px; height: 48px; border: 1px solid color-mix(in srgb, var(--bg) 24%, transparent); display: grid; place-items: center; font-family: var(--font-sans); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--bg) 60%, transparent); }
html[data-direction="C"] .footer-logos .logo-ph { border-color: var(--line); color: var(--muted); }
.footer-col h5 { font-family: var(--font-sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--bg) 60%, transparent); margin-bottom: 18px; }
html[data-direction="C"] .footer-col h5 { color: var(--muted); }
.footer-col a { display: block; padding: 7px 0; color: color-mix(in srgb, var(--bg) 82%, transparent); font-size: 15px; transition: color .2s; }
html[data-direction="C"] .footer-col a { color: var(--ink-soft); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 26px; font-family: var(--font-sans); font-size: 12.5px; color: color-mix(in srgb, var(--bg) 56%, transparent); }
html[data-direction="C"] .footer-bottom { color: var(--muted); }

/* ---------- Hero bioart cells ---------- */
.hero-bioart {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden;
}
.bio-img {
  position: absolute;
  opacity: 0.16;
  filter: brightness(1.08);
  animation: none;
  will-change: left, top, transform;
}
@media (prefers-reduced-motion: reduce) {
  .bio-img { animation: none !important; }
}
/* Circulation keyframes — cells drift fully across the hero */
@keyframes bcirc-lr {
  0%   { transform: translate(-90px, 16px) scale(.92) rotate(-8deg); }
  18%  { transform: translate(16vw, -28px) scale(1.03) rotate(7deg); }
  39%  { transform: translate(38vw, 32px) scale(.96) rotate(-3deg); }
  62%  { transform: translate(63vw, -18px) scale(1.08) rotate(9deg); }
  82%  { transform: translate(84vw, 26px) scale(.98) rotate(-6deg); }
  100% { transform: translate(calc(100vw + 90px), -10px) scale(1.02) rotate(6deg); }
}
@keyframes bcirc-rl {
  0%   { transform: translate(calc(100vw + 90px), -18px) scale(1.04) rotate(8deg); }
  21%  { transform: translate(78vw, 30px) scale(.94) rotate(-7deg); }
  44%  { transform: translate(55vw, -24px) scale(1.07) rotate(4deg); }
  67%  { transform: translate(31vw, 34px) scale(.98) rotate(-10deg); }
  86%  { transform: translate(12vw, -14px) scale(1.03) rotate(5deg); }
  100% { transform: translate(-90px, 18px) scale(.95) rotate(-6deg); }
}
@keyframes bcirc-d1 {
  0%   { transform: translate(calc(100vw + 90px), -42px) scale(.96) rotate(12deg); }
  16%  { transform: translate(82vw, 18px) scale(1.08) rotate(-4deg); }
  36%  { transform: translate(61vw, -34px) scale(.93) rotate(9deg); }
  57%  { transform: translate(42vw, 36px) scale(1.04) rotate(-11deg); }
  79%  { transform: translate(18vw, -10px) scale(.99) rotate(6deg); }
  100% { transform: translate(-90px, 42px) scale(1.03) rotate(-12deg); }
}
@keyframes bcirc-d2 {
  0%   { transform: translate(-90px, 48px) scale(1.02) rotate(-10deg); }
  19%  { transform: translate(19vw, -22px) scale(.94) rotate(8deg); }
  41%  { transform: translate(43vw, 30px) scale(1.09) rotate(-5deg); }
  63%  { transform: translate(66vw, -36px) scale(.97) rotate(11deg); }
  84%  { transform: translate(86vw, 14px) scale(1.04) rotate(-7deg); }
  100% { transform: translate(calc(100vw + 90px), -30px) scale(.96) rotate(10deg); }
}
/* Cell placement — top sets y-track, animation drives x */
.bio-1  { width:72px; top: 8%;  left:0; opacity:.18; }
.bio-2  { width:60px; top:22%;  left:0; opacity:.16; }
.bio-3  { width:55px; top:40%;  left:0; opacity:.15; }
.bio-4  { width:58px; top:58%;  left:0; opacity:.15; }
.bio-5  { width:52px; top:75%;  left:0; opacity:.14; }
.bio-6  { width:68px; top:14%;  left:0; opacity:.15; }
.bio-7  { width:50px; top:32%;  left:0; opacity:.14; }
.bio-8  { width:54px; top:50%;  left:0; opacity:.16; }
.bio-9  { width:65px; top:68%;  left:0; opacity:.13; }
.bio-10 { width:48px; top: 2%;  left:0; opacity:.13; }
.bio-11 { width:48px; top:85%;  left:0; opacity:.13; }
.bio-12 { width:66px; top:46%;  left:0; opacity:.15; }
.bio-13 { width:46px; top:20%;  left:0; opacity:.14; }
.bio-14 { width:58px; top:62%;  left:0; opacity:.12; }
.bio-15 { width:62px; top:30%;  left:0; opacity:.14; }
.bio-16 { width:70px; top:80%;  left:0; opacity:.12; }
@media (max-width:680px) {
  .bio-7,.bio-9,.bio-10,.bio-11,.bio-14,.bio-16 { display: none; }
}
.lab-photo-frame {
  display: inline-block;
  background: #fff;
  padding: 14px 14px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.16), 0 16px 48px -16px rgba(0,0,0,.22);
  transform: rotate(-3deg);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
  max-width: 400px;
  width: 100%;
}
.lab-photo-frame:hover {
  transform: rotate(0deg);
  box-shadow: 0 8px 28px rgba(0,0,0,.18), 0 24px 60px -18px rgba(0,0,0,.28);
}
.lab-photo-frame img {
  width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover;
}
.lab-photo-caption {
  font-family: "Caveat", cursive;
  font-size: 24px;
  font-weight: 500;
  color: #555;
  text-align: center;
  padding: 16px 12px 20px;
  line-height: 1;
  letter-spacing: 0.01em;
}
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .speaker-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; gap: 8px; padding: 40px 0 56px; }
  .hero-visual { order: -1; max-width: 440px; margin: 0 auto 8px; width: 100%; }
  .about-grid, .cta-grid, .poster-grid, .venue-grid, .org-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  html[data-cards="horizontal"] .speaker-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap, .wrap-narrow { width: calc(100% - 36px); }
  .hero { padding-top: 68px; }
  .hero-inner { padding: 34px 0 44px; }
  .hero-content { min-width: 0; }
  .hero h1 { font-size: clamp(30px, 9.6vw, 42px); line-height: 1.04; letter-spacing: 0; }
  .hero-sub { margin-top: 20px; font-size: 17px; max-width: 100%; }
  .hero-facts { margin-top: 28px; }
  .hero-fact { flex: 1 1 100%; margin-right: 0; padding-right: 0; border-right: 0; }
  .speaker-grid { grid-template-columns: repeat(2, 1fr); }
  .speaker .meta { padding: 16px 14px 18px; }
  .speaker .meta .name { font-size: 18px; line-height: 1.12; overflow-wrap: anywhere; }
  .slot { grid-template-columns: 1fr; gap: 6px; }
  .slot .pill { justify-self: start; }
  .info-row { grid-template-columns: 1fr; gap: 7px; padding: 15px 0; }
  .info-row .v { min-width: 0; overflow-wrap: anywhere; }
  .info-row .v a { overflow-wrap: normal; }
  .instagram-clip { max-height: 260px; }
  .instagram-clip .instagram-media,
  .instagram-clip iframe { max-height: 260px !important; }
  .org-people { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  html[data-cards="minimal"] .speaker { grid-template-columns: 48px 1fr; }
  html[data-cards="minimal"] .speaker .meta .topic, html[data-cards="minimal"] .speaker .tag { display: none; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: 76px 0 0; z-index: 49; background: var(--bg); transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.2,1); display: flex; flex-direction: column; padding: 24px; gap: 4px; }
.mobile-menu.open { transform: none; }
.mobile-menu a { font-family: var(--font-display); font-size: 26px; padding: 14px 0; border-bottom: 1px solid var(--line); }
body.menu-open { overflow: hidden; }

