/* ==========================================================================
   Vessel Interactive Studio — vesselinteractivestudio.com
   Single stylesheet. No inline styles anywhere on the site, so the Content
   Security Policy can stay at style-src 'self' with no 'unsafe-inline'.
   ========================================================================== */

/* --------------------------------------------------------------- fonts --- */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------- tokens --- */

:root {
  --ink:      #05070d;
  --ink-1:    #080b14;
  --ink-2:    #0d111d;
  --ink-3:    #131828;
  --ink-4:    #1a2032;

  --line:     rgba(150, 170, 220, 0.13);
  --line-2:   rgba(150, 170, 220, 0.22);

  --text:     #e8edfa;
  --text-2:   #b3bed6;
  --muted:    #8794b0;
  --faint:    #5d6880;

  --gold:     #e8ad3d;
  --gold-dim: #a97c26;
  --cyan:     #4fd6e8;

  /* Per-game accents. Set on a wrapper class so nothing needs inline style. */
  --accent:      var(--gold);
  --accent-soft: rgba(232, 173, 61, 0.16);
  --accent-line: rgba(232, 173, 61, 0.38);

  --font:  'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap:  1200px;
  --pad:   clamp(1.15rem, 4vw, 2.5rem);
  --radius: 3px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.g-ethral {
  --accent: #e8ad3d;
  --accent-soft: rgba(232, 173, 61, 0.16);
  --accent-line: rgba(232, 173, 61, 0.40);
}
.g-bwo {
  --accent: #e2553c;
  --accent-soft: rgba(226, 85, 60, 0.16);
  --accent-line: rgba(226, 85, 60, 0.42);
}
.g-kingdom {
  --accent: #56aef0;
  --accent-soft: rgba(86, 174, 240, 0.16);
  --accent-line: rgba(86, 174, 240, 0.42);
}
.g-vharaduun {
  --accent: #5fe39a;
  --accent-soft: rgba(95, 227, 154, 0.14);
  --accent-line: rgba(95, 227, 154, 0.38);
}

/* ----------------------------------------------------------------- base --- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Field of faint stars behind everything, plus a warm horizon glow. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 50% -8%, rgba(232, 173, 61, 0.10), transparent 62%),
    radial-gradient(900px 700px at 88% 8%, rgba(79, 214, 232, 0.06), transparent 60%),
    linear-gradient(180deg, #070a12 0%, #05070d 40%, #04060b 100%);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(150, 170, 220, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 170, 220, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 20%, transparent 72%);
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.022em;
  font-weight: 600;
  text-wrap: balance;
}
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent); color: #05070d; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--accent);
  color: #05070d;
  font: 600 0.85rem/1 var(--mono);
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 0.75rem; color: #05070d; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------------------- layout ---- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap--narrow { max-width: 800px; }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section-head { margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head p {
  max-width: 62ch;
  color: var(--text-2);
  margin-top: 0.9rem;
}

/* Small monospace label with a live status pip — the site's recurring
   "system readout" motif. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  font: 500 0.7rem/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pip 2.8s var(--ease) infinite;
}
@keyframes pip {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

.h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.75rem); letter-spacing: -0.035em; }
.h2 { font-size: clamp(1.85rem, 1.25rem + 2.4vw, 2.9rem); letter-spacing: -0.03em; }
.h3 { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem); }

.lede {
  font-size: clamp(1.06rem, 1rem + 0.42vw, 1.28rem);
  color: var(--text-2);
  line-height: 1.62;
  max-width: 64ch;
}

/* ------------------------------------------------------------- header ---- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.header.is-stuck {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--ink) 92%, transparent);
}
.header__bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  margin-right: auto;
  flex-shrink: 0;
}
.brand__mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background: var(--gold);
  -webkit-mask: url('../img/brand/vessel-mark.webp') center / contain no-repeat;
  mask: url('../img/brand/vessel-mark.webp') center / contain no-repeat;
  transition: background 0.3s var(--ease), transform 0.4s var(--ease);
}
.brand:hover .brand__mark { background: var(--text); transform: translateY(-2px); }
.brand__name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.brand__name span {
  display: block;
  font: 400 0.6rem/1 var(--mono);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 0.28rem;
}

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  position: relative;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav a:hover { color: var(--text); background: rgba(150, 170, 220, 0.07); }
.nav a[aria-current='page'] { color: var(--gold); }
.nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 0.3rem;
  height: 1px;
  background: var(--gold);
}

/* .nav a sets its own colour, which outranks .btn on specificity — restate the
   button colours here so the header CTA keeps its dark-on-gold contrast. */
.nav a.btn { color: var(--btn-fg); background: var(--btn-bg); }
.nav a.btn:hover { color: var(--btn-fg); background: var(--btn-bg); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { margin-inline: auto; }
.nav-toggle .icon-x { display: none; }
.nav-toggle[aria-expanded='true'] .icon-x { display: block; }
.nav-toggle[aria-expanded='true'] .icon-menu { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; align-items: center; }
  .nav {
    position: fixed;
    inset: 4.5rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem var(--pad) 1.4rem;
    background: color-mix(in srgb, var(--ink-1) 97%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 0.85rem 0.4rem; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav a[aria-current='page']::after { display: none; }
  .nav .btn { margin-top: 1rem; justify-content: center; border-bottom: 0; }
}

/* ------------------------------------------------------------ buttons ---- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.82rem 1.35rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
              background 0.22s var(--ease), color 0.22s var(--ease),
              box-shadow 0.22s var(--ease);
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  border-color: var(--accent-line);
  box-shadow: 0 8px 26px -14px var(--accent);
}
.btn svg { flex-shrink: 0; }

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: #05070d;
  --btn-bd: var(--accent);
  box-shadow: 0 10px 34px -18px var(--accent);
}
.btn--primary:hover { --btn-fg: #05070d; box-shadow: 0 14px 40px -14px var(--accent); }

.btn--ghost { --btn-bg: rgba(150, 170, 220, 0.05); }
.btn--sm { padding: 0.6rem 1rem; font-size: 0.85rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

/* --------------------------------------------------------------- hero ---- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(92vh, 900px);
  padding-block: clamp(4rem, 10vw, 8rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.hero__inner { position: relative; }
.hero .h1 { margin-bottom: 1.4rem; }
.hero .h1 em {
  font-style: normal;
  color: var(--gold);
  /* Warm metallic sheen on the studio name. */
  background: linear-gradient(102deg, #f3c874 0%, #e8ad3d 34%, #b9832a 58%, #f6d791 82%, #e8ad3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lede { margin-bottom: 2.2rem; }
.hero .btn-row { margin-bottom: 3rem; }

/* Horizontal rule that fades out from the left. */
.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--line-2), transparent 72%);
}

/* --------------------------------------------------------------- stats --- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { padding: 1.15rem 1.3rem; background: var(--ink-1); }
.stat dt {
  font: 500 0.63rem/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.55rem;
}
.stat dd {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}
.stat dd small {
  display: block;
  font: 400 0.75rem/1.4 var(--font);
  color: var(--muted);
  margin-top: 0.2rem;
}

/* --------------------------------------------------------------- panel --- */

/* HUD-style panel: hairline border, notched top-right corner, corner ticks. */
.panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(150, 170, 220, 0.045), transparent 40%),
    var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.panel--pad { padding: clamp(1.4rem, 3vw, 2.2rem); }

