/* =====================================================================
   briankindregan.com — homepage styles
   Dark editorial "The Shelf" layout. Plain CSS, no framework.
   Palette + type are defined once as variables, then used by components.
   ===================================================================== */

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---- design tokens ---- */
:root {
  /* surfaces (darkest -> lightest) */
  --bg-deep: #0b0907;
  --bg:      #0e0b09;
  --bg-alt:  #100c09;
  --bg-card: #15100b;

  /* ink */
  --ink:        #e9ddc7;  /* base body text */
  --ink-bright: #f4ecda;  /* headings */
  --ink-soft:   #d8cbb2;  /* secondary body */

  /* accents + muted */
  --gold:    #c9a560;
  --gold-rgb: 201, 165, 96;
  --muted:   #9b8f78;
  --muted-2: #a99d85;
  --faint:   #6f6450;
  --mono-ink: #cdc0a8;

  /* hairlines */
  --line:        rgba(var(--gold-rgb), .16);
  --line-strong: rgba(var(--gold-rgb), .20);
  --line-soft:   rgba(var(--gold-rgb), .10);

  /* fonts */
  --font-display: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-serif:   'Newsreader', Georgia, serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* layout */
  --pad-x: 72px;
  --maxw: 1300px;
  --rail-w: 260px; /* space the sub-section rail reserves on the left (see js/subrail.js) */
}

/* ---- base ---- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

/* shared "eyebrow" label: mono, spaced, uppercase, gold */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}

/* a centered content column */
.wrap { max-width: var(--maxw); margin: 0 auto; }

/* generic section padding */
.section { padding: 120px var(--pad-x); }

/* =====================================================================
   TOP BAR
   ===================================================================== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px var(--pad-x);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
}
/* phones/tablets: let the bar scroll away — frozen on desktop, free on small screens (Brian's call) */
@media (max-width: 768px) {
  .topbar { position: static; }
}
.topbar__brand {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.topbar__nav {
  display: flex;
  gap: 38px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.topbar__nav a { transition: color .2s; }
.topbar__nav a:hover,
.topbar__nav a:focus-visible { color: var(--ink-bright); }

/* =====================================================================
   HERO — editorial split
   ===================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
}
.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px var(--pad-x);
  background: var(--bg);
}
.hero__eyebrow { letter-spacing: .34em; margin-bottom: 30px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 98px);
  line-height: .94;
  letter-spacing: -.025em;
  color: var(--ink-bright);
}
.hero__rule {
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin: 32px 0 28px;
}
.hero__lede {
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 460px;
}
.hero__media { position: relative; background: #15100c; }
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}
/* left-edge fade so the photo melts into the text column */
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(14,11,9,.25) 18%, transparent 44%);
}
.hero__media::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: rgba(var(--gold-rgb), .18);
}

/* ---- buttons / CTAs ---- */
.btn {
  display: inline-block;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 14px 24px;
  transition: background .2s, transform .2s;
}
.btn:hover, .btn:focus-visible { background: #d8b771; transform: translateY(-2px); }
.hero__text .btn { margin-top: 44px; }
/* secondary "ghost" button — matches .btn in size/shape, outlined instead of filled */
.btn--ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: rgba(var(--gold-rgb), .14); color: var(--gold); }

/* underlined text link (mono) */
.link-under {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 5px;
  white-space: nowrap;
  transition: color .2s;
}
a.link-under:hover, a.link-under:focus-visible { color: var(--gold); }

/* inert placeholder link (destination not built yet this milestone) */
.link-under.is-soon { color: var(--muted); cursor: default; border-bottom-color: var(--line-strong); }

/* =====================================================================
   SECTION HEADER (eyebrow + title + subtitle + "see all")
   ===================================================================== */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 26px;
  margin-bottom: 56px;
}
.sec-head__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1;
  letter-spacing: -.015em;
  color: var(--ink-bright);
  margin-top: 14px;
}
.sec-head__sub {
  font-style: italic;
  font-size: 19px;
  color: var(--muted-2);
  margin-top: 12px;
  max-width: 520px;
}

