:root {
  color-scheme: dark;
  --bg: #0b0e1c;
  --tint: #10142a;
  --ink: #e9ecf8;
  --muted: #a3abca;
  --line: #262d4d;
  --accent: #7d92ff;
  --accent-ink: #0b0e1c;
  --soft-a: #7d92ff;
  --soft-b: #c58bff;
  --soft-c: #ffa8cf;
  --surface: #121629;
  --card: #182042;
  --shadow: rgba(0, 0, 0, 0.45);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; display: block; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

h2 {
  font: 500 clamp(1.6rem, 3.2vw, 2rem)/1.15 var(--serif);
  font-variation-settings: "SOFT" 50, "opsz" 72;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
h3 { font: 600 1.05rem/1.3 var(--sans); margin: 0; }
.lede { font-size: 1.1rem; max-width: 72ch; margin: 0 0 1.5rem; }
.note { color: var(--muted); margin: -0.25rem 0 1.25rem; }
.empty { margin: 0; }

/* Sections alternate between plain and tinted, full width */
.sec { padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }
.sec.tint { background: var(--tint); }
.eyebrow {
  margin: 0 0 0.5rem;
  font: 600 0.78rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow span { color: var(--accent); margin-right: 0.7em; font-variant-numeric: tabular-nums; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.brand { font: 600 1.05rem var(--serif); color: var(--ink); text-decoration: none; }
.brand span { font-weight: 400; color: var(--muted); }
.nav nav { display: flex; gap: 1.4rem; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; padding: 4px 0; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.nav nav a:hover { color: var(--ink); border-color: var(--line); }
.nav nav a[aria-current="true"] { color: var(--ink); font-weight: 600; border-color: var(--accent); }
.menu-btn { display: none; font: inherit; background: none; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }

/* Hero */
.hero {
  position: relative; overflow: hidden; --mix: 0;
  min-height: min(calc(100svh - 71px), 900px);
  display: flex; align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3.5rem, 6vw, 4.5rem);
}
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  /* crisp grid on the left, dissolving into a soft glow on the right */
  -webkit-mask-image: linear-gradient(100deg, #000 5%, transparent 65%);
  mask-image: linear-gradient(100deg, #000 5%, transparent 65%);
}
.hero::after {
  content: ""; position: absolute; right: -10%; top: 5%; width: 55%; aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--soft-b) 35%, transparent), transparent 65%);
  filter: blur(40px); pointer-events: none;
  animation: float 16s ease-in-out infinite alternate;
}
@keyframes float { to { transform: translate(-6%, 8%) scale(1.08); } }
.hero-inner { position: relative; z-index: 1; }

h1 {
  margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.25em;
  font-family: var(--serif); font-size: clamp(3.4rem, 13vw, 9rem); line-height: 1.02; cursor: default;
}
.word { display: inline-block; padding: 0 0.04em; }
.w-twins {
  position: relative;
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "opsz" 144;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  filter: blur(calc(var(--mix) * 4px));
  opacity: calc(1 - var(--mix) * 0.3);
  letter-spacing: 0.01em;
}
.or { font: italic 300 0.32em var(--serif); color: var(--muted); }
.dq { display: inline-flex; align-items: baseline; }
.w-dreams {
  font-weight: 650;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  background: linear-gradient(100deg, var(--soft-a), var(--soft-b), var(--soft-c), var(--soft-a));
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: blur(calc((1 - var(--mix)) * 1.5px))
          drop-shadow(0 0 0.14em color-mix(in srgb, var(--soft-b) calc(60% - var(--mix) * 30%), transparent));
  animation: drift 12s linear infinite;
  padding-right: 0;
}
@keyframes drift { to { background-position: 250% 0; } }
.q {
  font-weight: 650; font-variation-settings: "SOFT" 100, "opsz" 144;
  color: var(--ink); padding-left: 0.02em;
}
.subtitle { font: 400 clamp(1.3rem, 3.5vw, 2rem)/1.2 var(--serif); font-variation-settings: "SOFT" 50; margin: 1.2rem 0 0; }
.tagline { font-size: 1.2rem; color: var(--muted); max-width: 52ch; margin: 1.5rem 0 1.5rem; }
.tagline .ln { display: block; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 0 0 2rem; }
.badge { padding: 0.45rem 0.95rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 500; font-size: 0.95rem; }
.badge.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.badge.todo-badge { border-style: dashed; border-color: var(--muted); color: var(--muted); background: transparent; }

.cue {
  position: absolute; left: 50%; bottom: 1.5rem; z-index: 1; margin-left: -12px;
  width: 24px; height: 38px; border: 2px solid var(--muted); border-radius: 14px; opacity: 0.8;
}
.cue span {
  position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--accent);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 0.8rem 1.6rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  transition: transform 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-todo { background: transparent; color: var(--muted); border: 2px dashed var(--muted); pointer-events: none; }

/* Divider: sharp ticks dissolving into soft gradient */
.divider { height: 14px; position: relative; }
.divider::before, .divider::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; }
.divider::before {
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 20px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 50%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 50%);
  border-top: 1px solid var(--line);
  border-image: linear-gradient(90deg, var(--line), transparent 50%) 1;
}
.divider::after {
  top: 4px; height: 6px;
  background: linear-gradient(90deg, transparent 40%, var(--soft-b), var(--soft-c));
  filter: blur(8px); opacity: 0.6;
}

