/* ===== Tokens ===== */
:root {
  --color-navy: #14213d;
  --color-navy-deep: #080d1c;
  --color-royal: #1b5fbe;
  --color-gold: #f5c518;
  --color-gold-soft: #f7d65c;
  --color-red: #d93b3b;
  --color-cream: #fafaf7;
  --color-orange: #e08a3e;
  --color-line: rgba(245, 197, 24, 0.25);

  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Geist", "Segoe UI", sans-serif;
  --font-accent: "Playfair Display", serif;

  --space-xs: clamp(0.5rem, 0.45rem + 0.3vw, 0.75rem);
  --space-sm: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
  --space-md: clamp(1.75rem, 1.5rem + 1.2vw, 2.75rem);
  --space-lg: clamp(3rem, 2.4rem + 2.8vw, 5.5rem);
  --space-xl: clamp(4.5rem, 3.6rem + 4vw, 8rem);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-normal: 320ms;

  --content-width: 72rem;
}

/* ===== Reset ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--color-navy);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
svg { fill: none; stroke: var(--color-gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--color-gold-soft); }

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

/* ===== Shared ===== */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 var(--space-sm);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg) var(--space-sm);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  perspective: 1600px;
  overflow: hidden;
  background: var(--color-navy-deep);
}
.hero__bg-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42%;
  height: 88%;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.85);
  opacity: 0;
  z-index: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: left 1.8s var(--ease-out-expo), transform 1.8s var(--ease-out-expo),
              opacity 1.8s var(--ease-out-expo), filter 1.8s var(--ease-out-expo);
}
.hero__bg-img[data-slot="center"] {
  left: 50%;
  transform: translate(-50%, -50%) rotateY(0deg) scale(1.04);
  opacity: 1;
  z-index: 2;
  filter: brightness(0.92) saturate(1.05);
}
.hero__bg-img[data-slot="right"] {
  left: 84%;
  transform: translate(-50%, -50%) rotateY(-30deg) scale(0.84);
  opacity: 0.5;
  z-index: 1;
  filter: brightness(0.5);
}
.hero__bg-img[data-slot="left"] {
  left: 16%;
  transform: translate(-50%, -50%) rotateY(30deg) scale(0.84);
  opacity: 0.5;
  z-index: 1;
  filter: brightness(0.5);
}

@media (max-width: 640px) {
  .hero__bg-img[data-slot="left"],
  .hero__bg-img[data-slot="right"] {
    opacity: 0;
  }
  .hero__bg-img[data-slot="center"] {
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg-img { transition: none; }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(0deg, var(--color-navy-deep) 5%, rgba(8, 13, 28, 0.55) 45%, rgba(8, 13, 28, 0.35) 100%),
    linear-gradient(100deg, rgba(8, 13, 28, 0.85) 0%, rgba(8, 13, 28, 0.15) 60%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin-bottom: var(--space-lg);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 2rem + 6vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
  text-wrap: balance;
}
.hero__lede {
  max-width: 32rem;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 600;
  color: var(--color-gold-soft);
  margin: 0;
  padding: var(--space-sm) var(--space-md);
  background: rgba(8, 13, 28, 0.55);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid rgba(245, 197, 24, 0.2);
  border-radius: 6px;
}

.countdown {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
}
.countdown__label {
  margin: 0;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-gold-soft);
}
.countdown__grid {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  background: rgba(250, 250, 247, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(250, 250, 247, 0.18);
  border-radius: 6px;
  padding: var(--space-sm) var(--space-md);
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3ch;
}
.countdown__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.75rem, 1.5rem + 1.2vw, 2.75rem);
  line-height: 1;
}
.countdown__caption {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 0.3em;
}
.countdown__sep {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
  opacity: 0.4;
  transform: translateY(-0.3em);
}
.countdown__date {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

.scroll-cue {
  position: absolute;
  z-index: 1;
  bottom: var(--space-md);
  right: var(--space-sm);
  display: inline-flex;
  color: var(--color-gold);
  opacity: 0.7;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
}
.scroll-cue:hover, .scroll-cue:focus-visible { opacity: 1; }

/* ===== Journey / Editions ===== */
.journey {
  padding: var(--space-xl) 0;
}
.journey__intro { max-width: 40rem; margin: 0 auto var(--space-lg); text-align: center; padding: 0 var(--space-sm); }
.journey__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 1.7rem + 2.2vw, 4rem);
  line-height: 1;
  margin: 0;
}

