/* Horizon Nexus — game studio site. Static, no build step.
   Brand thread: deep-space navy + dawn-gold horizon. "Dawn over the play-grid." */

:root {
  --ink: #0a0f1e;
  --ink-2: #0e1528;
  --ink-3: #131d36;
  --mist: #aab4cf;
  --paper: #eef1f8;
  --dawn: #f0a232;
  --dawn-soft: #f7c66b;
  --dawn-deep: #c97a1e;
  --coral: #ef7a5a;      /* Boardwalk Arcade accent */
  --mint: #8fd9c0;       /* Kidsville accent */
  --line: rgba(170, 180, 207, 0.16);
  --glow: rgba(240, 162, 50, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Archivo', sans-serif;
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }

/* ---------- fixed backdrop: stars + horizon glow (non-hero pages) ---------- */
.sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 12%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 34%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 8%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 42%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 8% 48%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 68% 25%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 42% 18%, rgba(255,255,255,.3) 50%, transparent 51%);
  animation: twinkle 9s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }
.horizon-glow {
  position: fixed; left: 0; right: 0; top: 62vh; height: 38vh; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 100%, rgba(240,162,50,.22) 0%, rgba(240,162,50,.08) 38%, transparent 70%);
}

.wrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ---------- header ---------- */
header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0 0; gap: 18px;
}
.logo-lockup { height: 48px; width: auto; display: block; }
nav.site { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 24px; }
nav.site a {
  color: var(--mist); text-decoration: none; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; font-weight: 400;
}
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--dawn-soft); }
nav.site a.cta {
  color: var(--ink); background: linear-gradient(180deg, var(--dawn-soft), var(--dawn));
  padding: 9px 18px; border-radius: 999px; font-weight: 600;
  box-shadow: 0 6px 24px -8px var(--glow);
}
nav.site a.cta:hover { filter: brightness(1.06); color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 12vh 0 10vh; min-height: 62vh; }
.hero-canvas {
  position: absolute; inset: -110px 50% auto; transform: translateX(-50%);
  width: 100vw; height: calc(100% + 170px); z-index: -1; pointer-events: none;
}
.kicker {
  font-size: .76rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--dawn); margin-bottom: 24px; font-weight: 400;
}
h1 {
  font-family: 'Fraunces', serif; font-weight: 300;
  font-size: clamp(2.7rem, 6.6vw, 4.8rem); line-height: 1.06; letter-spacing: -.01em;
  max-width: 14ch;
}
h1 strong { font-weight: 600; color: var(--dawn-soft); }
.hero p.sub { margin-top: 28px; max-width: 52ch; color: var(--mist); font-size: 1.08rem; }
.hero-ctas { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; border-radius: 999px; padding: 14px 28px;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  transition: transform .25s ease, filter .25s ease, box-shadow .25s ease;
}
.btn-dawn {
  color: var(--ink); background: linear-gradient(180deg, var(--dawn-soft), var(--dawn));
  box-shadow: 0 10px 34px -10px var(--glow);
}
.btn-dawn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 44px -10px var(--glow); }
.btn-ghost { color: var(--paper); border: 1px solid rgba(170,180,207,.35); }
.btn-ghost:hover { border-color: var(--dawn-soft); color: var(--dawn-soft); transform: translateY(-2px); }

/* staged entrance */
.rise { opacity: 0; animation: rise .9s ease-out forwards; }
.rise.d1 { animation-delay: .12s; } .rise.d2 { animation-delay: .28s; }
.rise.d3 { animation-delay: .46s; } .rise.d4 { animation-delay: .62s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* headline words rise one by one with a little overshoot */
h1 .w {
  display: inline-block; opacity: 0;
  transform: translateY(.55em);
  animation: wordRise .65s cubic-bezier(.34,1.56,.64,1) forwards;
  animation-delay: calc(.18s + var(--w, 0) * 75ms);
}
@keyframes wordRise { to { opacity: 1; transform: none; } }

/* pulsing PLAY button — insert-coin energy; hover/press win over the pulse */
.btn-dawn.pulse { animation: ctaPulse 2.4s ease-in-out 1.8s infinite; will-change: transform; }
.btn-dawn.pulse:hover, .btn-dawn.pulse:active { animation: none; }
@keyframes ctaPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 34px -10px var(--glow); }
  50% { transform: scale(1.035); box-shadow: 0 14px 46px -8px rgba(240,162,50,.72); }
}

/* tap-press feedback (touch + mouse) */
.btn:active, .cab .play:active, nav.site a.cta:active { transform: scale(.96); }
.cab:active { transform: translateY(-2px) scale(.98); }
.strip a:active { transform: scale(.97); }

/* ---------- sections ---------- */
section.band { padding: 8vh 0; border-top: 1px solid var(--line); }
section.band.no-line { border-top: none; }
h2 {
  font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  letter-spacing: -.01em; margin-bottom: 10px;
}
h2 em { font-style: normal; color: var(--dawn-soft); }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.band-kicker {
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--dawn); margin-bottom: 14px; font-weight: 400;
}
.band-kicker.coral { color: var(--coral); }
.band-kicker.mint { color: var(--mint); }
.lede { color: var(--mist); max-width: 62ch; margin-bottom: 44px; }
.band-link { font-size: .84rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dawn-soft); text-decoration: none; white-space: nowrap; }
.band-link:hover { color: var(--dawn); }