/* =====================================================================
   ZONE 1 · GAMES — THE SHELF
   ===================================================================== */
.shelf { background: var(--bg-alt); border-top: 1px solid var(--line-soft); padding-top: 120px; }
.shelf__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 36px;
}
.card { display: block; color: inherit; }
.card__art {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 48px rgba(0,0,0,.42);
  background: var(--bg-card);
}
.card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 24px;
  color: var(--ink-bright);
  margin-top: 20px;
}
.card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--muted);
  margin-top: 7px;
}
/* hover only for real links */
a.card:hover .card__art img,
a.card:focus-visible .card__art img { transform: translateY(-6px) scale(1.03); }

/* "coming soon" tag on stub cards */
.tag-soon {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mono-ink);
  background: rgba(11,9,7,.72);
  border: 1px solid var(--line-strong);
  padding: 5px 9px;
  backdrop-filter: blur(2px);
}

/* =====================================================================
   FEATURED · IN DEVELOPMENT — Blood Message
   ===================================================================== */
.featured {
  position: relative;
  margin-top: 96px;
  min-height: 560px;
  display: flex;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.featured__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,6,4,.9) 0%, rgba(8,6,4,.55) 38%, rgba(8,6,4,.1) 70%);
}
.featured__inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px var(--pad-x);
}
.featured__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 62px);
  line-height: .98;
  letter-spacing: -.02em;
  color: #f6eedd;
  text-shadow: 0 2px 30px rgba(0,0,0,.5);
  margin-top: 22px;
}
.featured__lede {
  font-size: clamp(19px, 2.3vw, 23px);
  line-height: 1.5;
  color: #e0d4bd;
  max-width: 520px;
  margin-top: 22px;
  text-shadow: 0 1px 16px rgba(0,0,0,.5);
}
.featured .link-under { margin-top: 34px; }

/* =====================================================================
   ZONE 2 · STORYBOARDS — THE DRAWING TABLE
   ===================================================================== */
.boards { background: var(--bg); }
.boards .sec-head { margin-bottom: 40px; }
.boards__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.board { display: block; }
.board__art {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background:
    linear-gradient(180deg, #1b140d, #0f0a06),
    repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, transparent 1px 26px);
}
.board__art span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
}
.board__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--mono-ink);
  margin-top: 12px;
}

/* =====================================================================
   ZONE 3 · MEDIA
   ===================================================================== */
.media { background: var(--bg-alt); border-top: 1px solid var(--line-soft); }
.media .sec-head { margin-bottom: 48px; }
.media__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.mcard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 280px;
  padding: 34px;
  background: linear-gradient(180deg, var(--bg-card), #0f0b08);
  border: 1px solid var(--line-strong);
  transition: transform .25s, border-color .25s;
}
a.mcard:hover, a.mcard:focus-visible { transform: translateY(-6px); border-color: rgba(var(--gold-rgb), .5); }
.mcard__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.mcard__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -.01em;
  color: var(--ink-bright);
}
.mcard__desc { font-size: 18px; color: var(--muted-2); margin-top: 10px; }
.mcard__cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 22px;
}

/* =====================================================================
   ABOUT + CONTACT
   ===================================================================== */
.about { background: var(--bg); border-top: 1px solid var(--line-soft); }
.about__grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: start;
}
.about__portrait {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(var(--gold-rgb), .22);
}
.about__lede {
  font-size: clamp(22px, 2.6vw, 29px);
  line-height: 1.5;
  color: #e4d8c1;
  max-width: 720px;
}
.about__block { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.about__block-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.about__studios {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--mono-ink);
  line-height: 1.9;
}
.about__email {
  font-family: var(--font-serif);
  font-size: 25px;
  color: var(--ink-bright);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: color .2s;
}
.about__email:hover, .about__email:focus-visible { color: var(--gold); }
.about .link-under { display: inline-block; margin-top: 26px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 36px var(--pad-x);
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--faint);
}
.footer span:last-child { color: var(--muted); }

