/* ═══════════════════════════════════════════════════════════
   TEDxChicago 2026 — WE THE PEOPLE
   Modern / gritty concept · Squarespace-ready
   Palette (brand guidelines v1.0):
     TEDx Red   #E62B1E   Pantone 485
     Ink        #070B14
     Navy       #243345
     Slate      #718294
     Sky        #ABBCCF
   Type: Handjet (display only) · Helvetica (everything else)
   ═══════════════════════════════════════════════════════════ */

:root {
  --red:   #e62b1e;
  --red-deep: #b81f14;
  --ink:   #070b14;
  --navy:  #243345;
  --slate: #718294;
  --sky:   #abbccf;
  --paper: #f4f2ec;

  --font-display: "Handjet", "Courier New", monospace;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --header-h: 72px;
}

/* ── Scoped reset ────────────────────────────────────────────
   Everything is scoped to #tedx-root so the embed can sit on a
   Squarespace page without restyling the site's own nav/footer.
   index.html wraps all page content in <div id="tedx-root">. */
/* :where() keeps these at the same (zero) specificity as the bare
   *, img, a… selectors they replace, so class rules still override
   them exactly as they did before scoping. */
:where(#tedx-root),
:where(#tedx-root *),
:where(#tedx-root *)::before,
:where(#tedx-root *)::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* The scoped reset above no longer zeroes the browser's default 8px
   body margin, which left gutters around the embed. Safe globally —
   zero body margin is the norm on every host page incl. Squarespace. */
body { margin: 0; }

#tedx-root {
  position: relative;
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--sky);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:where(#tedx-root) img, :where(#tedx-root) svg { display: block; max-width: 100%; }
:where(#tedx-root) a { color: inherit; text-decoration: none; }
:where(#tedx-root) sup { font-size: 0.55em; }

/* ── Brand logos (official SVGs in /assets, tinted via mask) ──
   .logo paints currentColor through the SVG's alpha, so any
   logo can be recolored by setting `color` on the element.   */
.logo {
  display: block;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.logo-quotes {
  -webkit-mask-image: url("../assets/quotes.svg");
  mask-image: url("../assets/quotes.svg");
  aspect-ratio: 274.35 / 126.96;
}
.logo-wtp-sm {
  -webkit-mask-image: url("../assets/wtp-mark-sm.svg");
  mask-image: url("../assets/wtp-mark-sm.svg");
  aspect-ratio: 267.54 / 55.42;
}
.logo-wtp-lg {
  -webkit-mask-image: url("../assets/wtp-mark-lg.svg");
  mask-image: url("../assets/wtp-mark-lg.svg");
  aspect-ratio: 829.3 / 588.23;
}
.logo-lock-h1 {
  -webkit-mask-image: url("../assets/wtp-lock-h1.svg");
  mask-image: url("../assets/wtp-lock-h1.svg");
  aspect-ratio: 750.92 / 115.57;
}
.logo-lock-h2 {
  -webkit-mask-image: url("../assets/wtp-lock-h2.svg");
  mask-image: url("../assets/wtp-lock-h2.svg");
  aspect-ratio: 690.31 / 181.66;
}
.logo-lock-v1 {
  -webkit-mask-image: url("../assets/wtp-lock-v1.svg?v=2");
  mask-image: url("../assets/wtp-lock-v1.svg?v=2");
  aspect-ratio: 360 / 440;
}
.logo-lock-v2 {
  -webkit-mask-image: url("../assets/wtp-lock-v2.svg");
  mask-image: url("../assets/wtp-lock-v2.svg");
  aspect-ratio: 431.26 / 527.29;
}

/* ── Film-grain overlay (the grit) ─────────────────────────── */
/* Clipped to #tedx-root (not the viewport) so on Squarespace the
   noise never paints over the site's own nav/footer. The oversized
   jittering layer lives on ::before inside this clipping frame. */
.grain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 9999;
}
.grain::before {
  content: "";
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  opacity: 0.10;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1.5%); }
  50%  { transform: translate(1.5%, -1%); }
  75%  { transform: translate(-1%, -2%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .grain::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── TV static (per-section animated noise, sits above any
       parallax background media) ───────────────────────────── */
.tv-static { overflow: hidden; }
.tv-static > .tedx-container { position: relative; z-index: 2; }
.tv-static::before {
  content: "";
  position: absolute;
  inset: -60%;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.35;
  animation: tv-static 0.55s steps(1, end) infinite;
}
@keyframes tv-static {
  0%   { transform: translate(0, 0);      opacity: 0.32; }
  12%  { transform: translate(-4%, 3%); }
  25%  { transform: translate(3%, -5%);   opacity: 0.4; }
  37%  { transform: translate(-2%, -4%); }
  50%  { transform: translate(5%, 2%);    opacity: 0.3; }
  62%  { transform: translate(-5%, -2%); }
  75%  { transform: translate(2%, 5%);    opacity: 0.38; }
  87%  { transform: translate(4%, -3%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .tv-static::before { animation: none; }
}

/* ── Parallax background media (Chicago skyline) ───────────── */
.parallax-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.parallax-img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 130%;
  min-width: 900px;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center 65%;
  will-change: transform;
}
/* Brand-tinted scrim: darkens/tints the photo so tier cards and
   ink text stay legible while the skyline reads through. */
.parallax-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(171, 188, 207, 0.88) 0%, rgba(171, 188, 207, 0.7) 45%, rgba(113, 130, 148, 0.85) 100%),
    linear-gradient(rgba(36, 51, 69, 0.35), rgba(36, 51, 69, 0.35));
  background-blend-mode: normal, multiply;
}
@media (prefers-reduced-motion: reduce) {
  .parallax-img { transform: translate(-50%, -50%) !important; }
}

/* ── Layout primitives ─────────────────────────────────────── */
/* "tedx-" prefixes avoid collisions with Squarespace's own
   .container/.section class names when embedded in a Code Block. */
.tedx-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.tedx-section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section-dark  { background: var(--ink); color: var(--sky); }
.section-navy  { background: var(--navy); color: var(--sky); }
.section-blue  { background: var(--sky); color: var(--ink); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.center { text-align: center; margin-top: 3rem; }

/* ── Type ──────────────────────────────────────────────────── */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.eyebrow-dark { color: var(--navy); }
.tick { display: inline-block; width: 2.5rem; height: 2px; background: var(--red); }
.tick-red { background: var(--red); }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
}
.title-dark { color: var(--ink); }

.section-lede {
  max-width: 62ch;
  margin: 1.5rem auto 0;
  text-align: center;
  color: var(--sky);
  font-size: 1.05rem;
}
.section-lede.left { margin-inline: 0; text-align: left; }

/* ── The Message ────────────────────────────────────────────── */
/* Tighter than the default section padding — no section-head here,
   the lockup + copy carry the section on their own. */
#message {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 5vw, 4.5rem);
}
/* Content (eyebrow + copy) rides above the background photo. */
#message .tedx-container { position: relative; z-index: 1; }

.message-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}
/* Column 1 is an empty spacer — the photo lives behind it. */
.message-grid .message-copy { grid-column: 2; }
@media (max-width: 700px) {
  .message-grid { grid-template-columns: 1fr; }
  .message-grid .message-copy { grid-column: 1; }
}

/* Background photo: anchored to the section itself, so it spans the
   full section height — "The Message" eyebrow sits over it. The mask
   fades the whole element (image + grain) into the navy to the right. */
.message-media {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 40vw;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, #000 40%, transparent 100%);
  mask-image: linear-gradient(to right, #000 40%, transparent 100%);
}
.message-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Darkening layer over the photo, under the lockup + grain. */
.message-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(7, 11, 20, 0.5);
}
/* White We The People lockup, centered on the photo (overrides the
   full-bleed img rule above). Mobile-only — on desktop the lockup
   heads the copy column instead (.copy-lockup). */
.message-media .media-lockup {
  display: none;
  inset: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(78%, 440px);
  height: auto;
  object-fit: contain;
  z-index: 3;
}
@media (max-width: 700px) {
  .message-media .media-lockup { display: block; }
}

/* Desktop: the lockup sits above the copy. */
.copy-lockup {
  width: min(60%, 400px);
  height: auto;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
@media (max-width: 700px) {
  .copy-lockup { display: none; }
}
@media (max-width: 700px) {
  /* Full-bleed from the section's very top, fading out at the bottom;
     the copy starts inside the faded tail (see .message-grid margin). */
  .message-media {
    bottom: auto;
    width: 100%;
    height: 96vw;
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  }
  /* Clears the 96vw image so the copy starts in its faded tail
     (retuned after the section-head was removed). */
  #message .message-grid { margin-top: calc(80vw - 3rem); }
}
.message-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.35;
}

.message-copy {
  width: 100%;
}
.message-copy p {
  color: var(--sky);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
}
.message-copy p + p { margin-top: 1.25rem; }
.message-copy .message-close {
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.25;
  margin-top: 1.75rem;
}
@media (max-width: 700px) {
  .message-copy { width: 100%; }
}

.body-dark { color: var(--navy); margin-bottom: 1.25rem; max-width: 52ch; }

.sub-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.25rem;
}
.sub-kicker {
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.sub-kicker.light { color: var(--red); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.95rem 2rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }

.btn-ghost { border-color: var(--sky); color: var(--sky); background: transparent; }
.btn-ghost:hover { border-color: #fff; color: #fff; }

.btn-dark { background: var(--ink); color: var(--sky); }
.btn-dark:hover { background: var(--navy); color: #fff; }

.btn-line {
  padding: 0.6rem 0;
  border: none;
  border-bottom: 2px solid var(--red);
  color: #fff;
  font-size: 0.72rem;
}
.btn-line:hover { color: var(--red); transform: none; }

.btn-nav {
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--pad);
  background: #000;
  transition: box-shadow 0.3s ease, height 0.3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(171, 188, 207, 0.12);
  height: 60px;
}

.brand {
  font-family: var(--font-body);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
}
.brand-ted { color: var(--red); font-weight: 800; }
.brand-city { color: #fff; font-weight: 400; margin-left: 1px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.main-nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 400;
  color: #fff;
  position: relative;
  padding-block: 0.35rem;
  white-space: nowrap;
}
.site-header .brand { flex-shrink: 0; margin-right: 2rem; }
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.22s ease;
}
.main-nav a:not(.btn):hover::after { width: 100%; }
.main-nav .dropdown a::after { display: none; }

/* ── Nav dropdowns ─────────────────────────────────────────── */
.nav-item { position: relative; }
.nav-drop-toggle { display: inline-flex; align-items: center; gap: 0.45rem; }
.caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
}
.nav-item.open > .nav-drop-toggle .caret { transform: rotate(180deg); }

.dropdown {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0;
}
.dropdown a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--sky);
  border-left: 2px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.dropdown a:hover {
  color: #fff;
  background: rgba(230, 43, 30, 0.14);
  border-left-color: var(--red);
}

@media (min-width: 921px) {
  .dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 240px;
    background: #05070d;
    border: 1px solid rgba(171, 188, 207, 0.15);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1001;
  }
  /* invisible bridge so the cursor can cross from link to panel */
  .dropdown::before {
    content: "";
    position: absolute;
    top: -18px;
    left: 0; right: 0;
    height: 18px;
  }
  .nav-item:hover > .dropdown,
  .nav-item:focus-within > .dropdown,
  .nav-item.open > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 6px);
  }
  .nav-item:hover .caret { transform: rotate(180deg); }
}

