/* ============================================================
   STOVIT RUN 2026 — Move Your Spirit
   Heritage meets modern run club.
   ============================================================ */

:root {
  /* Palette — drawn from event assets (jersey, bib, logo, batik) */
  --green-950: #0a1d17;
  --green-900: #0f2a21;
  --green-800: #163a2e;
  --green-700: #1e4a3b;
  --cream: #faf3de;
  --cream-2: #f2e8cb;
  --cream-dim: rgba(250, 243, 222, .62);
  --gold: #f0b23e;
  --gold-deep: #d99427;
  --orange: #f47621;
  --red: #a52b25;
  --ink: #12241e;
  --line: rgba(18, 36, 30, .16);
  --line-light: rgba(250, 243, 222, .16);

  --display: 'Anton', 'Arial Narrow', sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 76px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 20px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Film grain for depth — barely-there texture */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: .038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, dt, figure { margin: 0; }
button { font: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--green-950); }

.container {
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(88px, 11vw, 152px); }

/* ---------- Typography helpers ---------- */
h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .94;
}

h2 { font-size: clamp(3rem, 6.2vw, 5.6rem); }

h1 em, h2 em, .footer__big em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 340;
  text-transform: none;
  letter-spacing: 0;
  color: var(--orange);
}

/* Masked line reveal for headings */
.line {
  display: block;
  overflow: hidden;
  padding-block: .04em; /* keep serif descenders un-clipped */
  margin-block: -.04em;
}

.line > span {
  display: block;
  transform: translateY(112%);
  transition: transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.is-inview .line > span { transform: none; }

/* Generic scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0s);
}

[data-reveal].is-inview { opacity: 1; transform: none; }

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.chip--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green-950);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out),
              background-color .45s var(--ease-out), color .45s var(--ease-out),
              border-color .45s var(--ease-out);
}

.btn svg {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform .45s var(--ease-out);
}

.btn:hover { transform: translateY(-3px); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn:active { transform: translateY(-1px) scale(.98); }

/* Down-arrow buttons nudge downward instead of diagonally */
.btn--down:hover svg { transform: translateY(3px); }

.btn--gold {
  background: var(--gold);
  color: var(--green-950);
  box-shadow: 0 8px 24px rgba(240, 178, 62, .22);
}

.btn--gold:hover {
  background: var(--gold-deep);
  box-shadow: 0 16px 34px rgba(240, 178, 62, .32);
}

.btn--ghost {
  border-color: var(--line-light);
  color: var(--cream);
}

.btn--ghost:hover { border-color: var(--cream); background: rgba(250, 243, 222, .06); }

.btn--dark {
  background: var(--green-900);
  color: var(--cream);
}

.btn--dark:hover { background: var(--green-800); box-shadow: 0 14px 30px rgba(15, 42, 33, .25); }

.btn--cream {
  background: var(--cream);
  color: var(--green-950);
}

.btn--cream:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }

.btn--sm { min-height: 44px; padding: 11px 20px; }
.btn--lg { min-height: 62px; padding: 18px 38px; font-size: 12.5px; }

:where(a, button):focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 20px;
  z-index: 200;
  background: var(--gold);
  color: var(--green-950);
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus { top: 14px; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  transition: transform .5s var(--ease-out), background-color .5s var(--ease-out),
              box-shadow .5s var(--ease-out), backdrop-filter .5s var(--ease-out);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding-inline: var(--gutter);
}

.header.is-scrolled {
  background: rgba(10, 29, 23, .78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line-light);
}

.header.is-hidden { transform: translateY(-100%); }

.brand { display: flex; align-items: center; gap: 12px; }

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  transition: transform .5s var(--ease-out);
}

.brand:hover img { transform: rotate(-8deg) scale(1.05); }

.brand__word {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--cream);
  letter-spacing: .04em;
}

.brand__word small {
  font-family: var(--body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--gold);
  margin-top: 4px;
}

.nav {
  display: flex;
  gap: clamp(18px, 2.6vw, 40px);
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 8px 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color .35s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}

.nav a:hover, .nav a.is-active { color: var(--cream); }

.nav a:hover::after, .nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__cta { margin-left: clamp(4px, 1.5vw, 20px); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  align-items: center;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .4s var(--ease-out), opacity .4s;
}

.menu-toggle.is-open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle.is-open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 34px) 28px 34px;
  background: var(--green-950);
  color: var(--cream);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .6s var(--ease-out), visibility 0s .6s;
}