/* =====================================================================
   MOTION — hero entrance + scroll reveal
   (Content is visible by default; effects only apply when JS adds .js)
   ===================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.rise { opacity: 0; animation: rise .9s ease forwards; }
.rise--1 { animation-delay: .10s; }
.rise--2 { animation-delay: .24s; }
.rise--3 { animation-delay: .42s; }
.rise--4 { animation-delay: .56s; }
.rise--5 { animation-delay: .70s; }

/* scroll reveal: only hide when JS is active, so no-JS users see everything */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; animation-name: none; }
  /* exception (Brian's call): the homepage hero entrance AND the sub-section rail always play,
     even with reduce-motion on. Only toggle animation-name, so the base duration/timing/fill +
     per-element stagger delays survive. */
  .hero__text .rise, .subrail__list li.rise { opacity: 0; animation-name: rise; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card__art img, a.mcard, .btn, .link-under, .topbar__nav a { transition: none; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  :root { --pad-x: 40px; }
  .section { padding: 88px var(--pad-x); }
  .boards__grid { grid-template-columns: repeat(3, 1fr); }
  .media__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --pad-x: 24px; }
  .topbar { flex-direction: column; gap: 18px; align-items: flex-start; }
  .topbar__nav { gap: 24px; flex-wrap: wrap; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { min-height: 320px; order: -1; }      /* photo on top, stacked */
  .hero__media img { position: relative; }
  .hero__text { padding: 56px var(--pad-x); }
  .hero__media::before { background: linear-gradient(0deg, var(--bg) 0%, transparent 40%); }

  .section { padding: 72px var(--pad-x); }
  .shelf { padding-top: 72px; }
  .shelf__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .featured { margin-top: 0; }
  .featured__inner { padding: 56px var(--pad-x); }

  .sec-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .boards__grid { grid-template-columns: repeat(2, 1fr); }
  .media__grid { grid-template-columns: 1fr; }

  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__portrait { max-width: 280px; }
}

@media (max-width: 420px) {
  .shelf__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(44px, 14vw, 56px); }
}

/* =====================================================================
   INTERIOR PAGES (shared: About, Games, Media, Storyboards)
   ===================================================================== */

/* nav: highlight the current page */
.topbar__nav a[aria-current="page"] { color: var(--ink-bright); }

/* footer links (e.g. "← Back home") */
.footer a { transition: color .2s; }
.footer a:hover, .footer a:focus-visible { color: var(--gold); }

/* page masthead */
.page-head { padding: 96px var(--pad-x) 0; }
.page-head__inner { max-width: var(--maxw); margin: 0 auto; }
.page-head--narrow .page-head__inner { max-width: 1180px; }
.page-head__eyebrow { letter-spacing: .34em; margin-bottom: 24px; }
.page-head__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 84px);
  line-height: .96;
  letter-spacing: -.025em;
  color: var(--ink-bright);
}
.page-head__lede {
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.55;
  color: #cabfa6;
  max-width: 660px;
  margin-top: 30px;
}

/* ---------- GAMES PAGE ---------- */
.gamespage-body { padding: 56px var(--pad-x) 120px; }
.gamespage-body .wrap { display: flex; flex-direction: column; gap: 64px; }

