/* Fonts served from this origin. They used to come from fonts.googleapis.com, which was
   the only third-party request on the site and sent every visitor's IP to Google before
   the page painted -- an odd fit next to a page that promises nothing leaves the device.
   Nunito and Outfit are variable, so one file each covers every weight in use. */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('assets/fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('assets/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/press-start-2p-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f7f7f9;
  --bg-elev: #ffffff;
  --ink: #111318;
  --ink-soft: #3d4450;
  --muted: #6b7280;
  --line: rgba(17, 19, 24, 0.08);
  --red: #d12b2b;
  --red-deep: #a61b1b;
  --blue: #1d6fb8;
  --blue-deep: #12508a;
  --gold: #e0a41a;
  --gold-soft: #f6e3a8;
  --sky: #e8f1fb;
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 50px rgba(17, 19, 24, 0.08);
  --shadow-sm: 0 8px 24px rgba(17, 19, 24, 0.06);
  --radius: 28px;
  --radius-sm: 16px;
  --max: 1160px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-pixel: "Press Start 2P", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(29, 111, 184, 0.08), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, rgba(209, 43, 43, 0.06), transparent 55%),
    var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Pixel sparkle field */
.sparkle-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("assets/pattern.webp");
  background-size: 420px auto;
  opacity: 0.11;
  mix-blend-mode: multiply;
}

.page {
  position: relative;
  z-index: 1;
}

/* The header is sticky, so an anchor jump would otherwise park the section heading
   underneath it. Offset every linkable section by a little more than the bar. */
