/* Robotic Manipulation: Foundations to Frontiers — Summer School 2026
   Design system: light editorial / research-school
   Type: Geist (sans) + Instrument Serif (display) + JetBrains Mono (utility)
*/

:root {
  /* accents — selectable at runtime */
  --accent-azure: oklch(0.52 0.17 255);
  --accent-teal: oklch(0.56 0.12 195);
  --accent-amber: oklch(0.62 0.15 55);
  --accent-crimson: oklch(0.52 0.18 25);
  --accent: var(--accent-azure);
  --accent-soft: color-mix(in oklch, var(--accent) 14%, transparent);
  --accent-ghost: color-mix(in oklch, var(--accent) 6%, transparent);

  /* LIGHT THEME (default) */
  --bg: oklch(0.995 0.002 90);
  --bg-elev: oklch(0.975 0.004 90);
  --bg-card: oklch(0.985 0.003 90);
  --bg-soft: oklch(0.955 0.005 90);
  --line: oklch(0.88 0.006 90);
  --line-soft: oklch(0.93 0.005 90);
  --fg: oklch(0.16 0.012 255);
  --fg-mute: oklch(0.42 0.012 255);
  --fg-dim: oklch(0.62 0.012 255);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --container: 1240px;
  --gutter: clamp(20px, 3vw, 40px);

  --t-fast: 160ms cubic-bezier(.2,.7,.2,1);
  --t: 260ms cubic-bezier(.2,.7,.2,1);
  --t-slow: 520ms cubic-bezier(.2,.7,.2,1);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: oklch(0.14 0.015 255);
  --bg-elev: oklch(0.18 0.018 255);
  --bg-card: oklch(0.19 0.015 255);
  --bg-soft: oklch(0.22 0.015 255);
  --line: oklch(0.28 0.015 255);
  --line-soft: oklch(0.24 0.012 255);
  --fg: oklch(0.96 0.005 255);
  --fg-mute: oklch(0.74 0.01 255);
  --fg-dim: oklch(0.56 0.012 255);
  color-scheme: dark;
}

[data-theme="dark"] {
  --accent-azure: oklch(0.72 0.14 240);
  --accent-teal: oklch(0.74 0.12 190);
  --accent-amber: oklch(0.78 0.14 70);
  --accent-crimson: oklch(0.64 0.17 25);
}

[data-accent="azure"] { --accent: var(--accent-azure); }
[data-accent="teal"] { --accent: var(--accent-teal); }
[data-accent="amber"] { --accent: var(--accent-amber); }
[data-accent="crimson"] { --accent: var(--accent-crimson); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.mono { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-size: 0.78em; letter-spacing: 0.02em; }
.serif { font-family: 'Instrument Serif', 'Times New Roman', serif; font-weight: 400; letter-spacing: -0.01em; }
.italic { font-style: italic; }

/* ======================== NAV ======================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-card);
}
.brand-mark .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.brand strong { font-family: 'Geist', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.brand span { color: var(--fg-mute); font-size: 13px; }
.brand .slash { color: var(--fg-dim); }

.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  padding: 8px 12px; border-radius: 8px;
  font-size: 13px; color: var(--fg-mute);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: var(--fg); background: var(--bg-soft); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--line);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: var(--accent); color: oklch(0.14 0.015 255);
  border-color: var(--accent);
  font-weight: 600;
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost:hover { background: var(--bg-soft); border-color: var(--line); }
.btn .arrow { display: inline-block; transition: transform var(--t); }
.btn:hover .arrow { transform: translateX(3px); }

/* ======================== HERO ======================== */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: end;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-mute);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
}
.eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-soft);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 60%, transparent); }
  70% { box-shadow: 0 0 0 10px color-mix(in oklch, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 0%, transparent); }
}

.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 22px 0 0;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.hero-meta .kv .k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 6px;
}
.hero-meta .kv .v { font-size: 15px; color: var(--fg); }
.hero-meta .kv .v strong { font-weight: 600; }

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

.hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  aspect-ratio: 5/4;
  min-height: 440px;
}
.hero-visual svg { width: 100%; height: 100%; display: block; }
.hero-visual .caption {
  position: absolute; inset: auto 0 0 0;
  padding: 20px;
  display: flex; justify-content: space-between; align-items: end; gap: 16px;
  color: var(--fg-mute);
  border-top: 1px solid var(--line-soft);
  background: color-mix(in oklch, var(--bg) 70%, transparent);
  backdrop-filter: blur(6px);
}
.hero-visual .caption .mono { color: var(--fg-dim); }
.hero-visual .corner {
  position: absolute; top: 16px; left: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-mute);
  padding: 5px 10px;
  background: color-mix(in oklch, var(--bg) 70%, transparent);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  border: 1px solid var(--line-soft);
}

/* Typographic hero variant */
.hero-type {
  padding: 160px 0 100px;
}
.hero-type .giant {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(52px, 9vw, 136px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  margin: 32px 0;
}
.hero-type .giant em { font-style: italic; color: var(--accent); }
.hero-type .sub {
  display: grid; grid-template-columns: auto auto auto;
  justify-content: start;
  gap: 10px; margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--line);
  align-items: stretch;
}
.hero-type .sub .kv-card {
  padding: 10px 14px 11px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  position: relative;
  transition: border-color var(--t), transform var(--t);
  display: flex; flex-direction: column; gap: 4px;
}
.hero-type .sub .kv-card:hover { border-color: var(--fg-mute); transform: translateY(-1px); }
.hero-type .sub .kv .k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; color: var(--fg-dim);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin: 0;
}
.hero-type .sub .kv .v { font-size: 14px; display: flex; align-items: baseline; gap: 8px; }
.hero-type .sub .sub-main {
  font-family: 'Instrument Serif', serif;
  font-size: 18px; line-height: 1; letter-spacing: -0.01em;
}
.hero-type .sub .sub-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--fg-mute);
  letter-spacing: 0.04em;
}

/* Venue stat — highlighted dual-line treatment */
.hero-type .sub .kv-venue {
  background: var(--accent-ghost);
  border: 1px solid color-mix(in oklch, var(--accent) 28%, transparent);
}
.hero-type .sub .kv-venue:hover { border-color: var(--accent); }
.hero-type .sub .kv-venue .k { color: var(--accent); }
.hero-type .sub .kv-venue .v {
  flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap;
}
.hero-type .sub .kv-venue .venue-line {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Instrument Serif', serif;
  font-size: 18px; line-height: 1;
  letter-spacing: -0.01em;
}
.hero-type .sub .kv-venue .venue-line strong {
  font-weight: 400; color: var(--accent); font-style: italic;
}
.hero-type .sub .kv-venue .venue-sep {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--fg-dim);
  padding: 0 1px; opacity: 0.7;
}
.hero-type .sub .kv-venue .dot-live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--accent) 24%, transparent);
  animation: pulse 2s ease-in-out infinite;
}

/* Split hero variant */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 92vh; padding-top: 80px; }
.hero-split .left { padding: 60px var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.hero-split .right {
  background: var(--bg-elev);
  position: relative;
  border-left: 1px solid var(--line);
  overflow: hidden;
}
.hero-split .right svg { width: 100%; height: 100%; display: block; }

/* ======================== SECTION BASICS ======================== */
section { position: relative; }
.section {
  padding: 100px 0;
  border-top: 1px solid var(--line-soft);
}
.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.section-head .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-dim);
  padding-top: 10px;
  display: flex; align-items: baseline; gap: 10px;
}
.section-head .label .num {
  display: inline-block; width: 24px; height: 24px;
  border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center;
  color: var(--accent);
  font-size: 10px;
}
.section-head h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.section-head h2 em { font-style: italic; color: var(--accent); }
.section-head .kicker { color: var(--fg-mute); font-size: 20px; margin-top: 18px; max-width: 58ch; }

/* ======================== ABOUT ======================== */
.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
}
.about-body { display: grid; gap: 24px; font-size: 20px; color: var(--fg); max-width: 68ch; }
.about-body p { margin: 0; }
.about-body p .drop {
  font-family: 'Instrument Serif', serif;
  font-size: 2.2em; line-height: 0.9;
  float: left; padding-right: 10px; padding-top: 5px;
  color: var(--accent);
}
.about-stats {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.about-stats .stat {
  padding: 24px 0 0; padding-right: 16px;
}
.about-stats .stat .n {
  font-family: 'Instrument Serif', serif;
  font-size: 48px; line-height: 1;
  letter-spacing: -0.02em;
}
.about-stats .stat .l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--fg-mute);
  margin-top: 8px;
}