.gbanner {
  position: relative; display: flex; min-height: 300px;
  border: 1px solid var(--line-strong); box-shadow: 0 24px 48px rgba(0,0,0,.42);
  overflow: hidden;
}
.gbanner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .4s; }
.gbanner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,6,4,.92) 0%, rgba(8,6,4,.5) 45%, rgba(8,6,4,.1) 78%); }
.gbanner__inner { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 40px 52px; }
.gbanner__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 5vw, 46px); line-height: 1; letter-spacing: -.02em; color: #f6eedd; text-shadow: 0 2px 24px rgba(0,0,0,.5); margin: 14px 0; }
.gbanner__desc { font-size: 20px; line-height: 1.5; color: #e0d4bd; max-width: 460px; text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.gbanner .link-under { margin-top: 22px; }
a.gbanner:hover .gbanner__bg, a.gbanner:focus-visible .gbanner__bg { transform: scale(1.03); }

.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 36px; }
.card--contain .card__art { background: #000; }
.card--contain .card__art img { object-fit: contain; }

/* ---------- MEDIA PAGE ---------- */
.mediapage-body { padding: 40px var(--pad-x) 120px; }
.mediapage-body .wrap { max-width: 1040px; }
.media-row { display: grid; grid-template-columns: 200px 1fr; gap: 48px; padding: 58px 0; border-top: 1px solid var(--line); }
.media-row__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-top: 10px; text-align: center; }
.media-row__label img { margin-left: auto; margin-right: auto; }
.media-row__logo { margin-top: 20px; }
.media-row__cover { display: block; width: 100%; max-width: 200px; margin-top: 20px; border: 1px solid var(--line-strong); box-shadow: 0 16px 36px rgba(0,0,0,.45); }
.media-row__book { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.media-cover { width: 100%; border: 1px solid var(--line-strong); box-shadow: 0 24px 50px rgba(0,0,0,.5); }
.media-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4vw, 40px); letter-spacing: -.015em; color: var(--ink-bright); line-height: 1.04; }
.media-byline { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); margin-top: 16px; }
.media-desc { font-size: 21px; line-height: 1.6; color: #cabfa6; margin-top: 18px; max-width: 600px; }
.media-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- STORYBOARDS PAGE ---------- */
.boardspage-body { padding: 72px var(--pad-x) 120px; }
.boardspage-body .wrap { display: flex; flex-direction: column; gap: 80px; }
.board-set__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line-strong); padding-bottom: 18px; margin-bottom: 28px; }
.board-set__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 4vw, 34px); letter-spacing: -.01em; color: var(--ink-bright); }
.board-set__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.panel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.panel {
  aspect-ratio: 4 / 3; border: 1px solid var(--line-strong);
  display: flex; align-items: flex-end; padding: 14px;
  background: linear-gradient(180deg, #1b140d, #0f0a06), repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, transparent 1px 26px);
}
.panel span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.board-intro { font-size: 20px; line-height: 1.6; color: #cabfa6; max-width: 660px; margin-bottom: 36px; }

/* editable copy block that replaces a cut text/title card between frame groups */
.board-copy { max-width: 720px; margin: 4px 0; padding-top: 30px; border-top: 1px solid var(--line-strong); }
.board-copy p { font-size: 19px; line-height: 1.7; color: var(--ink-soft); }

.video-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1100px; }
.video-row--single { grid-template-columns: 1fr; max-width: 560px; }
.video-facade { position: relative; display: block; aspect-ratio: 16 / 9; border: 1px solid var(--line-strong); box-shadow: 0 24px 48px rgba(0,0,0,.42); overflow: hidden; background: #000; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; }
.video-facade::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,6,4,.15), rgba(8,6,4,.5)); }
.video-facade__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: rgba(201,165,96,.94); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 28px rgba(0,0,0,.45); transition: transform .2s; }
.video-facade__play::after { content: ""; width: 0; height: 0; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent var(--bg); margin-left: 5px; }
.video-facade:hover .video-facade__play, .video-facade:focus-visible .video-facade__play { transform: translate(-50%, -50%) scale(1.08); }
.video-facade__label { position: absolute; left: 16px; bottom: 14px; z-index: 2; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
/* the real player that replaces a facade on click (plays in-page) */
.video-embed__iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line-strong); background: #000; }

