/* Layout: one night-time stage. A huge stacked wordmark behind the studio's hero character,
   then one featured live game and a "workshop" shelf of games that aren't open yet.
   Single dark look on purpose (a game studio at night), so no light theme.
   Pop pass (cofounders, 2026-11-25): every game owns a loud signature colour (--tone on its card),
   drawn with a bold ink outline and a hard offset shadow, like illustrated key art. */
:root {
  --night: #0d0b17;        /* page ground: violet-biased ink */
  --night-2: #15121f;      /* raised bands */
  --panel: #1c1829;        /* cards */
  --line: #2d2740;         /* hairlines */
  --fg: #f3f0fa;           /* text */
  --muted: #a69fbd;        /* secondary text */
  --lantern: #ffb62e;      /* the one accent: lantern amber */
  --lantern-ink: #1a1203;  /* text on amber */
  --blood: #e0333c;        /* live-pill dot */
  --ink: #050409;          /* outlines + hard shadows */
  /* one signature colour per game */
  --sh: #ff2e55;           /* Shadow Hunter: headband crimson */
  --an: #9d6bff;           /* All Nows: rift violet */
  --hh: #ffd43b;           /* Horde Highway: desert sun */
  --dm: #ff7a2f;           /* Dead Miles: ember orange */
  --pop: 6px;              /* hard shadow offset */

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  --step-3: clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem);
  --step-hero: clamp(5.2rem, 2rem + 13vw, 12.5rem);

  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--fg);
  font: 400 var(--step-0)/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--lantern); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem;
  background: var(--lantern); color: var(--lantern-ink);
  font: 800 1.05rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border: 0; border-radius: 10px; cursor: pointer;
  box-shadow: 0 8px 30px -10px rgba(255, 182, 46, .65), inset 0 -3px 0 rgba(0, 0, 0, .18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn svg { width: 1em; height: 1em; fill: currentColor; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px -10px rgba(255, 182, 46, .8), inset 0 -3px 0 rgba(0, 0, 0, .18); }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--lantern); }
.btn-small { padding: .6rem 1rem; font-size: .95rem; }

/* ---------- nav ---------- */
/* Fixed header (owner, 2026-11-25): sticks to the top, glassy over the page; tighter once scrolled. */
.nav {
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(13, 11, 23, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.nav.scrolled { background: rgba(13, 11, 23, .9); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.1rem; transition: padding .25s ease; }
.nav.scrolled .nav-inner { padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--lantern); color: var(--lantern-ink);
  font: 900 1.35rem/1 var(--display); transform: skewX(-8deg);
}
.brand-word { font: 900 1.35rem/1 var(--display); letter-spacing: .06em; }
.brand-word b { font-weight: 900; color: var(--lantern); margin-left: .18em; }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 760px) { .nav-links { display: none; } .nav-inner > .btn { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 2.5rem 4.5rem; }
.hero-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 50% at 74% 42%, rgba(255, 46, 85, .30), transparent 70%),
    radial-gradient(40% 45% at 92% 10%, rgba(255, 182, 46, .22), transparent 70%),
    radial-gradient(50% 60% at 6% 100%, rgba(157, 107, 255, .34), transparent 70%);
}
/* comic halftone dots fading in from the corners */
.hero-fx::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, .13) 1.4px, transparent 1.9px) 0 0 / 14px 14px;
  -webkit-mask-image: radial-gradient(70% 80% at 100% 0%, #000, transparent 70%), radial-gradient(60% 70% at 0% 100%, #000, transparent 70%);
  mask-image: radial-gradient(70% 80% at 100% 0%, #000, transparent 70%), radial-gradient(60% 70% at 0% 100%, #000, transparent 70%);
}
.beam {
  position: absolute; top: -30%; width: 70vmax; height: 140vmax; left: 50%;
  transform-origin: 50% 0;
  background: conic-gradient(from 168deg at 50% 0, transparent 0deg, rgba(255, 214, 140, .11) 12deg, transparent 24deg);
  animation: sweep 14s ease-in-out infinite alternate;
}
.beam-a { margin-left: -55vmax; }
.beam-b { margin-left: -5vmax; animation-duration: 18s; animation-delay: -6s; opacity: .8; }
@keyframes sweep { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
.grain {
  position: absolute; inset: 0; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center; gap: 1rem;
}
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 700 .78rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lantern);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lantern); box-shadow: 0 0 12px var(--lantern); }
.wordmark {
  display: flex; flex-direction: column;
  font: 900 var(--step-hero)/.8 var(--display); letter-spacing: -.01em; text-transform: uppercase;
  margin-right: -14vw; /* the letters run in under Ronin */
}
.w-solid, .w-line i {
  -webkit-text-stroke: .045em var(--ink); paint-order: stroke fill;
  text-shadow: .05em .05em 0 var(--ink);
}
.w-solid { color: var(--fg); }
.w-line { display: flex; }
.w-line i { font-style: normal; display: inline-block; color: var(--c); }
.lede { max-width: 31rem; font-size: var(--step-1); color: var(--muted); }
.lede, .cta-row { position: relative; z-index: 2; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; }

