:root {
  color-scheme: dark;
  --ink: #f7f5ff;
  --muted: #b8b4cc;
  --surface: rgba(255, 255, 255, 0.075);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.14);
  --navy: #090624;
  --navy-soft: #15103b;
  --cyan: #61d4ed;
  --cyan-strong: #2fb9da;
  --yellow: #f7dd4c;
  --red: #ff5c52;
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 14% 8%, rgba(90, 60, 183, 0.34), transparent 34rem),
    radial-gradient(circle at 86% 18%, rgba(63, 194, 220, 0.16), transparent 32rem),
    var(--navy);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  padding: 24px 0;
}

.header-inner {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.brand img {
  width: min(246px, 55vw);
  height: auto;
}

.header-link,
.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.header-link:hover,
.text-link:hover {
  color: var(--ink);
}

.header-link::after,
.text-link::after {
  content: "↗";
  font-size: 1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 2px;
  background: currentColor;
  content: "";
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 82px;
}

.hero::after {
  position: absolute;
  top: -80px;
  right: -180px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.022),
    0 0 0 140px rgba(255, 255, 255, 0.014);
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(36px, 7vw, 92px);
}

.hero h1,
.event-copy h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.3rem);
  font-weight: 920;
  letter-spacing: -0.068em;
  line-height: 0.91;
}

.hero h1 span {
  display: block;
  color: var(--cyan);
}

.hero-lede {
  max-width: 660px;
  margin: 30px 0 0;
  color: #d9d6e8;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.hero-aside {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-aside strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.2;
}

.hero-aside p {
  margin: 0;
  color: var(--muted);
}

.hero-aside .week-dates {
  display: flex;
  margin-top: 24px;
  gap: 8px;
}

.date-chip {
  flex: 1;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}

.date-chip span,
.date-chip b {
  display: block;
}

.date-chip span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.date-chip b {
  font-size: 1.22rem;
}

.events-section {
  padding: 36px 0 104px;
}

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

.section-heading h2,
.details-card h2,
.next-events h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.section-heading p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
}

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

.event-card {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.event-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-6px);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  padding: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025)),
    var(--navy-soft);
}

.poster-frame img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
}

.card-order {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(9, 6, 36, 0.78);
  font-size: 0.8rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.event-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(97, 212, 237, 0.12);
}

.event-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.event-card-body > p {
  margin: 14px 0 24px;
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  padding-top: 16px;
}

.card-link::after {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--navy);
  content: "→";
  transition: transform 180ms ease;
}

.card-link:hover::after {
  transform: translateX(3px);
}