.mobile-menu.is-open {
  clip-path: inset(0);
  visibility: visible;
  transition: clip-path .6s var(--ease-out), visibility 0s;
}

.mobile-menu nav { display: flex; flex-direction: column; }

.mobile-menu nav a:not(.btn) {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--display);
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  text-transform: uppercase;
  line-height: 1;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}

.mobile-menu nav a i {
  font-family: var(--body);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .1em;
}

.mobile-menu.is-open nav a:not(.btn) {
  opacity: 1;
  transform: none;
}

.mobile-menu.is-open nav a:nth-child(1) { transition-delay: .15s; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: .22s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: .29s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: .36s; }

.mobile-menu .btn {
  margin-top: 30px;
  align-self: flex-start;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--ease-out) .44s, transform .5s var(--ease-out) .44s;
}

.mobile-menu.is-open .btn { opacity: 1; transform: none; }

.mobile-menu__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.mobile-menu__meta a { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 90px;
  background:
    radial-gradient(58% 48% at 82% 22%, rgba(240, 178, 62, .16), transparent 68%),
    radial-gradient(42% 40% at 8% 88%, rgba(164, 43, 37, .22), transparent 70%),
    linear-gradient(168deg, var(--green-900), var(--green-950) 62%);
  color: var(--cream);
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.hero__year {
  position: absolute;
  right: -1.5vw;
  bottom: -6vw;
  font-family: var(--display);
  font-size: clamp(14rem, 30vw, 34rem);
  line-height: .75;
  color: transparent;
  -webkit-text-stroke: 1px rgba(250, 243, 222, .07);
  user-select: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
  max-width: 1360px;
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero__eyebrow { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(22px, 3vw, 34px); }

.hero__title {
  font-size: clamp(4.4rem, 9.6vw, 9.4rem);
  margin-bottom: clamp(22px, 3vw, 32px);
}

.hero__title em { color: var(--gold); }

.hero__lead {
  max-width: 470px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
  color: var(--cream-dim);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: clamp(28px, 3.4vw, 40px);
}

/* Hero visual — heritage arch.
   Explicit layers: the photo stays behind, the floating chips stay in front —
   the 3D tilt on hover would otherwise reshuffle paint order. */
.hero__visual { position: relative; }

.hero__arch {
  position: relative;
  z-index: 1;
  border-radius: 45% 45% var(--radius) var(--radius) / 34% 34% var(--radius) var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: min(78vh, 680px);
  margin-inline: auto;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .4);
}

.hero__arch::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 2;
  border: 1px solid rgba(250, 243, 222, .35);
  border-radius: inherit;
  pointer-events: none;
}

.hero__arch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(200deg, rgba(240, 178, 62, .12), transparent 40%),
              linear-gradient(0deg, rgba(10, 29, 23, .42), transparent 55%);
  pointer-events: none;
}

.hero__arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

.hero__badge {
  position: absolute;
  z-index: 2;
  left: -34px;
  bottom: 6%;
  width: clamp(120px, 11vw, 158px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 29, 23, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .35);
}

.hero__badge svg {
  position: absolute;
  inset: 0;
  animation: spin 22s linear infinite;
}

.hero__badge svg text {
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  fill: var(--cream);
}

.hero__badge > img { width: 58%; }

.hero__place {
  position: absolute;
  z-index: 2;
  right: clamp(-10px, -1vw, 0px);
  top: 9%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  background: rgba(10, 29, 23, .55);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-light);
  border-radius: 14px;
  padding: 12px 16px;
}

.hero__place strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  color: var(--gold);
  letter-spacing: .03em;
}