/* ======================== PROGRAM ======================== */
.program-tabs {
  display: flex; gap: 4px;
  padding: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 36px;
}
.program-tabs button {
  padding: 10px 18px;
  font-size: 13px;
  border-radius: 999px;
  color: var(--fg-mute);
  transition: color var(--t), background var(--t);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
.program-tabs button.active {
  background: var(--fg);
  color: var(--bg);
}
.program-tabs button:not(.active):hover { color: var(--fg); }

.program-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.program-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 28px;
  padding: 22px 12px;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
  transition: background var(--t-fast), padding var(--t-fast);
  position: relative;
}
.program-row:hover { background: var(--bg-elev); padding-left: 22px; }
.program-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--accent);
  transform: scaleY(0); transform-origin: center;
  transition: transform var(--t);
}
.program-row:hover::before { transform: scaleY(1); }
.program-row .time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--fg-mute);
}
.program-row .title {
  font-size: 17px; line-height: 1.35;
}
.program-row .title .speaker {
  display: block; color: var(--fg-mute); font-size: 13px; margin-top: 4px;
}
.program-row .kind {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg-mute);
  white-space: nowrap;
}
.program-row[data-kind="lecture"] .kind { border-color: var(--accent); color: var(--accent); }
.program-row[data-kind="keynote"] .kind { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.program-row[data-kind="lab"] .kind { color: var(--fg); }
.program-row[data-kind="social"] .kind { color: var(--fg-dim); }

/* ======================== SPEAKERS ======================== */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.speakers-grid-4 { grid-template-columns: repeat(4, 1fr); }
.speaker {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
  cursor: default;
  display: flex; flex-direction: column;
}
.speaker:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 20px 40px -30px color-mix(in oklch, var(--accent) 40%, transparent); }
.speaker .photo {
  aspect-ratio: 4/5;
  background: var(--bg-soft);
  overflow: hidden;
  position: relative;
}
.speaker .photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  transition: filter var(--t-slow), transform var(--t-slow);
}
.speaker:hover .photo img { filter: grayscale(0); transform: scale(1.04); }
.speaker .photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, color-mix(in oklch, var(--bg-card) 80%, transparent), transparent 55%);
}
.speaker .meta { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.speaker .meta .name {
  font-family: 'Instrument Serif', serif;
  font-size: 24px; line-height: 1.05;
  letter-spacing: -0.01em;
}
.speaker .meta .aff {
  font-size: 13px; color: var(--fg-mute);
}
.speaker .meta .topic {
  margin-top: 8px; padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.speaker .meta .bio {
  font-size: 15px; line-height: 1.6; color: var(--fg-mute);
  margin-top: 4px;
}

/* ======================== LECTURES ======================== */
.lectures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.lecture {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  background: var(--bg-card);
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color var(--t), transform var(--t);
  position: relative;
}
.lecture:hover { border-color: var(--accent); transform: translateY(-3px); }
.lecture-head {
  display: flex; gap: 10px; align-items: center;
}
.lecture-day {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bg);
  background: var(--fg);
  padding: 4px 10px; border-radius: 999px;
}
.lecture-theme {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent-ghost);
}
.lecture-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 30px; line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 4px 0 0;
}
.lecture-blurb {
  color: var(--fg-mute);
  font-size: 17px; line-height: 1.6;
  margin: 0;
}
.lecture-speakers {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.lecture-speakers .stack { display: flex; }
.lecture-speakers .av {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--bg-card);
  background: var(--bg-soft);
  overflow: hidden;
  margin-left: -10px;
}
.lecture-speakers .av:first-child { margin-left: 0; }
.lecture-speakers .av img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.lecture-speakers .av-placeholder {
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--fg-mute);
}
.lecture-speakers .names {
  font-size: 15px;
  color: var(--fg);
}