/* ---------- sub-section sibling rail (links injected by js/subrail.js; the list lives there) ---------- */
.subrail { display: none; }
.subrail__list { list-style: none; }
.subrail__item { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .03em; line-height: 1.35; color: var(--muted); text-decoration: none; transition: color .2s; }
a.subrail__item:hover, a.subrail__item:focus-visible { color: var(--gold); }
.subrail__item.is-current { color: var(--gold); }
/* staggered rise-in, matching the homepage hero (auto-disabled under reduced-motion via the global .rise rule) */
.subrail__list li:nth-child(1) { animation-delay: .08s; }
.subrail__list li:nth-child(2) { animation-delay: .14s; }
.subrail__list li:nth-child(3) { animation-delay: .20s; }
.subrail__list li:nth-child(4) { animation-delay: .26s; }
.subrail__list li:nth-child(5) { animation-delay: .32s; }
.subrail__list li:nth-child(6) { animation-delay: .38s; }
.subrail__list li:nth-child(7) { animation-delay: .44s; }
.subrail__list li:nth-child(8) { animation-delay: .50s; }
.subrail__list li:nth-child(9) { animation-delay: .56s; }
.subrail__list li:nth-child(10) { animation-delay: .62s; }
@media (min-width: 1200px) {
  body.subrail-ready main { margin-left: var(--rail-w); }
  .subrail { display: block; position: fixed; left: 0; top: 50%; transform: translateY(-50%); width: 220px; padding-left: 44px; z-index: 5; }
  .subrail__list { display: flex; flex-direction: column; gap: 13px; border-left: 1px solid var(--line-strong); padding-left: 18px; }
}

/* ---------- ABOUT PAGE ---------- */
.aboutpage-body { padding: 64px var(--pad-x) 120px; }
.aboutpage-body .wrap { max-width: 1180px; display: grid; grid-template-columns: 420px 1fr; gap: 72px; align-items: start; }
.about-aside { position: sticky; top: 40px; }
.about-aside__photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid rgba(var(--gold-rgb), .22); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.about-aside__caption { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: 12px; text-align: right; }
.about-aside__contact { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.about-links { display: flex; gap: 22px; margin-top: 22px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: var(--mono-ink); }
.about-links a { border-bottom: 1px solid rgba(var(--gold-rgb), .4); padding-bottom: 3px; transition: color .2s; }
.about-links a:hover, .about-links a:focus-visible { color: var(--gold); }
.about-narrative__lead { font-size: clamp(22px, 2.6vw, 27px); line-height: 1.5; color: #e4d8c1; }
.about-narrative p + p { margin-top: 24px; font-size: 21px; line-height: 1.65; color: var(--ink-soft); }
.about-section { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.about-section__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.about-section__body { font-size: 20px; line-height: 1.7; color: var(--ink-soft); }
.about-studios { font-family: var(--font-mono); font-size: 14px; letter-spacing: .04em; color: var(--mono-ink); line-height: 2; }

/* studio / university logo wall (About page) — one white card per group */
.logo-card { background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 30px 26px; margin-top: 8px; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 26px 18px; }
.logo-item { text-align: center; }
.logo-item img { display: block; margin: 0 auto; max-height: 50px; max-width: 100%; width: auto; height: auto; }
.logo-name { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: #6b6253; margin-top: 12px; }

/* ---------- interior responsive ---------- */
@media (max-width: 1024px) {
  .catalog { gap: 36px 24px; }
}
@media (max-width: 768px) {
  .page-head { padding: 64px var(--pad-x) 0; }
  .catalog { grid-template-columns: repeat(2, 1fr); }
  .gbanner__inner { padding: 30px 26px; }
  .media-row { grid-template-columns: 1fr; gap: 18px; }
  .media-row__book { grid-template-columns: 1fr; gap: 24px; }
  .media-cover { max-width: 240px; }
  .panel-grid { grid-template-columns: repeat(2, 1fr); }
  .video-row { grid-template-columns: 1fr; }
  .aboutpage-body .wrap { grid-template-columns: 1fr; gap: 40px; }
  .about-aside { position: static; }
  .about-aside__photo { max-width: 360px; }
  .board-set__head { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 420px) {
  .catalog { grid-template-columns: 1fr; }
}

/* =====================================================================
   PROJECT DETAIL PAGES (Naraka, Wings of Liberty, Blood Message)
   ===================================================================== */
.phero { position: relative; display: flex; min-height: 480px; border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.phero--tall { min-height: 520px; }
/* designed banner art (logo/text must show fully) — contain instead of crop; black edges OK */
.phero--banner { background: #000; }
.phero--banner .phero__bg { object-fit: contain; object-position: center; }
/* Naraka: hi-res banner, scaled down a touch with breathing room (per Brian) */
.phero--naraka .phero__bg { inset: 64px 0; }
.phero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,6,4,.92) 0%, rgba(8,6,4,.5) 44%, rgba(8,6,4,.12) 76%); }
.phero__inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad-x); }
.phero__back { font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; width: max-content; transition: color .2s; }
.phero__back:hover, .phero__back:focus-visible { color: #e3c585; }
.phero__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(46px, 7.5vw, 88px); line-height: .94; letter-spacing: -.025em; color: #f6eedd; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.phero__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 20px; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.phero__lede { font-size: clamp(20px, 2.4vw, 24px); line-height: 1.5; color: #e0d4bd; max-width: 540px; margin-top: 24px; text-shadow: 0 1px 16px rgba(0,0,0,.5); }

.pintro { padding: 90px var(--pad-x) 24px; }
.pintro__inner { max-width: 760px; margin: 0 auto; }
.pintro p { font-size: clamp(20px, 2.3vw, 23px); line-height: 1.6; color: var(--ink-soft); }
.pintro p + p { margin-top: 24px; }

.detail-body { padding: 48px var(--pad-x) 120px; }
.detail-body__inner { margin: 0 auto; }

.sec-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--line-strong); padding-bottom: 18px; margin-bottom: 40px; }

.video-grid { display: grid; gap: 40px 32px; }
.video-grid--3 { grid-template-columns: repeat(3, 1fr); }
.video-grid--2 { grid-template-columns: 1fr 1fr; gap: 28px; }
.video__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(18px, 2vw, 21px); color: var(--ink-bright); margin-top: 14px; line-height: 1.35; }

