/* Ragnerauk — styles. Fonts are self-hosted in ../fonts */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/newsreader-300.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 300; font-display: swap; src: url('../fonts/newsreader-300-italic.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/newsreader-400.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/schibsted-grotesk-400.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/schibsted-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/schibsted-grotesk-600.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/schibsted-grotesk-900.woff2') format('woff2'); }
@font-face { font-family: 'IM Fell English SC'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/im-fell-english-sc-400.woff2') format('woff2'); }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/unbounded-300.woff2') format('woff2'); }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/unbounded-800.woff2') format('woff2'); }

/* Layout: a fixed WebGL night sea sits behind everything. Pages are left-aligned editorial
   columns that rise out of the water onto a fading Deep Sea Night scrim; content max 1280px,
   fluid gutters. Amber is reserved for light: the lamp, the active page, primary actions. */
:root {
  --night: #111C24;      /* Deep Sea Night — ground */
  --limestone: #E8E2D2;  /* Limestone White — text, logo */
  --amber: #D98B2B;      /* Sunset Amber — light in the darkness, under 10% */
  --sand: #B8AE98;       /* secondary text */
  --slate: #6B7A85;      /* tertiary, hairlines */
  --deep: #2C4252;       /* surfaces, horizon */
  --surface: #15222b;    /* night lifted toward deep */
  --line: rgba(107, 122, 133, .32);
  --line-2: rgba(184, 174, 152, .3);
  --amber-hi: #E2A04F;

  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --s--1: .8125rem;
  --s-0: 1.0625rem;
  --s-1: 1.25rem;
  --s-2: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);
  --s-3: clamp(1.75rem, 1.35rem + 1.7vw, 2.625rem);
  --s-4: clamp(2.25rem, 1.5rem + 3.4vw, 4.25rem);
  --s-5: clamp(3.5rem, 1.4rem + 9vw, 10rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

html { background: var(--night); -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--night);
  color: var(--limestone);
  font-family: var(--font-body);
  font-size: var(--s-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
html.has-modal, html.has-modal body { overflow: hidden; }
::selection { background: var(--amber); color: var(--night); }
a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Scene layers ---------- */
#sea {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100vh; height: 100lvh;
  display: block; z-index: 0;
  opacity: 0; transition: opacity 1.8s ease;
}
.scene-ready #sea { opacity: 1; }
.fallback { position: fixed; inset: 0; z-index: 0; display: none; background: var(--night); }
.fallback svg { width: 100%; height: 100%; display: block; }
.no-webgl .fallback { display: block; }
.grain {
  position: fixed; inset: -60px; z-index: 5; pointer-events: none;
  background-image: var(--grain, none); opacity: .06;
  animation: grain 1.4s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-22px, 14px); }
  40% { transform: translate(18px, -26px); } 60% { transform: translate(-12px, -8px); }
  80% { transform: translate(26px, 20px); } 100% { transform: translate(0, 0); }
}

main { position: relative; z-index: 1; outline: none; }
#view { position: relative; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  background: var(--limestone); color: var(--night); padding: 12px 16px; border-radius: 4px; text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gutter) 18px;
  background: linear-gradient(to bottom, rgba(17, 28, 36, .78), rgba(17, 28, 36, 0));
  transition: background .4s ease, padding .4s var(--ease-out);
}
.site-header.is-scrolled {
  background: linear-gradient(to bottom, rgba(17, 28, 36, .97), rgba(17, 28, 36, .9) 62%, rgba(17, 28, 36, 0));
  padding-top: calc(env(safe-area-inset-top, 0px) + 12px); padding-bottom: 12px;
}
.brand { display: inline-flex; align-items: center; color: var(--limestone); text-decoration: none; min-height: 44px; }
.brand svg { height: 34px; width: auto; display: block; }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav a {
  position: relative; text-decoration: none; color: var(--sand);
  font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  padding: 12px 0; transition: color .3s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 10px var(--amber);
  transform: translateX(-50%) scale(0); transition: transform .5s var(--ease-out);
}
.nav a:hover { color: var(--limestone); }
.nav a[aria-current="page"] { color: var(--limestone); }
.nav a[aria-current="page"]::after { transform: translateX(-50%) scale(1); }