@media (max-width: 920px) {
  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
  }
  .dropdown {
    display: none;
    text-align: right;
    padding: 0.4rem 0 0.2rem;
  }
  .nav-item.open > .dropdown { display: block; }
  .dropdown a { padding: 0.45rem 0; border-left: none; }
  .dropdown a:hover { background: none; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: #fff; transition: transform 0.25s, opacity 0.25s; }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h); right: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
    background: rgba(7, 11, 20, 0.97);
    padding: 2.5rem var(--pad) 3rem;
    width: min(320px, 80vw);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid rgba(171, 188, 207, 0.15);
  }
  .main-nav.is-open { transform: translateX(0); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

/* Duotone “street photo” stand-in: layered gradients evoke fog + city light */
.hero-photo {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 70% 10%, rgba(113, 130, 148, 0.35), transparent 60%),
    radial-gradient(80% 60% at 20% 90%, rgba(36, 51, 69, 0.9), transparent 70%),
    linear-gradient(180deg, #0d1421 0%, var(--ink) 55%, #05070d 100%);
}

/* Background video sits over the gradient stand-in (which doubles as
   the loading/reduced-motion fallback) and under the skyline + scrim. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-skyline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(120px, 22vw, 240px);
  opacity: 0.55;
}
.hero-skyline svg { width: 100%; height: 100%; }
.hero-skyline path { fill: #05070d; }

/* Darker than the old gradient-only version: keeps the type legible
   over the moving video. */
.hero-scrim {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(7,11,20,0.72) 0%, rgba(7,11,20,0.55) 45%, rgba(7,11,20,0.85) 100%);
}
/* Grain + static over the video (reuses the tv-static noise/keyframes
   from the membership section). Lives on the scrim, so it grits up the
   footage but stays underneath the hero type. */
