/* ---------------------------------------------------------------------------
   RAVENOUS DEVELOPMENT (RGD)

   Same family as the VASTATED site on purpose: near-black ground, bone type,
   Oswald over Barlow, a wide-tracked eyebrow with a short rule under it.
   The accent is the badge's own blood red instead of VASTATED's oxide, so the
   studio and the game read as related but not the same thing.

   Every colour is painted explicitly; the page is dark by design and says so
   with color-scheme. No framework, no build step.
--------------------------------------------------------------------------- */
:root {
  --ink:        #0a0909;
  --ink-2:      #110e0e;
  --ink-3:      #181414;
  --ash:        #261f1f;
  --ash-lit:    #3a3030;

  --bone:       #ece6dc;
  --bone-dim:   #a39a8d;
  --bone-faint: #6d655b;

  --blood:      #a8271f;
  --blood-lit:  #e0453a;
  --blood-deep: #5c1511;

  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --measure: 62ch;
  --head-h: 68px;

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 8px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--blood); color: #fff; }
a { color: var(--blood-lit); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--blood-lit); outline-offset: 3px; }
p { margin: 0 0 1em; max-width: var(--measure); }
.dim { color: var(--bone-dim); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blood); color: #fff; padding: 10px 16px; font-family: var(--display); letter-spacing: .12em; text-transform: uppercase; }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 880px; }
section { padding-block: clamp(72px, 10vw, 140px); }

/* --- type ---------------------------------------------------------------- */
.eyebrow {
  font-family: var(--display); font-weight: 300; font-size: 13px;
  letter-spacing: .34em; text-transform: uppercase; color: var(--bone-dim);
  margin: 0 0 10px; display: inline-block; padding-bottom: 8px;
  border-bottom: 2px solid var(--blood);
}
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; margin: 0; text-wrap: balance; }
h2 { font-weight: 500; font-size: clamp(32px, 5.2vw, 58px); line-height: 1.04; letter-spacing: .01em; margin: 18px 0 24px; }
h3 { font-weight: 400; font-size: 19px; letter-spacing: .13em; margin-bottom: 10px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--bone); }

/* --- buttons ------------------------------------------------------------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-block; font-family: var(--display); font-weight: 400; font-size: 15px;
  letter-spacing: .22em; text-transform: uppercase; padding: 15px 34px;
  border: 1px solid var(--ash-lit); background: rgba(17,14,14,.82); color: var(--bone);
  text-decoration: none; cursor: pointer; transition: border-color .18s, background .18s, color .18s;
}
.btn:hover, .btn:focus-visible { border-color: var(--blood-lit); background: rgba(168,39,31,.18); color: #fff; }
.btn-primary { border-color: var(--blood); background: rgba(168,39,31,.28); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--blood); border-color: var(--blood-lit); }
.btn.soon, .card.soon { opacity: .7; cursor: default; }

/* --- header -------------------------------------------------------------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-inline: var(--gutter);
  background: linear-gradient(to bottom, rgba(10,9,9,.78), rgba(10,9,9,0));
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
}
.top.solid { background: rgba(10,9,9,.9); border-bottom-color: var(--ash); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--bone); text-decoration: none; }
.brand b { font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: .3em; text-transform: uppercase; }
.brand small { font-family: var(--display); font-weight: 300; font-size: 12px; letter-spacing: .3em; color: var(--blood-lit); }
.top nav { display: flex; gap: 28px; }
.top nav a {
  font-family: var(--display); font-weight: 400; font-size: 13px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--bone-dim); text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.top nav a:hover, .top nav a.on { color: var(--bone); border-bottom-color: var(--blood); }
.menu-btn { display: none; background: none; border: 1px solid var(--ash-lit); color: var(--bone); font-family: var(--display); letter-spacing: .22em; text-transform: uppercase; font-size: 12px; padding: 9px 14px; cursor: pointer; }

/* --- hero ---------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; min-height: 100svh; padding: 0;
  display: grid; place-items: center; text-align: center; overflow: hidden; background: var(--ink);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: drift 28s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.12) translate3d(-1.2%, -1%, 0); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 50% 42%, rgba(10,9,9,.0) 0%, rgba(10,9,9,.55) 70%, rgba(10,9,9,.9) 100%),
    linear-gradient(to bottom, rgba(10,9,9,.55) 0%, rgba(10,9,9,.1) 30%, rgba(10,9,9,.7) 80%, var(--ink) 100%);
}
.hero-inner { padding: calc(var(--head-h) + 28px) var(--gutter) 90px; max-width: 920px; }
.badge { width: min(700px, 92vw); margin: 0 auto 6px; filter: drop-shadow(0 18px 44px rgba(0,0,0,.85)) drop-shadow(0 0 60px rgba(168,39,31,.35)); }
.hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero .lede { margin-top: 18px; }
.hero .lede { max-width: 640px; margin: 0 auto 32px; text-shadow: 0 2px 18px rgba(0,0,0,.9); }
.hero .cta-row { justify-content: center; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 1px; height: 54px; background: linear-gradient(var(--blood-lit), transparent); opacity: .8; }

/* --- flagship ------------------------------------------------------------ */
.flagship { padding: 0; position: relative; isolation: isolate; border-top: 1px solid var(--ash); }
.flagship-art { position: absolute; inset: 0; z-index: -2; }
.flagship-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.flagship::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,9,9,.94) 0%, rgba(10,9,9,.62) 42%, rgba(10,9,9,.12) 100%),
              linear-gradient(to bottom, var(--ink) 0%, rgba(10,9,9,0) 22%, rgba(10,9,9,0) 78%, var(--ink) 100%);
}
.flagship-inner { padding-block: clamp(90px, 12vw, 170px); }
.tag { display: inline-block; font-family: var(--display); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--blood-lit); border: 1px solid var(--blood-deep); background: rgba(168,39,31,.12); padding: 6px 12px; margin-bottom: 18px; }
.flagship h2 { font-size: clamp(54px, 11vw, 150px); font-weight: 600; letter-spacing: .04em; line-height: .95; margin: 8px 0 26px; }
.flagship .lede { max-width: 56ch; }
.flagship .cta-row { margin-top: 30px; }

