/* ==========================================================
   It's Only a Game: landing page styles
   Palette: arena-dark turning to hardwood maple, taken from the book cover
   Type: Source Serif 4 for headlines and body (echoes the cover title),
         Barlow Condensed for labels, buttons and numbers
   To change the palette, edit the variables below.
   ========================================================== */

:root {
  --night: #120F0C;
  --night-2: #1D1712;
  --maple: #D9A460;
  --maple-light: #EBC892;
  --orange: #EE6C2F;
  --orange-hover: #FF8247;
  --text-on-dark: #F6EBDD;
  --muted-on-dark: #C4B8A8;

  --headline: "Source Serif 4", Georgia, "Times New Roman", serif;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { overflow-x: hidden; max-width: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text-on-dark);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

/* Nothing is allowed to poke out past the screen edge (slide-in animations, offset frames) */
main, .section, .hero, .site-footer { overflow-x: clip; max-width: 100%; }

img { max-width: 100%; display: block; }
a { color: inherit; }
em { font-style: italic; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

/* ---------- Section surfaces ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }

.on-dark        { background: var(--night);       color: var(--text-on-dark); --focus: var(--orange); --rule: rgba(246, 235, 221, 0.28); }
.on-dark-2      { background: var(--night-2);     color: var(--text-on-dark); --focus: var(--orange); --rule: rgba(246, 235, 221, 0.28); }
.on-maple       { background: var(--maple);       color: var(--night);        --focus: var(--night);  --rule: var(--night); }
.on-maple-light { background: var(--maple-light); color: var(--night);        --focus: var(--night);  --rule: var(--night); }

:focus-visible { outline: 3px solid var(--focus, var(--orange)); outline-offset: 3px; }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; text-wrap: balance; }

h2 {
  font-family: var(--headline);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.prose p { margin: 0 0 1.2em; max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--night);
  border: 2px solid var(--orange);
  border-radius: 4px;
  padding: 0.75rem 1.6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.2s var(--ease);
}
.btn:hover { background: var(--orange-hover); border-color: var(--orange-hover); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-ghost { background: transparent; color: var(--text-on-dark); border-color: var(--text-on-dark); }
.btn-ghost:hover { background: rgba(246, 235, 221, 0.12); border-color: var(--text-on-dark); }

.btn-small { padding: 0.45rem 1.1rem; font-size: 1.1rem; }

/* ---------- Header (turns solid once you scroll) ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-block: 1rem;
  color: var(--text-on-dark);
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  background: rgba(18, 15, 12, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding-block: 0.6rem;
  box-shadow: 0 1px 0 rgba(246, 235, 221, 0.12);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-decoration: none;
}

/* ==========================================================
   Motion
   Hidden starting states only apply when JavaScript is on (.js),
   so the page is fully readable without it.
   ========================================================== */

/* Hero entrance (plays on load) */
@keyframes rise   { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translateY(108%); } to { transform: none; } }
@keyframes coverIn { from { opacity: 0; transform: translateY(46px) scale(0.93) rotate(-2.5deg); } to { opacity: 1; transform: none; } }
@keyframes float  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.js .rise { opacity: 0; animation: rise 0.9s var(--ease) forwards; animation-delay: var(--d, 0s); }
.js h1 .line > span { transform: translateY(108%); animation: lineUp 0.95s var(--ease) forwards; animation-delay: var(--d, 0s); }
.js .cover { opacity: 0; animation: coverIn 1.25s var(--ease) 0.35s forwards; }
.cover img { animation: float 7s ease-in-out 1.8s infinite; }

/* Scroll reveals (added by script.js when an element enters the screen) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="left"]  { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"]  { transform: scale(0.94); }
.js [data-reveal].is-in   { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(6.5rem, 12vw, 9rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  /* a soft spotlight behind the cover, like the lit court on the jacket */
  background: radial-gradient(55% 75% at 76% 52%, rgba(217, 164, 96, 0.26), transparent 72%), var(--night);
}

/* The half-court lines draw in once on load, then stay as a quiet backdrop. */
.court {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  color: var(--maple);
  opacity: 0.22;
}
.court path, .court circle { fill: none; stroke: currentColor; stroke-width: 2.5; }
.court .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s 0.2s ease-out forwards; }
.court .fade { opacity: 0; animation: appear 1.2s 1.6s ease-out forwards; }

@keyframes draw   { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.byline {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--maple);
}