.sound-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px;
  background: none; border: 0; cursor: pointer; color: var(--sand);
  font-size: .8125rem; font-weight: 500; letter-spacing: .04em;
}
.sound-btn:hover { color: var(--limestone); }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.bars i { display: block; width: 2px; height: 3px; background: currentColor; border-radius: 1px; transition: height .3s; }
.sound-btn[aria-pressed="true"] { color: var(--limestone); }
.sound-btn[aria-pressed="true"] .bars i { animation: bar 1.1s ease-in-out infinite; }
.sound-btn[aria-pressed="true"] .bars i:nth-child(2) { animation-delay: -.3s; }
.sound-btn[aria-pressed="true"] .bars i:nth-child(3) { animation-delay: -.6s; }
.sound-btn[aria-pressed="true"] .bars i:nth-child(4) { animation-delay: -.9s; }
@keyframes bar { 0%, 100% { height: 3px; } 50% { height: 14px; } }

.menu-btn {
  display: none; min-height: 44px; padding: 0 18px; margin-left: auto;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(17, 28, 36, .4);
  font-size: .875rem; font-weight: 500; letter-spacing: .04em; cursor: pointer;
}

/* Mobile menu */
.menu {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 24px);
  border: 0; background: var(--night); color: var(--limestone);
  flex-direction: column; box-sizing: border-box;
}
.menu[open] { display: flex; }
.menu::backdrop { background: transparent; }
.menu-top { display: flex; align-items: center; justify-content: space-between; }
.menu-top .menu-btn { display: inline-flex; align-items: center; margin: 0; }
.menu-nav { display: flex; flex-direction: column; gap: 4px; margin-top: auto; margin-bottom: auto; }
.menu-nav a {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 12vw, 4rem);
  line-height: 1.1; letter-spacing: -.02em; text-decoration: none; color: var(--sand); padding: 4px 0;
  display: flex; align-items: center; gap: 16px;
}
.menu-nav a[aria-current="page"] { color: var(--limestone); }
.menu-nav a[aria-current="page"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.menu-note { margin: 0; color: var(--sand); font-size: .875rem; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 500 .9375rem/1 var(--font-body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .4s var(--ease-out);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-amber { background: var(--amber); color: var(--night); }
.btn-amber:hover { background: var(--amber-hi); }
.btn-line { border-color: var(--line-2); color: var(--limestone); background: rgba(17, 28, 36, .35); }
.btn-line:hover { border-color: var(--limestone); }
.btn:active { transform: scale(.98); }
.text-link {
  color: var(--sand); text-decoration: none; font-size: .9375rem; font-weight: 500;
  border-bottom: 1px solid var(--line-2); padding: 10px 0 2px; transition: color .3s, border-color .3s;
}
.text-link:hover { color: var(--limestone); border-color: var(--limestone); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto auto auto;
  padding-top: 120px; padding-bottom: clamp(16px, 3vh, 32px); box-sizing: border-box;
}
.hero-copy { align-self: end; max-width: 31rem; display: grid; gap: 18px; padding-bottom: clamp(20px, 4vh, 44px); }
.hero-lede {
  margin: 0; font-family: var(--font-display); font-weight: 300; font-size: var(--s-4);
  line-height: 1.02; letter-spacing: -.025em; text-wrap: balance;
}
.hero-sub { margin: 0; color: var(--sand); max-width: 27rem; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-mark { margin: 0; line-height: 0; }
.hero-mark svg { display: block; width: 100%; height: auto; color: var(--limestone); }
.hud {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px;
  margin: clamp(14px, 2.4vh, 24px) 0 0; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: .8125rem;
}
.hud div { display: grid; gap: 2px; min-width: 0; }
.hud dt { color: var(--sand); opacity: .8; }
.hud dd { margin: 0; color: var(--limestone); }
.scroll-cue {
  position: absolute; right: 0; bottom: calc(100% + 0px);
}

/* Split text helpers */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; will-change: transform; }

/* ---------- Home bands ---------- */
.band { position: relative; padding-block: clamp(72px, 12vw, 160px); }
.band-scrim::before {
  content: ""; position: absolute; inset: -200px 0 0 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(17, 28, 36, 0), rgba(17, 28, 36, .9) 200px, rgba(17, 28, 36, .95));
}
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.band-title {
  margin: 0; font-family: var(--font-display); font-weight: 300; font-size: var(--s-3);
  line-height: 1.1; letter-spacing: -.015em;
}

.feature-game {
  position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px); align-items: end;
}
.feature-game .art { overflow: hidden; border-radius: 3px; background: linear-gradient(160deg, #1a2a35, #111C24); }
.feature-game .art img { display: block; width: 100%; height: auto; transition: transform 1.2s var(--ease-out), opacity .8s ease; }
.feature-game:hover .art img { transform: scale(1.03); }
.feature-game .body { display: grid; gap: 20px; justify-items: start; }
.feature-game .logo { width: 100%; max-width: 30rem; color: var(--limestone); }
.feature-game .logo svg { display: block; width: 100%; height: auto; }
.feature-game .tag { margin: 0; font-family: var(--font-display); font-size: var(--s-2); font-weight: 300; line-height: 1.3; text-wrap: pretty; }

.outro { display: grid; gap: 28px; justify-items: start; }
.outro-text {
  margin: 0; font-family: var(--font-display); font-weight: 300; font-size: var(--s-4);
  line-height: 1.05; letter-spacing: -.025em; max-width: 16ch; text-wrap: balance;
}

/* ---------- Pages ---------- */
.page-head {
  min-height: 58vh; min-height: 58svh; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 140px; padding-bottom: clamp(40px, 7vh, 88px);
}
.page-title {
  margin: 0; font-family: var(--font-display); font-weight: 300; font-size: var(--s-5);
  line-height: .9; letter-spacing: -.04em; outline: none;
}
.page-title .c { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .08em; margin: 0 -.02em -.08em; }
.page-title .c > span { display: inline-block; }
.page-intro { margin: 22px 0 0; max-width: 36rem; color: var(--sand); font-size: var(--s-1); line-height: 1.5; text-wrap: pretty; }

.page-body { position: relative; padding-bottom: clamp(80px, 12vw, 160px); }
.page-body::before {
  content: ""; position: absolute; inset: -120px 0 0 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(17, 28, 36, 0), rgba(17, 28, 36, .9) 220px, rgba(17, 28, 36, .95));
}

.status { display: inline-flex; align-items: center; gap: 10px; color: var(--sand); font-size: .875rem; font-variant-numeric: tabular-nums; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--sand); flex: none; }
.status[data-s="dev"] i { background: var(--amber); box-shadow: 0 0 10px 1px var(--amber); }
.status[data-s="jam"] i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--sand); }
.status[data-s="proto"] i { background: var(--slate); }
.status .yr { color: var(--slate); }