/* ---------- game cabinets ---------- */
.cabinets {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  list-style: none;
}
.cab {
  position: relative; border-radius: 18px; overflow: hidden;
  background: linear-gradient(168deg, var(--ink-3) 0%, var(--ink-2) 58%, #0b1120 100%);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.cab:hover {
  transform: translateY(-6px);
  border-color: rgba(247, 198, 107, .5);
  box-shadow: 0 26px 60px -18px rgba(0,0,0,.8), 0 20px 54px -18px var(--glow);
}
.cab .cover { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.cab .cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.cab:hover .cover img { transform: scale(1.045); }
.cab .cover::after {  /* cabinet-glass sheen */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(190deg, rgba(255,255,255,.09) 0%, transparent 26%),
              linear-gradient(0deg, rgba(10,15,30,.55) 0%, transparent 32%);
  pointer-events: none;
}
.cab .genre {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  color: var(--dawn-soft); background: rgba(10,15,30,.72);
  border: 1px solid rgba(247,198,107,.35); border-radius: 999px; padding: 4px 11px;
  backdrop-filter: blur(4px);
}
.cab .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cab h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.24rem; }
.cab .liner { color: var(--mist); font-size: .9rem; line-height: 1.5; flex: 1; }
.cab .row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.cab .play {
  flex: 1; text-align: center; text-decoration: none;
  color: var(--ink); background: linear-gradient(180deg, var(--dawn-soft), var(--dawn));
  font-weight: 700; font-size: .95rem; padding: 12px 14px; border-radius: 12px;
  transition: filter .15s ease, transform .15s ease;
}
.cab .play:hover { filter: brightness(1.07); transform: translateY(-1px); }
.cab .daily {
  font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  color: var(--mist); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px;
  white-space: nowrap;
}
/* stretch the play link's tap target to the whole cabinet */
.cab .play::before { content: ""; position: absolute; inset: 0; }

/* boardwalk-flavored cabinets */
.cab.boardwalk .genre { color: #ffd9c9; border-color: rgba(239,122,90,.45); }
.cab.boardwalk:hover { border-color: rgba(239,122,90,.55); box-shadow: 0 26px 60px -18px rgba(0,0,0,.8), 0 20px 54px -18px rgba(239,122,90,.4); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- marquee ticker (pure CSS, transform-only, no layout shift) ---------- */
.ticker {
  position: relative; left: 50%; width: 100vw; margin-left: -50vw;
  overflow: hidden; padding: 16px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(14, 21, 40, .35);
}
.ticker-track {
  display: flex; width: max-content;
  animation: tickerScroll 46s linear infinite;
}
.ticker-track > span {
  white-space: nowrap; padding-right: .5em;
  font-size: .74rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--mist); opacity: .8;
}
.ticker-track .tick-star { color: var(--dawn); }
@keyframes tickerScroll { to { transform: translateX(-50%); } }

/* ---------- collection strip (home: boardwalk teaser) ---------- */
.strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px; margin-top: 34px;
}
.strip a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.strip a:hover { transform: translateY(-4px); border-color: rgba(239,122,90,.55); box-shadow: 0 18px 44px -14px rgba(239,122,90,.35); }
.strip img { display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; }

/* ---------- kidsville teaser / page ---------- */
.kids-card {
  border: 1px solid rgba(143,217,192,.28); border-radius: 22px;
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(143,217,192,.1) 0%, transparent 55%),
    linear-gradient(160deg, var(--ink-3), var(--ink-2));
  padding: clamp(28px, 5vw, 52px);
}
.kids-card h2 em, .kids h2 em { color: var(--mint); }
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 34px; }
.value {
  border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 20px;
  background: rgba(14,21,40,.5);
}
.value h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; }
.value h3 .dot { color: var(--mint); margin-right: 8px; }
.value p { color: var(--mist); font-size: .9rem; }
.soon {
  display: inline-block; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mint); border: 1px solid rgba(143,217,192,.4); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 20px; font-weight: 500;
}

/* ---------- prose pages (about) ---------- */
.prose p { color: var(--mist); max-width: 66ch; margin-bottom: 20px; font-size: 1.02rem; }
.prose p strong { color: var(--paper); font-weight: 500; }
.mail {
  display: inline-block; margin-top: 10px; font-family: 'Fraunces', serif; font-size: 1.4rem;
  color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--dawn);
  padding-bottom: 4px; transition: color .3s ease;
}
.mail:hover { color: var(--dawn-soft); }

/* ---------- daily chips row ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chips a {
  text-decoration: none; color: var(--mist); font-size: .82rem;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  transition: color .2s ease, border-color .2s ease;
}
.chips a strong { color: var(--dawn-soft); font-weight: 600; }
.chips a:hover { border-color: var(--dawn-soft); color: var(--paper); }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line); margin-top: 6vh; padding: 44px 0 60px;
  color: var(--mist); font-size: .84rem;
}
footer.site .cols { display: flex; flex-wrap: wrap; gap: 18px 44px; justify-content: space-between; align-items: flex-start; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer.site a { color: var(--mist); text-decoration: none; }
footer.site a:hover { color: var(--dawn-soft); }
footer.site .fine { margin-top: 20px; opacity: .75; max-width: 72ch; }

@media (max-width: 640px) {
  .hero { padding-top: 8vh; min-height: 0; }
  .logo-lockup { height: 40px; }
  header.site { flex-wrap: wrap; }
  section.band { padding: 7vh 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
  /* infinite loops must STOP dead, not spin at .001s */
  .sky, .ticker-track, .btn-dawn.pulse { animation: none !important; }
  .rise, .reveal, h1 .w { opacity: 1; transform: none; animation: none !important; }
}
