/* ==========================================================================
   SLOPVERSE — landing page
   Loud, dark, faintly embarrassed about itself. Which is correct.
   ========================================================================== */

:root {
  --ink:        #07070b;
  --ink-2:      #0d0d14;
  --ink-3:      #12121c;
  --paper:      #f2f2f5;
  --paper-dim:  #a9a9b8;
  --paper-fant: #6e6e80;

  --acid:       #d5ff4a;
  --acid-deep:  #a8cc22;
  --hot:        #ff4fd8;
  --cool:       #4fe3ff;

  --line:       rgba(255,255,255,.10);
  --line-hi:    rgba(255,255,255,.20);

  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --sans:    "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:    "DM Mono", ui-monospace, Menlo, Consolas, monospace;

  --wrap: 1180px;
  --pad:  clamp(20px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--acid); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--paper); }

::selection { background: var(--acid); color: #06060a; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--acid); color: #06060a; padding: 12px 18px; font-weight: 700;
}
.skip:focus { left: 8px; top: 8px; }

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

/* ---------- grain overlay ---------- */
.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 60; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--pad);
  background: rgba(7,7,11,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-mark {
  font-family: var(--display); font-size: 19px; letter-spacing: .04em;
  color: var(--paper); text-decoration: none;
}
.nav-mark:hover { color: var(--acid); }
.blink { color: var(--acid); animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { opacity: 0; } }

.nav-links { display: flex; gap: clamp(14px, 3vw, 30px); }
.nav-links a {
  color: var(--paper-dim); text-decoration: none; font-size: 14px;
  font-weight: 500; letter-spacing: .02em;
}
.nav-links a:hover { color: var(--acid); }
@media (max-width: 620px) { .nav-links a:nth-child(3) { display: none; } }
@media (max-width: 460px) { .nav-links { font-size: 13px; } .nav-links a:nth-child(1) { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex; align-items: flex-end;
  padding: clamp(90px, 16vh, 190px) var(--pad) clamp(56px, 9vh, 92px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* The hero is a gameplay recording, so the veil has to work harder than it did
   over a painting: the top two-thirds carry the scene art, the dialogue and the
   mission card, and all of that has to stay readable. Weight the darkness into
   the bottom-left corner where the wordmark sits — which is also where the
   recording's own UI panels already are — and leave the upper frame nearly
   clear. */
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  filter: saturate(.96);
  background: var(--ink);
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(105% 82% at 12% 104%, rgba(7,7,11,.96) 0%, rgba(7,7,11,.72) 38%, rgba(7,7,11,0) 72%),
    linear-gradient(to top, var(--ink) 4%, rgba(7,7,11,.86) 26%, rgba(7,7,11,.12) 56%, rgba(7,7,11,.30) 100%);
}
.hero-inner { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; }

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--acid);
}

.wordmark {
  font-family: var(--display);
  font-size: clamp(58px, 15.5vw, 190px);
  line-height: .84;
  letter-spacing: -.028em;
  margin: 0 0 clamp(20px, 3vw, 30px);
  color: var(--paper);
  text-shadow: 0 6px 60px rgba(0,0,0,.6);
}
.wordmark-alt {
  color: var(--acid);
  text-shadow: 3px 3px 0 var(--hot), 0 6px 60px rgba(0,0,0,.5);
}
/* Narrow screens: stack the wordmark rather than letting it clip. */
@media (max-width: 620px) {
  .wordmark { font-size: clamp(54px, 19vw, 96px); line-height: .9; }
  .wordmark-alt { display: block; }
}

.lede {
  max-width: 640px; margin: 0 0 30px;
  font-size: clamp(17px, 2.1vw, 21px); line-height: 1.55;
  color: #e4e4ec;
  text-shadow: 0 2px 20px rgba(0,0,0,.8);
}
.lede em { color: var(--acid); font-style: italic; }

.cta-row { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 26px; }
.center-row { justify-content: center; }

.btn {
  display: inline-block; padding: 15px 28px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  text-decoration: none; border-radius: 2px;
  border: 2px solid transparent;
  transition: transform .14s ease, background .14s ease, color .14s ease, border-color .14s ease;
}
.btn-primary { background: var(--acid); color: #06060a; }
.btn-primary:hover { background: var(--paper); color: #06060a; transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-hi); color: var(--paper); background: rgba(7,7,11,.4); }
.btn-ghost:hover { border-color: var(--acid); color: var(--acid); transform: translateY(-2px); }

.hero-foot {
  margin: 0;
  font-family: var(--mono); font-size: 13.5px; color: var(--paper-dim);
  text-shadow: 0 2px 14px rgba(0,0,0,.9);
}

.scroll-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: 1px; height: 42px; background: var(--line-hi); overflow: hidden;
}
.scroll-hint span {
  position: absolute; inset: 0; background: var(--acid);
  animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  background: var(--acid); color: #06060a;
  border-bottom: 1px solid rgba(0,0,0,.3);
  padding: 11px 0;
}
.marquee-track { display: inline-flex; animation: slide 34s linear infinite; }
.marquee-track span {
  font-family: var(--display); font-size: 14px; letter-spacing: .06em;
  padding-right: 34px;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- layout bands ---------- */
.band { padding: clamp(64px, 11vw, 130px) var(--pad); border-bottom: 1px solid var(--line); }
.band-alt { background: var(--ink-2); }
.band-slop {
  background:
    radial-gradient(80% 130% at 88% 50%, rgba(255,79,216,.11), transparent 62%),
    var(--ink-3);
}
.band-end { background: var(--ink-2); }

.wrap { max-width: var(--wrap); margin: 0 auto; }
.wrap-narrow { max-width: 760px; }
.center { text-align: center; }

.kicker {
  margin: 0 0 14px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--hot);
}

.h2 {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 50px);
  line-height: 1.06; letter-spacing: -.02em;
  margin: 0 0 24px; max-width: 20ch;
}
.center .h2 { max-width: none; }
.h2.big { font-size: clamp(36px, 8vw, 76px); }
.sad { color: var(--acid); }

.body-lg { font-size: clamp(16px, 1.7vw, 18.5px); max-width: 66ch; margin: 0 0 20px; color: #d8d8e2; }
.center .body-lg { margin-left: auto; margin-right: auto; }
.body-lg strong { color: var(--paper); }
.body-lg em { color: var(--acid); font-style: italic; }
.dim { color: var(--paper-fant); }
.mono { font-family: var(--mono); color: var(--cool); font-size: .95em; }

/* ---------- feature cards ---------- */
.cards {
  display: grid; gap: 1px; margin-top: clamp(38px, 6vw, 62px);
  grid-template-columns: repeat(3, 1fr);
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 940px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; background: var(--ink);
  padding: clamp(26px, 3.2vw, 38px);
  transition: background .18s ease;
}
.band-alt .card { background: var(--ink-2); }
.card:hover { background: var(--ink-3); }
.card-num {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  color: var(--acid-deep); display: block; margin-bottom: 14px;
}
.card h3 {
  font-family: var(--display); font-size: 19px; line-height: 1.22;
  margin: 0 0 12px; letter-spacing: -.01em;
}
.card p { margin: 0; font-size: 15.5px; color: #c2c2d0; line-height: 1.6; }
.card p em { color: var(--acid); font-style: italic; }

/* ---------- gallery ---------- */
.grid {
  display: grid; gap: clamp(18px, 2.4vw, 30px);
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(38px, 6vw, 60px);
}
@media (max-width: 940px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.shot { margin: 0; display: flex; flex-direction: column; }

.shot img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid var(--line);
  background: var(--ink-3);
  transition: transform .3s ease, border-color .3s ease;
}
.shot:hover img { transform: translateY(-4px); border-color: var(--line-hi); }
.shot figcaption {
  margin-top: 13px; font-size: 14.5px; line-height: 1.55; color: var(--paper-fant);
  border-left: 2px solid var(--hot); padding-left: 12px;
}
.shot figcaption b { color: var(--paper); font-weight: 700; }

/* ---------- vibecoded ---------- */
.confess {
  display: grid; gap: clamp(34px, 5vw, 64px);
  grid-template-columns: 1.35fr .85fr; align-items: start;
}
@media (max-width: 860px) { .confess { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; margin: 28px 0 0; }
.ticks li {
  position: relative; padding-left: 26px; margin-bottom: 9px;
  font-family: var(--mono); font-size: 14.5px; color: var(--paper-dim);
}
.ticks li::before {
  content: "✓"; position: absolute; left: 0; color: var(--acid); font-weight: 700;
}

.confess-photo { margin: 0; }
.confess-photo img {
  width: 100%; border: 1px solid var(--line);
  filter: saturate(.94);
  transform: rotate(-1.4deg);
}
.confess-photo figcaption {
  margin-top: 20px; font-size: 14.5px; line-height: 1.55; color: var(--paper-fant);
  border-left: 2px solid var(--acid); padding-left: 12px;
}
.confess-photo figcaption b { color: var(--paper); }

/* ---------- mascot ---------- */
.mascot {
  display: grid; gap: clamp(30px, 5vw, 60px);
  grid-template-columns: minmax(190px, .55fr) 1.45fr; align-items: center;
}
@media (max-width: 780px) { .mascot { grid-template-columns: 1fr; } }
.mascot-img { margin: 0; }
.mascot-img img {
  width: 100%; border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(255,79,216,.28), 0 24px 70px rgba(0,0,0,.6);
  animation: bob 5.5s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-9px); } }

/* ---------- FAQ ---------- */
details {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none;
  padding: 20px 40px 20px 0; position: relative;
  font-family: var(--display); font-size: clamp(16px, 2vw, 19px);
  line-height: 1.3; letter-spacing: -.01em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--acid); font-family: var(--sans); font-size: 26px; font-weight: 400;
  line-height: 1; transition: transform .2s ease;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
summary:hover { color: var(--acid); }
details p {
  margin: 0 0 22px; padding-right: 40px;
  font-size: 16px; color: #c5c5d2; line-height: 1.65;
}
details p em { color: var(--acid); font-style: italic; }

/* ---------- footer ---------- */
.foot { padding: clamp(44px, 7vw, 74px) var(--pad); background: var(--ink); }
.foot-in { display: flex; flex-direction: column; gap: 12px; }
.foot-mark {
  font-family: var(--display); font-size: clamp(30px, 8vw, 62px);
  letter-spacing: -.02em; color: #1c1c28; line-height: 1;
}
.foot-note { font-size: 14px; color: var(--paper-fant); max-width: 60ch; }

/* ---------- hero clip ---------- */
/* Reduced-motion visitors never get the video loaded (see the loader script),
   so the poster frame is what they see and it must not animate either. */
@media (prefers-reduced-motion: reduce) {
  .scroll-hint span { animation: none; }
}