/* --- pillars ------------------------------------------------------------- */
.pillars { background: var(--ink); }
.pillars-head { margin-bottom: clamp(36px, 5vw, 64px); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ash); border-left: 1px solid var(--ash); }
.pillar { padding: 34px 30px 38px; border-right: 1px solid var(--ash); border-bottom: 1px solid var(--ash); background: linear-gradient(180deg, var(--ink-2), var(--ink)); transition: background .25s; }
.pillar:hover { background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); }
.pillar .n { font-family: var(--display); font-weight: 200; font-size: 44px; line-height: 1; color: var(--blood); display: block; margin-bottom: 20px; }
.pillar p { color: var(--bone-dim); margin: 0; font-size: 16px; }

/* --- facts strip --------------------------------------------------------- */
.facts { padding-block: 0; background: var(--ink-2); border-block: 1px solid var(--ash); }
.fact-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 40px 24px; text-align: center; border-right: 1px solid var(--ash); }
.fact:last-child { border-right: 0; }
.fact b { display: block; font-family: var(--display); font-weight: 300; font-size: clamp(34px, 4.6vw, 56px); line-height: 1; color: var(--bone); }
.fact span { display: block; margin-top: 12px; font-family: var(--display); font-weight: 300; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--bone-dim); }

/* --- gallery ------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 8px; }
.shot { margin: 0; position: relative; overflow: hidden; background: var(--ink-3); grid-column: span 2; }
.shot:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.shot button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.shot button:focus-visible { outline: 2px solid var(--blood-lit); outline-offset: -4px; }
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .3s; filter: saturate(.92); }
.shot:nth-child(1) img { aspect-ratio: auto; min-height: 100%; }
.shot:hover img { transform: scale(1.04); filter: saturate(1.05); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 12px; font-family: var(--display); font-weight: 300; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--bone); background: linear-gradient(transparent, rgba(10,9,9,.85)); pointer-events: none; }
.note { color: var(--bone-faint); font-size: 14px; margin-top: 22px; }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; color: var(--bone); }
dialog.lightbox::backdrop { background: rgba(5,4,4,.93); }
dialog.lightbox img { max-width: 96vw; max-height: 86vh; width: auto; height: auto; margin: 0 auto; box-shadow: 0 30px 80px rgba(0,0,0,.8); }
dialog.lightbox p { text-align: center; margin: 14px auto 0; font-family: var(--display); font-weight: 300; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--bone-dim); max-width: none; }
.lb-close { position: fixed; top: 16px; right: 18px; }

/* --- roadmap ------------------------------------------------------------- */
.roadmap-sec { background: var(--ink-2); border-block: 1px solid var(--ash); }
.road { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--ash-lit); }
.road li { position: relative; padding: 38px 28px 0 0; }
.road li::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; background: var(--ink-2); border: 2px solid var(--ash-lit); transform: rotate(45deg); }
.road li:first-child::before { background: var(--blood); border-color: var(--blood-lit); box-shadow: 0 0 18px rgba(224,69,58,.55); }
.road h3 { color: var(--bone); }
.road li:first-child h3 { color: var(--blood-lit); }
.road p { color: var(--bone-dim); font-size: 16px; }