.hero-stage { position: relative; z-index: 3; margin: 0; justify-self: end; width: 115%; max-width: 600px; margin-left: -12%; }
.ronin { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)) drop-shadow(0 0 70px rgba(255, 46, 85, .28)); }
.tag-chip {
  position: absolute; left: 8%; bottom: 7%;
  padding: .45rem .75rem; border-radius: 8px;
  background: rgba(13, 11, 23, .78); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 500 .74rem/1.2 var(--mono); color: var(--muted); letter-spacing: .04em;
}
.tag-chip span { color: var(--fg); font-weight: 700; margin-right: .35rem; }

/* opening: words rise, Ronin steps out of the dark */
@media (prefers-reduced-motion: no-preference) {
  .w-solid, .kicker, .lede, .hero-copy .cta-row { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
  /* GAMES pops in letter by letter, each in a game's colour */
  .w-line i { animation: pop .55s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(.2s + var(--n) * .07s); }
  .lede { animation-delay: .22s; }
  .hero-copy .cta-row { animation-delay: .3s; }
  .ronin { animation: emerge 1.1s .15s cubic-bezier(.2, .8, .2, 1) both; }
}
@media (prefers-reduced-motion: reduce) { .beam { animation: none; } html { scroll-behavior: auto; } }
@keyframes pop { from { transform: translateY(.25em) scale(.6) rotate(-8deg); opacity: .001; } }
@keyframes rise { from { transform: translateY(24px); opacity: .001; } }
@keyframes emerge { from { transform: translateY(30px) scale(.97); filter: brightness(0); } }

@media (max-width: 860px) {
  .hero { padding-bottom: 3rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .wordmark { margin-right: 0; }
  .hero-stage { grid-row: 1; justify-self: center; max-width: 340px; margin-bottom: -5.5rem; z-index: 0; }
  .hero-copy { gap: 1.1rem; }
  .tag-chip { display: none; }
}

/* ---------- section bands ---------- */
.band { padding-block: 5rem; }
.band + .band { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 2.2rem; max-width: 44rem; }
.eyebrow { font: 700 .76rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--lantern); }
h2 { font: 800 var(--step-3)/.95 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.section-sub { color: var(--muted); font-size: var(--step-1); }
.genre {
  align-self: flex-start; padding: .38rem .6rem; border-radius: 6px;
  background: var(--tone, var(--lantern)); color: var(--ink);
  font: 700 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 2px 2px 0 var(--ink);
}
/* game cards: ink outline + hard shadow in the game's colour */
.feature, .soon {
  border: 3px solid var(--ink);
  box-shadow: var(--pop) var(--pop) 0 var(--tone), 0 30px 60px -30px rgba(0, 0, 0, .8);
  background: color-mix(in srgb, var(--tone) 10%, var(--panel));
}
.game-title {
  color: var(--fg); text-transform: uppercase; letter-spacing: .02em;
  -webkit-text-stroke: .06em var(--ink); paint-order: stroke fill;
  text-shadow: .07em .07em 0 var(--tone);
}

/* ---------- featured game ---------- */
.feature {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  border-radius: calc(var(--radius) + 6px);
  --pop: 10px;
}
.feature-bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(28, 24, 41, .2) 30%, var(--panel) 62%), url("assets/shadow-hunter-key.jpg") 30% 100% / cover no-repeat;
  opacity: .4;
}
.feature-media { position: relative; padding: 1.25rem; min-width: 0; }
.feature-media video {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius);
  background: #000; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
}
.live-pill {
  position: absolute; top: 2.1rem; left: 2.1rem;
  display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .7rem; border-radius: 99px;
  background: rgba(13, 11, 23, .82); font: 700 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--blood); box-shadow: 0 0 0 0 rgba(224, 51, 60, .7); }
