/* ===========================================================
   AIDEN HUNDLEY — Coming Soon
   Basketball meets edgy. Dark, loud, modern.
   =========================================================== */

:root {
  --bg: #08080a;
  --bg-2: #101013;
  --ink: #f6f5f3;
  --muted: #9a9aa2;
  --orange: #ff5a1f;
  --orange-soft: #ff7a45;
  --gold: #e0ad55;
  --line: rgba(255, 255, 255, 0.10);

  --display: "Anton", "Arial Narrow", sans-serif;
  --ui: "Space Grotesk", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--orange); color: #08080a; }

/* ---------- Atmosphere layers ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
  animation: grainShift 0.6s steps(2) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-6px, 4px); }
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 460px; height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  will-change: transform;
}

#fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Topbar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 48px);
  mix-blend-mode: difference;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 1px;
  line-height: 1;
  color: #fff;
  border: 2px solid #fff;
  padding: 6px 8px 4px;
  border-radius: 8px;
}
.brand__name {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  color: #fff;
}

.socials { display: flex; gap: 6px; }
.social {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.3s var(--ease);
}
.social svg { width: 19px; height: 19px; fill: currentColor; }
.social:hover { transform: translateY(-3px) scale(1.08); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 clamp(18px, 4vw, 48px) clamp(28px, 5vh, 64px);
  isolation: isolate;
  overflow: hidden;
}

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

/* Graceful fallback if the hero image is missing or corrupt */
.hero__media.is-fallback {
  background:
    radial-gradient(120% 120% at 75% 30%, rgba(255,90,31,0.35), transparent 55%),
    radial-gradient(100% 100% at 20% 80%, rgba(224,173,85,0.22), transparent 55%),
    repeating-linear-gradient(115deg, #141417 0 38px, #0f0f12 38px 76px),
    var(--bg-2);
}
.hero__media.is-fallback .hero__img { display: none; }
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 70% center;
  transform: scale(1.06);
  animation: kenburns 18s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1.06) translate(0, 0); }
  to   { transform: scale(1.14) translate(-1.5%, -1%); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,8,10,0.92) 0%, rgba(8,8,10,0.55) 40%, rgba(8,8,10,0.05) 70%),
    linear-gradient(to top, rgba(8,8,10,0.96) 2%, rgba(8,8,10,0.2) 30%, transparent 55%);
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  text-shadow: 0 2px 24px rgba(8, 8, 10, 0.6);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}
.kicker .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(255, 90, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); }
}

.headline {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: clamp(64px, 15vw, 220px);
  margin-bottom: 22px;
}
.headline__line { display: block; }
.headline__line--accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  position: relative;
}
.headline__line--accent::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--orange);
  -webkit-text-stroke: 0;
  clip-path: inset(0 100% 0 0);
  animation: fillSweep 1.4s var(--ease) 0.5s forwards;
}
@keyframes fillSweep { to { clip-path: inset(0 0 0 0); } }