/* Games list */
.game-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.game-row {
  appearance: none; background: none; border: 0; text-align: left; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 17rem) 52px; align-items: center;
  gap: 20px clamp(24px, 4vw, 64px); padding: clamp(28px, 4.2vw, 52px) 0;
  border-bottom: 1px solid var(--line); position: relative; color: var(--limestone);
}
.game-row::before {
  content: ""; position: absolute; inset: 0 calc(-1 * min(var(--gutter), 32px)); z-index: -1;
  background: linear-gradient(90deg, rgba(44, 66, 82, .5), rgba(44, 66, 82, 0));
  opacity: 0; transition: opacity .5s ease;
}
.game-row:hover::before, .game-row:focus-visible::before { opacity: 1; }
.game-row:focus-visible { outline-offset: -2px; }
.game-logo { display: block; min-width: 0; }
.game-logo svg { display: block; width: min(100%, 34rem); height: auto; transition: transform .7s var(--ease-out); }
.game-row:hover .game-logo svg, .game-row:focus-visible .game-logo svg { transform: translateX(14px); }
.game-info { display: grid; gap: 6px; min-width: 0; }
.game-line { color: var(--sand); font-size: .9375rem; line-height: 1.45; }
.game-plus {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; transition: transform .6s var(--ease-out), background-color .3s, border-color .3s, color .3s;
}
.game-plus svg { width: 18px; height: 18px; }
.game-row:hover .game-plus, .game-row:focus-visible .game-plus { transform: rotate(90deg); background: var(--limestone); color: var(--night); border-color: var(--limestone); }

