/* ==========================================================================
   Over-The-Top — Base
   Reset, document defaults, typography, and the signature brand treatments
   (chromed display type, angled plaques, glow rules).
   ========================================================================== */

/* ---- Reset --------------------------------------------------------------- */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* clears the fixed nav on anchor jumps */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select { font: inherit; color: inherit; }

ul, ol { list-style: none; padding: 0; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--ember-400);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection {
  background: var(--violet-600);
  color: #fff;
}

/* ---- Layout primitives --------------------------------------------------- */

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

.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--tight { padding-block: calc(var(--section-y) * 0.62); }

.stack > * + * { margin-top: var(--space-4); }

/* Grid and flex children default to min-width:auto, so a long line of display
   type can force its track wider than the viewport. Opt layout children back
   into shrinking so headlines wrap instead of overflowing. */
.hero__inner > *,
.hero__headline,
.section__head > *,
.pillars > *,
.pillar > *,
.split > *,
.tiers > *,
.tier > *,
.lineup > *,
.steps > *,
.thennow > *,
.faq > *,
.footer__grid > *,
.contact-grid > *,
.contact-row > * { min-width: 0; }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: var(--z-overlay);
  background: var(--ember-500);
  color: #10060a;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: transform var(--dur) var(--ease-out);
}

.skip-link:focus { transform: translate(-50%, 0); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---- Typography ---------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.02; }

p { text-wrap: pretty; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-dim);
  font-weight: 400;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet-300);
  line-height: 1;
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ember-500));
  flex: none;
}

.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: linear-gradient(90deg, var(--ember-500), transparent);
  flex: none;
}

/* Accent word inside a headline — the orange highlight from the ad */
.hl { color: var(--ember-400); }

/* ---- Chromed display type ------------------------------------------------
   The brand's signature: a silver-to-white gradient fill with a hard dark
   edge, exactly like the ad's "YOUTH SPORTS TEAMS" plaque lettering.
   Uses drop-shadow rather than text-stroke so the outline renders reliably
   alongside background-clip:text in every engine.
   -------------------------------------------------------------------------- */

.chrome {
  background: var(--grad-chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.85))
    drop-shadow(0 5px 18px rgba(139, 51, 240, 0.45));
}

.chrome--ember {
  background: var(--grad-ember);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 2px 0 rgba(0, 0, 0, 0.9))
    drop-shadow(0 0 18px rgba(249, 115, 22, 0.5));
}

/* ---- Angled plaque -------------------------------------------------------
   The black, slightly-skewed banner with a thin chrome edge that carries the
   ad's headlines. Two nested clip-paths fake a border, since clip-path
   removes real ones.
   -------------------------------------------------------------------------- */

.plaque {
  --plaque-skew: 1.4%;
  position: relative;
  display: inline-block;
  padding: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(154,161,175,0.35) 45%, rgba(168,85,247,0.55));
  clip-path: polygon(0 var(--plaque-skew), 100% 0, 100% calc(100% - var(--plaque-skew)), 0 100%);
}

.plaque__inner {
  display: block;
  padding: clamp(0.6rem, 0.4rem + 0.8vw, 1.1rem) clamp(1.1rem, 0.6rem + 2.4vw, 3rem);
  background: linear-gradient(180deg, #0a0616, #030109 60%, #0a0616);
  clip-path: polygon(0 var(--plaque-skew), 100% 0, 100% calc(100% - var(--plaque-skew)), 0 100%);
}

.plaque--right {
  clip-path: polygon(0 0, 100% var(--plaque-skew), 100% 100%, 0 calc(100% - var(--plaque-skew)));
}
.plaque--right .plaque__inner {
  clip-path: polygon(0 0, 100% var(--plaque-skew), 100% 100%, 0 calc(100% - var(--plaque-skew)));
}

/* ---- Glow rule ----------------------------------------------------------- */

.rule {
  height: 1px;
  border: 0;
  background: var(--grad-rule);
  opacity: 0.65;
}

.rule--soft {
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);
}

/* ---- Cosmic backdrop -----------------------------------------------------
   A layered nebula: the photographic burst, a violet core bloom, and an
   ember rim. Applied to any section that needs deep space behind it.
   -------------------------------------------------------------------------- */

.cosmos {
  position: relative;
  isolation: isolate;
  background-color: var(--ink-900);
}

.cosmos::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../img/nebula.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

.cosmos::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 32%, rgba(139, 51, 240, 0.35), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(3, 2, 8, 0.95), transparent 65%),
    linear-gradient(180deg, rgba(3, 2, 8, 0.85) 0%, rgba(3, 2, 8, 0.25) 35%, rgba(3, 2, 8, 0.9) 100%);
}

/* A cheaper, flatter starfield for mid-page sections */
.starfield {
  position: relative;
  isolation: isolate;
  background-color: var(--ink-900);
}

.starfield::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%, rgba(109, 40, 217, 0.22), transparent 60%),
    radial-gradient(ellipse 55% 45% at 85% 100%, rgba(249, 115, 22, 0.12), transparent 60%);
}

/* ---- Motion preferences -------------------------------------------------- */

@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;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1 !important; transform: none !important; }
}