h1 {
  font-family: var(--headline);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(3.1rem, 8.4vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin-bottom: 1.5rem;
}
h1 .line { display: block; overflow: hidden; padding-block: 0.04em; }
h1 .line > span { display: block; }

.tagline { margin: 0 0 0.75rem; font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-style: italic; line-height: 1.35; }
.lede { margin: 0 0 2rem; max-width: 36ch; color: var(--muted-on-dark); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.release { margin: 1.25rem 0 0; font-size: 0.95rem; color: var(--muted-on-dark); }

/* Book cover (transparent 3D mockup) */
.cover { margin: 0 auto; width: min(500px, 100%); }
.cover img { width: 100%; height: auto; filter: drop-shadow(0 30px 38px rgba(0, 0, 0, 0.55)); }

/* ---------- About the book ---------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }

.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.75rem;
  margin: 2rem 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.facts dt { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.05em; color: var(--maple); }
.facts dd { margin: 0; }
.inline-cta { margin: 0; }

/* ---------- Trailer ---------- */
#trailer .wrap { text-align: center; }
#trailer h2 { margin-inline: auto; }
.video {
  aspect-ratio: 16 / 9;
  max-width: 960px;
  margin-inline: auto;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.7);
}
.video iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================
   Praise: a "starting lineup" of endorsers + a quote stage
   ========================================================== */
.lineup { display: block; }

/* Without JavaScript: every quote is shown as a simple list */
.roster, .stage-foot, .shot-clock, .qmark { display: none; }
.stage { background: var(--night); color: var(--text-on-dark); border-radius: 6px; padding: 1rem 1.5rem; }
.panel { margin: 0; padding: 1.75rem 0; border-top: 1px solid rgba(246, 235, 221, 0.2); }
.panel:first-child { border-top: 0; }
.panel blockquote { margin: 0; }
.panel blockquote p { margin: 0; }
.panel figcaption { margin-top: 1rem; display: flex; flex-direction: column; font-family: var(--display); letter-spacing: 0.03em; line-height: 1.25; }
.panel figcaption strong { font-weight: 800; font-size: 1.5rem; color: var(--maple); }
.panel figcaption span { font-size: 1.1rem; color: var(--muted-on-dark); }

/* With JavaScript: roster on the left, one quote at a time on the right */
.js .lineup { display: grid; grid-template-columns: minmax(250px, 0.42fr) 1fr; align-items: stretch; }

.js .roster {
  display: flex;
  flex-direction: column;
  position: relative;
  border-top: 2px solid var(--night);
}
.roster-btn {
  appearance: none;
  display: grid;
  grid-template-columns: 3.1rem 1fr;
  gap: 0.9rem;
  align-items: center;
  width: 100%;
  padding: 1rem 1rem;
  background: transparent;
  color: var(--night);
  border: 0;
  border-bottom: 1px solid rgba(18, 15, 12, 0.35);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, padding-left 0.3s var(--ease);
}
.roster-btn:hover { background: rgba(18, 15, 12, 0.09); }
.roster-btn .jersey {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1;
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s, opacity 0.3s;
}
.who strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: 0.02em; line-height: 1.15; }
.who span { display: block; margin-top: 0.15rem; font-size: 0.88rem; line-height: 1.3; opacity: 0.85; }

.roster-btn[aria-selected="true"] { background: var(--night); color: var(--maple-light); padding-left: 1.4rem; }
.roster-btn[aria-selected="true"] .jersey { color: var(--orange); opacity: 1; }
.roster-btn:focus-visible { outline-offset: -4px; }
.roster-btn[aria-selected="true"]:focus-visible { outline-color: var(--orange); }

.js .stage {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(2.75rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem) 0;
  border-radius: 0 6px 6px 0;
  overflow: hidden;
}
.js .qmark {
  display: block;
  position: absolute;
  top: 0.4rem;
  left: clamp(1.25rem, 3vw, 2.75rem);
  font-family: var(--headline);
  font-weight: 600;
  font-size: 8rem;
  line-height: 1;
  color: var(--orange);
  opacity: 0.9;
  pointer-events: none;
}

/* All quotes sit in the same grid cell, so the stage is always as tall as the longest one */
.js .panels { display: grid; flex: 1; }
.js .panel {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 0 1rem;
  border-top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.5s ease, visibility 0s 0.5s;
}
.js .panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.7s ease 0.2s, transform 0.8s var(--ease) 0.2s, visibility 0s;
}
.js .panel blockquote { font-size: clamp(1.2rem, 2.1vw, 1.55rem); line-height: 1.55; }
.js .panel figcaption { margin-top: 1.5rem; }

.js .stage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0 1.5rem;
}
.stage-count { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.1em; color: var(--muted-on-dark); font-variant-numeric: tabular-nums; }
.arrows { display: flex; gap: 0.6rem; }
.arrow {
  appearance: none;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--text-on-dark);
  border: 1.5px solid rgba(246, 235, 221, 0.4);
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.arrow:hover { background: var(--orange); border-color: var(--orange); color: var(--night); }
.arrow:active { transform: scale(0.92); }