.editions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.edition {
  position: relative;
  min-height: 70svh;
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg) var(--space-sm);
  overflow: hidden;
  border-top: 1px solid var(--color-line);
  background: var(--color-navy-deep);
}
.edition__bg { position: absolute; inset: 0; z-index: 0; }
.edition__bg img { width: 100%; height: 100%; object-fit: cover; }
.edition__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--color-navy-deep) 10%, rgba(8, 13, 28, 0.4) 55%, rgba(8, 13, 28, 0.5) 100%);
}

.edition__number {
  position: absolute;
  top: 0.4em;
  left: var(--space-sm);
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 4rem + 12vw, 16rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(250, 250, 247, 0.3);
  pointer-events: none;
}

.edition__text {
  position: relative;
  z-index: 1;
  max-width: 30rem;
}
.edition__date {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
  color: var(--color-gold);
  margin-bottom: 0.2em;
}
.edition__desc { margin: 0; opacity: 0.85; font-size: 1.05rem; max-width: 26rem; }

.edition--upcoming {
  background: radial-gradient(circle at 30% 30%, rgba(27, 95, 190, 0.28), transparent 60%), var(--color-navy-deep);
  animation: upcomingPulse 4s ease-in-out infinite;
}
.edition--upcoming .edition__number {
  -webkit-text-stroke: 1.5px rgba(27, 95, 190, 0.7);
  animation: upcomingNumberPulse 4s ease-in-out infinite;
}
.edition--upcoming .edition__date { color: var(--color-royal); }
.edition--upcoming .edition__desc { font-family: var(--font-accent); font-style: italic; opacity: 0.6; }

.edition__marquee {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(0deg, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(0deg, transparent 0%, black 15%, black 85%, transparent 100%);
}
.edition__marquee-track {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1em;
  padding-right: var(--space-lg);
  animation: marqueeScroll 26s linear infinite;
}
.edition__marquee-track span {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(2.25rem, 1.8rem + 3.5vw, 5.5rem);
  line-height: 1.05;
  color: rgba(27, 95, 190, 0.55);
  -webkit-text-stroke: 1.5px rgba(120, 170, 240, 0.75);
  text-transform: uppercase;
  white-space: nowrap;
}

.edition__badge-wrap {
  position: absolute;
  z-index: 1;
  width: clamp(2.75rem, 2.2rem + 2vw, 4.5rem);
  pointer-events: none;
}
.edition__badge {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(27, 95, 190, 0.6), 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  animation: badgeSpin 14s linear infinite;
}

.edition__badge-wrap--1 { animation: badgeWander1 19s ease-in-out infinite; }
.edition__badge-wrap--2 { width: clamp(2.25rem, 1.8rem + 1.6vw, 3.75rem); animation: badgeWander2 24s ease-in-out infinite; }
.edition__badge-wrap--2 .edition__badge { animation-duration: 20s; animation-direction: reverse; }
.edition__badge-wrap--3 { width: clamp(2rem, 1.6rem + 1.4vw, 3.25rem); animation: badgeWander3 16s ease-in-out infinite; }
.edition__badge-wrap--3 .edition__badge { animation-duration: 10s; }

@keyframes marqueeScroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@keyframes badgeSpin {
  to { transform: rotate(360deg); }
}
@keyframes badgeWander1 {
  0%   { top: 6%;  left: 80%; }
  25%  { top: 60%; left: 90%; }
  50%  { top: 72%; left: 58%; }
  75%  { top: 15%; left: 48%; }
  100% { top: 6%;  left: 80%; }
}
@keyframes badgeWander2 {
  0%   { top: 65%; left: 15%; }
  30%  { top: 20%; left: 30%; }
  60%  { top: 40%; left: 65%; }
  100% { top: 65%; left: 15%; }
}
@keyframes badgeWander3 {
  0%   { top: 30%; left: 55%; }
  40%  { top: 78%; left: 40%; }
  70%  { top: 10%; left: 70%; }
  100% { top: 30%; left: 55%; }
}
@media (prefers-reduced-motion: reduce) {
  .edition__marquee-track,
  .edition__badge,
  .edition__badge-wrap--1,
  .edition__badge-wrap--2,
  .edition__badge-wrap--3 {
    animation: none;
  }
}

.edition__countdown {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  margin: var(--space-sm) 0 0;
}
.edition__countdown-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 2rem + 2vw, 4rem);
  line-height: 1;
  color: var(--color-royal);
  font-variant-numeric: tabular-nums;
  animation: upcomingHeartbeat 2.2s ease-in-out infinite;
}
.edition__countdown-label {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}