.preview {
  position: fixed; left: 0; top: 0; z-index: 20; width: 300px; aspect-ratio: 16 / 10; max-width: 100%;
  pointer-events: none; overflow: hidden; border-radius: 3px; opacity: 0; transform: scale(.85);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); background: var(--deep);
}
.preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* News */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(17, 28, 36, .4); color: var(--sand); font-size: .875rem; font-weight: 500; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.chip:hover { color: var(--limestone); border-color: var(--sand); }
.chip[aria-pressed="true"] { background: var(--limestone); color: var(--night); border-color: var(--limestone); }
.news-list { display: grid; gap: clamp(56px, 7vw, 96px); }
.post-feature { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.post-feature .post-title { font-size: var(--s-3); }
.post-feature .post-excerpt { font-size: var(--s-0); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(20px, 2.6vw, 36px); }
.post-card { position: relative; display: grid; gap: 14px; align-content: start; min-width: 0; }
.post-img { overflow: hidden; border-radius: 3px; background: linear-gradient(160deg, #1a2a35, #111C24); }
.post-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease-out), opacity .8s ease; }
.post-card:hover .post-img img { transform: scale(1.04); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .8125rem; color: var(--sand); font-variant-numeric: tabular-nums; }
.post-meta .cat { color: var(--limestone); }
.post-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: var(--s-2); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.post-title button {
  all: unset; cursor: pointer; background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .6s var(--ease-out);
}
.post-card:hover .post-title button, .post-feature:hover .post-title button { background-size: 100% 1px; }
.post-title button::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-title button:focus-visible { outline: none; }
.post-card:has(button:focus-visible), .post-feature:has(button:focus-visible) { outline: 2px solid var(--amber); outline-offset: 8px; border-radius: 2px; }
.post-excerpt { margin: 0; color: var(--sand); font-size: .9375rem; line-height: 1.55; text-wrap: pretty; }
.empty { color: var(--sand); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 7vw, 120px); align-items: start; }
.avatar { margin: 0; display: grid; gap: 14px; justify-items: start; position: sticky; top: 120px; }
.avatar-frame {
  width: min(100%, 340px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: linear-gradient(160deg, #2C4252, #111C24); box-shadow: 0 0 0 1px var(--line-2), 0 0 0 10px rgba(17, 28, 36, .6), 0 0 0 11px var(--line);
}
.avatar-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .8s; }
.avatar figcaption { color: var(--slate); font-size: .8125rem; }
.prose { max-width: 38rem; }
.prose h2, .about-text h2 {
  margin: 0 0 14px; font-family: var(--font-display); font-weight: 400; font-size: var(--s-2); line-height: 1.2; letter-spacing: -.01em;
}
.prose p, .about-text p { margin: 0 0 1.1em; color: var(--limestone); text-wrap: pretty; }
.about-text { max-width: 40rem; }
.about-text section + section { margin-top: clamp(36px, 5vw, 56px); }
.about-text .lead { font-family: var(--font-display); font-size: var(--s-2); font-weight: 300; line-height: 1.35; }
.facts { margin: clamp(32px, 4vw, 48px) 0 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: minmax(7rem, 1fr) minmax(0, 2fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--sand); font-size: .9375rem; }
.facts dd { margin: 0; font-size: .9375rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px); }
.contact-card { border-top: 1px solid var(--line-2); padding-top: 22px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.contact-card h2 { margin: 0; font-size: .9375rem; font-weight: 600; letter-spacing: .02em; }
.contact-card p { margin: 0; color: var(--sand); max-width: 30rem; }
.email-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.email {
  font-family: var(--font-display); font-weight: 300; font-size: var(--s-3); line-height: 1.15; letter-spacing: -.015em;
  overflow-wrap: anywhere; color: var(--limestone);
}
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--sand); cursor: pointer; font-size: .8125rem; font-weight: 500;
}
.copy-btn:hover { color: var(--limestone); border-color: var(--sand); }
.copy-btn svg { width: 14px; height: 14px; }
.contact-card .note { font-size: .875rem; color: var(--slate); }
.contact-card .note { color: var(--sand); opacity: .8; }

