:root {
  --primary: #4338ca;
  --primary-dark: #2e2a7a;
  --primary-light: #6d5ce8;
  --accent: #f59e0b;
  --accent-dark: #d97f06;
  --cyan: #06b6d4;
  --rose: #e11d6a;
  --emerald: #059669;
  --bg: #ffffff;
  --bg-alt: #f8f7fc;
  --text: #1e1b2e;
  --text-muted: #635f75;
  --border: #e6e1f5;
  --max-width: 1040px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Nav (transparent overlay on the hero) ---------- */

nav.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(3, 8, 10, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

nav.site-nav .nav-inner {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

nav.site-nav .brand {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.9rem 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

nav.site-nav .brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--rose));
  display: inline-block;
}

nav.site-nav .nav-menu {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

nav.site-nav a {
  display: block;
  color: #cfcbe0;
  padding: 0.95rem 0.9rem;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
}

nav.site-nav a:hover, nav.site-nav a.active {
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}

nav.site-nav .dates-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

nav.site-nav .dates-btn:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
}

nav.site-nav .nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

nav.site-nav .nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
}

/* ---------- Hero ---------- */

header.site-header {
  position: relative;
  background:
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.4)),
    url("images/hero-bg.webp");
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 150px 1.5rem 110px;
}

header.site-header.hero-landing {
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: 0;
}

/* glass card shared look, used by cfp's centered hero-inner and the landing hero-card */
header.site-header .hero-inner,
.hero-card {
  position: relative;
  z-index: 1;
  background: rgba(4, 10, 12, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 48px;
}

header.site-header .hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.hero-content-wrap {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding-top: 150px;
  padding-bottom: 110px;
  display: flex;
  justify-content: flex-start;
}

.hero-card {
  max-width: 650px;
  text-align: left;
}

header.site-header .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

header.site-header h1 {
  font-size: 2.3rem;
  margin: 0 0 1rem;
  line-height: 1.25;
}

.hero-card h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.45);
  margin: 0 0 1.5rem;
}

header.site-header p.tagline {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 680px;
  margin: 0 auto;
}

.hero-card p.tagline,
.hero-card p.meta {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  line-height: 1.55;
  opacity: 1;
  margin: 0 0 1rem;
}

header.site-header .hero-ctas {
  margin-top: 2rem;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-card .hero-ctas {
  justify-content: flex-start;
  margin-top: 2.2rem;
}

.hero-card .cta:not(.ghost) {
  background: #f9a40d;
  color: #101010;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(249, 164, 13, 0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}

.hero-card .cta:not(.ghost):hover {
  transform: translateY(-2px);
  background: #ffb21c;
  color: #101010;
}

/* ---------- Layout ---------- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type { border-bottom: none; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0 0 0.4rem;
}

section h2 {
  font-size: 1.65rem;
  margin: 0 0 1.1rem;
  color: var(--text);
}

section h3 {
  font-size: 1.2rem;
  margin: 1.8rem 0 0.8rem;
  color: var(--text);
}

section.alt { background: var(--bg-alt); }

.section-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

/* ---------- Grids & cards ---------- */

.grid { display: grid; gap: 1.4rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ---------- People (speakers / organizers) ---------- */

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.6rem;
}

.person-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(46, 42, 122, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.person-card:hover, .person-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(46, 42, 122, 0.18);
}

.person-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.person-info p.view-bio {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0.5rem 0 0;
}

.person-photo {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.person-photo-tbd {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, var(--text-muted), #9a94ac);
}

.person-card-tbd .role { font-style: italic; }

.person-info { padding: 1rem 1.1rem 1.25rem; }
.person-info h3 { margin: 0 0 0.2rem; font-size: 1.02rem; }
.person-info p.role { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 0.5rem; line-height: 1.4; }
.person-info p.talk { font-size: 0.85rem; margin: 0 0 0.5rem; line-height: 1.4; }
.person-info p.talk em { color: var(--text); font-style: italic; }
.person-info p.email { margin: 0; }
.person-info p.email a { font-size: 0.85rem; }

/* ---------- Dates table ---------- */

table.dates {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(46, 42, 122, 0.06);
}

table.dates th, table.dates td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

table.dates th {
  color: #fff;
  background: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

table.dates tr:last-child td { border-bottom: none; }
table.dates tr:hover td { background: var(--bg-alt); }

.badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.badge.tbd { background: #9a94ac; }
.badge.confirmed { background: #2e9e6b; }
.badge.sm { font-size: 0.62rem; padding: 0.1rem 0.5rem; margin-left: 0.4rem; }

/* ---------- CTAs ---------- */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #241a00;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 700;
  margin-top: 1.2rem;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

.cta:hover { background: var(--accent-dark); text-decoration: none; color: #1a1200; }

.cta.ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: none;
}
.cta.ghost:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* ---------- Topics list ---------- */

ul.topics { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: 0.7rem; }
ul.topics li {
  position: relative;
  padding-left: 1.9rem;
}
ul.topics li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
}

/* ---------- Schedule ---------- */

.schedule-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.schedule-block h4 {
  margin: 0 0 0.8rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.schedule-block h4::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.schedule-block ul { margin: 0; padding-left: 1.2rem; }
.schedule-block li { margin-bottom: 0.4rem; }

.note {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}

footer {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--bg-alt);
}

footer .footer-brand {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

/* ---------- Responsive: hero, nav, stat strip ---------- */

@media (max-width: 1024px) {
  .hero-card { max-width: 560px; padding: 36px; }
  header.site-header.hero-landing { min-height: 640px; }
  .hero-content-wrap { padding-top: 130px; padding-bottom: 90px; }
}

@media (max-width: 860px) {
  nav.site-nav .nav-toggle { display: flex; }

  nav.site-nav .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    background: rgba(3, 8, 10, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1rem 1.5rem 1.5rem;
    display: none;
  }

  nav.site-nav .nav-menu.open { display: flex; }
  nav.site-nav ul { flex-direction: column; gap: 0.2rem; }
  nav.site-nav .dates-btn { align-self: flex-start; }
}

@media (max-width: 700px) {
  header.site-header:not(.hero-landing) h1 { font-size: 1.6rem; }
  nav.site-nav a { padding: 0.7rem 0.6rem; font-size: 0.82rem; }

  header.site-header.hero-landing { min-height: auto; }

  .hero-content-wrap {
    padding-top: 110px;
    padding-bottom: 64px;
    justify-content: center;
  }

  .hero-card {
    max-width: 100%;
    width: 100%;
    padding: 28px;
    border-radius: 18px;
  }

  .hero-card h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
}

@media (max-width: 480px) {
  .hero-card { padding: 22px; }
}

/* ---------- Bio modal ---------- */

dialog.bio-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  border: none;
  border-radius: var(--radius);
  padding: 0;
  width: 90%;
  max-width: 640px;
  box-shadow: 0 30px 70px rgba(20, 15, 50, 0.35);
  overflow: hidden;
}

dialog.bio-modal::backdrop {
  background: rgba(30, 27, 46, 0.6);
  backdrop-filter: blur(2px);
}

.bio-text {
  min-width: 0;
  padding: 2rem 1.8rem;
}

.bio-text h3 { margin: 0 0 0.3rem; font-size: 1.3rem; }
.bio-text p.role { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 1rem; }
.bio-text p:last-child { margin: 0; line-height: 1.7; }

.bio-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.bio-close:hover { background: rgba(0, 0, 0, 0.55); }