.hero-scrim::after {
  content: "";
  position: absolute;
  inset: -60%;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.3;
  animation: tv-static 0.55s steps(1, end) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero-scrim::after { animation: none; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(3rem, 8vh, 6rem) var(--pad);
  max-width: 900px;
}

.hero-kicker {
  margin-bottom: 2rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.85rem;
}
.brand-hero {
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.hero-kicker-year {
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--sky);
}

.hero-title { margin: 0; }
.hero-lockup {
  display: block;
  width: clamp(280px, 46vw, 560px);
  height: auto;
  margin-inline: auto;
}

/* Four Chicago-flag stars (chi-stars.svg, brand red baked in) in the
   old subtitle slot. Native ratio 99.76:16. */
.hero-stars {
  margin: 2rem auto 0;
  width: clamp(200px, 28vw, 320px);
  height: auto;
}

.hero-ctas {
  margin-top: 2.25rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--slate);
  flex-wrap: wrap;
}
.hero-meta .dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; }

/* ── Marquee ───────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(171, 188, 207, 0.15);
  background: #05070d;
  padding-block: 0.9rem;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ── Section head + carousel controls ──────────────────────── */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head .eyebrow { width: 100%; }
.venue-address {
  width: 100%;
  margin-top: 0.75rem;
  color: var(--sky);
  font-size: 0.95rem;
  line-height: 1.5;
}