.channel { margin-top: clamp(72px, 10vw, 128px); }
.yt-link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px;
  padding: clamp(28px, 4vw, 48px) 0; border-block: 1px solid var(--line-2); text-decoration: none; position: relative;
}
.yt-name { display: block; font-family: var(--font-display); font-weight: 300; font-size: var(--s-5); line-height: .95; letter-spacing: -.04em; }
.yt-note { display: block; margin-top: 14px; color: var(--sand); max-width: 34rem; }
.arrow-circle {
  width: clamp(52px, 6vw, 76px); height: clamp(52px, 6vw, 76px); border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; transition: transform .6s var(--ease-out), background-color .3s, color .3s, border-color .3s; flex: none;
}
.arrow-circle svg { width: 40%; height: 40%; }
.yt-link:hover .arrow-circle, .social-list a:hover .arrow-circle { background: var(--limestone); color: var(--night); border-color: var(--limestone); transform: rotate(45deg); }
.social-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); }
.social-list a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.social-list .arrow-circle { width: 44px; height: 44px; }
.social-name { display: block; font-family: var(--font-display); font-size: var(--s-2); font-weight: 400; line-height: 1.2; }
.social-meta { display: block; color: var(--sand); font-size: .875rem; margin-top: 2px; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; background: var(--night); border-top: 1px solid var(--line); padding-block: clamp(56px, 8vw, 96px) calc(env(safe-area-inset-bottom, 0px) + 28px); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px 32px; }
.foot-mark { color: var(--limestone); width: min(100%, 360px); }
.foot-mark svg { display: block; width: 100%; height: auto; }
.foot-tag { margin: 18px 0 0; color: var(--sand); font-size: .9375rem; max-width: 22rem; }
.foot-col h2 { margin: 0 0 10px; font-size: .8125rem; font-weight: 500; color: var(--slate); letter-spacing: .02em; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-col a, .foot-col span { color: var(--sand); text-decoration: none; font-size: .9375rem; display: inline-block; padding: 6px 0; overflow-wrap: anywhere; }
.foot-col a:hover { color: var(--limestone); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: clamp(48px, 7vw, 80px); padding-top: 20px; border-top: 1px solid var(--line); color: var(--slate); font-size: .8125rem; }
.foot-base button { background: none; border: 0; color: var(--sand); cursor: pointer; font-size: .8125rem; min-height: 44px; padding: 0; }
.foot-base button:hover { color: var(--limestone); }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--limestone);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.modal::backdrop { background: transparent; }
.modal-scrim { position: fixed; inset: 0; background: rgba(6, 11, 15, .82); }
.modal-panel {
  position: relative; z-index: 1; width: min(100% - 2 * var(--gutter), 1080px);
  margin: clamp(24px, 6vh, 72px) auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; overflow: clip;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .7);
}
.modal-bar {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px clamp(18px, 3vw, 28px); background: rgba(21, 34, 43, .94); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.modal-kicker { margin: 0; color: var(--sand); font-size: .8125rem; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.close-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--limestone); cursor: pointer; font-size: .875rem; font-weight: 500; flex: none;
}
.close-btn:hover { background: var(--limestone); color: var(--night); }
.close-btn svg { width: 18px; height: 18px; }
.m-pad { padding: clamp(22px, 4vw, 56px); }
.m-section + .m-section { margin-top: clamp(44px, 6vw, 72px); }
.m-h { margin: 0 0 18px; font-family: var(--font-display); font-weight: 400; font-size: var(--s-2); line-height: 1.2; letter-spacing: -.01em; }

.m-hero { position: relative; background: var(--deep); }
.m-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity .8s; }
.m-hero::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(to bottom, rgba(21, 34, 43, 0), var(--surface)); pointer-events: none; }
.m-hero .m-logo { position: absolute; z-index: 1; left: clamp(22px, 4vw, 56px); right: clamp(22px, 4vw, 56px); bottom: clamp(10px, 2vw, 24px); color: var(--limestone); }
.m-hero .m-logo svg { display: block; width: min(100%, 30rem); height: auto; filter: drop-shadow(0 4px 24px rgba(0, 0, 0, .5)); }
.m-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.m-tagline { margin: 10px 0 0; font-family: var(--font-display); font-weight: 300; font-size: var(--s-3); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; max-width: 22ch; }
.m-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.m-two { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.m-two .facts { margin-top: 0; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.features li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); position: relative; color: var(--limestone); }
.features li::before { content: ""; position: absolute; left: 4px; top: 1.45em; width: 10px; height: 1px; background: var(--sand); }