section[id] {
  scroll-margin-top: 92px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Keyboard focus. There were no :focus-visible rules at all, so tabbing through the
   site relied on the browser default, which all but disappears against these pill
   buttons. :focus-visible rather than :focus so a mouse click does not draw a ring. */
:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* Somewhere to jump to, for anyone arriving by keyboard or screen reader. */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 60;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* NAV */
header.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(247, 247, 249, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  /* The wordmark on the banner is pixel type, so the header says the name the same way.
     Press Start 2P is effectively monospace and has a single weight -- asking for 750
     would make the browser fake a bold and smear the pixel grid, so this is 400 at a
     size that keeps the lockup roughly the width it was. */
  font-family: var(--font-pixel);
  font-weight: 400;
  letter-spacing: 0;
  font-size: 0.68rem;
  line-height: 1.35;
  padding-top: 2px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  /* Not a white patch. The page sits on #f7f7f9, so a pure white tile read as a lighter
     square floating in the nav. This is a brand tile instead, keyed to the mascot's shirt,
     which also gives the red hat something to sit against. */
  background: linear-gradient(158deg, var(--sky) 0%, #ffffff 74%);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(29, 111, 184, 0.12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  /* Belt and braces. width:100% here resolves against whatever contains it, so if the
     .brand-mark rule above ever fails to apply -- a stale cache, a truncated stylesheet --
     this image expands to the full content width instead of staying a 44px mark. These
     two lines make that failure mode a small logo rather than a full-page face. */
  max-width: 44px;
  max-height: 44px;
  object-fit: cover;
  /* The mark is cropped to the character now, so it only needs centring, not hunting
     for a face inside a full logo that had the wordmark baked into it. */
  object-position: 50% 30%;
  image-rendering: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.nav-links a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  border-radius: 999px;
  padding: 12px 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--red) 0%, var(--red-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(209, 43, 43, 0.28);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-blue {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(29, 111, 184, 0.28);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

/* HERO */
.hero {
  padding: 24px 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--red);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(224, 164, 26, 0.18);
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.045em;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 0.98;
  margin-bottom: 18px;
}

h1 span.accent {
  color: var(--blue);
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-meta b {
  color: var(--ink);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

/* The hero is a stacked banner: the couch art is 16:9 with the wordmark built into it, so
   it needs the full column width to read. Text sits centred underneath. */
.hero-stack {
  display: grid;
  gap: 22px;
  justify-items: center;
}

.hero-banner {
  position: relative;
  width: 100%;
  /* At the full 1160px the banner is 650px tall and pushes the headline off a laptop
     screen, so the studio's actual pitch lands below the fold. Capped so the banner,
     the headline and the buttons all fit above it. */
  max-width: 720px;
  margin-inline: auto;
}

.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
  /* width/height are on the tag too, so the row is reserved before the image lands. */
  aspect-ratio: 1792 / 1008;
}

.hero-copy {
  max-width: 44rem;
  text-align: center;
  display: grid;
  justify-items: center;
}

.hero-copy .lede {
  max-width: 40rem;
}

.hero-copy .hero-actions,
.hero-copy .hero-meta {
  justify-content: center;
}




.float-chip {
  position: absolute;
  z-index: 2;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow-sm);
  border-radius: 16px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 0.82rem;
}

.chip-1 {
  top: 6%;
  left: 2%;
  animation: floaty 5s ease-in-out infinite;
}

.chip-2 {
  top: 6%;
  right: 2%;
  animation: floaty 6.2s ease-in-out infinite reverse;
}

.chip-pixel {
  font-family: var(--font-pixel);
  font-size: 0.48rem;
  letter-spacing: 0.04em;
  color: var(--blue-deep);
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* SECTIONS */
section {
  padding: 72px 0;
}

.section-kicker {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 12px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-intro {
  color: var(--ink-soft);
  max-width: 40rem;
  font-size: 1.05rem;
}

/* FEATURED GAME */
.game-panel {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.game-art {
  position: relative;
  min-height: 420px;
  background: #0b1b33;
}

.game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}

.game-art .badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(17,19,24,0.72);
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  padding: 8px 10px;
  border-radius: 8px;
}

.game-copy {
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  margin: 6px 0 8px;
}

.game-copy p {
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.pill {
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--sky);
  color: var(--blue-deep);
  border-radius: 999px;
  padding: 6px 10px;
}

/* STUDIO */
.studio-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
  margin-top: 28px;
}

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.person-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px 16px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.person-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  /* Both files are cropped to 3:4 head-and-torso, so cover is an exact fit -- no
     letterbox bars and no mismatch between a full-body shot and a bust. */
  object-fit: cover;
  background: linear-gradient(180deg, #f6f8fc, #fff);
  border-radius: 18px;
}

/* Arcade slot plates, so the pair reads as a two-player roster. */
.person-slot {
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 1;
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  line-height: 1;
  color: #fff;
  border-radius: 7px;
  padding: 6px 7px 5px;
  box-shadow: var(--shadow-sm);
}

.person-slot-p1 {
  background: var(--blue);
}

.person-slot-p2 {
  background: var(--red);
}

.person-card h3 {
  font-family: var(--font-display);
  margin-top: 12px;
  font-size: 1.1rem;
}

.person-card p {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.values {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.value {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
}

.value strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 4px;
}

.value span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* NEWSLETTER / CTA */
.cta-band {
  background:
    linear-gradient(135deg, rgba(29,111,184,0.08), rgba(209,43,43,0.07));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 42px 36px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.mail-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.mail-row input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  background: #fff;
  outline: none;
}

.mail-row input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(29,111,184,0.12);
}

/* The second column of a cta-band is context, not a second headline. */
.cta-aside h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 6px 0 8px;
}

.cta-aside p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* The closing art earns a bit of stage: a glow keyed to the sword's green, a shadow
   that sets it on the panel rather than floating flat, and the same drift the nav chips
   use so the motion vocabulary stays consistent. */
.duel-art {
  position: relative;
  display: grid;
  place-items: center;
}

.duel-art::before {
  content: "";
  position: absolute;
  inset: -8% -12%;
  z-index: 0;
  background:
    radial-gradient(40% 34% at 62% 24%, rgba(126, 232, 92, 0.38), rgba(126, 232, 92, 0) 70%),
    radial-gradient(62% 56% at 48% 60%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 74%);
  filter: blur(8px);
  pointer-events: none;
}

.duel-art img {
  position: relative;
  z-index: 1;
  width: min(340px, 100%);
  height: auto;
  margin-inline: auto;
  filter:
    drop-shadow(0 18px 24px rgba(17, 19, 24, 0.24))
    drop-shadow(0 0 28px rgba(126, 232, 92, 0.30));
}

@media (prefers-reduced-motion: no-preference) {
  .duel-art img {
    animation: floaty 6.4s ease-in-out infinite;
  }
}

/* The game's own line, in the game's voice. Quoted, not paraphrased. */
.game-tagline {
  margin: 4px 0 20px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-deep);
  letter-spacing: -0.01em;
}

/* The teaser. preload="none" so the 7.9 MB only moves when somebody asks for it --
   the poster is all anyone else pays for. */
.teaser {
  margin: 24px 0 0;
}

.teaser video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0a1030;
}

