/* ==========================================================================
   SURF DA EARF × NIGHTWORK STUDIOS
   --------------------------------------------------------------------------
   1.  Tokens          8.  Engine
   2.  Base            9.  Journal
   3.  Utilities      10.  Contact
   4.  Masthead       11.  Game detail
   5.  Hero           12.  Post detail
   6.  Sections       13.  Responsive
   7.  Cards          14.  Motion & focus
   ========================================================================== */


/* 1. TOKENS ============================================================== */

:root {
  /* Surfaces */
  --bg:          #070708;
  --bg-raised:   #0a0a0c;
  --bg-field:    #0a0a0d;
  --bg-input:    #0d0d10;
  --bg-hover:    #101014;

  /* Ink */
  --ink:         #f2f2ef;
  --ink-85:      rgba(242, 242, 239, .85);
  --ink-72:      rgba(242, 242, 239, .72);
  --ink-60:      rgba(242, 242, 239, .60);
  --ink-50:      rgba(242, 242, 239, .50);
  --ink-45:      rgba(242, 242, 239, .45);

  /* Lines */
  --line:        rgba(242, 242, 239, .12);
  --line-soft:   rgba(242, 242, 239, .10);
  --line-strong: rgba(242, 242, 239, .30);

  /* Fills */
  --wash:        linear-gradient(180deg, rgba(242,242,239,.06), rgba(242,242,239,0));
  --metal:       linear-gradient(180deg, #ffffff, #c9c9ce);

  /* Type */
  --font-display: 'Archivo', Helvetica, Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --gutter:      clamp(20px, 6vw, 96px);
  --hero-dim:    1;

  /* Repeating stripe backgrounds used across the site */
  --weave-a: repeating-linear-gradient(103deg, #101014 0 3px, #0a0a0c 3px 9px);
  --weave-b: repeating-linear-gradient(115deg, #101014 0 3px, #0b0b0e 3px 10px);
  --weave-c: repeating-linear-gradient( 98deg, #111116 0 3px, #0a0a0d 3px 9px);
  --weave-d: repeating-linear-gradient(107deg, #101015 0 3px, #0a0a0c 3px 9px);
  --weave-e: repeating-linear-gradient(112deg, #101015 0 3px, #0b0b0e 3px 10px);
  --weave-f: repeating-linear-gradient(104deg, #111116 0 3px, #0a0a0d 3px 9px);
  --hatch:   repeating-linear-gradient(45deg, rgba(242,242,239,.05) 0 2px, rgba(242,242,239,0) 2px 8px);
  --hatch-b: repeating-linear-gradient(45deg, rgba(242,242,239,.06) 0 2px, rgba(242,242,239,0) 2px 7px);
}


/* 2. BASE =============================================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: #fff; }

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

::selection { background: var(--ink); color: var(--bg); }

h1, h2, h3 { margin: 0; }
p { margin: 0; }

/* One of these is visible at a time. js/main.js toggles [hidden]. */
.screen { display: block; }
[hidden] { display: none !important; }


/* 3. UTILITIES ========================================================== */

.eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-50);
}

.eyebrow--rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: var(--ink-60);
}
.eyebrow--rule::before {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(242, 242, 239, .5);
}

/* Silver-to-white gradient used on the big display headings */
.display-gradient {
  background: linear-gradient(180deg, #fff 0%, #fff 48%, #8e8e93 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Asset placeholder box. Swap to <img> by setting a path in js/data.js */
.slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(242, 242, 239, .14);
  background: var(--hatch);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(242, 242, 239, .55);
  line-height: 2;
  text-align: center;
}
.slot__name { font-size: 11px; color: rgba(242, 242, 239, .8); }
.slot__hint { opacity: .6; }

.slot--square { width: 100%; max-width: 520px; aspect-ratio: 1 / 1; }

.slot--mark {
  width: 132px;
  height: 132px;
  background: var(--hatch-b);
  border-color: rgba(242, 242, 239, .2);
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--ink-60);
  line-height: 1.9;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn--solid {
  color: var(--bg);
  background: var(--metal);
  border: 1px solid #fff;
}
.btn--solid:hover { background: #fff; color: var(--bg); }

.btn--ghost {
  color: var(--ink-85);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { border-color: rgba(242, 242, 239, .75); }

.btn--sm { padding: 11px 14px; gap: 6px; letter-spacing: .12em; }

.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;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: var(--gutter);
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: var(--bg); }


/* 4. MASTHEAD =========================================================== */

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  background: linear-gradient(180deg, rgba(7,7,8,.92) 0%, rgba(7,7,8,.55) 60%, rgba(7,7,8,0) 100%);
  backdrop-filter: blur(2px);
}

.masthead__brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.masthead__studio {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.01em;
  text-transform: none;
}
.masthead__x { opacity: .45;position: relative;top:-3px; }
.masthead__partner { opacity: .7; }
.masthead__partner img{
  position: relative;
  top:5px;
  left:-10px;
  height:24px;
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.masthead__nav a { opacity: .7; transition: opacity .18s ease; }
.masthead__nav a:hover,
.masthead__nav a[aria-current="true"] { opacity: 1; }


/* 5. HERO =============================================================== */

.hero {
  position: relative;
  height: 100vh;
  height: 140svh;   /* avoids the mobile URL-bar jump */
  min-height: 660px;
  overflow: hidden;
  background: var(--bg-raised);
}

.hero__weave { position: absolute; inset: 0; background: var(--weave-a); }
.hero__glow {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 68% 30%, rgba(255,255,255,.20) 0%, rgba(255,255,255,.04) 42%, rgba(0,0,0,0) 75%);
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12);
  opacity: 0;
  transition: opacity .8s ease;
}
.hero__video.is-ready { opacity: 1; }

.hero__dim {
  position: absolute; inset: 0;
  opacity: var(--hero-dim);
  background: linear-gradient(90deg, rgba(7,7,8,.94) 0%, rgba(7,7,8,.72) 42%, rgba(7,7,8,.28) 72%, rgba(7,7,8,.55) 100%);
}
.hero__vignette {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,7,8,.85) 0%, rgba(7,7,8,0) 28%, rgba(7,7,8,0) 62%, rgba(7,7,8,.9) 100%);
}

.hero__inner {
  position: relative;
  height: 100%;
  display: grid;
  align-items: center;
}
.home_hero{
  padding-top:60px;
}
 
.hero__copy { padding: 0 0 0px var(--gutter); max-width: 640px; }

.hero__title {
  font-weight: 900;
  font-size: clamp(34px, 4vw, 76px);
  line-height: .92;
  letter-spacing: -.035em;
  text-transform: uppercase;
  overflow-wrap: break-word;
  hyphens: auto;
}

.hero__lead {
  margin-top: 26px;
  max-width: 460px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-72);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.hero__art {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hero__foot {
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.hero__scroll { display: flex; align-items: center; gap: 10px; }
.cue { display: inline-block; animation: cue 2.2s ease-in-out infinite; }

.grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, rgba(0,0,0,0) 1px);
  background-size: 3px 3px;
  animation: drift 9s linear infinite;
}
.grain[hidden] { display: none; }


/* 6. SECTIONS =========================================================== */

.section {
  padding: 110px var(--gutter) 120px;
  border-top: 1px solid var(--line-soft);
}

.section--engine {
  padding: 120px var(--gutter);
  background: linear-gradient(180deg, #070708 0%, #0e0e11 50%, #070708 100%);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 52px;
}

.section__title {
  overflow-wrap: break-word;
  font-weight: 900;
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.section__intro {
  max-width: 360px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-60);
}


/* 7. CARDS (catalogue) ================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

.card {
  display: block;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(242,242,239,.05), rgba(242,242,239,0));
  transition: border-color .18s ease;
}
.card:hover { border-color: rgba(242, 242, 239, .5); }

.card__art {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--weave-b);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  overflow: hidden;
}
.card__art::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 50% 20%, rgba(255,255,255,.14), rgba(0,0,0,0) 70%);
}
.card__art img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.card__file {
  position: relative;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-50);
}

.card__body { padding: 20px 18px 24px; }

.card__title {
  font-weight: 800;
  font-size: 17px;
  line-height: 1.22;
  letter-spacing: -.015em;
  text-transform: uppercase;
  min-height: 62px;
  overflow-wrap: break-word;
  hyphens: auto;
}

.card__meta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-60);
}


/* 8. ENGINE ============================================================= */

.engine {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: center;
}

.engine__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(242, 242, 239, .14);
  background: var(--weave-c);
}
.engine__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  opacity: 0;
  transition: opacity .8s ease;
}
.engine__video.is-ready { opacity: 1; }

.engine__glow {
  position: absolute; inset: 0;
  background: radial-gradient(100% 80% at 30% 20%, rgba(255,255,255,.12), rgba(0,0,0,0) 70%);
}
.engine__scan {
  position: absolute; left: 0; right: 0;
  height: 32%;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0));
  animation: scan 5.5s linear infinite;
}
/* Keeps the caption readable whatever the footage is doing underneath */
.engine__media::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(7,7,8,0), rgba(7,7,8,.78));
  pointer-events: none;
  z-index: 1;
}
.engine__caption {
  position: absolute; left: 16px; bottom: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(242, 242, 239, .75);
}