/* ======================== VENUE ======================== */
.venue-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: stretch;
}
.venue-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--bg-card);
  display: flex; flex-direction: column; gap: 20px;
}
.venue-card h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 32px; line-height: 1; margin: 0;
  letter-spacing: -0.01em;
}
.venue-card .addr { color: var(--fg-mute); font-size: 17px; line-height: 1.65; }
.venue-card .info {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: auto;
  padding-top: 16px; border-top: 1px solid var(--line-soft);
}
.venue-card .info .k { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim); }
.venue-card .info .v { font-size: 16px; }

.venue-card .venue-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: var(--bg-soft); color: var(--fg-mute);
  border: 1px solid var(--line-soft);
  align-self: flex-start;
  margin-bottom: -8px;
}
.venue-card .venue-badge-online {
  background: var(--accent-ghost);
  border-color: color-mix(in oklch, var(--accent) 30%, transparent);
  color: var(--accent);
}
.venue-card .venue-badge .dot-live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--accent) 24%, transparent);
  animation: pulse 2s ease-in-out infinite;
}
.venue-card .venue-divider {
  height: 1px; background: var(--line);
  margin: 8px 0;
}
.venue-card .info-online {
  grid-template-columns: 1fr;
  margin-top: 0;
  padding-top: 16px;
}
.venue-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 520px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}
.venue-map iframe { width: 100%; height: 100%; min-height: 520px; display: block; filter: saturate(0.85) contrast(0.98); }
.venue-map .map-link {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 6px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color var(--t), color var(--t);
}
.venue-map .map-link:hover { border-color: var(--accent); color: var(--accent); }
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 380px;
  background:
    linear-gradient(135deg, var(--accent-ghost), transparent 60%),
    var(--bg-elev);
}
.venue-map svg { width: 100%; height: 100%; display: block; }

/* ======================== APPLY / CTA ======================== */
.apply {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 64px;
  background:
    radial-gradient(800px 400px at 85% 20%, var(--accent-soft), transparent 60%),
    radial-gradient(600px 300px at 10% 80%, color-mix(in oklch, var(--accent) 10%, transparent), transparent 60%),
    var(--bg-elev);
  position: relative;
  overflow: hidden;
}
.apply-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.apply h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 10px 0 0;
}
.apply h2 em { font-style: italic; color: var(--accent); }
.apply p { color: var(--fg-mute); font-size: 19px; margin: 18px 0 28px; max-width: 54ch; }
.apply-dates {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.apply-dates .box {
  padding: 18px 20px; border: 1px solid var(--line);
  background: color-mix(in oklch, var(--bg) 50%, transparent);
  border-radius: var(--radius);
}
.apply-dates .box .k { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim); }
.apply-dates .box .v { font-size: 19px; margin-top: 6px; font-family: 'Instrument Serif', serif; }
.apply-dates .box.hot { border-color: var(--accent); }
.apply-dates .box.hot .k { color: var(--accent); }

/* ======================== ORGANIZERS ======================== */
.org-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.org-card {
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg-card);
  display: flex; align-items: center; gap: 14px;
}
.org-card .avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg-soft); overflow: hidden;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.org-card .avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.org-card .name { font-size: 15px; font-weight: 500; }
.org-card .role { font-size: 12px; color: var(--fg-mute); margin-top: 2px; }

/* ======================== SPONSORS ======================== */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sponsor {
  padding: 36px 24px;
  background: var(--bg);
  display: grid; place-items: center;
  min-height: 180px;
  transition: background var(--t-fast);
}
.sponsor:hover { background: var(--bg-elev); }
.sponsor img {
  max-width: 100%; max-height: 100px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity var(--t-fast);
}
.sponsor-big img {
  max-width: 100%; max-height: 140px;
  opacity: 1;
}
.sponsor-label {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px; line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-top: 10px;
  text-align: center;
}
[data-theme="dark"] .sponsor img { filter: brightness(0) invert(1); opacity: 0.7; }
[data-theme="dark"] .sponsor-big img { filter: none; opacity: 1; }
.sponsor:hover img { opacity: 1; }
.sponsor-wordmark {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 38px; line-height: 1;
  letter-spacing: -0.01em;
  color: var(--fg);
  max-height: 56px;
  display: flex; align-items: center;
}
.sponsor .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 12px;
  text-align: center;
}