/* The shot clock: fills while a quote is up, then the next one comes in */
.js .shot-clock { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(246, 235, 221, 0.14); }
.shot-clock span { display: block; height: 100%; background: var(--orange); transform-origin: left center; transform: scaleX(0); animation: clock 9s linear forwards paused; }
.praise.is-live .shot-clock span { animation-play-state: running; }
.praise.is-live .lineup:hover .shot-clock span,
.praise.is-live .lineup:focus-within .shot-clock span { animation-play-state: paused; }
@keyframes clock { to { transform: scaleX(1); } }

/* ---------- Press ---------- */
.press { margin-top: clamp(3rem, 6vw, 5rem); }
.press ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule); }
.press li { border-bottom: 1px solid rgba(18, 15, 12, 0.35); }
.press a { display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr auto; gap: 0.35rem 2rem; padding: 1.2rem 0; text-decoration: none; align-items: baseline; }
.press a::after { content: "\2197"; font-size: 1.4rem; line-height: 1; transition: transform 0.25s var(--ease); }
.press a:hover::after { transform: translate(4px, -4px); }
.press a:hover .headline { text-decoration: underline; }
.outlet { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.2; }

/* ---------- Author ---------- */
.author-grid { display: grid; grid-template-columns: minmax(240px, 0.7fr) 1.3fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

.portrait-frame { position: relative; width: 100%; max-width: 420px; }
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 2px solid var(--night);
  border-radius: 4px;
}
.portrait-clip { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--maple); }
.portrait { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* the photo is uncovered from the top down, while it settles from a slight zoom */
.js .portrait-clip { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s cubic-bezier(.7, 0, .2, 1) 0.15s; }
.js .portrait-clip .portrait { transform: scale(1.2); transition: transform 1.8s var(--ease) 0.15s; }
.js .portrait-frame.is-in .portrait-clip { clip-path: inset(0 0 0 0); }
.js .portrait-frame.is-in .portrait-clip .portrait { transform: none; }

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem 1.25rem;
  list-style: none;
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--rule);
}
.stats strong { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(3.2rem, 6vw, 4.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 0.35rem; font-size: 0.95rem; line-height: 1.35; }

.career-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem clamp(2rem, 4vw, 3rem); margin-top: clamp(3rem, 6vw, 4.5rem); }
.plain-list { margin: 0; padding: 0; list-style: none; font-size: 1rem; line-height: 1.5; }
.plain-list li { padding: 0.55rem 0; border-top: 1px solid rgba(18, 15, 12, 0.3); }

/* ---------- Signup ---------- */
.signup-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.signup-copy { margin: 0; max-width: 40ch; color: var(--muted-on-dark); }

