/* ==========================================================================
   IF YOU PEEK | OFFICIAL HORROR GAME WEBSITE STYLESHEET (WILDEROOM STUDIOS)
   - Arterial & dried blood-red palette (zero orange/terracotta)
   - Chiseled dark-wood & blood-iron carved button plaques
   - Interactive handheld flashlight mechanic (.torch-read)
   ========================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/07_Fonts/SpaceGrotesk-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('assets/07_Fonts/Manrope-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('assets/07_Fonts/Manrope-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-obsidian: #050406;
  --bg-elevated: #0A080B;
  --bg-carved: #040304;
  --text-bone: #EFECE6;
  --text-muted: #AEA89F;
  --text-dim: #78716A;

  /* Arterial & Dried Blood Palette (Zero Orange) */
  --blood-bright: #CC0E1E;
  --blood-fresh: #A80A17;
  --blood-primary: #850711;
  --blood-deep: #4A0308;
  --blood-coagulated: #220103;
  --blood-glow: rgba(204, 14, 30, 0.55);
  --blood-hairline: rgba(168, 10, 23, 0.34);

  --hairline: rgba(239, 236, 230, 0.09);
  --hairline-strong: rgba(239, 236, 230, 0.18);

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --torch-x: 50vw;
  --torch-y: 46vh;

  /* Chiseled Blood-Stained Timber Plaque (No repeating stamped icons) */
  --svg-carved-blood: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 68' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='bg' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%230b0102'/%3E%3Cstop offset='28%25' stop-color='%232b0206'/%3E%3Cstop offset='55%25' stop-color='%2347040a'/%3E%3Cstop offset='88%25' stop-color='%231f0103'/%3E%3Cstop offset='100%25' stop-color='%23080001'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M5,4 L96,2 L174,5 L254,3 L315,5 L317,34 L314,63 L232,65 L144,63 L62,65 L4,63 L2,35 Z' fill='url(%23bg)'/%3E%3Cpath d='M10,17 L308,16 M14,34 L304,35 M12,51 L306,50' stroke='%23000000' stroke-width='1.1' opacity='0.5' fill='none'/%3E%3Cpath d='M2,5 L96,2 L174,5 L254,3 L318,5 L315,64 L230,66 L142,63 L60,66 L2,63 Z' stroke='%23000000' stroke-width='3.2' fill='none'/%3E%3Cpath d='M4,6 L96,3 L174,6 L254,4 L316,6 L313,62 L230,64 L142,61 L60,64 L4,62 Z' stroke='%23b80c1a' stroke-width='1.5' fill='none'/%3E%3Cpath d='M9,10 L178,8 L309,10 L308,58 L146,59 L8,57 Z' stroke='%236b050e' stroke-width='1.0' fill='none' stroke-dasharray='48 6 24 5 72 6'/%3E%3C/svg%3E");

  --svg-carved-blood-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 68' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='bgh' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23160103'/%3E%3Cstop offset='28%25' stop-color='%234a030a'/%3E%3Cstop offset='55%25' stop-color='%23780712'/%3E%3Cstop offset='88%25' stop-color='%23330206'/%3E%3Cstop offset='100%25' stop-color='%23100002'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M5,4 L96,2 L174,5 L254,3 L315,5 L317,34 L314,63 L232,65 L144,63 L62,65 L4,63 L2,35 Z' fill='url(%23bgh)'/%3E%3Cpath d='M10,17 L308,16 M14,34 L304,35 M12,51 L306,50' stroke='%23000000' stroke-width='1.1' opacity='0.5' fill='none'/%3E%3Cpath d='M2,5 L96,2 L174,5 L254,3 L318,5 L315,64 L230,66 L142,63 L60,66 L2,63 Z' stroke='%23000000' stroke-width='3.2' fill='none'/%3E%3Cpath d='M4,6 L96,3 L174,6 L254,4 L316,6 L313,62 L230,64 L142,61 L60,64 L4,62 Z' stroke='%23e61224' stroke-width='1.8' fill='none'/%3E%3Cpath d='M9,10 L178,8 L309,10 L308,58 L146,59 L8,57 Z' stroke='%23a80a17' stroke-width='1.1' fill='none' stroke-dasharray='48 6 24 5 72 6'/%3E%3C/svg%3E");

  /* Chiseled Dark Timber/Slate Plaque (Secondary buttons) */
  --svg-carved-slate: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 68' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='bgs' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23040305'/%3E%3Cstop offset='50%25' stop-color='%230d0b0e'/%3E%3Cstop offset='100%25' stop-color='%23040305'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M5,4 L96,2 L174,5 L254,3 L315,5 L317,34 L314,63 L232,65 L144,63 L62,65 L4,63 L2,35 Z' fill='url(%23bgs)'/%3E%3Cpath d='M10,18 L308,17 M14,34 L304,35 M12,50 L306,49' stroke='%23000000' stroke-width='1.1' opacity='0.6' fill='none'/%3E%3Cpath d='M2,5 L96,2 L174,5 L254,3 L318,5 L315,64 L230,66 L142,63 L60,66 L2,63 Z' stroke='%23000000' stroke-width='3.2' fill='none'/%3E%3Cpath d='M4,6 L96,3 L174,6 L254,4 L316,6 L313,62 L230,64 L142,61 L60,64 L4,62 Z' stroke='%23635a54' stroke-width='1.3' fill='none' opacity='0.68'/%3E%3Cpath d='M9,10 L178,8 L309,10 L308,58 L146,59 L8,57 Z' stroke='%234a0308' stroke-width='1.0' fill='none' stroke-dasharray='42 8 54 6 68 6'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-obsidian);
  color: var(--text-bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

body {
  background-color: var(--bg-obsidian);
  background-image: radial-gradient(ellipse 85% 45% at 50% 0%, rgba(92, 5, 12, 0.14) 0%, transparent 72%);
  color: var(--text-bone);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 300;
  background: var(--blood-primary);
  color: var(--text-bone);
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.85rem;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 36px;
}

/* ==========================================================================
   INTERACTIVE FLASHLIGHT SYSTEM
   ========================================================================== */
.torch-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transition: opacity 250ms ease;
  background:
    radial-gradient(
      circle 460px at var(--torch-x) var(--torch-y),
      rgba(0, 0, 0, 0.00) 0%,
      rgba(5, 3, 4, 0.14) 50%,
      rgba(8, 2, 4, 0.44) 82%,
      rgba(4, 1, 2, 0.56) 100%
    );
}

