:root {
  --ink: #f8f3e9;
  --muted: #b7c4d1;
  --night: #04101e;
  --blue: #00739c;
  --blue-bright: #12b8dc;
  --green: #37a446;
  --gold: #f5b82e;
  --clay: #df6a45;
  --panel: rgba(9, 31, 54, 0.78);
  --line: rgba(255, 255, 255, 0.12);
  --radius: 28px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  font-family: Inter, ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--night);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 12%, rgba(0, 115, 156, 0.2), transparent 34rem),
    radial-gradient(circle at 80% 40%, rgba(55, 164, 70, 0.1), transparent 28rem),
    var(--night);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 0 0 0.75rem 0.75rem;
  background: white;
  color: #04101e;
  transform: translateY(-120%);
}
.skip-link:focus { transform: translateY(0); }

.experience {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.experience::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(3, 14, 27, 0.08) 0%, rgba(3, 14, 27, 0.8) 82%),
    radial-gradient(ellipse at 50% 8%, #164a65 0%, #07182a 48%, #030c16 100%);
}

.ambient {
  position: absolute;
  z-index: -2;
  width: 14rem;
  aspect-ratio: 1;
  border-radius: 48% 52% 58% 42%;
  filter: blur(1px);
  opacity: 0.24;
}
.ambient--one { top: 8%; left: -8rem; background: var(--blue-bright); transform: rotate(-18deg); }
.ambient--two { right: -8rem; bottom: 4%; background: var(--green); transform: rotate(30deg); }

