:root {
  --ink: #171a22;
  --ink-soft: #3d4454;
  --muted: #6b7285;
  --paper: #f5f6f8;
  --paper-2: #e9ecf2;
  --line: #d3d8e2;
  --accent: #1d4ed8;
  --accent-deep: #1e3a8a;
  --accent-soft: #dbe4ff;
  --hero-text: #141824;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-deep);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(245, 246, 248, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--hero-text);
  text-decoration: none;
}

.wordmark span {
  font-weight: 400;
  opacity: 0.55;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border: 1.5px solid var(--accent);
  color: var(--accent-deep) !important;
}

.nav-cta:hover {
  background: var(--accent-soft);
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  display: grid;
  place-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1.5rem 1.25rem;
  background: rgba(245, 246, 248, 0.97);
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--paper-2);
}

@media (min-width: 720px) {
  .nav {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--hero-text);
}

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

.hero-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--header-h) + 4rem) 1.5rem 5rem;
}

@media (min-width: 900px) {
  .hero-content {
    padding-bottom: 6.5rem;
  }
}

.hero-venue {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero h1 {
  margin: 0 0 1.25rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7.5vw, 5.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: rise 1s var(--ease) 0.28s forwards;
}

.hero-lede {
  margin: 0 0 2rem;
  max-width: 32rem;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-soft);
  opacity: 0;
  animation: rise 1s var(--ease) 0.42s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: rise 1s var(--ease) 0.55s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Constellation: star-map with stroke-synced node reveal */
.constellation .figure {
  opacity: 0.32;
}

.constellation .figure.faint {
  opacity: 0.16;
}

.constellation .line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}

.nodes .node {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.55);
  transition:
    opacity 0.25s var(--ease),
    transform 0.35s var(--ease);
}

.nodes .node.is-visible {
  opacity: 0.9;
  transform: scale(0.9);
}

.nodes .node.is-visible.is-traveling {
  opacity: 1;
  transform: scale(0.75);
  transition: opacity 0.15s var(--ease);
}

.nodes .node.is-visible:not(.is-traveling) {
  opacity: 0.88;
  transform: scale(1);
}

.nodes .node.field.is-visible {
  opacity: 0.4;
  transform: scale(1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: #f8faff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #f8faff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: rgba(23, 26, 34, 0.06);
  color: var(--ink);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-inner.narrow {
  max-width: 42rem;
}

.section h2 {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section h2.subhead {
  margin-top: 3.25rem;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
}

.about {
  background: var(--paper);
}

.about p {
  color: var(--ink-soft);
  margin: 0 0 1.15rem;
}

.focus-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.focus-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.focus-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.focus-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
}

/* People grids */
.speakers {
  background: var(--paper-2);
}

.organizers {
  background: var(--paper);
}

.organizers a {
  text-decoration: none;
  color: inherit;
}

.person-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.25rem;
}

@media (min-width: 640px) {
  .person-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem 1.5rem;
  }
}

@media (min-width: 960px) {
  .person-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.person-grid li {
  text-align: center;
}

.person-grid img {
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent-soft);
}

@media (min-width: 640px) {
  .person-grid img {
    width: 8.5rem;
    height: 8.5rem;
  }
}

.person-grid h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.person-grid p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Subpages */
.page-hero {
  padding: calc(var(--header-h) + 3.5rem) 0 2.5rem;
  background:
    linear-gradient(165deg, #e9ecf2 0%, #dde3ef 55%, #cfd7e8 100%);
}

.page-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.page-lede {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-section {
  padding-top: 3rem;
}

.page-section h2 {
  margin-top: 2.75rem;
}

.page-section h2:first-of-type {
  margin-top: 0;
}

.page-section p {
  color: var(--ink-soft);
}

.date-list {
  margin: 0 0 0.5rem;
  padding: 0;
}

.date-list > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.date-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

@media (min-width: 560px) {
  .date-list > div {
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
    align-items: baseline;
  }
}

.date-list dt {
  font-weight: 500;
  color: var(--ink);
}

.date-list dd {
  margin: 0;
  color: var(--muted);
}

.topic-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.topic-list li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.topic-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.topic-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.5rem;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--accent);
}

.submission-guidelines {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.submission-guidelines li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.25rem;
  color: var(--ink-soft);
}

.submission-guidelines li:first-child {
  border-top: 1px solid var(--line);
}

.submission-guidelines li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.5rem;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--accent);
}

.submission-guidelines li:last-child {
  border-bottom: 1px solid var(--line);
}

.cfp-header {
  padding: 0 0 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.note {
  /* margin-top: 1.5rem; */
  /* padding: 0.5rem 0; */
  /* border-top: 1px solid var(--line); */
  font-size: 0.98rem;
  color: var(--muted);
}

.note-end {
  /* margin-top: 1.5rem; */
  /* padding: 0.5rem 0; */
  /* border-top: 1px solid var(--line); */
  font-size: 0.98rem;
  /* color: var(--muted); */
  font-weight: 500;
  color: var(--ink);
}

/* Schedule table */
.schedule-wrap {
  max-width: 52rem;
}

.schedule-note {
  margin: 0 0 2rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.schedule-table th,
.schedule-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.schedule-table th {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
}

.schedule-table td:first-child {
  width: 9.5rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink-soft);
}

.schedule-table td:last-child {
  color: var(--ink);
}

.schedule-table tbody tr:hover td {
  background: rgba(29, 78, 216, 0.04);
}

.schedule-table .row-break td {
  color: var(--muted);
  font-style: normal;
  background: rgba(23, 26, 34, 0.03);
}

.schedule-table .row-break td:last-child {
  color: var(--muted);
}

.schedule-table strong {
  font-weight: 600;
}

.breakout-list {
  margin: 0.45rem 0 0;
  padding: 0 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.breakout-list li {
  margin: 0.15rem 0;
}

.nav a[aria-current="page"] {
  color: var(--ink);
}

/* Footer */
.site-footer {
  padding: 2.25rem 0;
  background: #12151e;
  color: #9aa3b5;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-left,
.footer-right {
  min-width: 0;
}

.footer-right {
  margin-left: auto;
  text-align: right;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #eef1f7;
}

.footer-contact-label {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eef1f7;
}

.footer-contact {
  margin: 0;
  font-size: 0.92rem;
  color: #9aa3b5;
}

.footer-contact a {
  color: #9aa3b5;
  text-decoration: none;
}

.site-footer p {
  margin: 0 0 0.35rem;
}

.site-footer p:last-child {
  margin: 0;
  font-size: 0.92rem;
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-venue,
  .hero h1,
  .hero-lede,
  .hero-actions,
  .nodes .node,
  [data-reveal] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .constellation .line {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }

  .constellation .figure {
    opacity: 0.32 !important;
  }

  .constellation .figure.faint {
    opacity: 0.16 !important;
  }

  .nodes .node.field {
    opacity: 0.4 !important;
  }
}

@media (max-width: 560px) {
  .schedule-table th,
  .schedule-table td {
    padding: 0.75rem 0.65rem;
  }

  .schedule-table td:first-child {
    width: auto;
    white-space: normal;
    font-size: 0.9rem;
  }
}