.torch-beam-ring {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 51;
  opacity: 0;
  transition: opacity 250ms ease;
  background:
    radial-gradient(
      circle 260px at var(--torch-x) var(--torch-y),
      rgba(235, 238, 245, 0.08) 0%,
      rgba(196, 14, 28, 0.03) 64%,
      transparent 100%
    );
  mix-blend-mode: screen;
}

body.torch-active .torch-ambient,
body.torch-active .torch-beam-ring {
  opacity: 1;
}

.torch-read {
  position: relative;
  transition: opacity 200ms ease;
}

body.torch-active .torch-read {
  -webkit-mask-image: radial-gradient(
    circle 310px at var(--local-x, 50%) var(--local-y, 50%),
    rgba(0, 0, 0, 1.00) 0%,
    rgba(0, 0, 0, 1.00) 50%,
    rgba(0, 0, 0, 0.38) 76%,
    rgba(0, 0, 0, 0.07) 100%
  );
  mask-image: radial-gradient(
    circle 310px at var(--local-x, 50%) var(--local-y, 50%),
    rgba(0, 0, 0, 1.00) 0%,
    rgba(0, 0, 0, 1.00) 50%,
    rgba(0, 0, 0, 0.38) 76%,
    rgba(0, 0, 0, 0.07) 100%
  );
}

/* ==========================================================================
   CARVED HORROR BUTTON GUI SYSTEM
   ========================================================================== */
.btn-studio,
.header-steam-btn,
.btn-control,
.torch-pill,
.lightbox__close {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-bone);
  text-shadow:
    0 2px 3px #000000,
    0 -1px 1px #000000,
    0 0 10px rgba(204, 14, 30, 0.42);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.94));
  transition:
    transform 140ms ease,
    filter 180ms ease,
    color 180ms ease;
}

.btn-studio {
  padding: 16px 34px;
  font-size: 0.82rem;
}

.btn-studio--primary,
.header-steam-btn {
  background-image: var(--svg-carved-blood);
}

.btn-studio--primary:hover,
.header-steam-btn:hover {
  background-image: var(--svg-carved-blood-hover);
  color: #FFFFFF;
  filter:
    drop-shadow(0 8px 22px rgba(0, 0, 0, 0.96))
    drop-shadow(0 0 16px rgba(204, 14, 30, 0.52));
  transform: translateY(-1px);
}

.btn-studio--ghost,
.btn-control {
  background-image: var(--svg-carved-slate);
}

.btn-studio--ghost:hover,
.btn-control:hover {
  background-image: var(--svg-carved-blood-hover);
  color: #FFFFFF;
  filter:
    drop-shadow(0 8px 20px rgba(0, 0, 0, 0.96))
    drop-shadow(0 0 14px rgba(204, 14, 30, 0.42));
  transform: translateY(-1px);
}

.btn-studio:active,
.header-steam-btn:active,
.btn-control:active {
  transform: translateY(1px);
}

