/* Apogee SoundSport Ensemble — peak altitude */

:root {
  --navy: #0b1c33;
  --navy-deep: #06101f;
  --sky: #e7eef6;
  --mist: #f5f7fa;
  --ink: #142033;
  --muted: #5a6a7d;
  --gold: #c8972e;
  --gold-bright: #e0b14a;
  --white: #ffffff;
  --line: rgba(11, 28, 51, 0.12);
  --line-light: rgba(255, 255, 255, 0.18);

  --font-brand: "Bebas Neue", sans-serif;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3.5rem;
  --space-xl: 6rem;
  --space-2xl: 9rem;

  --header-h: 4.25rem;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold);
}

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

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -100%;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  color: var(--white);
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(245, 247, 250, 0.92);
  color: var(--navy);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header__inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.wordmark {
  font-family: var(--font-brand);
  font-size: 1.85rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  line-height: 1;
}

.wordmark:hover {
  color: inherit;
  opacity: 0.8;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav a:hover {
  color: var(--gold);
}

.nav-cta {
  padding: 0.55rem 1rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0.35rem;
  align-items: center;
  gap: 0.65rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-toggle__bars {
  width: 1.35rem;
  height: 0.85rem;
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.nav-toggle__bars::before {
  top: 0.15rem;
}

.nav-toggle__bars::after {
  bottom: 0.15rem;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(0.2rem) rotate(40deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-0.2rem) rotate(-40deg);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: hero-settle 2.4s var(--ease) both;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(6, 16, 31, 0.35) 0%,
      rgba(6, 16, 31, 0.2) 35%,
      rgba(6, 16, 31, 0.72) 72%,
      rgba(6, 16, 31, 0.92) 100%
    ),
    linear-gradient(
      90deg,
      rgba(6, 16, 31, 0.45) 0%,
      transparent 55%
    );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 4vw, 2rem) clamp(4rem, 10vh, 6.5rem);
}

.hero__brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-brand);
  font-size: clamp(5.5rem, 18vw, 11.5rem);
  line-height: 0.85;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: rise 1s var(--ease) 0.15s both;
}

.hero__headline {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  animation: rise 1s var(--ease) 0.28s both;
}

.hero__support {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  animation: rise 1s var(--ease) 0.4s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 1s var(--ease) 0.52s both;
}

.hero__orbit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  z-index: 1;
  color: rgba(224, 177, 74, 0.55);
  pointer-events: none;
  opacity: 0;
  animation: fade-in 1.4s var(--ease) 0.7s both;
}

.hero__orbit svg {
  width: 100%;
  height: clamp(8rem, 22vw, 16rem);
  display: block;
}

.hero__orbit-path {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: draw-orbit 2.2s var(--ease) 0.85s both;
}

.hero__orbit-peak {
  position: absolute;
  left: calc(50% + 6px);
  top: 27.5%; /* path apex at y=110 in a 400-tall viewBox */
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--gold-bright);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: peak-in 0.6s var(--ease) 2.2s both;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.btn--primary:hover {
  background: var(--gold-bright);
  color: var(--navy-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

/* Shared sections */

.section-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-2xl) clamp(1.25rem, 4vw, 2rem);
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow--on-dark {
  color: var(--gold-bright);
}

.section-title {
  margin: 0 0 1.1rem;
  max-width: 18ch;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.section-title--light {
  color: var(--white);
}

.section-lead {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
}

.section-lead--muted {
  color: rgba(255, 255, 255, 0.78);
}

.about {
  background: var(--mist);
}

.about .section-shell {
  padding-bottom: var(--space-xl);
}

/* Season */

.season {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(200, 151, 46, 0.18), transparent 50%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
}

.season__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}

.season__stat {
  border-top: 1px solid var(--line-light);
  padding-top: 1.5rem;
}

.season__stat-label {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.season__stat-value {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(4.5rem, 10vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
}

.season__stat-meta {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Join */

.join {
  background: var(--sky);
}

.join .section-shell {
  padding-top: var(--space-xl);
}

.join__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 16rem));
  gap: 2rem;
  margin: 2.5rem 0 2rem;
}

.join__item h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

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

.join__item a {
  text-decoration: none;
  font-weight: 600;
  color: var(--navy);
}

.join__item a:hover {
  color: var(--gold);
}

/* Footer */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__inner {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.site-footer__brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-brand);
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: var(--white);
}

.site-footer__meta,
.site-footer__legal,
.site-footer__credit {
  margin: 0;
  font-size: 0.92rem;
}

.site-footer__legal {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__credit {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__credit a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.site-footer__credit a:hover {
  color: var(--gold-bright);
}

/* Reveal on scroll */

[data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* Motion */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes hero-settle {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1.04);
  }
}

@keyframes draw-orbit {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes peak-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

/* Responsive */

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: rgba(6, 16, 31, 0.97);
    color: var(--white);
    padding: 1.25rem;
    transform: translateY(-0.5rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }

  .site-header.is-scrolled .site-nav {
    background: rgba(245, 247, 250, 0.98);
    color: var(--navy);
  }

  .site-nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
  }

  .season__grid {
    grid-template-columns: 1fr;
  }

  .join__details {
    grid-template-columns: 1fr;
  }

  .hero__brand {
    font-size: clamp(4.4rem, 22vw, 7rem);
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