.hero__place span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee divider ---------- */
.marquee {
  position: relative;
  z-index: 2;
  background: var(--orange);
  color: var(--green-950);
  padding-block: 16px;
  overflow: hidden;
  border-block: 1px solid rgba(10, 29, 23, .12);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee span {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  padding-right: .5em;
}

.marquee i {
  font-style: normal;
  color: var(--cream);
  padding-inline: .35em;
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about { padding-top: clamp(110px, 13vw, 180px); }

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.about__title { font-size: clamp(3.4rem, 7vw, 6.6rem); }

.about__copy {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.65;
  color: rgba(18, 36, 30, .78);
  padding-top: 12px;
}

.about__copy p + p { margin-top: 20px; }
.about__copy .btn { margin-top: 30px; }

.about__collage {
  position: relative;
  margin-top: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.about__photo-main {
  grid-column: 1 / span 8;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 30px 60px rgba(18, 36, 30, .18);
}

.about__photo-sub {
  grid-column: 8 / span 5;
  margin-top: clamp(-90px, -6vw, -40px);
  margin-left: calc(var(--gutter) * -.4);
  align-self: end;
  transform: translateY(clamp(30px, 4vw, 64px)) rotate(2deg);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 6px solid var(--cream);
  box-shadow: 0 24px 54px rgba(18, 36, 30, .24);
  z-index: 1;
}

.about__photo-main img, .about__photo-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}

.about__sticker {
  position: absolute;
  left: clamp(-8px, -.5vw, 0px);
  top: -34px;
  z-index: 2;
  width: 108px;
  height: 108px;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--gold);
  color: var(--green-950);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 22px;
  line-height: .9;
  text-transform: uppercase;
  transform: rotate(-10deg);
  box-shadow: 0 16px 30px rgba(217, 148, 39, .35);
  animation: bob 6s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: rotate(-10deg) translateY(0); }
  50% { transform: rotate(-7deg) translateY(-10px); }
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(72px, 9vw, 120px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts > div {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: clamp(22px, 2.6vw, 34px) clamp(6px, 1.5vw, 24px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.facts.is-inview > div { opacity: 1; transform: none; }

.facts > div + div { border-left: 1px solid var(--line); }

.facts dt {
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.4vw, 3.4rem);
  line-height: 1;
  color: var(--red);
}

.facts dd {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  line-height: 1.5;
  color: rgba(18, 36, 30, .66);
}

/* ---------- Race kit ---------- */
.kit {
  background: linear-gradient(180deg, var(--green-950), var(--green-900) 30%, var(--green-950));
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.kit__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.kit__heading h2 em { color: var(--gold); }

.kit__heading p { color: var(--cream-dim); font-size: 15px; line-height: 1.65; }

.kit__showcase {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
}

.kit__list { display: flex; flex-direction: column; border-top: 1px solid var(--line-light); }

.kit__tab {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-areas: "num title" "num desc";
  align-items: baseline;
  column-gap: 4px;
  row-gap: 6px;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-light);
  padding: clamp(20px, 2.6vw, 30px) 8px;
  cursor: pointer;
  transition: background-color .4s var(--ease), padding-left .4s var(--ease-out);
}

.kit__tab i {
  grid-area: num;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--cream-dim);
  transition: color .4s;
}

.kit__tab strong {
  grid-area: title;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--cream-dim);
  transition: color .4s, transform .5s var(--ease-out);
  transform-origin: left bottom;
}

.kit__tab span {
  grid-area: desc;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--cream-dim);
  max-width: 400px;
  display: none;
}

.kit__tab:hover { background: rgba(250, 243, 222, .04); }
.kit__tab:hover strong { color: var(--cream); }

.kit__tab.is-active { padding-left: 18px; }
.kit__tab.is-active i { color: var(--gold); }
.kit__tab.is-active strong { color: var(--gold); transform: scale(1.04); }
.kit__tab.is-active span { display: block; }

.kit__stage {
  position: relative;
  min-height: clamp(360px, 42vw, 560px);
  border-radius: var(--radius);
  border: 1px solid var(--line-light);
  background: linear-gradient(180deg, rgba(250, 243, 222, .05), rgba(250, 243, 222, .02));
  overflow: hidden;
}

.kit__stage-bg {
  position: absolute;
  inset: auto;
  left: 50%;
  top: 52%;
  width: min(72%, 420px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 178, 62, .26), rgba(240, 178, 62, .05) 70%, transparent);
}

.kit__stage::after {
  content: "RACE KIT";
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: .1em;
  color: rgba(250, 243, 222, .05);
  white-space: nowrap;
  pointer-events: none;
}

.kit__img {
  position: absolute;
  inset: 0;
  width: min(78%, 460px);
  height: 86%;
  margin: auto;
  object-fit: contain;
  opacity: 0;
  transform: translateY(26px) scale(.92) rotate(-2deg);
  transition: opacity .6s var(--ease-out), transform .7s var(--ease-out);
  pointer-events: none;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35));
}

.kit__img.is-active {
  opacity: 1;
  transform: none;
  animation: kit-float 7s ease-in-out infinite;
}

@keyframes kit-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Gallery ---------- */
.gallery { padding-bottom: clamp(60px, 7vw, 100px); }

.gallery__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.gallery__heading p { color: rgba(18, 36, 30, .66); font-size: 15px; }

.gallery__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(12px, 1.6vw, 20px);
}

.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--green-900);
}

.gallery__item--wide { aspect-ratio: auto; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out), filter 1s var(--ease-out);
  filter: saturate(.92);
  will-change: transform;
}