/* short-fiction cross-link card (on Wings of Liberty) */
.fic-card { display: flex; align-items: stretch; border: 1px solid rgba(var(--gold-rgb), .22); background: linear-gradient(180deg, var(--bg-card), #0f0b08); overflow: hidden; transition: transform .25s, border-color .25s; }
.fic-card:hover, .fic-card:focus-visible { transform: translateY(-5px); border-color: rgba(var(--gold-rgb), .55); }
.fic-card__art { flex: none; width: 230px; object-fit: cover; background: #000; border-right: 1px solid var(--line-strong); }
.fic-card__body { flex: 1; padding: 34px 40px; display: flex; flex-direction: column; justify-content: center; }
.fic-card__kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.fic-card__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4vw, 40px); letter-spacing: -.015em; color: var(--ink-bright); line-height: 1; }
.fic-card__teaser { font-size: 19px; line-height: 1.5; color: var(--muted-2); margin-top: 14px; max-width: 520px; }
.fic-card__foot { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.fic-card__read { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.fic-card__cta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 3px; }

/* =====================================================================
   FICTION PAGES (Shadow's Eve, Vol'jin, Mothership)
   ===================================================================== */
@keyframes growProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; animation: growProg linear; animation-timeline: scroll(root); }

.story-head { padding: 84px var(--pad-x) 0; }
.story-head__inner { max-width: 720px; margin: 0 auto; }
.story-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
a.story-eyebrow { transition: color .2s; }
a.story-eyebrow:hover, a.story-eyebrow:focus-visible { color: #e3c585; }
.story-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 7vw, 74px); line-height: .97; letter-spacing: -.025em; color: var(--ink-bright); margin-top: 22px; }
.story-byline-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 24px; }
.story-byline { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.btn--sm { padding: 9px 16px; font-size: 11px; letter-spacing: .12em; }

.story-art { padding: 48px var(--pad-x) 16px; }
.story-art img { display: block; width: 100%; max-width: 760px; margin: 0 auto; border: 1px solid rgba(var(--gold-rgb), .22); box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.story-art--narrow img { max-width: 600px; }
.story-caption { max-width: 760px; margin: 14px auto 0; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); text-align: right; }
.story-art--narrow .story-caption { max-width: 600px; }

.fiction { max-width: 680px; margin: 0 auto; padding: 48px var(--pad-x) 80px; }
.fiction p { font-size: 21px; line-height: 1.78; color: #ddd1ba; margin-bottom: 24px; }
.fiction .lead::first-letter { font-family: var(--font-display); font-weight: 700; font-size: 62px; line-height: .74; float: left; margin: 9px 14px 0 0; color: var(--gold); }
.story-break { text-align: center; color: #8a7d64; font-family: var(--font-mono); letter-spacing: .5em; font-size: 13px; margin: 42px 0 40px; }

.story-end { max-width: 680px; margin: 0 auto; padding: 0 var(--pad-x) 110px; text-align: center; }
.story-end__rule { width: 46px; height: 1px; background: rgba(var(--gold-rgb), .5); margin: 0 auto 26px; }
.story-end__note { font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--muted-2); margin-bottom: 18px; }

/* ---------- detail/fiction responsive ---------- */
@media (max-width: 1024px) {
  .video-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .phero { min-height: 400px; }
  .pintro { padding: 64px var(--pad-x) 16px; }
  .video-grid--2 { grid-template-columns: 1fr; }
  .fic-card { flex-direction: column; }
  .fic-card__art { width: 100%; height: 200px; border-right: none; border-bottom: 1px solid var(--line-strong); }
}
@media (max-width: 560px) {
  .video-grid--3 { grid-template-columns: 1fr; }
}

/* =====================================================================
   STORYBOARD GALLERIES (index of sets + per-set frame grid + lightbox)
   ===================================================================== */
/* index: set cards */
.sbset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.sbset { display: block; color: inherit; }
.sbset__cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line-strong); background: #000; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.sbset__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
a.sbset:hover .sbset__cover img, a.sbset:focus-visible .sbset__cover img { transform: scale(1.04); }
.sbset__count { position: absolute; bottom: 12px; right: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--mono-ink); background: rgba(11,9,7,.72); border: 1px solid var(--line-strong); padding: 5px 9px; }
.sbset__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 3vw, 28px); letter-spacing: -.01em; color: var(--ink-bright); margin-top: 18px; }
.sbset__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.sbset__cta { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: 14px; }