.engine__copy .eyebrow { margin-top: 30px; }

.engine__title {
  overflow-wrap: break-word;
  font-weight: 900;
  font-size: clamp(32px, 3.8vw, 58px);
  line-height: .95;
  letter-spacing: -.035em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff, #8d8d92);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.engine__lead {
  margin-top: 24px;
  max-width: 480px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-72);
  text-wrap: pretty;
}
.engine__sub {
  margin-top: 16px;
  max-width: 480px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-50);
}

/* Hairline grid: the gap colour shows through as the rule */
.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 36px 0 0;
  background: var(--line);
}
.specs > div { background: var(--bg); padding: 18px 18px 20px; }
.specs dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.specs dd {
  margin: 8px 0 0;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
}


/* 9. JOURNAL ============================================================ */

.journal {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
}

.journal__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.entries { display: flex; flex-direction: column; }

.entry {
  display: grid;
  grid-template-columns: 120px 1fr 24px;
  gap: 28px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  transition: background .18s ease;
}
.entry:hover { background: linear-gradient(90deg, rgba(242,242,239,.06), rgba(242,242,239,0)); }

.entry__date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-50);
  padding-top: 4px;
}
.entry__title {
  display: block;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.entry__excerpt {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(242, 242, 239, .58);
  max-width: 620px;
}
.entry__arrow { text-align: right; color: var(--ink-45); padding-top: 4px; }

.links {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background .18s ease;
}
.links a:hover { background: var(--bg-hover); }
.links span:last-child {
  color: var(--ink-45);
  letter-spacing: .06em;
  text-transform: none;
}

.signup {
  margin-top: 28px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  background: var(--wash);
}
.signup__title {
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.signup__copy {
  margin: 10px 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(242, 242, 239, .55);
}
.signup__form { display: flex; gap: 8px; }
.signup__form input {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  background: var(--bg-input);
  border: 1px solid rgba(242, 242, 239, .18);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  outline: none;
}
.signup__form input:focus { border-color: rgba(242, 242, 239, .6); }
.signup__form button { border: none; cursor: pointer; }

.signup__note {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-60);
  min-height: 12px;
}


/* 10. CONTACT =========================================================== */

.contact {
  border-top: 1px solid rgba(242, 242, 239, .14);
  background: linear-gradient(180deg, #0c0c0f, #070708);
}

.contact__grid {
  padding: 96px var(--gutter) 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

.contact__title {
  overflow-wrap: break-word;
  font-weight: 900;
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: .98;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.contact__copy {
  margin-top: 22px;
  max-width: 420px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-60);
}

.contact__details {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.9;
  color: var(--ink-60);
}
.contact__label {
  display: block;
  color: rgba(242, 242, 239, .4);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: 9px;
}

.cform {
  display: grid;
  gap: 1px;
  align-content: start;
  background: var(--line);
  border: 1px solid rgba(242, 242, 239, .14);
}
.cform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}
.cform__field { display: flex; }

.cform input,
.cform select,
.cform textarea {
  width: 100%;
  padding: 16px;
  background: var(--bg-field);
  border: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  outline: none;
}
.cform textarea { line-height: 1.6; resize: vertical; }
.cform select { color: var(--ink-85); }
.cform select option { background: var(--bg-field); }

.cform input:focus,
.cform select:focus,
.cform textarea:focus { background: var(--bg-input); }

.cform input[aria-invalid="true"],
.cform textarea[aria-invalid="true"] {
  box-shadow: inset 2px 0 0 rgba(255, 255, 255, .75);
}

.cform__submit {
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #c4c4c9);
  border: none;
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease;
}
.cform__submit:hover { background: #fff; }
.cform__submit[disabled] { cursor: default; opacity: .7; }

.cform__note {
  padding: 0 16px 14px;
  background: var(--bg-field);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.cform__note:empty { display: none; }

.colophon {
  padding: 24px var(--gutter) 34px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(242, 242, 239, .42);
}


/* 11. GAME DETAIL ======================================================= */

.gamehero {
  position: relative;
  height: 74vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--bg-raised);
  display: flex;
  align-items: flex-end;
}
.gamehero__weave { position: absolute; inset: 0; background: var(--weave-d); }
.gamehero__glow {
  position: absolute; inset: 0;
  background: radial-gradient(110% 90% at 60% 25%, rgba(255,255,255,.18), rgba(0,0,0,0) 70%);
}
.gamehero__vignette {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,7,8,.8) 0%, rgba(7,7,8,0) 40%, rgba(7,7,8,.95) 100%);
}
.gamehero__logo {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  width: min(50vw, 50vw);
  aspect-ratio: 1 / 1;
}
.gamehero__logo > .slot,
.gamehero__logo > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gamehero__inner {
  position: relative;
  padding: 0 var(--gutter) 64px;
  max-width: 860px;
}
.gamehero__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(242, 242, 239, .55);
  margin-bottom: 20px;
}
.gamehero__title {
  font-weight: 900;
  font-size: clamp(30px, 4.1vw, 62px);
  line-height: .92;
  letter-spacing: -.035em;
  text-transform: uppercase;
  overflow-wrap: break-word;
  hyphens: auto;
  background: linear-gradient(180deg, #fff, #8d8d92);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gamehero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.related {
  padding: 0 var(--gutter) 110px;
}
.related__head { margin-bottom: 28px; }
.gamebody {
  padding: 90px var(--gutter);
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 64px;
}
.gamebody__title {
  margin-bottom: 20px;
  font-weight: 900;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.gamebody__lead {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-72);
  max-width: 640px;
  text-wrap: pretty;
}
.gamebody__sub {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(242, 242, 239, .55);
  max-width: 640px;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
}
.shot {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  background: var(--weave-e);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-45);
  overflow: hidden;
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.facts {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
}
.facts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
}
.facts dt {
  color: var(--ink-45);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 9px;
}
.facts dd { margin: 0; text-align: right; }