.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(0.8rem + env(safe-area-inset-top)) calc(1rem + env(safe-area-inset-right)) 0 calc(1rem + env(safe-area-inset-left));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 740;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.brand__mark {
  width: 2.45rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.brand__mark img { width: 116%; height: 116%; object-fit: cover; }

.icon-button {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(2, 10, 19, 0.48);
  color: #fff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}
.icon-button:focus-visible, .celebrate-button:focus-visible, .primary-button:focus-visible, .gate-audio:focus-visible, .day-switcher button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.icon { width: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--sound-off { display: none; }
.icon-button[aria-pressed="false"] .icon--sound-on { display: none; }
.icon-button[aria-pressed="false"] .icon--sound-off { display: block; }

.stage {
  width: min(100%, 42rem);
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(4.6rem + env(safe-area-inset-top)) 1rem calc(1.25rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.video-shell {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #071321;
}

.scene-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 700ms ease, transform 1.2s ease;
  pointer-events: none;
}
.scene-video.is-active { opacity: 1; transform: scale(1); }

.video-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 9, 17, 0.42), transparent 25%, transparent 54%, rgba(2, 9, 17, 0.9) 94%),
    linear-gradient(90deg, rgba(2, 9, 17, 0.18), transparent 25%, transparent 75%, rgba(2, 9, 17, 0.18));
}

.scene-status {
  position: absolute;
  top: calc(4.9rem + env(safe-area-inset-top));
  left: 50%;
  z-index: 2;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(2, 10, 19, 0.45);
  color: rgba(255,255,255,.78);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.media-fallback {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 2rem;
  text-align: center;
  background: radial-gradient(circle, #123a52, #061523 70%);
}
.media-fallback[hidden] { display: none; }
.media-fallback img { width: min(44vw, 12rem); aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.media-fallback p { max-width: 24rem; color: var(--muted); line-height: 1.55; }

.event-copy {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: calc(8.9rem + env(safe-area-inset-bottom));
  z-index: 3;
  text-align: center;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.event-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 13vw, 4.6rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-shadow: 0 7px 30px rgba(0,0,0,.7);
}
.event-copy h1 span { display: block; font-style: italic; color: #fff8e6; }
.event-date { margin: 0.95rem 0 0; font-size: 0.92rem; font-weight: 760; letter-spacing: 0.18em; }

.celebrate-button {
  position: absolute;
  left: 50%;
  bottom: calc(4.25rem + env(safe-area-inset-bottom));
  z-index: 5;
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245,184,46,.95), rgba(223,106,69,.96));
  color: #112137;
  box-shadow: 0 12px 35px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.65);
  font-size: 0.88rem;
  font-weight: 850;
  transform: translateX(-50%);
  cursor: pointer;
  white-space: nowrap;
}
.celebrate-button:disabled { opacity: .56; cursor: default; filter: grayscale(.45); }
.celebrate-button:not(:disabled):active { transform: translateX(-50%) scale(.97); }
.celebrate-button svg { width: 1.2rem; fill: currentColor; }
.celebrate-button__glow { position: absolute; inset: -.45rem; z-index: -1; border-radius: inherit; border: 1px solid rgba(245,184,46,.42); animation: pulse 2.4s ease-out infinite; }
.celebrate-button.is-playing .celebrate-button__glow { animation-duration: .8s; }

.scroll-cue {
  position: absolute;
  bottom: calc(0.85rem + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: .3rem;
  color: rgba(255,255,255,.76);
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateX(-50%);
}
.scroll-cue svg { width: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }

.entry-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: calc(1.25rem + env(safe-area-inset-top)) calc(1.25rem + env(safe-area-inset-right)) calc(1.25rem + env(safe-area-inset-bottom)) calc(1.25rem + env(safe-area-inset-left));
  background:
    radial-gradient(circle at 50% 28%, rgba(18,184,220,.22), transparent 22rem),
    linear-gradient(180deg, #09233b 0%, #03101c 100%);
  transition: opacity 650ms ease, visibility 650ms ease;
}
.entry-gate::before, .entry-gate::after {
  content: "";
  position: absolute;
  width: 12rem;
  aspect-ratio: 1;
  border-radius: 45% 55% 50% 48%;
  opacity: .18;
  filter: blur(2px);
}
.entry-gate::before { top: -5rem; left: -5rem; background: var(--gold); transform: rotate(22deg); }
.entry-gate::after { right: -6rem; bottom: -4rem; background: var(--green); transform: rotate(-18deg); }
.entry-gate.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.entry-gate__panel { position: relative; z-index: 1; width: min(100%, 26rem); text-align: center; }
.entry-gate__logo {
  width: 6.7rem;
  height: 6.7rem;
  margin-bottom: 1.3rem;
  border: 3px solid rgba(255,255,255,.9);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 18px 60px rgba(0,0,0,.4);
}
.entry-gate h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 13vw, 4.25rem); font-weight: 500; line-height: .92; letter-spacing: -.045em; }
.entry-gate h2 span { color: #fff4d4; font-style: italic; }
.entry-gate__panel > p:not(.eyebrow) { margin: 1.2rem auto 1.7rem; max-width: 19rem; color: var(--muted); font-size: 1rem; line-height: 1.55; }

.primary-button {
  width: 100%;
  min-height: 3.75rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #f9d36b);
  color: #0a1c2f;
  box-shadow: 0 14px 40px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.72);
  font-size: 1rem;
  font-weight: 860;
  cursor: pointer;
}
.primary-button:active { transform: scale(.985); }

.gate-audio {
  margin-top: .9rem;
  padding: .5rem .75rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 720;
  cursor: pointer;
}
.gate-audio__dot { display: inline-block; width: .55rem; height: .55rem; margin-right: .45rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(55,164,70,.13); }
.gate-audio[aria-pressed="false"] .gate-audio__dot { background: #7f8b96; box-shadow: none; }

.program-section {
  position: relative;
  z-index: 2;
  width: min(100%, 52rem);
  margin: 0 auto;
  padding: 5rem 1rem 4.5rem;
}
.program-intro { text-align: center; }
.program-intro h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 10vw, 3.8rem); font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.program-intro > p:last-child { max-width: 34rem; margin: 1.2rem auto 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }

.day-switcher {
  position: sticky;
  top: calc(.7rem + env(safe-area-inset-top));
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem;
  margin: 2.5rem 0 1.2rem;
  padding: .35rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(5,18,32,.8);
  box-shadow: 0 14px 40px rgba(0,0,0,.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.day-switcher button {
  min-height: 3.7rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: .55rem .9rem;
  border: 0;
  border-radius: .95rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.day-switcher button[aria-selected="true"] { background: linear-gradient(135deg, #fff7e3, #f2e8cf); color: #092039; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.day-switcher span { font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.day-switcher strong { margin-top: .12rem; font-size: 1.02rem; }

.schedule-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(13,39,66,.92), rgba(5,22,38,.9));
  box-shadow: var(--shadow);
}
.schedule-panel[hidden] { display: none; }

.schedule-item {
  position: relative;
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: .8rem;
  padding: 1rem 1rem 1rem 1.1rem;
}
.schedule-item + .schedule-item::before { content: ""; position: absolute; top: 0; left: 5.9rem; right: 1rem; height: 1px; background: var(--line); }
.schedule-time { padding-top: .1rem; color: var(--gold); font-size: .83rem; font-weight: 820; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.schedule-content { min-width: 0; }
.schedule-title { margin: 0; color: #fff; font-size: .98rem; font-weight: 760; line-height: 1.35; }
.schedule-detail { margin: .28rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.schedule-item--highlight { background: linear-gradient(90deg, rgba(245,184,46,.11), transparent 80%); }
.schedule-item--highlight .schedule-title { color: #fff2c9; }

.event-note {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid rgba(245,184,46,.22);
  border-radius: 1.3rem;
  background: rgba(245,184,46,.07);
}
.event-note__icon { flex: 0 0 2.8rem; width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border-radius: 50%; background: rgba(245,184,46,.14); color: var(--gold); }
.event-note svg { width: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.event-note p { margin: 0; font-size: .9rem; font-weight: 760; line-height: 1.4; }
.event-note span { display: block; margin-top: .22rem; color: var(--muted); font-size: .78rem; line-height: 1.4; }

footer {
  padding: 2.8rem 1rem calc(2.8rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  text-align: center;
  background: #020a12;
}
footer img { width: 2.8rem; height: 2.8rem; border: 2px solid white; border-radius: 50%; object-fit: cover; }
footer p { margin: .8rem 0 0; font-size: .85rem; font-weight: 760; }
.footer-note { color: var(--muted); font-size: .76rem; font-weight: 500; }

.noscript-notice { position: fixed; inset: auto 1rem 1rem; z-index: 200; padding: 1rem; border-radius: 1rem; background: #fff; color: #061523; font-size: .9rem; }

@keyframes pulse {
  0% { opacity: .8; transform: scale(.96); }
  70%, 100% { opacity: 0; transform: scale(1.13); }
}

@media (min-width: 700px) {
  .experience { min-height: 52rem; }
  .stage { min-height: 52rem; }
  .video-shell { inset: 1.25rem; border: 1px solid rgba(255,255,255,.14); border-radius: 2.4rem; box-shadow: 0 35px 90px rgba(0,0,0,.48); }
  .topbar { left: 50%; right: auto; width: min(100%, 42rem); transform: translateX(-50%); }
  .event-copy { bottom: 8.8rem; }
  .celebrate-button { bottom: 4.2rem; }
  .scroll-cue { bottom: 1rem; }
  .schedule-item { grid-template-columns: 6rem 1fr; padding: 1.15rem 1.4rem; }
  .schedule-item + .schedule-item::before { left: 7.4rem; right: 1.4rem; }
}

@media (max-height: 660px) and (orientation: landscape) {
  .event-copy { bottom: 5.8rem; }
  .event-copy h1 { font-size: 2.3rem; }
  .event-copy .eyebrow, .event-date { display: none; }
  .celebrate-button { bottom: 2.2rem; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