/* per-set frame grid */
.frame-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.frame { display: block; aspect-ratio: 4 / 3; border: 1px solid var(--line-strong); background: #000; overflow: hidden; cursor: zoom-in; }
.frame img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s, opacity .25s; }
.frame:hover img, .frame:focus-visible img { transform: scale(1.05); opacity: .92; }

/* homepage storyboard preview cards using real cover art */
.board__art--img { padding: 0; display: block; overflow: hidden; }
.board__art--img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
a.board:hover .board__art--img img, a.board:focus-visible .board__art--img img { transform: scale(1.04); }

/* covers whose label is portrait/square: show the whole thing with black bars, not cropped */
.cover-contain { background: #000; }
.sbset__cover.cover-contain img, .board__art.cover-contain img { object-fit: contain; }

/* lightbox (built by js/lightbox.js; no-JS falls back to opening the image) */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8,6,4,.94); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.lb.is-open { opacity: 1; pointer-events: auto; }
.lb__img { max-width: 92vw; max-height: 86vh; object-fit: contain; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb__btn { position: absolute; background: rgba(11,9,7,.5); border: 1px solid var(--line-strong); color: var(--ink); width: 52px; height: 52px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s; }
.lb__btn:hover, .lb__btn:focus-visible { background: rgba(201,165,96,.18); border-color: var(--gold); }
.lb__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb__close { top: 24px; right: 24px; width: 44px; height: 44px; font-size: 18px; }
.lb__count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--mono-ink); }

@media (max-width: 768px) {
  .sbset-grid { grid-template-columns: repeat(2, 1fr); }
  .frame-grid { grid-template-columns: repeat(3, 1fr); }
  .lb__prev { left: 8px; } .lb__next { right: 8px; }
}
@media (max-width: 480px) {
  .sbset-grid { grid-template-columns: 1fr; }
  .frame-grid { grid-template-columns: repeat(2, 1fr); }
}