.carousel-controls { display: flex; gap: 0.6rem; }
.ctrl {
  width: 48px; height: 48px;
  border: 1px solid rgba(171, 188, 207, 0.35);
  background: transparent;
  color: var(--sky);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ctrl:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ── Carousels (scroll-snap) ───────────────────────────────── */
.carousel {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; flex-shrink: 0; }

.speakers-cta { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 3rem); }

/* ── Speaker cards (poster style, from social concepts) ────── */
.speaker-card {
  width: clamp(200px, 19vw, 240px);
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.speaker-card:hover { transform: translateY(-6px); }
.speaker-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 2px;
}

.speaker-poster {
  position: relative;
  aspect-ratio: 375 / 460;
  overflow: hidden;
  background: #182742;
}
.speaker-card.alt .speaker-poster { background: var(--sky); }

/* Dark gradient scrim across the bottom of the poster. Hidden at rest,
   fades in on hover/focus so the white name + Read Bio stay legible over
   any photo (especially the lighter "alt" cards). Sits above the photo
   (z-index 1) but below the name block and brand mark (z-index 2). */
.speaker-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(7, 11, 20, 0.85) 0%,
    rgba(7, 11, 20, 0.55) 28%,
    transparent 58%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}
.speaker-card:hover .speaker-poster::after,
.speaker-card:focus-within .speaker-poster::after {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .speaker-poster::after { transition: none; }
}

/* Tiled quote-mark pattern painted through the official SVG */
.poster-pattern {
  position: absolute;
  inset: 0;
  background-color: rgba(171, 188, 207, 0.12);
  -webkit-mask-image: url("../assets/quotes.svg");
  mask-image: url("../assets/quotes.svg");
  -webkit-mask-size: 46% auto;
  mask-size: 46% auto;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  -webkit-mask-position: -12% -8%;
  mask-position: -12% -8%;
}
.speaker-card.alt .poster-pattern { background-color: rgba(36, 51, 69, 0.14); }

.speaker-poster .logo { z-index: 2; color: var(--sky); }
.speaker-card.alt .speaker-poster .logo { color: var(--navy); }

.tag-pill {
  background: var(--red);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.32rem 0.5rem;
  border-radius: 2px;
  white-space: nowrap;
}

.portrait {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  z-index: 1;
}
.portrait svg {
  width: 78%;
  height: auto;
  fill: rgba(171, 188, 207, 0.3);
}
.speaker-card.alt .portrait svg { fill: rgba(36, 51, 69, 0.4); }