.callout {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--wash);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-60);
}
.callout a { border-bottom: 1px solid rgba(242, 242, 239, .4); }

.pager {
  padding: 0 var(--gutter) 110px;
}
.pager__inner {
  border-top: 1px solid var(--line);
  padding-top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.pager__inner a { color: var(--ink-60); }
.pager__inner a:hover { color: var(--ink); }


/* 12. POST DETAIL ======================================================= */

.post__head {
  padding: 150px var(--gutter) 40px;
  max-width: 860px;
  margin: 0 auto;
}
.post__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 26px;
}
.post__title {
  overflow-wrap: break-word;
  font-weight: 900;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: .96;
  letter-spacing: -.035em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff, #909095);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.post__lead {
  margin-top: 30px;
  font-size: 19px;
  line-height: 1.65;
  color: rgba(242, 242, 239, .75);
  text-wrap: pretty;
}

.post__figure {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.post__figure .slot,
.post__figure img {
  aspect-ratio: 21 / 9;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--weave-f);
}

.post__body {
  padding: 52px var(--gutter) 90px;
  max-width: 860px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink-72);
}
.post__body > p { margin: 0 0 24px; }
.post__body h2 {
  margin: 44px 0 16px;
  font-weight: 900;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: -.02em;
  color: var(--ink);
}
.post__body ul { margin: 0 0 24px; padding-left: 20px; }
.post__body li { margin-bottom: 10px; }
.post__body li:last-child { margin-bottom: 0; }