.gallery__item:hover img { transform: scale(1.06); filter: saturate(1.1); }

.gallery__item figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.6vw, 1.6rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 29, 23, .5), transparent 42%);
  pointer-events: none;
}

.gallery__marquee {
  margin-top: clamp(14px, 1.8vw, 22px);
  overflow: hidden;
}

.gallery__strip {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.gallery__strip:hover { animation-play-state: paused; }

.gallery__strip-set {
  display: flex;
  gap: clamp(12px, 1.6vw, 20px);
  padding-right: clamp(12px, 1.6vw, 20px);
}

.gallery__strip-set img {
  height: clamp(180px, 22vw, 280px);
  width: auto;
  border-radius: calc(var(--radius) - 6px);
  object-fit: cover;
  filter: saturate(.92);
  transition: filter .6s;
}

.gallery__strip-set img:hover { filter: saturate(1.1); }

/* ---------- Register ---------- */
.register {
  position: relative;
  color: var(--cream);
  text-align: center;
  padding-block: clamp(100px, 13vw, 180px);
  background: url("assets/background.png") center / cover no-repeat var(--red);
  overflow: hidden;
}

.register::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(62, 13, 10, .93), rgba(84, 19, 13, .8) 45%, rgba(52, 11, 8, .94));
}

.register__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.register__title {
  font-size: clamp(3.6rem, 8vw, 8rem);
  margin-top: 26px;
}

.register__title em { color: var(--gold); }

.countdown {
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, 2.4vw, 28px);
  margin-top: clamp(40px, 5vw, 64px);
}

.countdown i {
  font-style: normal;
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.1;
  color: rgba(250, 243, 222, .35);
}

.countdown strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6.4vw, 6rem);
  line-height: 1;
  color: var(--gold);
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
}

.countdown span {
  display: block;
  margin-top: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.register__details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin-top: clamp(44px, 5vw, 64px);
  border-block: 1px solid var(--line-light);
  width: min(100%, 900px);
}

.register__details > div {
  flex: 1 1 220px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.register__details > div + div { border-left: 1px solid var(--line-light); }

.register__details dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

.register__details dd { font-size: 15px; font-weight: 600; }

.register__cta {
  margin-top: clamp(40px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.register__cta p { font-size: 12.5px; color: var(--cream-dim); }

/* ---------- FAQ ---------- */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.faq h2 { position: sticky; top: calc(var(--header-h) + 24px); }

.acc { border-top: 1px solid var(--line); }

.acc__item { border-bottom: 1px solid var(--line); }

.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 4px;
  background: none;
  border: 0;
  text-align: left;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 600;
  cursor: pointer;
  transition: color .35s;
}

.acc__btn:hover { color: var(--red); }

.acc__btn i {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .08em;
  flex: none;
}

.acc__icon {
  position: relative;
  margin-left: auto;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform .5s var(--ease-out), background-color .4s, border-color .4s;
}

.acc__icon::before, .acc__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: currentColor;
  transition: transform .5s var(--ease-out);
}

.acc__icon::before { width: 12px; height: 1.6px; }
.acc__icon::after { width: 1.6px; height: 12px; }

.acc__item.is-open .acc__icon {
  background: var(--red);
  border-color: var(--red);
  color: var(--cream);
  transform: rotate(135deg);
}

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--ease-out);
}

.acc__panel > div { overflow: hidden; }

.acc__panel p {
  padding: 0 48px 24px 33px;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(18, 36, 30, .72);
}

.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }

/* ---------- Footer ---------- */
.footer {
  background: var(--green-950);
  color: var(--cream);
  padding-top: clamp(70px, 9vw, 120px);
  overflow: hidden;
}

.footer__hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line-light);
}

.footer__big {
  font-family: var(--display);
  font-size: clamp(3rem, 7.4vw, 7rem);
  line-height: .94;
  text-transform: uppercase;
  letter-spacing: .005em;
}

.footer__big em { color: var(--gold); }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  padding-block: clamp(44px, 6vw, 72px);
}

.footer__brand img { margin-bottom: 20px; }

.footer__brand p { font-size: 14.5px; line-height: 1.7; color: var(--cream-dim); max-width: 320px; }

.footer__nav, .footer__contact { display: flex; flex-direction: column; gap: 13px; }

.footer__nav span, .footer__contact span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.footer__nav a, .footer__contact a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--cream-dim);
  width: fit-content;
  position: relative;
  transition: color .35s;
}