.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.videos.one { grid-template-columns: minmax(0, 1fr); }
.video { margin: 0; display: grid; gap: 10px; min-width: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #0a1218; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.video-play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease-out), opacity .8s; }
.video-play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 18, 24, .7), rgba(10, 18, 24, 0) 55%); }
.video-play:hover img { transform: scale(1.03); }
.video-play:focus-visible { outline: 2px solid var(--amber); outline-offset: -4px; }
.play-dot {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
  background: rgba(232, 226, 210, .92); color: var(--night); display: grid; place-items: center; transition: transform .5s var(--ease-out);
}
.play-dot svg { width: 22px; height: 22px; margin-left: 3px; }
.video-play:hover .play-dot { transform: scale(1.08); }
.video-label { position: absolute; z-index: 1; left: 16px; bottom: 12px; right: 16px; display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; font-weight: 500; }
.video-label .len { color: var(--sand); font-variant-numeric: tabular-nums; }
.video figcaption { display: flex; justify-content: flex-end; gap: 12px; font-size: .8125rem; color: var(--sand); }
.video figcaption a { color: var(--sand); text-underline-offset: 3px; }
.video figcaption a:hover { color: var(--limestone); }
.video-frame.is-blocked .play-dot, .video-frame.is-blocked .video-label { display: none; }
.video-fallback { z-index: 2; position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 20px; text-align: center; background: rgba(10, 18, 24, .86); }
.video-fallback p { margin: 0; color: var(--sand); max-width: 26rem; font-size: .9375rem; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shot { all: unset; cursor: zoom-in; display: block; border-radius: 3px; overflow: hidden; background: linear-gradient(160deg, #1a2a35, #111C24); position: relative; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1s var(--ease-out), opacity .8s; }
.shot:hover img { transform: scale(1.04); }
.shot:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.m-end { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: center; padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.m-end p { margin: 0; font-family: var(--font-display); font-size: var(--s-2); font-weight: 300; line-height: 1.25; }

/* Post modal */
.m-post-head { padding: clamp(28px, 5vw, 64px) clamp(22px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.m-post-title { margin: 14px 0 0; font-family: var(--font-display); font-weight: 300; font-size: var(--s-4); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; max-width: 20ch; }
.m-post-dek { margin: 18px 0 0; color: var(--sand); font-size: var(--s-1); line-height: 1.5; max-width: 40rem; text-wrap: pretty; }
.m-post-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity .8s; }
.m-post-body { padding: clamp(32px, 5vw, 64px) clamp(22px, 4vw, 56px) 0; }
.m-post-body .prose { max-width: 40rem; margin-inline: auto; font-size: 1.125rem; line-height: 1.7; }
.prose h3 { margin: 1.8em 0 .6em; font-family: var(--font-display); font-weight: 400; font-size: var(--s-2); line-height: 1.2; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.prose li { margin: 0 0 .5em; }
.prose li::marker { color: var(--sand); }
.prose blockquote { margin: 1.8em 0; padding: 0 0 0 24px; border-left: 2px solid var(--amber); font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: var(--s-2); line-height: 1.35; color: var(--limestone); }
.prose figure { margin: 2em 0; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: 3px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--deep); transition: opacity .8s; }
.prose figcaption { margin-top: 10px; color: var(--sand); font-size: .875rem; }
.m-post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: clamp(32px, 5vw, 64px) clamp(22px, 4vw, 56px) clamp(28px, 4vw, 56px); }
.m-post-nav button {
  appearance: none; text-align: left; cursor: pointer; background: transparent; border: 1px solid var(--line); border-radius: 6px;
  padding: 18px 20px; display: grid; gap: 6px; transition: border-color .3s, background-color .3s; min-width: 0;
}
.m-post-nav button:hover { border-color: var(--sand); background: rgba(44, 66, 82, .3); }
.m-post-nav .dir { color: var(--sand); font-size: .8125rem; }
.m-post-nav .t { font-family: var(--font-display); font-size: var(--s-1); line-height: 1.25; }
.m-post-nav .next { text-align: right; justify-items: end; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 8px calc(env(safe-area-inset-bottom, 0px) + 12px);
  border: 0; background: #070c10; color: var(--limestone); box-sizing: border-box;
}
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox::backdrop { background: transparent; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 0 8px; }
.lb-count { margin: 0; color: var(--sand); font-size: .875rem; font-variant-numeric: tabular-nums; }
.lb-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 0; }
.lb-stage img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; display: block; min-height: 0; }
.lb-nav { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--limestone); cursor: pointer; display: grid; place-items: center; }
.lb-nav:hover { background: var(--limestone); color: var(--night); }
.lb-nav svg { width: 20px; height: 20px; }
.lb-cap { margin: 8px 0 0; text-align: center; color: var(--sand); font-size: .875rem; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); z-index: 200;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--limestone); color: var(--night); padding: 12px 20px; border-radius: 999px;
  font-size: .9375rem; font-weight: 500; max-width: calc(100% - 32px); box-sizing: border-box; text-align: center;
  transition: opacity .35s ease, transform .5s var(--ease-out); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Painted images fade in */