.post__body blockquote {
  margin: 36px 0;
  padding: 24px 26px;
  border-left: 2px solid rgba(242, 242, 239, .5);
  background: linear-gradient(90deg, rgba(242,242,239,.06), rgba(242,242,239,0));
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
}

.post__pager {
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.post__pager a { color: var(--ink-60); }
.post__pager a:hover { color: var(--ink); }


/* Not found */
.missing {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: 150px var(--gutter) 90px;
}
.missing__title {
  overflow-wrap: break-word;
  font-weight: 900;
  font-size: clamp(40px, 6vw, 88px);
  line-height: .95;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.missing__copy { color: var(--ink-60); font-size: 16px; margin-bottom: 12px; }

/* 15. VIDEO LIGHTBOX ==================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: rgba(4, 4, 5, .92);
  backdrop-filter: blur(6px);
}
.lightbox__frame {
  position: relative;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #000;
}
.lightbox__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: var(--gutter);
  padding: 12px 16px;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .18s ease;
}
.lightbox__close:hover { border-color: rgba(242, 242, 239, .75); }

/* 13. RESPONSIVE ======================================================== */

@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engine { grid-template-columns: 1fr; gap: 44px; }
  .journal { grid-template-columns: 1fr; gap: 56px; }
  .gamebody { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 860px) {
  .home_hero{
    padding-top:0px;
  }
  .hero {
    height: 100svh;
    min-height: 0;
    padding: 0;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    gap: 0;
    height: 100%;
    align-items: center;
    padding-top: 56px;
  }
  /* Desktop dims left-to-right. On a phone that blacks out the whole
     video, so darken top-to-bottom instead. */
  .hero__dim {
    background: linear-gradient(180deg,
      rgba(7,7,8,.82) 0%,
      rgba(7,7,8,.55) 45%,
      rgba(7,7,8,.80) 100%);
  }
  .hero__copy { padding: 0 var(--gutter); max-width: none; }
  .hero__art  { padding: 0 var(--gutter); height: auto; }
  .hero__foot { position: static; margin-top: 40px; padding: 0 var(--gutter); }

  .gamehero { height: auto; min-height: 0; padding-top: 140px; display: block; }
  .gamehero__logo {
    position: relative;   /* must stay above the absolute overlay layers */
    top: auto;
    right: auto;
    transform: none;
    width: min(300px, 300px);
    margin: 0 auto;
  }


  .section__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .colophon { flex-direction: column; align-items: flex-start; gap: 8px; }
}
.shot { position: relative; cursor: zoom-in; }

#newsletter {
    scroll-margin-top: 60px;
}

/* Lightbox image mode ---------------------------------------------------- */

.lightbox--image .lightbox__frame {
  aspect-ratio: auto;
  max-width: none;
  width: auto;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.lightbox__img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform .25s ease;
}
.lightbox__img.is-zoomed {
  transform: scale(2.4);
  cursor: zoom-out;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  padding: 14px 18px;
  background: rgba(7, 7, 8, .6);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 16px;
  cursor: pointer;
  transition: border-color .18s ease;
}
.lightbox__nav:hover { border-color: rgba(242, 242, 239, .75); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

.lightbox__count {
  position: absolute;
  bottom: 22px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--ink-60);
}

.gamehero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12);
  opacity: 0;
  transition: opacity .8s ease;
}
.gamehero__video.is-ready { opacity: 1; }