/* About versus */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.side { position: relative; display: flex; flex-direction: column; padding: 1.25rem 1.5rem; background: var(--surface); overflow: hidden; }
.side > * { position: relative; z-index: 1; margin: 0; }
.side .kind { color: var(--muted); font-size: 0.9rem; }
.side h3 { font: 400 1.6rem/1.1 var(--serif); margin: 0.1rem 0 0.5rem; }
.side .line { margin-bottom: 0.6rem; }
.pc { display: grid; grid-template-columns: 1.5rem 1fr; margin-top: 0.3rem; }
.mk { color: var(--accent); font-weight: 700; }
.mk.minus::before { content: ""; display: inline-block; width: 0.55em; height: 2px; background: var(--accent); vertical-align: middle; }
.side.twins {
  border: 1px solid var(--accent); border-radius: 6px;
  background-image:
    linear-gradient(color-mix(in srgb, var(--line) 50%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 50%, transparent) 1px, transparent 1px);
  background-size: 20px 20px;
}
.side.twins h3 { font-variation-settings: "SOFT" 0; font-weight: 300; }
.side.dreams {
  border-radius: 26px; border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, var(--soft-a), var(--soft-b), var(--soft-c)) border-box;
}
.side.dreams::after {
  content: ""; position: absolute; right: -50px; top: -50px; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--soft-b) 55%, transparent), color-mix(in srgb, var(--soft-c) 25%, transparent) 55%, transparent 72%);
  filter: blur(18px); pointer-events: none; z-index: 0;
}
.side.dreams h3 { font-variation-settings: "SOFT" 100; font-weight: 600; }
.shared { max-width: 72ch; margin: 1.5rem 0 0; font-size: 1.05rem; }

