/* Shared Crankydino styles: colours, type, buttons, nav, footer */
:root {
  --abyss: #060b18;
  --navy: #0d1730;
  --deep: #12224a;
  --line: rgba(160, 190, 255, .14);
  --white: #f4f6fb;
  --muted: #9aa8c4;
  --gold: #ffc81f;
  --gold-deep: #e9a20b;
  --scan: linear-gradient(90deg, #ff4b4b, #ff9a2e, #ffd93a, #5fe07a, #2fd3e6, #4b7bff, #a35cff);
  --radius: 22px;
  --display: "Fredoka", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--white);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; }
h3 { font-size: 1.5rem; line-height: 1.15; font-weight: 600; }
p { margin: .6em 0 0; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
section { padding: clamp(64px, 9vw, 120px) 0; }
.center { text-align: center; }
.kicker {
  display: inline-block;
  margin: 0 0 14px;
  font: 600 .82rem var(--display);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.lede { color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.3rem); }
.gold { color: var(--gold); }

/* The rainbow "scan" stripe, borrowed from the point-cloud colours in the key art */
.scanline {
  height: 3px;
  border-radius: 3px;
  background: var(--scan);
  opacity: .9;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .8em 1.5em;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font: 600 1.05rem var(--display);
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s, border-color .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
/* Flat gold with a pressed-in bottom edge, like a game menu button. No glow. */
.btn.primary {
  background: var(--gold);
  color: #16120a;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2);
}
.btn.primary:hover { background: #ffd447; }
.btn.primary:active { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .2); }
.btn.ghost { border-color: rgba(244, 246, 251, .3); color: var(--white); background: transparent; }
.btn.ghost:hover { border-color: var(--white); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(6, 11, 24, .82); backdrop-filter: blur(12px); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 6px; height: 68px; }
.studio { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
.studio img { height: 38px; width: auto; }
.studio span { font: 600 1.15rem var(--display); letter-spacing: .02em; }
.nav .link {
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.nav .link:hover { color: var(--white); }
.nav .btn { padding: .45em 1em; font-size: .92rem; margin-left: 8px; gap: 0; }
/* Quiet outlined button in the top bar so it doesn't shout */
.nav .btn.primary { background: transparent; color: var(--gold); border-color: rgba(255, 200, 31, .55); box-shadow: none; }
.nav .btn.primary:hover { background: rgba(255, 200, 31, .1); border-color: var(--gold); }
.nav .btn .long { display: none; margin-left: .28em; }
@media (min-width: 761px) { .nav .btn .long { display: inline; } }
@media (max-width: 760px) { .nav .link { display: none; } }

/* Image slots: show a dotted point-cloud placeholder until the real image exists */
.media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: rgba(244, 246, 251, .45);
  font: 500 .95rem var(--display);
  background:
    radial-gradient(circle, rgba(47, 211, 230, .35) 1px, transparent 1.6px) 0 0 / 14px 14px,
    radial-gradient(ellipse at 30% 30%, rgba(75, 123, 255, .35), transparent 60%),
    #0a1430;
}
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media video { z-index: 1; }

/* ---------- Footer ---------- */
footer { padding: 64px 0 48px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); background: #040812; }
footer .studio-logo { width: 180px; height: auto; margin: 0 auto; opacity: .95; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; margin: 26px 0 14px; }
footer nav a { text-decoration: none; font-weight: 600; transition: color .15s; }
footer nav a:hover { color: var(--gold); }
footer .press a { color: var(--white); font-weight: 800; }
footer small { display: block; margin-top: 10px; opacity: .7; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform 1s cubic-bezier(.2, 1, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

::selection { background: rgba(255, 200, 31, .35); }

/* ---------- Newsletter signup ---------- */
.signup { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 520px; margin: 22px auto 0; }
.signup input {
  flex: 1 1 240px;
  min-width: 0;
  padding: .85em 1.3em;
  border-radius: 999px;
  border: 2px solid rgba(244, 246, 251, .2);
  background: rgba(6, 11, 24, .5);
  color: var(--white);
  font: 600 1rem var(--body);
}
.signup input::placeholder { color: var(--muted); }
.signup input:focus { outline: none; border-color: var(--gold); }
.signup-note { min-height: 1.6em; margin-top: 10px; font-size: .92rem; color: var(--muted); }

/* ---------- Plain page header (studio home, press) ---------- */
.page-head { padding: 150px 0 40px; text-align: center; }
.page-head .lede { max-width: 36em; margin: 16px auto 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint::after { animation: none; }
  .half > img, .feature, .btn { transition: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