/* --------------------------------------------------------------- cards --- */

/* Two up, so the four games read as a 2x2 block and the art stays large.
   auto-fit put them at 3 + 1 on a desktop width, which left an orphan. */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
}
@media (max-width: 720px) {
  .games-grid { grid-template-columns: 1fr; }
}

/* Press-kit asset panels: a different count, so let them flow. */
.games-grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: 0 26px 60px -34px var(--accent), 0 0 0 1px var(--accent-soft);
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
  filter: saturate(0.94) brightness(0.9);
}
.card:hover .card__media img { transform: scale(1.045); filter: none; }

/* CRT scanlines over the art — ties the site to the games' pixel aesthetic. */
.card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 3px);
  opacity: 0.5;
  transition: opacity 0.4s var(--ease);
}
.card:hover .card__media::after { opacity: 0.18; }

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
  padding: 1.35rem 1.4rem 1.5rem;
}
.card__title {
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.card__title a { color: var(--text); }
/* Stretch the title link over the whole card so the entire card is clickable
   while the accessible name stays on the real anchor. */
.card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__title a { color: var(--accent); }

.card__desc { color: var(--muted); font-size: 0.92rem; line-height: 1.58; flex: 1; }

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.7rem;
  font: 400 0.68rem/1 var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--faint);
}
/* Divider between metadata items, so genre and platform do not run together. */
.card__meta > span + span::before {
  content: '';
  display: inline-block;
  width: 3px; height: 3px;
  margin-right: 0.7rem;
  vertical-align: middle;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.65;
}