.note {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* FOOTER */
footer {
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

/* The mark sits beside a text column, so the name and the tagline share a left edge
   instead of the tagline starting back under the logo. */
.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.foot-brand-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.foot-brand p {
  margin-top: 0;
  max-width: 26rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

.foot-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.foot-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.foot-col h2 {
  font-family: var(--font-pixel);
  font-size: 0.48rem;
  letter-spacing: 0.06em;
  color: var(--blue-deep);
  margin-bottom: 2px;
}

.foot-col a {
  color: var(--ink-soft);
  font-weight: 700;
}

.foot-col a:hover {
  color: var(--red);
}

.foot-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

/* The name leads, the tagline answers. The tagline used to be the larger of the two in
   actual pixels -- 14.4 against 10.24 -- and only looked level because the pixel face
   fills its em where Nunito's glyphs sit at about two thirds of it. */
.wordmark-block {
  color: var(--ink);
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 0.86rem;
  line-height: 1.15;
  letter-spacing: 0;
}

/* STARWICK PAGE extras */
.game-hero {
  padding-top: 40px;
}

.game-hero-art {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin: 24px 0 18px;
}

.game-hero-art img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

.feature-triples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.mini {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.mini h3 {
  font-family: var(--font-display);
  margin-bottom: 6px;
}

/* Responsive */
@media (max-width: 900px) {
  .game-panel,
  .studio-grid,
  .cta-band,
  .feature-triples {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    /* Opaque, not translucent: nested inside the header's own backdrop-filter, a see-through
       panel let the hero headline read straight through the menu items. */
    background: #fff;
    z-index: 41;
    box-shadow: 0 18px 30px rgba(17,19,24,.10);
    flex-direction: column;
    padding: 18px 22px 22px;
    border-bottom: 1px solid var(--line);
    gap: 14px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .hero {
    padding-top: 28px;
  }

  /* At tablet width and below the banner is small enough that the floating chips start
     covering the characters, so they step aside. */
  .float-chip {
    display: none;
  }

  .hero-stack {
    gap: 22px;
  }

  .foot-top {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 26px;
  }

  /* The header lockup is the loud one. At 320px the footer copy ran nearly edge to
     edge, so it sits back here. */
  /* Keep the name ahead of the tagline in real pixels here too, not just optically. */
  footer .wordmark-block {
    font-size: 0.8rem;
  }

  .foot-brand p {
    font-size: 0.75rem;
  }

  /* Studio is a single link now, so equal half-width columns left a block of dead
     space beside it. Size them to their content and group them instead. */
  .foot-nav {
    grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: start;
    gap: 44px;
  }

  .foot-legal {
    margin-top: 26px;
    padding-top: 18px;
    /* Otherwise "reserved." drops onto a line of its own. */
    text-wrap: balance;
  }

  h1 {
    font-size: 2.5rem;
  }

  .game-art {
    min-height: 280px;
  }
}