/* ==========================================================================
   STUDIO GAME NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(5, 4, 6, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--blood-hairline);
}

.site-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 68px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.studio-return {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.studio-return:hover {
  color: var(--text-bone);
}

.studio-return__icon {
  width: 20px;
  height: 20px;
  display: block;
}

.site-header__sep {
  color: var(--blood-bright);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-header__game {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-bone);
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header__link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 160ms ease;
}

.site-header__link:hover {
  color: var(--text-bone);
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.torch-pill {
  padding: 9px 18px;
  background-image: var(--svg-carved-slate);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  color: var(--text-bone);
}

.torch-pill:hover {
  background-image: var(--svg-carved-blood-hover);
}

.torch-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blood-bright);
  box-shadow: 0 0 10px var(--blood-bright);
}

.torch-pill[aria-pressed="false"] {
  opacity: 0.65;
  color: var(--text-muted);
}

.torch-pill[aria-pressed="false"] .torch-pill__dot {
  background: var(--text-dim);
  box-shadow: none;
}

.lang-toggle {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--blood-hairline);
  background: #060406;
}

.lang-toggle__btn {
  padding: 6px 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.lang-toggle__btn[aria-pressed="true"] {
  background: var(--blood-primary);
  color: var(--text-bone);
}

.header-steam-btn {
  padding: 9px 22px;
  font-size: 0.74rem;
  letter-spacing: 0.11em;
}

/* ==========================================================================
   HERO STAGE (#hero)
   ========================================================================== */
.hero-stage {
  position: relative;
  min-height: min(100vh, 1080px);
  display: flex;
  align-items: flex-end;
  padding: 132px 0 56px;
  border-bottom: 1px solid var(--blood-hairline);
  overflow: hidden;
}

.hero-stage__media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-stage__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  filter: contrast(1.12) brightness(0.62) saturate(0.92);
}

.hero-stage__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 4, 6, 0.78) 0%, rgba(5, 4, 6, 0.22) 38%, rgba(8, 2, 4, 0.90) 82%, #050406 100%),
    radial-gradient(ellipse 90% 80% at 50% 42%, transparent 34%, rgba(10, 2, 4, 0.84) 100%);
}

.hero-stage__content {
  position: relative;
  z-index: 5;
  width: 100%;
}

.hero-stage__date {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blood-bright);
  margin-bottom: 18px;
}

.hero-stage__title {
  margin-bottom: 26px;
}

.hero-stage__wordmark {
  width: clamp(320px, 54vw, 720px);
  height: auto;
  filter:
    drop-shadow(0 16px 44px rgba(0, 0, 0, 0.96))
    drop-shadow(0 0 24px rgba(184, 13, 27, 0.32));
}

.hero-stage__lead {
  max-width: 680px;
  margin-bottom: 34px;
}

.hero-stage__lead p {
  font-size: clamp(1.05rem, 1.2vw, 1.18rem);
  line-height: 1.74;
  color: var(--text-bone);
}

.hero-stage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 52px;
}

.hero-specs-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}

.hero-specs-strip__item dt {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blood-bright);
  margin-bottom: 4px;
}

.hero-specs-strip__item dd {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-bone);
}

/* ==========================================================================
   COMMON SECTION ARCHITECTURE
   ========================================================================== */
.section-block {
  padding: 112px 0;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--text-bone);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ==========================================================================
   TRAILER SECTION (#trailer)
   ========================================================================== */
.trailer-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-control {
  padding: 11px 24px;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.btn-control--accent {
  background-image: var(--svg-carved-blood);
}

.trailer-stage {
  width: 100%;
}

.trailer-stage__video {
  width: 100%;
  aspect-ratio: 1920 / 804;
  background: #000;
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.96);
  object-fit: cover;
}

.counting-verse {
  max-width: 540px;
  margin: 48px auto 0;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-muted);
  font-style: italic;
}

.counting-verse__final {
  color: var(--blood-bright);
  font-weight: 600;
  margin-top: 6px;
}

/* ==========================================================================
   STORY & GAMEPLAY CHAPTERS (#house, #kept)
   ========================================================================== */
.story-chapter {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 48px;
  align-items: center;
}

.story-chapter + .story-chapter {
  margin-top: 96px;
}

.story-chapter__text {
  grid-column: 1 / span 5;
}

.story-chapter__media {
  grid-column: 6 / span 7;
  position: relative;
}

.story-chapter--reverse .story-chapter__media {
  grid-column: 1 / span 7;
}

.story-chapter--reverse .story-chapter__text {
  grid-column: 8 / span 5;
}

.story-chapter__era {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--blood-bright);
  margin-bottom: 10px;
}

.story-chapter__heading {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--text-bone);
  margin-bottom: 18px;
}

.story-chapter__text p {
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--text-muted);
}

.story-chapter__text p + p {
  margin-top: 16px;
}

.story-chapter__media img {
  width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.94);
  filter: contrast(1.06) brightness(1.08);
}