/* ---------------------------------------------------------------- tags --- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.66rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font: 500 0.67rem/1 var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}
.tag--accent {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.tag::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.tag--plain::before { display: none; }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* -------------------------------------------------------------- steam ----- */

/* The single most important conversion on the site: wishlist Ethral. */
.steam-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.6rem, 4vw, 3rem);
  overflow: hidden;
}
.steam-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(680px 340px at 12% 40%, var(--accent-soft), transparent 68%);
}
.steam-cta__art {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-3);
}
.steam-cta__art img { width: 100%; image-rendering: pixelated; }
.steam-cta__logo { max-width: min(330px, 78%); margin-bottom: 1.5rem; image-rendering: pixelated; }

@media (max-width: 880px) {
  .steam-cta { grid-template-columns: 1fr; }
  .steam-cta__art { order: -1; }
}

/* --------------------------------------------------------- status board --- */

.board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-1);
}
.board__row {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.15fr) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.05rem 1.35rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease);
}
.board__row:last-child { border-bottom: 0; }
.board__row:hover { background: rgba(150, 170, 220, 0.035); }
.board__row--head {
  background: var(--ink-2);
  font: 500 0.64rem/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.board__game { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.board__game strong { font-size: 1rem; font-weight: 600; }
.board__game a { color: var(--text); }
.board__game a:hover { color: var(--accent); }
.board__dot {
  width: 8px; height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.board__cell { font: 400 0.82rem/1.4 var(--mono); color: var(--muted); min-width: 0; }

@media (max-width: 760px) {
  .board__row { grid-template-columns: 1fr auto; row-gap: 0.5rem; }
  .board__row--head { display: none; }
  .board__game { grid-column: 1 / -1; }
  .board__cell { font-size: 0.74rem; }
}

/* --------------------------------------------------------------- pillars -- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
}
.pillar { padding: 1.6rem 1.5rem 1.8rem; }
.pillar__num {
  font: 500 0.68rem/1 var(--mono);
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.pillar h3 { font-size: 1.08rem; margin-bottom: 0.7rem; }
.pillar p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

/* -------------------------------------------------------------- game page -- */

.game-hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}
.game-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  object-fit: cover;
  object-position: center 45%;
  width: 100%;
  height: 100%;
  filter: saturate(0.65) brightness(0.4);
}

/* The Bone Warrior's Oath and Vharaduun have no separate wordmark file — their
   key art carries the title inside the image. Pushing the focal point down
   keeps that painted title out from behind the page's own <h1>, so the name
   is not read twice, ghosted over itself. */
.game-hero--art-title .game-hero__bg {
  object-position: center 88%;
  filter: saturate(0.6) brightness(0.32);
}
.game-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0.62) 0%, rgba(5, 7, 13, 0.9) 62%, var(--ink) 100%),
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0 1px, transparent 1px 3px);
}
.game-hero__logo {
  max-width: min(460px, 82%);
  margin-bottom: 1.6rem;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
}
.game-hero h1 { margin-bottom: 1.2rem; }
.game-hero .lede { margin-bottom: 1.8rem; }

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(250px, 26%, 320px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .game-layout { grid-template-columns: 1fr; } }

.aside { position: sticky; top: 6rem; display: grid; gap: 1rem; }
@media (max-width: 900px) { .aside { position: static; } }