.signup-form { max-width: 34rem; }
.form-label { display: block; margin-bottom: 0.4rem; font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.04em; }
.field-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.field-row input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.8rem 1rem;
  font: inherit;
  color: var(--text-on-dark);
  background: rgba(246, 235, 221, 0.07);
  border: 2px solid var(--maple);
  border-radius: 4px;
}
.field-row input::placeholder { color: var(--muted-on-dark); }
.form-status { min-height: 1.6em; margin: 0.9rem 0 0; font-size: 1rem; }
.form-status.is-error { color: #FFB38F; }
.form-status.is-success { color: var(--maple); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 2.5rem 2rem; font-size: 0.95rem; color: var(--muted-on-dark); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.footer-row p, .footer-copy p { margin: 0; }
.footer-copy { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(246, 235, 221, 0.14); }

.socials { display: flex; flex-wrap: nowrap; align-items: center; gap: 0.75rem; }
.socials-label { margin-right: 0.35rem; font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.06em; color: var(--text-on-dark); }
.social {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.1rem 0.5rem 0.85rem;
  border: 1.5px solid rgba(246, 235, 221, 0.4);
  border-radius: 999px;
  color: var(--text-on-dark);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.25s var(--ease);
}
.social svg { width: 1.3rem; height: 1.3rem; }
.social:hover { background: var(--orange); border-color: var(--orange); color: var(--night); transform: translateY(-3px); }
.footer-buy a { text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  /* Mobile: the book comes first */
  .hero {
    padding-top: 5.5rem;
    background: radial-gradient(75% 40% at 50% 22%, rgba(217, 164, 96, 0.3), transparent 74%), var(--night);
  }
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .cover { order: -1; width: min(290px, 68vw); }

  .split, .author-grid, .signup-wrap { grid-template-columns: 1fr; }
  .portrait-frame { max-width: 340px; margin-right: 16px; margin-bottom: 1.25rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .career-grid { grid-template-columns: 1fr; }
  .press a { grid-template-columns: 1fr auto; }
  .press .outlet { grid-column: 1; }
  .press .headline { grid-column: 1; }
  .press a::after { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

  /* Reviews: the roster becomes a swipeable row of numbered chips above the quote */
  .js .lineup { grid-template-columns: 1fr; }
  .js .roster {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-top: 0;
    gap: 0.4rem;
    padding-bottom: 0;
  }
  .js .roster::-webkit-scrollbar { display: none; }
  .roster-btn {
    flex: 0 0 auto;
    width: auto;
    grid-template-columns: auto;
    gap: 0;
    padding: 0.7rem 1.1rem 0.6rem;
    border: 2px solid var(--night);
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    scroll-snap-align: center;
  }
  .roster-btn[aria-selected="true"] { padding-left: 1.1rem; }
  .roster-btn .who span { display: none; }
  .roster-btn .jersey { font-size: 1.5rem; margin-bottom: 0.1rem; }
  .who strong { font-size: 1.15rem; white-space: nowrap; }
  .js .stage { border-radius: 0 6px 6px 6px; }
  .js .qmark { font-size: 6rem; }
}

@media (max-width: 480px) {
  body { font-size: 1.0625rem; }
  .brand { font-size: 1.25rem; }
  .btn { font-size: 1.2rem; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .socials { gap: 0.5rem; width: 100%; }
  .socials-label { margin-right: 0.1rem; font-size: 1.05rem; letter-spacing: 0.03em; white-space: nowrap; }
  .social { gap: 0.4rem; padding: 0.45rem 0.8rem 0.45rem 0.65rem; font-size: 1.05rem; letter-spacing: 0.02em; white-space: nowrap; }
  .social svg { width: 1.1rem; height: 1.1rem; }
}

/* ---------- Reduced motion: show everything, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .court .draw { animation: none; stroke-dashoffset: 0; }
  .court .fade { animation: none; opacity: 1; }
  .js .rise, .js .cover, .js h1 .line > span { animation: none; opacity: 1; transform: none; }
  .cover img { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .portrait-clip { clip-path: none; transition: none; }
  .js .portrait-clip .portrait { transform: none; transition: none; }
  .js .panel, .js .panel.is-active { transition: none; }
  .js .shot-clock { display: none; }
}

/* Phones: the label sits above so YouTube and Facebook always share one line and never get cut off */
@media (max-width: 480px) {
  .socials { flex-wrap: wrap; }
  .socials-label { flex-basis: 100%; margin-bottom: 0.1rem; }
  .brand { white-space: nowrap; }
  .site-header .btn-small { white-space: nowrap; }
}
@media (max-width: 360px) {
  .brand { font-size: 1.1rem; letter-spacing: 0.02em; }
  .site-header .btn-small { padding: 0.4rem 0.8rem; font-size: 1rem; }
  .social { padding: 0.4rem 0.65rem 0.4rem 0.55rem; font-size: 1rem; }
}

/* ==========================================================
   Pop-up signup (opens when the trailer section is reached)
   ========================================================== */
.popup {
  width: min(760px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  background: var(--night);
  color: var(--text-on-dark);
  border: 0;
  border-top: 6px solid var(--orange);
  border-radius: 8px;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.8);
  --focus: var(--orange);
}
.popup:focus { outline: none; }
.popup::backdrop { background: rgba(10, 8, 6, 0.78); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.popup[open] { animation: popIn 0.55s var(--ease); }
.popup[open]::backdrop { animation: fadeIn 0.4s ease; }
@keyframes popIn  { from { opacity: 0; transform: translateY(30px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.popup-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: radial-gradient(70% 90% at 15% 50%, rgba(217, 164, 96, 0.22), transparent 70%);
}
.popup-cover { width: 100%; height: auto; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.55)); }
.popup h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 0.75rem; }
.popup-body > p { margin: 0 0 1.5rem; color: var(--muted-on-dark); }
.popup .field-row input { flex-basis: 12rem; }
.popup-skip {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.35rem 0;
  color: var(--muted-on-dark);
  font: inherit;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.popup-skip:hover { color: var(--text-on-dark); }
.popup-close {
  appearance: none;
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: rgba(246, 235, 221, 0.08);
  color: var(--text-on-dark);
  border: 0;
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.popup-close:hover { background: var(--orange); color: var(--night); }

@media (max-width: 640px) {
  .popup-grid { grid-template-columns: 1fr; text-align: center; padding-top: 2.25rem; }
  .popup-cover { width: min(150px, 40vw); margin-inline: auto; }
  .popup-body > p { margin-bottom: 1.25rem; }
  .popup .field-row { justify-content: center; }
  .popup .field-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .popup[open], .popup[open]::backdrop { animation: none; }
}

/* Hidden spam-trap field: invisible to people, bots fill it in */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