.story-chapter__media figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-dim);
}

/* ==========================================================================
   SCREENSHOTS & MEDIA GRID (#gallery)
   ========================================================================== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
}

.media-item--wide {
  grid-column: span 7;
}

.media-item--narrow {
  grid-column: span 5;
}

.media-item--half {
  grid-column: span 6;
}

.media-item__btn {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: #000;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.92);
  transition: border-color 200ms ease;
}

.media-item__btn:hover {
  border-color: var(--blood-bright);
}

.media-item__btn img {
  width: 100%;
  height: auto;
  transition: transform 360ms ease;
}

.media-item__btn:hover img {
  transform: scale(1.02);
}

.media-item figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   DETAILS (#specs)
   ========================================================================== */
.specs-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: start;
}

.specs-layout__lead {
  margin-top: 18px;
  margin-bottom: 28px;
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.specs-table {
  border-top: 1px solid var(--hairline);
}

.specs-table__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}

.specs-table__row dt {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blood-bright);
}

.specs-table__row dd {
  font-size: 0.96rem;
  color: var(--text-bone);
}

/* ==========================================================================
   FULLSCREEN LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 1, 2, 0.96);
}

.lightbox__content {
  position: relative;
  z-index: 2;
  max-width: min(1600px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.lightbox__close {
  font-size: 0.76rem;
  padding: 10px 24px;
  margin-bottom: 12px;
  background-image: var(--svg-carved-blood);
}

.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border: 1px solid var(--hairline-strong);
}

.lightbox__caption {
  width: 100%;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   STUDIO FOOTER
   ========================================================================== */
.site-footer {
  padding: 72px 0 88px;
  background: #030203;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.footer-logo {
  height: auto;
  opacity: 0.92;
}

.footer-logo--horizontal {
  width: 480px;
  display: block;
}

.footer-logo--stacked {
  width: 320px;
  display: none;
}

.site-footer__meta {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--blood-bright);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.site-footer__links a:hover {
  color: var(--text-bone);
}

.site-footer__copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1080px) {
  .specs-layout {
    grid-template-columns: 1fr;
  }

  .story-chapter,
  .media-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .story-chapter__text,
  .story-chapter__media,
  .story-chapter--reverse .story-chapter__media,
  .story-chapter--reverse .story-chapter__text,
  .media-item--wide,
  .media-item--narrow,
  .media-item--half {
    grid-column: 1 / -1;
  }

  .hero-specs-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-header__nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .container,
  .site-header__inner {
    padding: 0 20px;
  }

  .hero-specs-strip,
  .specs-table__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-logo--horizontal {
    display: none;
  }

  .footer-logo--stacked {
    display: block;
    width: 320px;
  }

  .header-steam-btn {
    display: none;
  }
}


/* ==========================================================================
   LAYOUT FIXES (2026-11-08)
   - gallery rows share one height, so wide and narrow captures line up
   - tablet and phone keep a navigation row instead of losing the menu
   - phone: hero and specs spacing
   ========================================================================== */
/* Justified rows: each capture's width is proportional to its aspect ratio,
   so every row has one height and nothing is cropped (the bodycam HUD stays whole). */
.media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.media-item {
  --ar: 1.7778;
  flex: var(--ar) 1 calc(var(--ar) * 19.5%);
  min-width: 0;
}

.media-item:has(img[src*="cinema-"]) { --ar: 2.3881; }

.media-item__btn {
  aspect-ratio: var(--ar);
}

.media-item__btn img {
  height: 100%;
  object-fit: cover;
}

.story-chapter__media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 1080px) {
  .site-header__inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    row-gap: 0;
    padding-top: 10px;
  }

  .site-header__nav {
    display: flex;
    order: 3;
    width: calc(100% + 40px);
    margin: 0 -20px;
    padding: 12px 20px 12px;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid var(--hairline);
  }

  .site-header__nav::-webkit-scrollbar { display: none; }

  .site-header__link { white-space: nowrap; font-size: 0.74rem; }

  .hero-stage { padding-top: 168px; }

  .media-item { flex: 1 1 100%; }

  .site-header__left { flex: 1 1 auto; min-width: 0; }
  .header-steam-btn { display: none; }

  .site-header__nav {
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
}

@media (max-width: 600px) {
  .site-header__left { gap: 10px; }
  .studio-return__name,
  .site-header__sep,
  .site-header__game { display: none; }
  .torch-pill { padding: 8px 12px; font-size: 0.66rem; }
  .hero-stage__actions { gap: 12px; }
  .hero-stage__actions .btn-studio { flex: 1 1 100%; }
  .section-block { padding: 80px 0; }
  .story-chapter + .story-chapter { margin-top: 64px; }
  .specs-table__row dd { font-size: 0.92rem; }
}