.tagline {
  max-width: 540px;
  font-size: clamp(15px, 2vw, 19px);
  color: var(--muted);
  margin-bottom: 30px;
}
.hl { color: var(--ink); font-weight: 600; }
.tagline .hl { color: var(--gold); }

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  align-items: flex-start;
  gap: clamp(8px, 2vw, 22px);
  margin-bottom: 30px;
}
.count { display: flex; flex-direction: column; align-items: center; min-width: 56px; }
.count__num {
  font-family: var(--display);
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, #c9c9cf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.count__label {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}
.count__sep {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 50px);
  line-height: 1;
  color: var(--orange);
  align-self: flex-start;
  animation: blink 1.2s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

/* ---------- Notify form ---------- */
.notify { max-width: 520px; }
.notify__field {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.notify__field:focus-within {
  border-color: rgba(255, 90, 31, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.12);
}
.notify input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 15px;
}
.notify input::placeholder { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: #08080a;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  padding: 12px 22px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.96); }
.btn__icon { transition: transform 0.25s var(--ease); }
.btn:hover .btn__icon { transform: translateX(4px); }
.btn.is-done { background: linear-gradient(135deg, #2ecc71, #27ae60); }

.notify__msg {
  min-height: 18px;
  margin: 12px 4px 0;
  font-size: 13px;
  color: var(--gold);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.notify__msg.show { opacity: 1; transform: translateY(0); }
.notify__msg.error { color: var(--orange-soft); }

/* ---------- Scroll cue ---------- */
.scroll-cue {
  position: absolute;
  right: clamp(18px, 4vw, 48px);
  bottom: clamp(28px, 5vh, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue__line {
  width: 1px; height: 54px;
  background: linear-gradient(var(--orange), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 40%;
  background: var(--ink);
  animation: cueRun 1.8s var(--ease) infinite;
}
@keyframes cueRun { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  animation: scrollX 26s linear infinite;
}
.marquee__track span {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 58px);
  letter-spacing: 2px;
  padding: 16px 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(246,245,243,0.45);
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ---------- More section ---------- */
.more {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 12vh, 140px) clamp(18px, 4vw, 48px);
}
.more__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,90,31,0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(255,90,31,0.4); }
.card:hover::before { opacity: 1; }
.card__num {
  font-family: var(--display);
  font-size: 16px;
  color: var(--orange);
  letter-spacing: 2px;
}
.card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 10px 0 8px;
}
.card p { color: var(--muted); font-size: 15px; }

.quote {
  font-family: var(--display);
  text-align: center;
  font-size: clamp(40px, 9vw, 120px);
  line-height: 0.95;
  text-transform: uppercase;
  margin-top: clamp(60px, 10vh, 120px);
  letter-spacing: 1px;
  position: relative;
}
.quote .hl { color: var(--orange); }
.quote__mark {
  display: block;
  color: var(--gold);
  font-size: 1.4em;
  line-height: 0.4;
  opacity: 0.5;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px clamp(18px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__brand { font-family: var(--display); letter-spacing: 2px; font-size: 18px; }
.footer__socials { display: flex; gap: 20px; }
.footer__socials a {
  font-size: 13px;
  color: var(--muted);
  position: relative;
  transition: color 0.3s var(--ease);
}
.footer__socials a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--orange);
  transition: width 0.3s var(--ease);
}
.footer__socials a:hover { color: var(--ink); }
.footer__socials a:hover::after { width: 100%; }
.footer__copy { font-size: 12px; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero CTA ---------- */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  filter: none;
  border-color: rgba(255, 90, 31, 0.6);
  color: #fff;
}

/* ---------- Generic content section ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) clamp(18px, 4vw, 48px);
}
.section__head { margin-bottom: clamp(28px, 4vh, 44px); }
.section__eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.section__title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 0.9;
  font-size: clamp(40px, 8vw, 88px);
}
.section__title .hl { color: var(--orange); }
.section__sub {
  color: var(--muted);
  margin-top: 12px;
  max-width: 520px;
  font-size: clamp(14px, 2vw, 17px);
}

/* ---------- Highlight reels ---------- */
.reels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.reel { margin: 0; }
.reel__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.reel__frame:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 90, 31, 0.45);
}
.reel__frame video,
.reel__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.reel__frame video {
  object-fit: contain;
  background: #000;
}
.reel__fallback {
  display: grid;
  place-content: center;
  height: 100%;
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.reel__fallback a { color: var(--gold); }
.reel__cap {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.reel__link {
  display: inline-block;
  margin-top: 6px;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s var(--ease);
}
.reel__link:hover { color: var(--orange); }

/* ---------- Media ---------- */
.mediacard { margin: 0; max-width: 460px; }
.mediacard__img {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.mediacard__img:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 90, 31, 0.45);
}
.mediacard__img img { width: 100%; display: block; }
.mediacard__cap {
  font-family: var(--display);
  font-size: clamp(20px, 3.4vw, 30px);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 16px;
}
.mediacard__cap .hl { color: var(--orange); }

/* ---------- Responsive ---------- */

/* Tablets: keep the overlay layout but darken the image more for legibility */
@media (max-width: 860px) {
  .hero__img { object-position: 62% center; }
  .hero__scrim {
    background:
      linear-gradient(to top, rgba(8,8,10,0.98) 8%, rgba(8,8,10,0.55) 44%, rgba(8,8,10,0.2) 78%);
  }
  .brand__name { display: none; }
  .more__grid { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}

/* Phones: stack the layout. The landscape photo becomes a top banner so the
   whole frame is visible, and all copy sits on a solid panel below (fully legible). */
@media (max-width: 720px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 100svh;
    padding: 0;
  }
  .hero__media {
    position: relative;
    inset: auto;
    z-index: 0;
    width: 100%;
    height: 54svh;
    flex: 0 0 auto;
  }
  .hero__img {
    object-position: 60% 36%;
    transform: none;
    animation: none;
  }
  .hero__scrim {
    background: linear-gradient(
      to bottom,
      rgba(8, 8, 10, 0) 40%,
      rgba(8, 8, 10, 0.55) 76%,
      var(--bg) 100%
    );
  }
  .hero__content {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    background: var(--bg);
    margin-top: -1px;
    padding: 22px 18px 40px;
    text-shadow: none;
  }
  .headline { font-size: clamp(54px, 17vw, 96px); margin-bottom: 16px; }
  .kicker { margin-bottom: 12px; }
  .tagline { margin-bottom: 22px; }
  .countdown { margin-bottom: 24px; }
}

@media (max-width: 520px) {
  .notify__field { flex-direction: column; border-radius: 18px; padding: 12px; }
  .notify input { padding: 6px 8px; }
  .btn { justify-content: center; }
  .count { min-width: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .headline__line--accent::after { clip-path: inset(0 0 0 0); }
}