/* Real headshots: full-bleed, duotoned to match the site's on-the-street
   photography treatment instead of the illustrated placeholder. */
.portrait.has-photo { display: block; }
.portrait.has-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(1) contrast(1.08) brightness(0.95);
  mix-blend-mode: luminosity;
}
.portrait.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(165deg, rgba(171, 188, 207, 0.4), rgba(36, 51, 69, 0.6));
  mix-blend-mode: color;
}
.speaker-card.alt .portrait.has-photo::after {
  background: linear-gradient(165deg, rgba(113, 130, 148, 0.4), rgba(7, 11, 20, 0.4));
}

/* Name + "Read Bio" travel together as one block. At rest the block
   sits low enough that Read Bio is pushed out below the poster's
   bottom edge (clipped by .speaker-poster's overflow:hidden); on
   hover/focus the whole block rises to its natural position,
   revealing Read Bio under the name. */
.poster-name-block {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  max-width: 50%;
  transform: translateY(2.6rem);
  transition: transform 0.35s ease;
}
.speaker-card:hover .poster-name-block,
.speaker-card:focus-within .poster-name-block {
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .poster-name-block { transition: none; }
}

.speaker-poster .speaker-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: #fff;
}

.poster-read-bio {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--red);
}

.poster-brand {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 2;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--red);
}
.poster-brand em { font-style: normal; font-weight: 400; color: #fff; }
.speaker-card.alt .poster-brand em { color: var(--ink); }

.speaker-info { padding: 1.1rem 0.15rem 0; }
.speaker-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}
.speaker-topic {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  margin: 0.35rem 0 0.9rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Event details ─────────────────────────────────────────── */
.section-blue .section-title { margin-bottom: 1.5rem; }

.event-visual { display: grid; place-items: center; }
.lockup-card {
  /* Chicago L photo, duotoned dark navy via multiply + dark scrim */
  background:
    linear-gradient(rgba(7, 11, 20, 0.55), rgba(7, 11, 20, 0.72)),
    linear-gradient(rgba(36, 51, 69, 0.85), rgba(36, 51, 69, 0.85)),
    url("../assets/chicago-l.jpg") center / cover no-repeat var(--navy);
  background-blend-mode: normal, multiply, normal;
  width: min(420px, 100%);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 12px 12px 0 rgba(36, 51, 69, 0.35);
}
.lockup-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(171, 188, 207, 0.3);
  pointer-events: none;
  z-index: 1;
}
/* Extra grain on the photo for the gritty film look */
.lockup-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.4;
}
.lockup-card .logo-lock-v2 {
  width: min(300px, 74%);
  margin-inline: auto;
  color: #eef3f9;
  position: relative;
  z-index: 1;
}

/* ── Quote carousel ────────────────────────────────────────── */
.section-quotes {
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.quote-bg {
  position: absolute;
  width: clamp(300px, 42vw, 560px);
  top: 50%;
  left: -6%;
  transform: translateY(-50%);
  color: rgba(171, 188, 207, 0.07);
  pointer-events: none;
}

.quote-stage { position: relative; min-height: 260px; display: grid; }
/* Swipeable/scrollable track — one quote per view, snapping into place. */
.quote-slides {
  position: relative;
  display: flex;
  gap: 0; /* explicit: cardStep() pages by exactly one slide width */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.quote-slides::-webkit-scrollbar { display: none; }
/* Each slide fills the track exactly (so snapping + paging line up);
   the copy inside is what's capped at 800px. */
.quote {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  scroll-snap-align: center;
  text-align: center;
  align-self: center;
  padding-inline: 1rem;
}

.quote p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  max-width: 800px;
  margin-inline: auto;
}
.quote cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sky);
}

.quote-dots {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2.5rem;
  align-self: end;
}
.qdot {
  width: 26px; height: 4px;
  border: none;
  background: rgba(171, 188, 207, 0.3);
  cursor: pointer;
  transition: background 0.25s;
}
.qdot.is-active { background: var(--red); }

/* ── Performers ────────────────────────────────────────────── */
.performer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1000px) { .performer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .performer-grid { grid-template-columns: 1fr; } }
/* Pre-announcement state: the coming-soon card is the grid's only child,
   so center it at normal card width instead of pinning to column 1. */
.performer-grid > .coming-soon:only-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 280px);
}

