@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #171326;
  --surface: #231831;
  --ink: #fff7ec;
  --muted: #ddcbbc;
  --line: #5f4c66;
  --action: #ff8100;
  --gold: #ffba55;
  --shadow: #07050e59;
  --font-text: Inter, system-ui, sans-serif;
  --font-mono: 'SFMono-Regular', 'SF Mono', Consolas, 'Liberation Mono', monospace;
  --gut: 64px;
  --nav: 82px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); }
body { margin: 0; font-family: var(--font-text); }
.wrap { width: min(calc(100% - 2 * var(--gut)), 1312px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--action); color: var(--bg); }

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #171326e8;
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--line);
}
.nav__inner { height: calc(var(--nav) - 2px); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.event-lockup { display: flex; align-items: center; gap: 14px; }
.wordmark { display: block; width: auto; height: 56px; }
.lockup-cross { color: var(--muted); font-size: 18px; }
.partner-name { font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.skip-link {
  position: absolute;
  top: 12px;
  left: max(var(--gut), calc((100% - 1312px) / 2));
  z-index: 1;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.btn {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 2px solid var(--action);
  border-radius: 6px;
  background: var(--action);
  box-shadow: 5px 5px 0 var(--shadow);
  color: var(--bg);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
html:not([data-motion="off"]) .btn--primary:hover { background: var(--gold); border-color: var(--gold); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  border-bottom: 2px solid var(--line);
  background:
    radial-gradient(circle at 70px 64px, #fff7ec55 1.4px, transparent 1.9px) 0 46px / 140px 128px,
    radial-gradient(circle at 132px 64px, #ffba5550 .8px, transparent 1.3px) 0 0 / 180px 176px,
    radial-gradient(ellipse at 12% 90%, #ff810023, transparent 38%),
    radial-gradient(ellipse at 92% 94%, #f36f9813, transparent 37%),
    #171326;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border: 2px solid #fff7ec21;
  border-radius: 999px;
}
.hero::before { top: 80px; right: -192px; width: 544px; height: 192px; transform: rotate(-14deg); }
.hero::after { bottom: 80px; right: 48px; width: 384px; height: 128px; border-color: #ff81002e; transform: rotate(18deg); }
.hero-text {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 16px 48px;
  align-items: start;
  min-height: 598px;
  padding-block: 32px 44px;
}
.memory-copy { min-width: 0; max-width: 512px; }
.event-date {
  margin: 0;
  color: var(--gold);
  font: 500 13px/1.2 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1 {
  margin: 20px 0 0;
  font-size: 48px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.city { display: block; color: var(--action); }
.hero__lead { margin: 20px 0 0; color: var(--muted); font-size: 18px; line-height: 1.78; }
.hero-orbit { min-width: 0; }

.orbit-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  height: 460px;
  width: 100%;
}
.orbit-stage[data-ready] { touch-action: pan-y; cursor: grab; }
.orbit-stage[data-dragging] { cursor: grabbing; }
.orbit-stage canvas, .orbit-planet { display: none; }
.orbit-stage[data-ready] canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.orbit-stage[data-ready] .orbit-planet {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 30;
  width: calc(2 * var(--orbit-unit, 92px));
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 26%, #47325f 0%, #2b1f3e 45%, #151022 84%);
  box-shadow: inset 0 0 0 1px #ff810080, inset 0 0 28px #ff810059, 0 0 36px #ff810044;
  pointer-events: auto;
}
.orbit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: min(100%, 460px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.orbit-stage[data-ready] .orbit-list { display: block; position: absolute; inset: 0; width: 100%; pointer-events: none; }
.orbit-stage[data-ready] .orbit-photo { position: absolute; inset: 0 auto auto 0; width: 18%; pointer-events: auto; }
.orbit-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 7px; user-select: none; }
.orbit-photo button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid #fff7ec42;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 18px #07050e80;
  cursor: pointer;
}
.orbit-photo[data-active] button { border-color: var(--gold); }
.orbit-photo button:hover { border-color: var(--action); }
.orbit-actions { display: flex; gap: 14px; align-items: center; justify-content: flex-end; margin-top: 8px; }
.orbit-actions [data-orbit-playback] { margin-inline-end: auto; }
.gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}
.gallery-link:hover { color: var(--ink); }
.orbit-control {
  min-width: 44px;
  min-height: 44px;
  padding: 0 11px;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--shadow);
  font: 750 14px var(--font-text);
  cursor: pointer;
}
.orbit-control:not(:disabled):hover { border-color: var(--gold); color: var(--gold); }
.orbit-control:disabled { color: #b5a2bf; cursor: default; }

.gallery {
  scroll-margin-top: var(--nav);
  background: #2d1e3d;
  padding-block: 84px 88px;
}
.gallery-heading { max-width: 1024px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.gallery h2 { margin: 0; font-size: 48px; font-weight: 900; line-height: 1.2; letter-spacing: -.025em; }
.orbit-controls { display: flex; align-items: center; gap: 8px; }
.orbit-controls[hidden] { display: none; }
.photo-count { color: var(--gold); font: 600 13px var(--font-mono); white-space: nowrap; margin-inline-end: 8px; }
.gallery-preview { width: min(100%, 1024px); margin: 28px 0 0; }
.gallery-frame { overflow: hidden; border: 2px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 8px 8px 0 var(--shadow); }
.gallery-frame img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.gallery-preview figcaption { margin-top: 15px; color: var(--muted); font-size: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (min-width: 1024px) {
  .gallery-inner { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 40px; align-items: start; }
  .gallery-heading { display: block; }
  .gallery-heading .orbit-controls { margin-top: 24px; }
  .gallery-preview { width: 100%; margin: 0; }
}
@media (max-width: 1023px) {
  :root { --gut: 48px; }
  .hero-text { grid-template-columns: 1fr; min-height: auto; }
  .orbit-stage { height: 400px; }
  .gallery { padding-block: 64px 72px; }
}
@media (max-width: 767px) {
  :root { --gut: 20px; --nav: 74px; }
  .wordmark { height: 48px; }
  .partner-name, .lockup-cross { display: none; }
  .nav .btn { min-height: 44px; padding-inline: 12px; font-size: 14px; }
  h1 { font-size: 36px; }
  .hero__lead { font-size: 16px; line-height: 1.75; }
  .hero-text { padding-block: 32px; }
  .gallery { padding-block: 48px 56px; }
  .gallery h2 { font-size: 30px; }
  .gallery-preview { margin-top: 20px; }
}
@media (max-width: 639px) {
  .orbit-stage { height: clamp(224px, 66vw, 370px); }
  .hero::before { top: 68px; right: -290px; }
  .hero::after { bottom: 68px; right: 55px; }
  .orbit-stage[data-ready] .orbit-photo { width: 20%; }
}
@media (max-width: 359px) { .wordmark { height: 34px; } }