@media (prefers-reduced-motion: no-preference) { .live-pill i { animation: ping 1.8s infinite; } }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(224, 51, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 51, 60, 0); } }
.feature-body { display: flex; flex-direction: column; gap: 1rem; padding: 2.2rem 2.2rem 2.2rem 1rem; min-width: 0; justify-content: center; }
.feature-body h3 { font: 900 clamp(2.2rem, 1.4rem + 2.4vw, 3.2rem)/1 var(--display); }
.btn-tone { background: var(--tone); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); box-shadow: 3px 3px 0 var(--ink); }
.btn-tone:hover { box-shadow: 5px 5px 0 var(--ink); transform: translate(-2px, -2px); }
.feature-body > p { color: var(--muted); }
.specs { margin: .3rem 0 .6rem; display: grid; gap: .55rem; }
.specs div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding-top: .55rem; border-top: 1px solid color-mix(in srgb, var(--tone) 30%, var(--line)); }
.specs dt { font: 700 .72rem/1.9 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0; font-weight: 500; }
.url { font: 500 .8rem/1 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature-media { padding: .75rem .75rem 0; }
  .live-pill { top: 1.5rem; left: 1.5rem; }
  .feature-body { padding: 1.5rem 1.25rem 1.75rem; }
  .specs div { grid-template-columns: 1fr; gap: .1rem; }
}

/* ---------- coming soon: not links, no hover lift ---------- */
.soon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.soon { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; cursor: default; user-select: none; }
.soon-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.soon-media { border-bottom: 3px solid var(--ink); }
.soon-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.2) contrast(1.05); }
.soon-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, color-mix(in srgb, var(--tone) 35%, transparent), transparent 45%); mix-blend-mode: screen; }
.tape {
  position: absolute; z-index: 1; top: 22px; right: -46px; width: 190px; transform: rotate(35deg);
  padding: .4rem 0; text-align: center;
  background: repeating-linear-gradient(-45deg, var(--tone) 0 14px, color-mix(in srgb, var(--tone) 78%, #000) 14px 28px);
  color: var(--ink); font: 800 .68rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  border-block: 2px solid var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
}
.soon-body { display: flex; flex-direction: column; gap: .7rem; padding: 1.2rem 1.35rem 1.5rem; }
.soon-body h3 { font: 900 2.2rem/1 var(--display); }
.soon-body > p:last-child { color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) { .soon-grid { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------- studio ---------- */
#studio { background: var(--night-2); }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.studio-lead { display: flex; flex-direction: column; gap: .8rem; }
.studio-body { display: flex; flex-direction: column; gap: 1.6rem; font-size: var(--step-1); color: var(--muted); max-width: 36rem; }
.principles { margin: 0; display: grid; gap: 1.1rem; }
.principles div { padding-top: 1rem; border-top: 3px solid var(--tone); }
.principles dt { font: 800 1.35rem/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--fg); margin-bottom: .3rem; }
.principles dd { margin: 0; font-size: var(--step-0); }
@media (max-width: 860px) { .studio { grid-template-columns: 1fr; gap: 1.8rem; } }
@media (max-width: 600px) { .feature { --pop: 6px; } .soon { --pop: 5px; } .soon-grid { padding-right: 6px; } }

/* ---------- contact + footer ---------- */
.contact { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; }
.contact > div:first-child { display: flex; flex-direction: column; gap: .7rem; max-width: 34rem; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.mail-addr { font: 800 clamp(1.5rem, 1rem + 2vw, 2.3rem)/1 var(--display); letter-spacing: .03em; color: var(--lantern); user-select: all; overflow-wrap: anywhere; }
.foot { border-top: 1px solid var(--line); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; padding-block: 1.6rem 2.2rem; color: var(--muted); font-size: .88rem; }
