:root {
  --background: #050506;
  --panel: #111118;
  --panel-strong: #1a1724;
  --foreground: #f7f3ff;
  --muted: #a9a2b8;
  --line: rgba(255, 255, 255, 0.12);
  --purple: #954bff;
  --pink: #ff58b8;
  --blue: #2fa8ff;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--foreground);
  min-width: 320px;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}

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

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

.site-shell {
  background:
    linear-gradient(180deg, rgba(147, 75, 255, 0.1), transparent 260px),
    linear-gradient(120deg, rgba(47, 168, 255, 0.11), transparent 36%),
    var(--background);
  min-height: 100vh;
  overflow-x: hidden;
}

.topbar {
  align-items: center;
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
  background: rgba(5, 5, 6, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 32px;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 max(20px, calc(50% - 550px));
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: 32px;
  width: 175px;
}

.brand img {
  display: block;
  height: auto;
  max-width: 100%;
  width: 175px;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  font-size: 15px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.78);
  padding: 27px 0 23px;
  position: relative;
}

.main-nav a.active,
.main-nav a:hover {
  color: #ffffff;
}

.main-nav a.active::after {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
}

.hero {
  margin: 0 auto;
  max-width: 1140px;
  padding: clamp(36px, 8vw, 74px) 20px 24px;
  text-align: center;
}

.eyebrow {
  color: var(--pink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 88px);
  letter-spacing: 0;
  line-height: 0.92;
  margin: 0;
  text-transform: uppercase;
}

.hero-copy {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  margin: 18px auto 0;
  max-width: 720px;
}

.filters,
.now-strip,
.agenda-wrap {
  margin: 0 auto;
  max-width: 1140px;
  padding-left: 20px;
  padding-right: 20px;
}

.filters {
  display: grid;
  gap: 18px;
  padding-bottom: 20px;
}

.date-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.date-pill {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.82);
  min-height: 62px;
  padding: 10px 12px;
  text-align: center;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.date-pill span {
  display: block;
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 900;
  text-transform: uppercase;
}

.date-pill small {
  color: rgba(255, 255, 255, 0.58);
  display: block;
  font-size: 11px;
  margin-top: 4px;
}

.date-pill.active {
  background: linear-gradient(135deg, #863cff, #c236ff 54%, #ff4fae);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 14px 34px rgba(161, 72, 255, 0.28);
  color: #ffffff;
}

.date-pill:hover {
  transform: translateY(-1px);
}

.filter-tools {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto;
}

.stage-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stage-chip {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  display: inline-flex;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
}

.stage-chip.active {
  background: var(--stage-soft, rgba(149, 75, 255, 0.28));
  border-color: var(--stage, rgba(255, 255, 255, 0.4));
  color: #ffffff;
}

.chip-dot,
.stage-dot {
  background: var(--stage);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--stage);
  display: inline-block;
  flex: 0 0 auto;
}

.chip-dot {
  height: 10px;
  width: 10px;
}

.agenda-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.search-control {
  align-items: center;
  display: flex;
  flex-direction: row-reverse;
  gap: 8px;
}

.search-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  min-width: 44px;
  padding: 0;
}

.search-icon {
  border: 2px solid #ffffff;
  border-radius: 50%;
  height: 15px;
  position: relative;
  width: 15px;
}

.search-icon::after {
  background: #ffffff;
  content: "";
  height: 2px;
  position: absolute;
  right: -6px;
  top: 12px;
  transform: rotate(45deg);
  width: 7px;
}

.search-box {
  display: block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    max-width 220ms ease,
    opacity 180ms ease;
}

.search-control.open .search-box,
.search-control:hover .search-box,
.search-control:focus-within .search-box {
  max-width: 240px;
  opacity: 1;
  pointer-events: auto;
}

.search-box input {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: #ffffff;
  height: 44px;
  outline: none;
  padding: 0 14px;
  width: 220px;
}