/* --- studio -------------------------------------------------------------- */
.studio-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.studio-cols h2 { margin-top: 18px; }
.studio-cols p { color: var(--bone-dim); }
.studio-cols p strong { color: var(--bone); font-weight: 500; }

/* --- support ------------------------------------------------------------- */
.support-sec { background: var(--ink-2); border-top: 1px solid var(--ash); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.card { display: block; background: var(--ink-3); border: 1px solid var(--ash); padding: 28px 24px; color: var(--bone); text-decoration: none; transition: border-color .2s, transform .2s; }
a.card:hover { border-color: var(--blood); color: var(--bone); transform: translateY(-3px); }
.card p { color: var(--bone-dim); font-size: 15px; margin: 0; }
.card.soon h3::after { content: "soon"; margin-left: 10px; font-size: 10px; letter-spacing: .24em; color: var(--bone-faint); border: 1px solid var(--ash-lit); padding: 2px 7px; vertical-align: middle; }
.card form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.card input { padding: 13px 14px; border: 1px solid var(--ash-lit); background: var(--ink); color: var(--bone); font: inherit; }
.card input:focus { outline: 2px solid var(--blood-lit); outline-offset: 1px; }
.card .btn { padding: 13px 18px; }

/* --- contact / footer ---------------------------------------------------- */
.mail { display: inline-block; font-family: var(--display); font-weight: 300; font-size: clamp(22px, 4.4vw, 46px); letter-spacing: .04em; color: var(--bone); text-decoration: none; border-bottom: 2px solid var(--blood); padding-bottom: 6px; word-break: break-all; }
.mail:hover { color: #fff; border-color: var(--blood-lit); }
footer { border-top: 1px solid var(--ash); padding: 44px 0 56px; color: var(--bone-faint); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot p { margin: 0 0 .5em; max-width: 60ch; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a { font-family: var(--display); letter-spacing: .22em; text-transform: uppercase; font-size: 12px; color: var(--bone-dim); text-decoration: none; }
.foot nav a:hover { color: var(--bone); }

/* --- press page ---------------------------------------------------------- */
.page-head { padding: calc(var(--head-h) + 70px) 0 20px; border-bottom: 1px solid var(--ash); background: radial-gradient(ellipse 70% 100% at 50% 0, rgba(168,39,31,.16), transparent 70%), var(--ink); }
.page-head h1 { font-weight: 500; font-size: clamp(40px, 7vw, 84px); line-height: 1; margin: 16px 0 22px; }
.press-sec { padding-block: clamp(48px, 6vw, 84px); border-bottom: 1px solid var(--ash); }
.press-sec:last-of-type { border-bottom: 0; }
dl.sheet { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; margin: 24px 0 0; border-top: 1px solid var(--ash); }
dl.sheet dt, dl.sheet dd { padding: 14px 0; border-bottom: 1px solid var(--ash); margin: 0; }
dl.sheet dt { font-family: var(--display); font-weight: 300; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--bone-dim); padding-top: 18px; }
.boiler { border-left: 3px solid var(--blood); padding: 4px 0 4px 22px; margin: 22px 0; }
.boiler p { max-width: 70ch; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.dl-grid a { display: block; position: relative; overflow: hidden; background: var(--ink-3); text-decoration: none; }
.dl-grid img { aspect-ratio: 16/9; object-fit: cover; width: 100%; transition: transform .5s; }
.dl-grid a:hover img { transform: scale(1.04); }
.dl-grid span { display: block; padding: 10px 12px; font-family: var(--display); font-weight: 300; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-dim); border-top: 1px solid var(--ash); }

/* --- scroll reveal (only when script ran) -------------------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .road { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .road::before { display: none; }
  .studio-cols { grid-template-columns: 1fr; }
  .fact-row { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--ash); }
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --head-h: 60px; }
  .menu-btn { display: block; }
  .top nav { position: fixed; inset: var(--head-h) 0 auto 0; flex-direction: column; gap: 0; background: rgba(10,9,9,.97); border-bottom: 1px solid var(--ash); padding: 8px var(--gutter) 18px; display: none; }
  .top nav.open { display: flex; }
  .top nav a { padding: 16px 0; border-bottom: 1px solid var(--ash); font-size: 14px; }
  .brand b { letter-spacing: .2em; font-size: 13px; }
  .pillar-grid, .cards, .road { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .shot, .shot:nth-child(1) { grid-column: span 2; grid-row: auto; }
  .shot:nth-child(1) img { aspect-ratio: 16/9; min-height: 0; }
  .flagship::before { background: linear-gradient(to bottom, rgba(10,9,9,.7), rgba(10,9,9,.9)); }
  dl.sheet { grid-template-columns: 1fr; }
  dl.sheet dt { border-bottom: 0; padding-bottom: 0; }
  .dl-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg img { animation: none; transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .shot img, .dl-grid img { transition: none; }
}

/* --- 404 ----------------------------------------------------------------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); background: radial-gradient(ellipse 60% 60% at 50% 40%, rgba(168,39,31,.2), transparent 70%), var(--ink); }
.notfound h1 { font-weight: 500; font-size: clamp(44px, 9vw, 110px); line-height: 1; margin: 14px 0 18px; }
.notfound p { margin-inline: auto; }

.logo-grid { grid-template-columns: minmax(0, 520px); }
.logo-grid img { aspect-ratio: 3/2; object-fit: contain; background: var(--ink-2); padding: 18px; }

.brand .brand-logo { height: 46px; width: auto; filter: drop-shadow(0 2px 10px rgba(0,0,0,.7)); }
@media (max-width: 760px) { .brand .brand-logo { height: 38px; } }

.logo-grid.two { grid-template-columns: repeat(2, minmax(0, 420px)); }
@media (max-width: 760px) { .logo-grid.two { grid-template-columns: 1fr; } }

.road-sub { font-family: var(--display); font-weight: 300; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-faint); margin-bottom: 14px; }
.road ul { list-style: none; margin: 0; padding: 0; }
.road ul li { padding: 0 0 0 16px; margin: 0 0 9px; position: relative; color: var(--bone-dim); font-size: 15.5px; line-height: 1.5; }
.road ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--blood); transform: rotate(45deg); border: 0; box-shadow: none; }

.mail-sm { font-size: clamp(18px, 3vw, 28px); margin-top: 4px; }

/* Plain hero: no painted backdrop, the studio wordmark on near-black with a low red glow. */
.hero { background: radial-gradient(ellipse 70% 55% at 50% 38%, rgba(168,39,31,.22), rgba(10,9,9,0) 70%), var(--ink); }
.hero::before { display: none; }
.hero .wordmark { width: min(780px, 90vw); height: auto; margin: 0 auto 8px; filter: drop-shadow(0 10px 40px rgba(168,39,31,.35)); }
.brand .brand-logo { height: 54px; }
@media (max-width: 760px) { .brand .brand-logo { height: 44px; } }
:root { --head-h: 76px; }
@media (max-width: 760px) { :root { --head-h: 64px; } }

/* Hero backdrop: a real in-engine capture of the city in mist, held still so the wordmark leads. */
.hero { background: var(--ink); }
.hero-bg img { animation: none; transform: none; filter: brightness(.8) saturate(.9); object-position: 50% 62%; }
.hero::before { display: block; background:
  radial-gradient(ellipse 65% 55% at 50% 42%, rgba(168,39,31,.20), rgba(10,9,9,0) 70%),
  linear-gradient(to bottom, rgba(10,9,9,.55) 0%, rgba(10,9,9,.15) 35%, rgba(10,9,9,.7) 82%, var(--ink) 100%); }

.game-logo { width: min(640px, 100%); height: auto; margin: 6px 0 26px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.7)); }