.footer__nav a::after, .footer__contact a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}

.footer__nav a:hover, .footer__contact a:hover { color: var(--cream); }

.footer__nav a:hover::after, .footer__contact a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 22px;
  border-top: 1px solid var(--line-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(250, 243, 222, .45);
}

/* ---------- Credit bar ---------- */
.credit {
  display: block;
  overflow: hidden;
  padding-block: 14px;
  background: var(--cream);
  border-top: 1px solid rgba(10, 29, 23, .1);
}

.credit__track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.credit:hover .credit__track { animation-play-state: paused; }

.credit__set { display: flex; }

.credit__set span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: clamp(38px, 6vw, 72px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(18, 36, 30, .55);
  white-space: nowrap;
  transition: color .4s var(--ease);
}

.credit__set img {
  height: 15px;
  width: auto;
  opacity: .78;
  transition: opacity .4s var(--ease);
}

.credit:hover .credit__set span { color: var(--ink); }
.credit:hover .credit__set img { opacity: 1; }

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-bottom: 110px; }
  .hero__visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .hero__lead { max-width: 560px; }
  .kit__showcase { grid-template-columns: 1fr; }
  .kit__stage { min-height: 440px; }
  .about__grid { grid-template-columns: 1fr; gap: 28px; }
  .faq__grid { grid-template-columns: 1fr; gap: 36px; }
  .faq h2 { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 760px) {
  :root { --header-h: 66px; --radius: 16px; }

  .nav, .header__cta { display: none; }
  .menu-toggle { display: flex; }
  .brand__word small { display: none; }
  .brand img { width: 40px; height: 40px; }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 44px);
    padding-bottom: 96px;
  }

  .hero__title { font-size: clamp(4rem, 17.5vw, 5.6rem); }
  .hero__actions .btn { flex: 1 1 auto; }

  .hero__arch { aspect-ratio: 4 / 4.6; }
  .hero__badge { left: -10px; width: 108px; }
  .hero__place { right: -6px; padding: 10px 13px; }
  .hero__place strong { font-size: 19px; }
  .hero__year { right: auto; left: -4vw; bottom: -10vw; }

  .marquee { padding-block: 12px; }

  h2, .about__title { font-size: clamp(2.6rem, 11.5vw, 4rem); }

  .about__collage { margin-top: 44px; }
  .about__photo-main { grid-column: 1 / span 11; aspect-ratio: 4 / 3; }
  .about__photo-sub {
    grid-column: 6 / span 7;
    border-width: 4px;
    margin-top: -60px;
    margin-left: 0;
    transform: translateY(30px) rotate(2deg);
  }
  .about__sticker { width: 84px; height: 84px; font-size: 17px; top: -26px; }

  /* Three facts read better stacked than squeezed into narrow columns */
  .facts { grid-template-columns: 1fr; margin-top: 76px; }
  .facts > div { padding: 16px 2px; gap: 20px; }
  .facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .facts dt { min-width: 4.2ch; }
  .facts dd { font-size: 10px; }

  .kit__heading, .gallery__heading { grid-template-columns: 1fr; align-items: start; gap: 18px; }

  .kit__tab { padding-block: 18px; }
  .kit__stage { min-height: 380px; }

  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .gallery__item--wide { grid-column: 1 / -1; aspect-ratio: 16 / 10; }

  .countdown { gap: 12px; }
  .countdown span { letter-spacing: .16em; font-size: 9px; }

  .register__details { border: 0; gap: 0; }
  .register__details > div {
    flex-basis: 100%;
    border-top: 1px solid var(--line-light);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px 4px;
  }
  .register__details > div + div { border-left: 0; }
  .register__details > div:last-child { border-bottom: 1px solid var(--line-light); }
  .register__details dd { text-align: right; }

  .register__cta { width: 100%; }
  .register__cta .btn { width: 100%; }

  .acc__panel p { padding-left: 30px; padding-right: 12px; }

  .footer__hero { justify-content: flex-start; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Large screens — keep composition intentional, not stretched */
@media (min-width: 1800px) {
  .container, .hero__inner { max-width: 1520px; }
  html { font-size: 17px; }
}

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

  [data-reveal], .facts > div { opacity: 1; transform: none; transition: none; }
  .line > span { transform: none; transition: none; }

  .marquee__track, .gallery__strip, .credit__track, .hero__badge svg,
  .about__sticker, .kit__img.is-active {
    animation: none;
  }

  .btn, .gallery__item img, .kit__img, .acc__panel, .acc__icon { transition: none; }
}