.search-box input:focus {
  border-color: rgba(255, 255, 255, 0.42);
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.now-strip {
  align-items: center;
  background: linear-gradient(90deg, rgba(47, 168, 255, 0.72), rgba(149, 75, 255, 0.78), rgba(255, 88, 184, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 14px;
  grid-template-columns: 44px 1fr 44px;
  margin-top: 2px;
  min-height: 58px;
  padding-bottom: 0;
  padding-top: 0;
}

.program-strip {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 58px;
  padding: 0 20px;
}

.program-strip div {
  align-items: center;
  line-height: 1.2;
  min-height: 0;
}

.now-strip div {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: center;
  min-width: 0;
}

.now-strip strong {
  font-size: clamp(16px, 2.1vw, 21px);
  text-transform: uppercase;
}

.now-strip span {
  font-size: clamp(14px, 1.8vw, 18px);
  opacity: 0.92;
}

.now-strip button {
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 28px;
  height: 100%;
}

.agenda-wrap {
  padding-bottom: 72px;
  padding-top: 28px;
}

.agenda-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 20px;
}

.agenda-meta p {
  margin: 0;
}

.timeline {
  display: grid;
  gap: 16px;
}

.time-block {
  display: grid;
  gap: 18px;
  grid-template-columns: 132px 1fr;
  animation: block-in 560ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: var(--block-delay, 0ms);
}

@keyframes block-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.time-marker {
  align-self: stretch;
  border-right: 1px solid var(--line);
  color: var(--muted);
  padding-right: 18px;
  padding-top: 12px;
  text-align: right;
}

.time-marker span,
.time-marker strong {
  display: block;
}

.time-marker span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.time-marker strong {
  color: #ffffff;
  font-size: 28px;
  margin-top: 4px;
  text-transform: uppercase;
}

.session-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.session-card {
  background:
    linear-gradient(135deg, var(--stage-soft), rgba(27, 25, 38, 0.96) 72%),
    #171520;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--stage);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  min-height: 208px;
  overflow: hidden;
  padding: 18px;
  position: relative;
  animation: isotope-in 680ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: var(--delay, 0ms);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

@keyframes isotope-in {
  from {
    opacity: 0;
    filter: blur(5px);
    transform: translate3d(var(--shift-x, -30px), 42px, 0) scale(0.92) rotate(var(--tilt, -1deg));
  }
  58% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, -5px, 0) scale(1.012) rotate(0deg);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

.session-card::after {
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  content: "";
  height: 120%;
  left: -80%;
  opacity: 0;
  position: absolute;
  top: -10%;
  transform: rotate(8deg);
  transition:
    left 260ms ease,
    opacity 260ms ease;
  width: 42%;
}

.session-card:hover {
  border-color: color-mix(in srgb, var(--stage) 70%, #ffffff);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
  transform: translateY(-3px);
}

.session-card:hover::after {
  left: 118%;
  opacity: 1;
}

.card-stage {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--stage);
  display: flex;
  font-size: 13px;
  font-weight: 900;
  gap: 8px;
  line-height: 1.25;
  padding-bottom: 12px;
  text-transform: uppercase;
}

.stage-dot {
  height: 13px;
  width: 13px;
}

.session-card h2 {
  color: #ffffff;
  font-size: clamp(18px, 2vw, 23px);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 18px 0 8px;
}

.session-detail {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.35;
  margin: 0;
}

.card-foot {
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  font-size: 13px;
  gap: 12px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
}

.card-foot strong {
  color: #ffffff;
  font-size: 13px;
  white-space: nowrap;
}

.empty-state {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 42px 20px;
  text-align: center;
}

.empty-state h2 {
  font-size: 24px;
  margin: 0 0 8px;
}

.empty-state p {
  color: var(--muted);
  margin: 0;
}

.pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}

.pagination button {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #ffffff;
  min-height: 40px;
  min-width: 42px;
  padding: 0 14px;
}

.detail-shell {
  padding-bottom: 90px;
}

.detail-hero {
  background:
    radial-gradient(circle at 78% 12%, var(--stage-soft), transparent 31%),
    linear-gradient(120deg, rgba(163, 76, 255, 0.2), transparent 54%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-hero-inner,
.detail-section {
  margin: 0 auto;
  max-width: 1140px;
  padding-left: 20px;
  padding-right: 20px;
}

.detail-hero-inner {
  padding-bottom: 58px;
  padding-top: 54px;
}

.back-link {
  color: rgba(255, 255, 255, 0.68);
  display: inline-block;
  font-size: 14px;
  margin-bottom: 40px;
}

.back-link:hover {
  color: #ffffff;
}

.detail-category,
.session-kicker {
  align-items: center;
  color: var(--stage);
  display: flex;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  gap: 9px;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.detail-hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.94;
  margin: 0;
  max-width: 900px;
  text-transform: uppercase;
}

.detail-lede {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
  margin: 22px 0 0;
  max-width: 820px;
}

.event-facts {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 42px 0 0;
}

.event-facts div {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 24px 0 0;
}

.event-facts div + div {
  padding-left: 24px;
}

.event-facts div:last-child {
  border-right: 0;
}

.event-facts dt {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.event-facts dd {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  margin: 7px 0 0;
}

.detail-section {
  padding-top: 64px;
}

.section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-heading .eyebrow {
  margin: 0 0 4px;
}

.section-heading h2 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.speaker-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.speaker-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 4px solid var(--stage);
  border-radius: 18px;
  overflow: hidden;
}

.speaker-card img {
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  width: 100%;
}

.speaker-card div {
  padding: 16px;
}

.speaker-card h3 {
  font-size: 18px;
  line-height: 1.1;
  margin: 0 0 7px;
}

.speaker-card p,
.speaker-card strong {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.speaker-card p {
  color: rgba(255, 255, 255, 0.62);
}

.speaker-card strong {
  color: var(--stage);
  margin-top: 7px;
}

.detail-timeline {
  display: grid;
  gap: 14px;
}

.detail-session-card {
  align-items: center;
  background:
    linear-gradient(110deg, var(--stage-soft), rgba(27, 25, 38, 0.97) 45%),
    #171520;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 7px solid var(--stage);
  border-radius: 18px;
  display: grid;
  gap: 22px;
  grid-template-columns: 150px minmax(0, 1fr) minmax(220px, 300px);
  min-height: 150px;
  padding: 22px 24px;
}

.detail-session-time {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 18px;
}

.detail-session-time span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-session-time strong {
  font-size: 18px;
  margin-top: 5px;
}

.detail-session-content {
  min-width: 0;
}

.session-kicker {
  margin-bottom: 9px;
}

.session-kicker .stage-dot {
  height: 10px;
  width: 10px;
}

.session-kicker i {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.5);
  font-style: normal;
  margin-left: 2px;
  padding-left: 10px;
}

.detail-session-content h3 {
  font-size: clamp(21px, 2.5vw, 29px);
  line-height: 1.08;
  margin: 0;
}

.detail-session-content > p:last-child {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.45;
  margin: 11px 0 0;
}

.session-speaker {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.session-speaker img {
  border: 2px solid var(--stage);
  border-radius: 50%;
  height: 60px;
  object-fit: cover;
  width: 60px;
}

.session-speaker strong,
.session-speaker span {
  display: block;
}

.session-speaker strong {
  font-size: 15px;
}

.session-speaker span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 4px;
}

.no-speaker {
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  justify-content: flex-start;
}

.pagination button.active {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border-color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 12px;
    padding-top: 16px;
    position: sticky;
  }

  .brand {
    height: 30px;
    width: 175px;
  }

  .main-nav {
    gap: 18px;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .main-nav a {
    padding: 8px 0;
  }

  .date-row {
    display: flex;
    margin-left: -20px;
    margin-right: -20px;
    overflow-x: auto;
    padding: 0 20px 4px;
    scroll-snap-type: x proximity;
  }

  .date-pill {
    flex: 0 0 150px;
    scroll-snap-align: start;
  }

  .filter-tools {
    grid-template-columns: 1fr;
  }

  .agenda-actions {
    justify-content: flex-start;
  }

  .now-strip {
    grid-template-columns: 36px 1fr 36px;
  }

  .now-strip div {
    align-items: center;
    flex-direction: column;
    gap: 1px;
  }

  .time-block {
    grid-template-columns: 1fr;
  }

  .time-marker {
    border-right: 0;
    display: flex;
    gap: 10px;
    padding: 0;
    text-align: left;
  }

  .time-marker strong {
    margin-top: 0;
  }

  .session-grid {
    grid-template-columns: 1fr;
  }

  .speaker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-session-card {
    grid-template-columns: 130px 1fr;
  }

  .session-speaker {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 34px;
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(38px, 14vw, 58px);
    max-width: 9ch;
  }

  .agenda-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .stage-row {
    flex-wrap: nowrap;
    margin-left: -20px;
    margin-right: -20px;
    overflow-x: auto;
    padding: 0 20px 4px;
  }

  .stage-chip {
    flex: 0 0 auto;
  }

  .agenda-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .search-control {
    align-items: stretch;
    flex-direction: row-reverse;
  }

  .search-box,
  .search-control.open .search-box,
  .search-control:hover .search-box,
  .search-control:focus-within .search-box {
    flex: 1;
    max-width: none;
    opacity: 1;
    pointer-events: auto;
  }

  .search-box input {
    width: 100%;
  }

  .session-card {
    background: #1b1827;
    border-left-width: 8px;
    min-height: 152px;
    padding: 16px 52px 16px 20px;
  }

  .session-card::before {
    color: #ffffff;
    content: ">";
    font-size: 34px;
    line-height: 1;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .session-card h2 {
    font-size: clamp(23px, 8vw, 32px);
    margin-top: 12px;
  }

  .card-stage {
    border-bottom: 0;
    font-size: clamp(18px, 5vw, 24px);
    padding-bottom: 0;
  }

  .stage-dot {
    height: 24px;
    width: 24px;
  }

  .session-time {
    font-size: 22px;
  }

  .card-foot {
    display: none;
  }

  .event-facts {
    grid-template-columns: 1fr 1fr;
  }

  .event-facts div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 0;
    padding: 18px 12px 18px 0;
  }

  .event-facts div + div {
    padding-left: 12px;
  }

  .speaker-grid {
    display: flex;
    margin-left: -20px;
    margin-right: -20px;
    overflow-x: auto;
    padding: 0 20px 6px;
  }

  .speaker-card {
    flex: 0 0 210px;
  }

  .detail-session-card {
    align-items: start;
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .detail-session-time {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    border-right: 0;
    padding-bottom: 14px;
    padding-right: 0;
  }

  .session-speaker {
    grid-column: 1;
  }
}