.funding-note {
  display: flex; align-items: center; gap: 18px;
  margin-top: 32px;
  padding: 18px 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg-elev);
  font-size: 13px; color: var(--fg-mute);
}
.funding-note img { height: 48px; width: auto; filter: none; }

/* ======================== FAQ ======================== */
.faq-list { border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line-soft);
}
.faq-q {
  width: 100%; text-align: left;
  padding: 22px 4px; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-size: 19px;
  font-family: 'Instrument Serif', serif;
  letter-spacing: -0.01em;
  transition: color var(--t-fast);
}
.faq-q:hover { color: var(--accent); }
.faq-q .plus {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: transform var(--t), background var(--t), border-color var(--t);
  flex-shrink: 0;
}
.faq-item.open .faq-q .plus { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }
.faq-item.open .faq-q .plus svg { stroke: var(--bg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height var(--t) ease;
}
.faq-a-inner {
  padding: 0 4px 24px;
  color: var(--fg-mute);
  max-width: 72ch;
  font-size: 16px; line-height: 1.65;
}

/* ======================== FOOTER ======================== */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding: 60px 0 30px;
  color: var(--fg-mute);
  font-size: 13px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim); margin: 0 0 14px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--fg); }
.footer-bottom {
  margin-top: 60px; padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--fg-dim);
}

/* ======================== APPLY MODAL ======================== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: color-mix(in oklch, var(--bg) 70%, transparent);
  backdrop-filter: blur(12px);
  display: grid; place-items: center;
  padding: 20px;
  animation: fadein var(--t);
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 520px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  animation: slideup var(--t);
}
@keyframes slideup { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 32px; margin: 0 0 8px; letter-spacing: -0.01em;
}
.modal .close {
  float: right;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 16px;
  transition: background var(--t-fast);
}
.modal .close:hover { background: var(--bg-soft); }
.field { display: grid; gap: 6px; margin-top: 18px; }
.field label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast);
  font-size: 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field .err { color: oklch(0.72 0.16 25); font-size: 11px; font-family: 'JetBrains Mono', monospace; }
.success {
  text-align: center; padding: 20px 0;
}
.success .ring {
  width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  display: grid; place-items: center;
  margin: 0 auto 20px;
}

/* ======================== TWEAKS PANEL ======================== */
.tweaks-panel {
  position: fixed; right: 20px; bottom: 20px;
  z-index: 200;
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.tweaks-panel h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 14px;
  display: flex; justify-content: space-between;
}
.tweaks-row { margin-bottom: 14px; }
.tweaks-row .lbl { font-size: 12px; color: var(--fg-mute); margin-bottom: 6px; }
.tweaks-row .opts { display: flex; gap: 6px; flex-wrap: wrap; }
.tweaks-row .opts button {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--fg-mute);
  transition: all var(--t-fast);
}
.tweaks-row .opts button.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tweaks-row .swatches { display: flex; gap: 8px; }
.tweaks-row .swatches button {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--line);
  padding: 0;
  transition: transform var(--t-fast);
}
.tweaks-row .swatches button.active { transform: scale(1.1); border-color: var(--fg); }

/* ======================== REVEALS ======================== */
.reveal { will-change: transform; opacity: 1; }
.reveal.in {
  animation: reveal 700ms cubic-bezier(.2,.7,.2,1) both;
}
@keyframes reveal {
  from { transform: translateY(24px); }
  to { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal.in { animation: none; }
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 980px) {
  .hero-grid, .venue-grid, .apply-grid, .about-grid, .section-head { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { min-height: 320px; aspect-ratio: 4/3; }
  .speakers-grid { grid-template-columns: repeat(2, 1fr); }
  .org-grid { grid-template-columns: repeat(2, 1fr); }
  .sponsors-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .program-row { grid-template-columns: 100px 1fr; }
  .program-row .kind { grid-column: 2; justify-self: start; }
  .hero-meta { grid-template-columns: 1fr; gap: 16px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .apply { padding: 40px 28px; }
  .nav-links { display: none; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-split .right { min-height: 320px; }
  .hero-type .sub { grid-template-columns: repeat(2, 1fr); }
}