/* Clickable images in journal posts */
.post__figure img[data-image] { cursor: zoom-in; }

.gallery {
  max-width: 1180px;
  margin: 20px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: border-color .18s ease;
}
.gallery img:hover { border-color: rgba(242, 242, 239, .5); }

@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .lightbox__nav { padding: 10px 13px; font-size: 14px; }
}

.shot:has(img)::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    rgba(0,0,0,.35)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E")
    center / 36px no-repeat;
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}
.shot:hover::after { opacity: 1; }

.lightbox__frame img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .section { padding: 72px var(--gutter) 80px; }
  .section--engine { padding: 72px var(--gutter); }

  .masthead { padding: 12px var(--gutter); gap: 12px; }
  .masthead__partner, .masthead__x { display: none; }
  .masthead__nav { gap: 16px; font-size: 9px; }

  .cards { grid-template-columns: 1fr; }
  .card__title { min-height: 0; }

  .entry { grid-template-columns: 1fr; gap: 10px; }
  .entry__arrow { display: none; }

  .specs { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .cform__row { grid-template-columns: 1fr; }
  .contact__details { grid-template-columns: 1fr; }

  .post__head { padding-top: 120px; }
  .post__pager, .pager__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 420px) {
  .masthead__studio { font-size: 13px; }
  .masthead__nav { gap: 12px; letter-spacing: .12em; }
}


/* 14. MOTION & FOCUS ==================================================== */

@keyframes scan  { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }
@keyframes drift { 0% { background-position: 0 0; }    100% { background-position: 0 -240px; } }
@keyframes cue   { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(6px); opacity: 1; } }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .grain { display: none; }
}