/* Topics: rows line up across the three columns via subgrid */
.topic-groups { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto auto; column-gap: 1.75rem; row-gap: 0.9rem; }
.tgroup { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
.thead { display: flex; align-items: center; gap: 0.7rem; font: 500 1.25rem/1.2 var(--serif); font-variation-settings: "SOFT" 50; margin: 0; }
.mark { display: inline-block; flex: none; width: 10px; height: 10px; }
/* Build: crisp square in the twins blue */
.build .mark { background: var(--accent); }
/* Trust: blurred round marker in the dreams gradient */
.trust .mark { border-radius: 50%; background: linear-gradient(135deg, var(--soft-b), var(--soft-c)); filter: blur(1.5px); }
/* Combine: halfway between the two */
.combine .mark { border-radius: 32%; background: linear-gradient(135deg, var(--soft-a), var(--soft-b)); filter: blur(0.6px); }
.topic-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.25rem 1.15rem; }
.topic-title { font: 500 1.25rem/1.2 var(--serif); font-variation-settings: "SOFT" 50, "opsz" 48; margin: 0 0 0.5rem; }
.topic-text { margin: 0 0 0.9rem; font-size: 0.97rem; }
.open { margin-top: auto; }
.open::before { content: ""; display: block; border-top: 1px solid var(--line); margin-bottom: 0.6rem; }
.open-label { margin: 0 0 0.3rem; font: 600 0.72rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.open-text { margin: 0; font-size: 0.95rem; font-style: italic; font-weight: 500; }

/* Speakers: one group per side */
/* Both groups share one card row, so their cards are always the same height */
#speakers-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; column-gap: 2rem; }
.sgroup { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.sgroup .thead { margin-bottom: 0.9rem; }
.sgroup .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.sgroup .card { width: auto; }
.sgroup .card p { min-height: 2.8em; } /* reserve two affiliation lines so all cards match */
.sgroup .photo { width: 96px; height: 96px; }
.sg-twins .mark { background: var(--accent); }
.sg-dreams .mark { border-radius: 50%; background: linear-gradient(135deg, var(--soft-b), var(--soft-c)); filter: blur(1.5px); }

/* Cards */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.card {
  width: calc((100% - 3 * 1rem) / 4);
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.1rem 0.9rem; text-align: center;
  display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover, .card:focus-within { transform: translateY(-2px); box-shadow: 0 10px 24px var(--shadow); }
.card h3 { margin-top: 0.8rem; font-size: 1rem; color: var(--ink); overflow-wrap: anywhere; }
.card h3 a { color: var(--ink); }
.card p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.photo { position: relative; width: 104px; height: 104px; margin: 0 auto; padding: 3px; border-radius: 50%; box-shadow: 0 8px 20px var(--shadow); }
.photo::before, .photo::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
}
.photo::before { background: var(--accent); }
.photo::after { background: linear-gradient(135deg, var(--soft-a), var(--soft-b), var(--soft-c)); opacity: 0; transition: opacity 0.3s; }
.card:hover .photo::after, .card:focus-within .photo::after { opacity: 1; }
.photo img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 3px solid var(--card); background: #d9dce3;
}
.is-placeholder .photo img { opacity: 0.55; }

/* Organizers: five per row on desktop */
#organizers-grid .card { width: calc((100% - (var(--cols, 5) - 1) * 1rem) / var(--cols, 5)); }

/* Schedule timeline: time on the left, a rail with a marker per session type */
.timeline { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2.5rem; }
.slot { display: grid; grid-template-columns: 4.6rem 1fr; gap: 0; position: relative; break-inside: avoid; }
.slot.newcol { break-before: column; }
.when { display: flex; flex-direction: column; padding: 0.65rem 0.6rem 0 0; font-variant-numeric: tabular-nums; line-height: 1.35; }
.start { font-weight: 600; }
.end { color: var(--muted); font-size: 0.9rem; }
.what { position: relative; padding: 0.65rem 0 0.65rem 1.25rem; border-left: 1px solid var(--line); }
.what::before { content: ""; position: absolute; left: -5px; top: 0.95rem; width: 9px; height: 9px; background: var(--accent); }
.kind { margin: 0 0 0.15rem; font: 600 0.72rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.slot-title { font: 500 1.05rem/1.25 var(--serif); font-variation-settings: "SOFT" 50, "opsz" 48; margin: 0; }
.who { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.9rem; }
/* Breaks stay quiet: smaller, muted, hollow marker */
.slot-break .what { padding-block: 0.3rem; }
.slot-break .when { padding-top: 0.3rem; }
.slot-break .what::before { top: 0.6rem; width: 7px; height: 7px; left: -4px; background: var(--bg); border: 1px solid var(--muted); border-radius: 50%; }
.slot-break .slot-title { font: 400 1rem/1.4 var(--sans); color: var(--muted); }
.slot-break .kind { display: none; }
/* Lightning and posters: halfway marker */
.slot-lightning .what::before, .slot-poster .what::before { border-radius: 32%; background: linear-gradient(135deg, var(--soft-a), var(--soft-b)); filter: blur(0.6px); }
/* The debate: soft gradient marker and rail, tinted row */
.slot.hl { background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 0 12px 12px 0; }
.slot.hl .what { border-left: 3px solid transparent; background: linear-gradient(180deg, var(--soft-a), var(--soft-b), var(--soft-c)) left / 3px 100% no-repeat; background-origin: border-box; }
.slot.hl .what::before { left: -7px; width: 11px; height: 11px; border-radius: 50%; background: linear-gradient(135deg, var(--soft-b), var(--soft-c)); filter: blur(1.5px); }
.slot.hl .when { padding-left: 0.75rem; }
.slot.hl .slot-title { font-weight: 600; }

/* Tables */
table { border-collapse: collapse; width: 100%; }
.dates th, .dates td { padding: 0.55rem 0.75rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.dates tr:last-child > * { border-bottom: 1px solid var(--line); }
.dates { margin: 0; align-self: start; }
.dates th { font-weight: 500; width: 42%; }
.subhead { font: 600 1rem/1.3 var(--sans); margin: 0 0 0.6rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0 0 0.9rem; }
.chip { padding: 0.25rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 0.92rem; }
.cfp-note { max-width: 72ch; margin: 0 0 1.5rem; }
.cfp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; align-items: start; }
.cfp-left .btn { margin-top: 1rem; }
.tracks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
.tracks li { border: 1px solid var(--line); background: var(--card); padding: 0.7rem 1rem; border-radius: 10px; display: flex; flex-direction: column; }
.tracks strong { font-weight: 600; }
.tracks span { color: var(--muted); }

.prev { list-style: none; margin: 0; padding: 0; font-size: 1.05rem; }

/* Footer */
.footer { padding-block: 2rem; }
.foot-inner { display: flex; gap: 2rem; justify-content: space-between; flex-wrap: wrap; }
.foot-inner p { margin: 0.2rem 0; }
.foot-title { font: 600 1.1rem var(--serif); }
.todo { color: var(--muted); }
.sponsors { list-style: none; display: flex; gap: 0.75rem; padding: 0; margin: 0; flex-wrap: wrap; align-items: center; }
.sponsors img { height: 32px; width: auto; }
.logos { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 1rem 1.5rem; padding: 0; margin: 0; }
.logos a { display: block; }
.logos img { width: auto; max-width: none; filter: grayscale(1) invert(1); opacity: 0.75; transition: opacity 0.2s; }
.logos a:hover img, .logos a:focus-visible img { opacity: 1; }
.sponsor-ph { border: 1px dashed var(--muted); color: var(--muted); padding: 1rem 1.6rem; border-radius: 4px; font-size: 0.9rem; }

/* Tablet */
@media (max-width: 900px) {
  .timeline { columns: 1; }
  .slot.newcol { break-before: auto; }
  #speakers-grid { grid-template-columns: 1fr; }
  .sgroup + .sgroup { margin-top: 1.5rem; }
  .card, #organizers-grid .card { width: calc((100% - 2 * 1rem) / 3); }
  .cfp-grid { grid-template-columns: 1fr; }
  .topic-groups { display: block; }
  .tgroup { display: block; margin-bottom: 1.5rem; }
  .thead { margin-bottom: 0.7rem; }
  .topic-card + .topic-card { margin-top: 0.8rem; }
}

/* Mobile */
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav nav { display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.5rem 20px 1rem; }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 0.7rem 0; border-bottom: 0; border-left: 2px solid transparent; padding-left: 0.7rem; }
  .nav nav a[aria-current="true"] { border-left-color: var(--accent); }
  .brand span { display: none; }
  .logos { justify-content: flex-start; }
  .versus { grid-template-columns: 1fr; }
  .tracks { grid-template-columns: 1fr; }
  .slot { grid-template-columns: 4.6rem 1fr; }
  .slot.hl .when { padding-left: 0.5rem; }
  .what { padding-left: 1.1rem; }
}
@media (max-width: 560px) {
  .cards, .sgroup .cards { gap: 0.75rem; }
  .sgroup .cards { grid-template-columns: repeat(2, 1fr); }
  .card, #organizers-grid .card { width: calc((100% - 0.75rem) / 2); padding: 0.9rem 0.6rem; }
  .photo, .sgroup .photo { width: 88px; height: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero { --mix: 0 !important; }
  .cue span { opacity: 1; }
}