.performer-card {
  background: var(--navy);
  border: 1px solid rgba(171, 188, 207, 0.12);
  padding-bottom: 1.5rem;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.performer-card:hover { transform: translateY(-6px); border-color: rgba(230, 43, 30, 0.6); }

.performer-photo {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background:
    linear-gradient(160deg, rgba(113,130,148,0.3), rgba(7,11,20,0.75)),
    var(--navy);
  border-bottom: 2px solid var(--red);
}

.performer-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.35rem;
}
.performer-type {
  font-size: 0.82rem;
  color: var(--sky);
  padding-inline: 1.25rem;
  margin-bottom: 1rem;
}

.performer-card.coming-soon .performer-photo {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(
      -45deg,
      rgba(171, 188, 207, 0.05) 0 12px,
      transparent 12px 24px
    ),
    #101a2a;
}
.soon-mark { width: 62%; color: rgba(230, 43, 30, 0.6); }
.performer-card.coming-soon .performer-name { color: var(--red); }

/* ── Membership tiers ──────────────────────────────────────── */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
@media (max-width: 900px) { .tier-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

.tier-card {
  position: relative;
  overflow: hidden;
  background: #c3cfdf;
  padding: 0 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid rgba(7, 11, 20, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tier-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(7, 11, 20, 0.18); }

/* Quote-mark repeat pattern, same treatment as the speaker posters */
.tier-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: rgba(36, 51, 69, 0.06);
  -webkit-mask-image: url("../assets/quotes.svg");
  mask-image: url("../assets/quotes.svg");
  -webkit-mask-size: 46% auto;
  mask-size: 46% auto;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  -webkit-mask-position: -12% -8%;
  mask-position: -12% -8%;
}
.tier-card > * { position: relative; z-index: 1; }

.tier-band { height: 10px; width: calc(100% + 4rem); margin-inline: -2rem; background: var(--navy); margin-bottom: 1.25rem; }
.tier-featured .tier-band { background: var(--red); }

/* Middle (featured) card: dark navy variant */
.tier-featured {
  background: #182742;
  border-color: var(--red);
}
.tier-featured::before { background-color: rgba(171, 188, 207, 0.07); }

.tier-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}
.tier-featured .tier-name { color: #fff; }
.tier-body { color: var(--navy); font-size: 0.95rem; flex: 1; }
.tier-featured .tier-body { color: var(--sky); }

.tier-card .tier-brand {
  position: absolute;
  right: 1.1rem;
  top: calc(10px + 1rem); /* clears the color band */
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--red);
}
.tier-brand em { font-style: normal; font-weight: 400; color: var(--ink); }
.tier-featured .tier-brand em { color: #fff; }

/* ── Partners ──────────────────────────────────────────────── */
/* Four tiers, descending logo size: Beacon (largest) → Campfire →
   Torchlight → Flame (smallest). Higher tiers use fewer columns within
   a tighter max-width, so each logo box renders larger. */
.partner-tiers {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 3.75rem);
}
.partner-tier-name {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.5rem;
}

.partner-grid {
  display: grid;
  gap: 1.25rem;
  margin-inline: auto;
  width: 100%;
}
.partner-grid--lead       { grid-template-columns: 1fr; max-width: 460px; }
.partner-grid--beacon     { grid-template-columns: repeat(2, 1fr); max-width: 680px; }
.partner-grid--campfire   { grid-template-columns: repeat(3, 1fr); max-width: 860px; }
.partner-grid--torchlight { grid-template-columns: repeat(4, 1fr); max-width: 1000px; }
.partner-grid--flame      { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 860px) {
  .partner-grid--beacon,
  .partner-grid--campfire   { grid-template-columns: repeat(2, 1fr); }
  .partner-grid--torchlight,
  .partner-grid--flame      { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .partner-grid--torchlight,
  .partner-grid--flame      { grid-template-columns: repeat(2, 1fr); }
}

.partner-logo {
  aspect-ratio: 5 / 3;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(171, 188, 207, 0.3);
  color: var(--slate);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.partner-logo:hover {
  border-color: var(--sky);
  color: var(--sky);
  background: rgba(171, 188, 207, 0.04);
}

/* Filled slot: a real partner logo instead of the dashed placeholder. */
.partner-logo { position: relative; }
.partner-logo.is-filled {
  border: 1px solid rgba(171, 188, 207, 0.12);
}
/* Absolutely positioned so an oddly-shaped (e.g. square) logo can't grow
   its cell taller than the 5:3 aspect-ratio; padding insets it from the
   border, object-fit keeps it whole and centered. */
.partner-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: clamp(0.75rem, 2.5vw, 1.4rem);
  object-fit: contain;
}

/* ── Venue / schedule ──────────────────────────────────────── */
.venue-grid { align-items: start; }

.experience-list { list-style: none; margin-top: 0.5rem; }
.experience-list li {
  padding: 1.1rem 0 1.1rem 1.75rem;
  border-bottom: 1px solid rgba(171, 188, 207, 0.15);
  position: relative;
  font-size: 0.95rem;
}
.experience-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.55rem;
  width: 10px; height: 10px;
  background: var(--red);
}
.experience-list strong { color: #fff; letter-spacing: 0.08em; }

.note {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--slate);
  border-left: 2px solid var(--red);
  padding-left: 1rem;
}