@keyframes upcomingPulse {
  0%, 100% { background-color: var(--color-navy-deep); }
  50% { background-color: #0a1428; }
}
@keyframes upcomingNumberPulse {
  0%, 100% { -webkit-text-stroke-color: rgba(27, 95, 190, 0.6); }
  50% { -webkit-text-stroke-color: rgba(27, 95, 190, 0.95); }
}
@keyframes upcomingHeartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.08); }
  30% { transform: scale(1); }
  45% { transform: scale(1.05); }
  60% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .edition--upcoming,
  .edition--upcoming .edition__number,
  .edition__countdown-num {
    animation: none;
  }
}

/* ===== Gallery ===== */
.gallery {
  padding: var(--space-xl) var(--space-sm);
}
.gallery__intro { max-width: 40rem; margin: 0 auto var(--space-lg); text-align: center; }
.gallery__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 3.25rem);
  margin: 0;
}
.gallery__panels {
  max-width: var(--content-width);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.gallery-panel__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-line);
}
.gallery-panel__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: rgba(250, 250, 247, 0.25);
  line-height: 1;
}
.gallery-panel__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}
.gallery-panel__date {
  display: block;
  font-size: 0.85rem;
  color: var(--color-gold);
  letter-spacing: 0.04em;
}

.gallery-panel__empty {
  font-family: var(--font-accent);
  font-style: italic;
  opacity: 0.5;
  margin: 0;
}

.gallery-panel__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.75em 1.6em;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe27a 0%, #f5c518 55%, #d9960f 100%);
  color: #1a1408;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 22px 3px rgba(245, 197, 24, 0.3), 0 8px 20px -8px rgba(0, 0, 0, 0.6);
  transition: box-shadow var(--duration-normal) var(--ease-out-expo),
              transform var(--duration-normal) var(--ease-out-expo);
}
.gallery-panel__link svg { width: 1em; height: 1em; stroke: #1a1408; flex-shrink: 0; }
.gallery-panel__link:hover,
.gallery-panel__link:focus-visible {
  box-shadow: 0 0 34px 8px rgba(245, 197, 24, 0.55), 0 10px 26px -8px rgba(0, 0, 0, 0.65);
  transform: translateY(-2px);
}

/* ===== Amigo (closing) ===== */
.amigo {
  border-top: 1px solid var(--color-line);
}
.amigo__text {
  max-width: 40rem;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.amigo__quote {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 1.6rem + 2vw, 3.5rem);
  line-height: 1.02;
  margin: 0 0 var(--space-sm);
}
.amigo__sub {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.4rem, 1.15rem + 1.2vw, 2rem);
  color: var(--color-gold-soft);
  margin: 0 0 var(--space-md);
}
.amigo__closing {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  opacity: 0.8;
  margin: 0;
  max-width: 34rem;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: var(--space-lg) var(--space-sm) var(--space-xl);
  font-size: 0.85rem;
  opacity: 0.55;
}
.site-footer p { margin: 0 0 var(--space-xs); }