.spec { display: grid; gap: 0; }
.spec div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.87rem;
}
.spec div:last-child { border-bottom: 0; }
.spec dt {
  font: 400 0.68rem/1.5 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  flex-shrink: 0;
}
.spec dd { margin: 0; text-align: right; color: var(--text-2); font-weight: 500; }

.prose h2 { margin: 2.6rem 0 1rem; font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.7rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2rem 0 0.7rem; font-size: 1.1rem; color: var(--text); }
.prose p { color: var(--text-2); }
.prose > p:first-of-type { font-size: 1.06rem; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.feature-list li {
  position: relative;
  padding-left: 1.85rem;
  color: var(--text-2);
  font-size: 0.96rem;
  line-height: 1.6;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px; height: 9px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.feature-list strong { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------- gallery ---- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 0.9rem;
}
.shot {
  position: relative;
  display: block;
  padding: 0;
  aspect-ratio: 16 / 9;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.shot:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.shot:hover img { transform: scale(1.04); }
.shot__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 0.9rem 0.7rem;
  background: linear-gradient(transparent, rgba(5, 7, 13, 0.92));
  font: 400 0.72rem/1.3 var(--mono);
  letter-spacing: 0.06em;
  color: var(--text-2);
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.shot:hover .shot__cap, .shot:focus-visible .shot__cap { opacity: 1; transform: none; }

/* Pixel-art sources are served at native size and scaled up by the browser;
   nearest-neighbour keeps them crisp instead of blurring them. */
.pixel img, img.pixel { image-rendering: pixelated; }

/* ------------------------------------------------------------- lightbox --- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(3, 4, 8, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  transform: scale(0.97);
  transition: transform 0.3s var(--ease);
}
.lightbox.is-open img { transform: none; }
.lightbox figcaption {
  margin-top: 1rem;
  font: 400 0.8rem/1.4 var(--mono);
  color: var(--muted);
  text-align: center;
}
.lightbox__close {
  position: absolute;
  top: clamp(0.8rem, 2vw, 1.6rem);
  right: clamp(0.8rem, 2vw, 1.6rem);
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--ink-2);
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  cursor: pointer;
}
.lightbox__close:hover { border-color: var(--accent-line); color: var(--accent); }

/* -------------------------------------------------------------- contact --- */

.contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-item { padding: 1.6rem 1.5rem; background: var(--ink-1); }
.contact-item h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.contact-item p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.9rem; }

/* Email is assembled by JS from split parts so scrapers do not find a
   mailto: string in the markup. The noscript fallback stays readable. */
.email {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 500;
  word-break: break-all;
  color: var(--accent);
}
.email[data-ready='false'] { color: var(--muted); }

/* --------------------------------------------------------------- footer --- */

.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
  margin-top: clamp(3rem, 7vw, 6rem);
  background: linear-gradient(180deg, transparent, rgba(150, 170, 220, 0.025));
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 2.8rem;
}
.footer h4 {
  font: 500 0.66rem/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer a { color: var(--text-2); font-size: 0.9rem; }
.footer a:hover { color: var(--accent); }
.footer__blurb { color: var(--muted); font-size: 0.89rem; max-width: 34ch; margin-top: 1rem; }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  font: 400 0.78rem/1.5 var(--mono);
  color: var(--faint);
}
.footer__base a { font-size: inherit; font-family: inherit; }

/* --------------------------------------------------------------- reveal --- */

/* Progressive enhancement: the .js class is set by site.js, so with
   JavaScript disabled every section is simply visible from the start. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal].is-in:nth-child(2) { transition-delay: 0.07s; }
.js [data-reveal].is-in:nth-child(3) { transition-delay: 0.14s; }
.js [data-reveal].is-in:nth-child(4) { transition-delay: 0.21s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------------- misc --- */

/* Small supporting sentence under a call to action. */
.note-sm {
  margin-top: 1.15rem;
  max-width: 54ch;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
}

.notice {
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--ink-1);
  color: var(--text-2);
  font-size: 0.92rem;
}

.error-page { min-height: 68vh; display: grid; place-items: center; text-align: center; }
.error-code {
  font: 600 clamp(4rem, 14vw, 9rem)/0.9 var(--mono);
  letter-spacing: -0.04em;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