.timeline { list-style: none; margin-top: 0.5rem; }
.timeline li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(171, 188, 207, 0.15);
  position: relative;
}
.timeline .time {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--red);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.timeline .what { color: #fff; font-weight: 600; font-size: 0.95rem; }
@media (max-width: 540px) {
  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}
.timeline .what em {
  display: block;
  margin-top: 0.3rem;
  font-style: normal;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--sky);
}

/* ── Food & beverage — vendor gallery ──────────────────────── */
.vendor-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.5rem, 1.2vw, 0.85rem);
}
@media (max-width: 900px) { .vendor-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .vendor-gallery { grid-template-columns: repeat(2, 1fr); } }

.vendor-shot {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  filter: brightness(0.94);
  transition: filter 0.3s ease, transform 0.3s ease;
}
.vendor-shot:hover {
  filter: brightness(1.05);
  transform: scale(1.015);
}

.vendor-note {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  text-align: center;
  color: var(--slate);
  font-size: 0.85rem;
  font-style: italic;
}

/* ── Get involved / pre-footer ─────────────────────────────── */
.section-involved {
  background:
    radial-gradient(90% 80% at 85% 20%, rgba(36, 51, 69, 0.9), transparent 65%),
    var(--ink);
  border-top: 1px solid rgba(171, 188, 207, 0.12);
}
.section-involved .section-title { margin-bottom: 1rem; }
.section-involved .btn { margin-top: 2.25rem; }
.involved-visual { display: grid; place-items: center; }
@media (max-width: 1024px) {
  .involved-visual { display: none; }
}
.mark-big {
  width: clamp(240px, 30vw, 420px);
  color: rgba(230, 43, 30, 0.9);
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: #05070d;
  border-top: 1px solid rgba(171, 188, 207, 0.12);
  padding-block: 3.5rem 2rem;
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(171, 188, 207, 0.1);
}
.footer-brand-row {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.footer-wtp {
  color: var(--slate);
  margin-top: 0.75rem;
}
.footer-wtp .logo { width: 150px; }
.footer-year {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.24em;
  color: var(--slate);
}
.footer-nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.footer-nav a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
}
.footer-nav a:hover { color: var(--red); }

.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(171, 188, 207, 0.25);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--sky);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--slate);
}

/* ── Scroll reveal ─────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── Speaker bio modal ───────────────────────────────────────
   Single shared dialog; content injected per-speaker by main.js. */
body.modal-open { overflow: hidden; }

.speaker-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.speaker-modal[hidden] { display: none; }

.speaker-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 13, 0.86);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.speaker-modal.is-open .speaker-modal-backdrop { opacity: 1; }