.trust-strip {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.trust-inner {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 20px;
}

.trust-intro,
.trust-item {
  min-height: 80px;
}

.trust-intro {
  display: flex;
  align-items: center;
  font-size: 1.08rem;
  font-weight: 850;
}

.trust-item {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.trust-item b,
.trust-item span {
  display: block;
}

.trust-item b {
  margin-bottom: 5px;
  font-size: 1.08rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  padding: 44px 0 116px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.footer-links a,
.footer-links button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

/* Event detail */
.event-page {
  --accent: var(--cyan);
  --accent-soft: rgba(97, 212, 237, 0.18);
}

.event-page.theme-yellow {
  --accent: var(--yellow);
  --accent-soft: rgba(247, 221, 76, 0.17);
}

.event-page.theme-red {
  --accent: #ff6d62;
  --accent-soft: rgba(255, 92, 82, 0.18);
}

.event-page .eyebrow {
  color: var(--accent);
}

.event-hero {
  padding: 48px 0 88px;
}

.event-hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(290px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(38px, 7vw, 96px);
}

.event-poster-wrap {
  position: relative;
}

.event-poster {
  display: grid;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 10px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.event-poster img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: contain;
}

.event-poster-wrap::before {
  position: absolute;
  inset: 12% -8% -5% 10%;
  z-index: -1;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  content: "";
  filter: blur(26px);
}

.event-copy h1 {
  max-width: 760px;
  font-size: clamp(3.05rem, 7.1vw, 6.8rem);
}

.event-copy h1 em {
  color: var(--accent);
  font-style: normal;
}

.event-subtitle {
  max-width: 680px;
  margin: 24px 0 0;
  color: #d8d5e7;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
}

.detail-pill {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #e4e1ed;
  font-size: 0.86rem;
  font-weight: 750;
}

.detail-pill.live-status {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: var(--accent-soft);
  color: var(--accent);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.primary-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--accent);
  box-shadow: 0 16px 40px var(--accent-soft);
  color: #08061f;
  font-size: 0.96rem;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.primary-button::after {
  content: "↗";
}

.primary-button:hover {
  box-shadow: 0 20px 48px var(--accent-soft);
  transform: translateY(-2px);
}

.cta-note {
  max-width: 240px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.event-details {
  padding: 90px 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.026);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.details-card {
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
}

.details-card h2 {
  max-width: 480px;
  font-size: clamp(1.85rem, 3.5vw, 2.9rem);
}

.details-card > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.learn-list {
  display: grid;
  margin: 28px 0 0;
  padding: 0;
  gap: 16px;
  list-style: none;
}

.learn-list li {
  position: relative;
  padding-left: 34px;
  color: #e2dfeb;
}

.learn-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  content: "✓";
  font-size: 0.76rem;
  font-weight: 900;
}

.speaker-card {
  display: grid;
  align-content: space-between;
  min-height: 100%;
  background:
    radial-gradient(circle at 90% 10%, var(--accent-soft), transparent 17rem),
    rgba(255, 255, 255, 0.055);
}

.speaker-label {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.speaker-name {
  margin: 18px 0 8px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}

.speaker-role {
  color: var(--muted);
}

.speaker-card .primary-button {
  width: fit-content;
  margin-top: 42px;
}

.next-events {
  padding: 92px 0 104px;
}

.next-events .section-heading {
  margin-bottom: 30px;
}

.compact-event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.compact-card {
  display: grid;
  overflow: hidden;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  grid-template-columns: 150px 1fr;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.compact-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.compact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.compact-card time {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.compact-card strong {
  font-size: 1.3rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.compact-card span {
  margin-top: 18px;
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 850;
}

.not-found {
  display: grid;
  min-height: calc(100vh - 220px);
  place-items: center;
  padding: 60px 0;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(3rem, 10vw, 7rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.not-found p {
  max-width: 520px;
  margin: 20px auto 28px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid,
  .event-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-items: start;
  }

  .hero-aside {
    max-width: 560px;
  }

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

  .event-card:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 22px) / 2);
    justify-self: center;
  }

  .trust-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-intro {
    grid-column: 1 / -1;
  }

  .event-poster-wrap {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .event-copy {
    text-align: center;
  }

  .event-copy .eyebrow,
  .detail-pills,
  .cta-row {
    justify-content: center;
  }

  .event-subtitle {
    margin-inline: auto;
  }

  .cta-note {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    padding: 18px 0;
  }

  .header-link {
    font-size: 0;
  }

  .header-link::before {
    content: "Events";
    font-size: 0.86rem;
  }

  .header-link::after {
    display: none;
  }

  .hero {
    padding: 50px 0 62px;
  }

  .hero::after {
    opacity: 0.4;
  }

  .hero h1,
  .event-copy h1 {
    letter-spacing: -0.055em;
  }

  .hero-aside {
    padding: 22px;
  }

  .section-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .event-grid,
  .details-grid,
  .compact-event-grid {
    grid-template-columns: 1fr;
  }

  .event-card:last-child {
    width: 100%;
    grid-column: auto;
  }

  .trust-inner {
    grid-template-columns: 1fr;
  }

  .trust-intro {
    grid-column: auto;
  }

  .trust-item {
    min-height: 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .event-hero {
    padding: 30px 0 64px;
  }

  .event-copy {
    text-align: left;
  }

  .event-copy .eyebrow,
  .detail-pills,
  .cta-row {
    justify-content: flex-start;
  }

  .event-subtitle {
    margin-inline: 0;
  }

  .cta-row {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
  }

  .cta-note {
    max-width: none;
    text-align: center;
  }

  .event-details,
  .next-events {
    padding: 68px 0;
  }

  .compact-card {
    min-height: 156px;
    grid-template-columns: 112px 1fr;
  }

  .compact-card-content {
    padding: 18px;
  }

  .compact-card strong {
    font-size: 1.08rem;
  }

}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