img[data-art]:not(.is-painted) { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav, .site-header > .sound-btn { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .brand svg { height: 30px; }
  .hero { padding-top: 96px; }
  .hero::before {
    content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, rgba(17, 28, 36, 0) 34%, rgba(17, 28, 36, .72) 52%, rgba(17, 28, 36, .9) 100%);
  }
  .hero-copy { gap: 14px; }
  .hud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-game, .post-feature, .about, .contact-grid, .m-two, .m-intro, .m-end { grid-template-columns: minmax(0, 1fr); }
  .avatar { position: static; }
  .avatar-frame { width: min(64%, 260px); }
  .game-row { grid-template-columns: minmax(0, 1fr) 44px; gap: 14px 16px; }
  .game-logo { grid-column: 1 / -1; }
  .game-plus { width: 44px; height: 44px; }
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .features, .social-list { grid-template-columns: minmax(0, 1fr); }
  .videos { grid-template-columns: minmax(0, 1fr); }
  .gallery, .gallery.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .modal-panel { width: 100%; margin: 0; min-height: 100%; border-radius: 0; border: 0; }
  .modal-bar { padding-top: calc(env(safe-area-inset-top, 0px) + 10px); }
  .m-post-nav { grid-template-columns: minmax(0, 1fr); }
  .m-post-nav .next { text-align: left; justify-items: start; }
  .lb-stage { grid-template-columns: minmax(0, 1fr); }
  .lb-stage .lb-nav { display: none; }
  .page-head { min-height: 66svh; padding-top: 112px; position: relative; }
  .page-head::before {
    content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, rgba(17, 28, 36, 0) 30%, rgba(17, 28, 36, .7) 62%, rgba(17, 28, 36, .9));
  }
  .m-hero::after { inset: 55% 0 0 0; }
  .m-hero .m-logo { position: relative; z-index: 1; left: auto; right: auto; bottom: auto; margin: -22px clamp(22px, 4vw, 56px) 0; }
  .yt-link { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .hero-actions .btn { flex: 1 1 auto; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.foot-mark { display: block; }
.channel-title { margin-bottom: 18px; }
.post-text { display: grid; gap: 16px; align-content: center; min-width: 0; }
.m-post-head > * { max-width: 40rem; margin-inline: auto; }
.m-post-head .m-post-title { max-width: 40rem; }
.m-post-nav { max-width: calc(52rem + 2 * clamp(22px, 4vw, 56px)); margin-inline: auto; box-sizing: border-box; }
.noscript { position: relative; z-index: 2; max-width: 36rem; margin: 0 auto; padding: 140px var(--gutter) 80px; color: var(--limestone); }
.noscript p { margin: 0 0 1em; }
.game-logo img, .feature-game .logo img, .m-hero .m-logo img { display: block; width: min(100%, 34rem); height: auto; aspect-ratio: auto; object-fit: contain; }
a.email { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 95%; transition: background-size .6s var(--ease-out); }
a.email:hover { background-size: 100% 1px; }
span.email { user-select: all; -webkit-user-select: all; }