.speaker-modal-dialog {
  position: relative;
  z-index: 1;
  width: 85vw;
  height: 85vh;
  overflow: hidden; /* the body column scrolls, so the portrait stays put */
  background: var(--navy);
  border-top: 3px solid var(--red);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  display: grid;
  grid-template-columns: minmax(240px, 38%) 1fr;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.speaker-modal.is-open .speaker-modal-dialog {
  opacity: 1;
  transform: none;
}
/* Mobile: portrait + head (tags/name/titles) share a two-column top row,
   with the idea + bio dropping full-width beneath and scrolling. */
@media (max-width: 680px) {
  .speaker-modal-dialog {
    grid-template-columns: minmax(0, 42%) 1fr;
    /* Plain auto rows: minmax(34vh, auto) gets CLAMPED inside the fixed
       85vh dialog and made the head overflow under the bio. The row now
       sizes to the head's content; the media's own min-height keeps the
       portrait tall when the head is short. */
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "media head"
      "tags  tags"
      "rest  rest";
    align-content: start;
  }
  .speaker-modal-media { grid-area: media; min-height: 34vh; }
  /* Let head + tags + rest become grid items of the dialog itself. */
  .speaker-modal-body { display: contents; }
  .speaker-modal-head {
    grid-area: head;
    padding: 1.25rem 1.25rem 1rem;
  }
  /* Only the name (top of the column) needs to dodge the close button —
     the role/title lines below it can use the full column width. */
  .speaker-modal-head .speaker-modal-name { padding-right: 2.25rem; }
  .speaker-modal-tags {
    grid-area: tags;
    padding: 0.9rem 1.25rem 0;
    margin-bottom: 0.25rem;
    /* The fixed-height dialog squeezes auto rows; without this the row
       collapses and squashes the pills to half height. */
    min-height: max-content;
    align-items: flex-start;
  }
  .speaker-modal-tags .tag-pill { height: max-content; }
  .speaker-modal-rest {
    grid-area: rest;
    padding: 0 1.25rem 1.25rem;
  }
  /* The whole card scrolls as one — the portrait scrolls away with the
     text rather than the columns scrolling independently. */
  .speaker-modal-dialog {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.speaker-modal-watermark {
  position: absolute;
  top: -10%;
  right: -6%;
  width: 46%;
  color: rgba(171, 188, 207, 0.06);
  pointer-events: none;
  z-index: 0;
}

.speaker-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid rgba(171, 188, 207, 0.3);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.speaker-modal-close:hover { background: var(--red); border-color: var(--red); }
/* Mobile scrolls the whole dialog, so pin the close button to the viewport
   instead — the dialog is 85vw x 85vh centred, putting its top-right corner
   7.5vh / 7.5vw in. Must come after the base rule above to win. */
@media (max-width: 680px) {
  .speaker-modal-close {
    position: fixed;
    top: calc(7.5vh + 0.75rem);
    right: calc(7.5vw + 0.75rem);
  }
}

.speaker-modal-media {
  position: relative;
  background:
    linear-gradient(160deg, rgba(113, 130, 148, 0.3), rgba(7, 11, 20, 0.8)),
    var(--navy);
  min-height: 200px;
  overflow: hidden;
}
.speaker-modal-media .portrait { position: absolute; inset: 0; display: grid; place-items: end center; }
.speaker-modal-media .portrait svg { width: 82%; height: auto; fill: rgba(171, 188, 207, 0.3); }

/* Modal photos run untreated — no duotone/grain, unlike the cards. */
.speaker-modal-media .portrait.has-photo img {
  filter: none;
  mix-blend-mode: normal;
}
.speaker-modal-media .portrait.has-photo::after { content: none; }

.speaker-modal-body {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  overflow-y: auto;
}

/* Single-line strip between the head and the bio; overflowing pills
   scroll horizontally instead of wrapping. */
.speaker-modal-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.speaker-modal-tags::-webkit-scrollbar { display: none; }
.speaker-modal-tags .tag-pill {
  font-size: 0.62rem;
  padding: 0.34rem 0.6rem;
  white-space: nowrap;
  flex: none;
}

.speaker-modal-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  line-height: 1.05;
  color: #fff;
  margin-bottom: 0.4rem;
}
.speaker-modal-role {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.speaker-modal-formal {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--sky);
}
.speaker-modal-formal[hidden] { display: none; }

.speaker-modal-idea {
  margin-top: 1.25rem;
  padding-left: 1rem;
  border-left: 2px solid var(--red);
}
.speaker-modal-idea p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.25;
  color: #fff;
}

.speaker-modal-bio {
  margin-top: 1.5rem;
  color: var(--sky);
  font-size: 0.92rem;
  line-height: 1.65;
}
.speaker-modal-bio p + p { margin-top: 0.9rem; }

.speaker-modal-brand {
  display: block;
  margin-top: 1.75rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--red);
}
.speaker-modal-brand em { font-style: normal; font-weight: 400; color: var(--sky); }
