/* ============================================================
   PHANTOM JAY / Kyrios Studios
   Palette pulled from the game itself: pitch black, cold blue
   night, warm amber lamplight, bone-white text.
   ============================================================ */

:root {
  --black:        #05060a;
  --black-2:      #08090f;
  --night:        #0b1018;
  --night-2:      #101825;
  --slate:        #16202e;
  --line:         rgba(150, 175, 210, 0.11);
  --line-strong:  rgba(150, 175, 210, 0.22);

  --bone:         #e8e6e1;
  --muted:        #9aa3b2;
  --dim:          #6b7484;

  --amber:        #e8a24a;
  --amber-hot:    #ffc072;
  --amber-glow:   rgba(232, 162, 74, 0.5);

  --steam:        #1b2838;
  --steam-hi:     #2a475e;

  --font-display: 'Oswald', 'Haettenschweiler', 'Arial Narrow', Impact, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --wrap:         1220px;
  --wrap-narrow:  860px;

  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--amber); color: #100d06; }

/* ---------- focus ---------- */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 1000;
  background: var(--amber);
  color: #100d06;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 3px;
}
.skip-link:focus { left: 16px; }

/* ---------- layout ---------- */
.wrap {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { position: relative; padding: clamp(88px, 12vw, 160px) 0; }

/* ============================================================
   ATMOSPHERE / grain + flashlight
   ============================================================ */

.grain {
  position: fixed;
  inset: -50%;   /* only needs slack for the ±2% jitter below */
  z-index: 900;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 700ms steps(3) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-2%, 1.5%); }
  66%  { transform: translate(1.5%, -1%); }
  100% { transform: translate(0, 0); }
}

/* soft warm pool of light that follows the cursor */
.flashlight {
  position: fixed;
  inset: 0;
  z-index: 890;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms ease;
  background: radial-gradient(
    circle 340px at var(--mx, 50%) var(--my, 50%),
    rgba(255, 196, 122, 0.075),
    rgba(255, 180, 100, 0.028) 45%,
    transparent 72%
  );
  mix-blend-mode: screen;
}
body.torch-on .flashlight { opacity: 1; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 260ms var(--ease), box-shadow 320ms ease,
              background-color 260ms ease, border-color 260ms ease, color 260ms ease;
}
.btn__icon { width: 19px; height: 19px; flex: none; }

.btn--lg { padding: 17px 34px; font-size: 15px; }

.btn--steam {
  background: linear-gradient(160deg, var(--steam-hi), var(--steam));
  color: var(--bone);
  border-color: rgba(140, 180, 220, 0.28);
  box-shadow: 0 0 0 rgba(232, 162, 74, 0);
}
.btn--steam:hover {
  background: linear-gradient(160deg, #34576f, #22303f);
  border-color: var(--amber);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.6), 0 0 24px rgba(232, 162, 74, 0.22);
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  color: var(--bone);
  border-color: var(--amber);
  background: rgba(232, 162, 74, 0.06);
  transform: translateY(-2px);
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  transition: background-color 400ms ease, backdrop-filter 400ms ease,
              border-color 400ms ease, padding 400ms ease;
  border-bottom: 1px solid transparent;
  padding: 10px 0;
}
.nav.is-stuck {
  background: rgba(5, 6, 10, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--bone);
  margin-right: auto;
}
.nav__mark {
  width: 32px; height: 32px;
  border-radius: 3px;
  border: 1px solid var(--line);
  object-fit: cover;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}
.nav__brand:hover .nav__mark {
  border-color: rgba(232, 162, 74, 0.5);
  box-shadow: 0 0 14px rgba(232, 162, 74, 0.18);
}
.nav__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  transition: color 260ms ease;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--amber);
  transition: width 320ms var(--ease);
}
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { padding: 10px 20px; font-size: 12px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
  padding: 0 10px;
}
.nav__toggle span {
  display: block;
  height: 1.5px;
  background: var(--bone);
  transition: transform 300ms var(--ease), opacity 200ms ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  background: rgba(5, 6, 10, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 10px 24px 26px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:hover { color: var(--amber); }
.mobile-menu__cta {
  margin-top: 18px;
  border: 1px solid var(--amber) !important;
  color: var(--amber) !important;
  text-align: center;
  border-radius: 2px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }

.hero__img {
  position: absolute;
  inset: 0;
  background: url('../assets/screenshots/gate.jpg') center 42%/cover no-repeat;
  transform: scale(1.06);
  animation: slowDrift 34s ease-in-out infinite alternate;
}

/* base layer: almost swallowed by the night */
.hero__img--dark { filter: brightness(0.58) saturate(0.8) contrast(1.06); }

/* lit layer: revealed only where the flashlight falls */
.hero__img--lit {
  filter: brightness(1.45) saturate(1.15) contrast(1.02);
  -webkit-mask-image: radial-gradient(circle 300px at var(--hx, 50%) var(--hy, 55%), #000 0%, rgba(0,0,0,0.55) 42%, transparent 70%);
  mask-image: radial-gradient(circle 300px at var(--hx, 50%) var(--hy, 55%), #000 0%, rgba(0,0,0,0.55) 42%, transparent 70%);
  opacity: 0.9;
}

@keyframes slowDrift {
  from { transform: scale(1.06) translate(0, 0); }
  to   { transform: scale(1.13) translate(-1.4%, -1%); }
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 85% at 50% 45%, transparent 20%, rgba(5, 6, 10, 0.55) 65%, var(--black) 100%),
    linear-gradient(to bottom, rgba(5, 6, 10, 0.72) 0%, rgba(5, 6, 10, 0.28) 35%, rgba(5, 6, 10, 0.85) 88%, var(--black) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
  padding-top: 56px;
  padding-bottom: 88px;  /* keeps the centred block clear of the scroll cue */
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 26px;
  animation: fadeUp 1s var(--ease) 0.2s both;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber-glow);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--amber-glow); }
  50%      { opacity: 0.45; box-shadow: 0 0 3px var(--amber-glow); }
}

.hero__title { margin: 0; line-height: 0; }

.hero__wordmark {
  /* width-driven, but never tall enough to push the CTA below the fold
     on short laptop viewports (the art is ~1.25:1) */
  width: min(clamp(200px, 27vw, 370px), 44vh);
  height: auto;
  margin-left: -1.5%;   /* optically align the glow to the text column */
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.85));
  animation: fadeUp 1.4s var(--ease) 0.3s both, flicker 11s steps(1) 4s infinite;
}
@keyframes flicker {
  0%, 96%, 100% { opacity: 1; }
  96.4%         { opacity: 0.42; }
  96.9%         { opacity: 1; }
  97.5%         { opacity: 0.6; }
  98.1%         { opacity: 1; }
}

.hero__tag {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 30ch;
  margin: clamp(16px, 2.6vh, 28px) 0 clamp(22px, 4vh, 38px);
  line-height: 1.65;
  font-weight: 300;
  animation: fadeUp 1.2s var(--ease) 0.7s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: fadeUp 1.2s var(--ease) 0.85s both;
}

.hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: clamp(24px, 4.5vh, 44px) 0 0;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  animation: fadeUp 1.2s var(--ease) 1s both;
}
.hero__meta i { width: 4px; height: 4px; background: var(--dim); border-radius: 50%; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 3;
  width: 22px;
  height: 54px;
  display: grid;
  place-items: center;
}
.hero__scroll-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--line-strong) 20%, var(--amber));
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  left: -1px; top: 0;
  width: 3px; height: 40%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber-glow);
  animation: scrollTrace 2.4s ease-in-out infinite;
}
@keyframes scrollTrace {
  0%   { transform: translateY(-110%); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(260%); opacity: 0; }
}

/* ============================================================
   SHARED TYPE
   ============================================================ */

.kicker {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 20px;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 5.2vw, 58px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 52px;
  color: var(--bone);
}
.h2 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 230, 225, 0.5);
}

.lead { font-size: 20px; color: #cdd3dc; line-height: 1.7; }

/* ============================================================
   STORY
   ============================================================ */

.section--story {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(22, 32, 46, 0.55), transparent 70%),
    var(--black);
  border-top: 1px solid var(--line);
}

.story__grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 56px;
  align-items: start;
}
.story__text p { color: var(--muted); margin: 0 0 22px; }
.story__text p:last-child { margin-bottom: 0; }
.story__text strong { color: var(--bone); font-weight: 500; }

/* found note */
.note {
  position: relative;
  background: linear-gradient(160deg, #14100b, #0d0a07);
  border: 1px solid rgba(232, 162, 74, 0.16);
  padding: 34px 30px 28px;
  transform: rotate(-1.4deg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  transition: transform 500ms var(--ease), box-shadow 500ms ease;
}
.note:hover {
  transform: rotate(-0.4deg) translateY(-4px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.75), 0 0 30px rgba(232, 162, 74, 0.08);
}
.note__pin {
  position: absolute;
  top: -7px; left: 50%;
  transform: translateX(-50%);
  width: 13px; height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d8dde4, #6d747f);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.8);
}
.note__label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0.8;
  margin: 0 0 16px;
}
.note__body {
  font-size: 18px;
  line-height: 1.8;
  color: #d6cfc2;
  margin: 0 0 18px;
  font-style: italic;
}
.note__sig {
  margin: 0;
  font-size: 13px;
  color: var(--dim);
  letter-spacing: 0.06em;
}

/* ============================================================
   FEATURES
   ============================================================ */

.section--features { background: var(--black-2); border-top: 1px solid var(--line); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--black-2);
  padding: 40px 32px 44px;
  transition: background-color 420ms ease, transform 420ms var(--ease);
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 1px;
  background: linear-gradient(to right, var(--amber), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms var(--ease);
}
.card:hover { background: #0d1119; }
.card:hover::before { transform: scaleX(1); }

.card__icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  margin-bottom: 24px;
  transition: border-color 400ms ease, background-color 400ms ease;
}
.card__icon svg { width: 23px; height: 23px; fill: var(--muted); transition: fill 400ms ease; }
.card:hover .card__icon { border-color: var(--amber); background: rgba(232, 162, 74, 0.07); }
.card:hover .card__icon svg { fill: var(--amber); }

.card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
  color: var(--bone);
}
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.75; }

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 44px 0 0;
}
.chips li {
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 17px;
  transition: color 300ms ease, border-color 300ms ease;
}
.chips li:hover { color: var(--amber); border-color: rgba(232, 162, 74, 0.35); }

/* ============================================================
   GALLERY
   ============================================================ */

.section--gallery {
  background:
    radial-gradient(ellipse 70% 50% at 80% 10%, rgba(22, 32, 46, 0.5), transparent 70%),
    var(--black);
  border-top: 1px solid var(--line);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.shot {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--black-2);
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 2px;
}
.shot--wide { grid-column: span 4; aspect-ratio: 21 / 9; }
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(0.9);
  transition: transform 900ms var(--ease), filter 600ms ease;
}
.shot:hover img { transform: scale(1.05); filter: brightness(1.05) saturate(1.05); }
.shot:hover { border-color: rgba(232, 162, 74, 0.4); }

.shot__zoom {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 18px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone);
  text-align: left;
  background: linear-gradient(to top, rgba(5, 6, 10, 0.9), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms ease, transform 400ms var(--ease);
}
.shot:hover .shot__zoom,
.shot:focus-visible .shot__zoom { opacity: 1; transform: translateY(0); }

/* ============================================================
   SPECS
   ============================================================ */

.section--specs { background: var(--black-2); border-top: 1px solid var(--line); }

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.spec {
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(22, 32, 46, 0.4), transparent 60%);
  padding: 36px 32px 30px;
  border-radius: 2px;
}
.spec--rec { border-color: rgba(232, 162, 74, 0.22); }

.spec__title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.spec--rec .spec__title { color: var(--amber); }

.spec__list { margin: 0; }
.spec__list > div {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(150, 175, 210, 0.05);
}
.spec__list > div:last-child { border-bottom: none; }
.spec__list dt {
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 3px;
}
.spec__list dd { margin: 0; font-size: 15px; color: #c3cad4; }

.warning {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 30px;
  padding: 22px 26px;
  border: 1px solid rgba(232, 162, 74, 0.18);
  background: rgba(232, 162, 74, 0.035);
  border-radius: 2px;
}
.warning svg { width: 22px; height: 22px; fill: var(--amber); flex: none; margin-top: 3px; }
.warning p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.warning strong { color: var(--bone); font-weight: 500; }

/* ============================================================
   CTA
   ============================================================ */

.cta {
  position: relative;
  padding: clamp(96px, 14vw, 170px) 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta__bg {
  position: absolute;
  inset: 0;
  background: url('../assets/screenshots/forest.jpg') center/cover no-repeat;
  filter: brightness(0.75) saturate(0.6) blur(2px);
  transform: scale(1.08);
}
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(5, 6, 10, 0.5), var(--black) 78%),
    linear-gradient(to bottom, var(--black), transparent 30%, transparent 70%, var(--black));
}
.cta__inner { position: relative; z-index: 2; }

.cta__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 66px);
  letter-spacing: 0.02em;
  margin: 0 0 20px;
  text-transform: uppercase;
  text-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
}
.cta__sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 46ch;
  margin: 0 auto 40px;
}
.cta__note {
  margin: 26px 0 0;
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--black);
  border-top: 1px solid var(--line);
  padding-top: 66px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 56px;
  flex-wrap: wrap;
  padding-bottom: 52px;
}
.footer__logo {
  width: 165px;
  height: auto;
  opacity: 0.82;
  margin-bottom: 16px;
  transition: opacity 400ms ease;
}
.footer__logo:hover { opacity: 1; }
.footer__studio { margin: 0; color: var(--dim); font-size: 14px; }
.footer__studio strong { color: var(--muted); font-weight: 500; }

.footer__cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bone);
  margin: 0 0 6px;
}
.footer__col a {
  color: var(--dim);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 260ms ease;
}
.footer__col a:hover { color: var(--amber); }

.footer__legal {
  border-top: 1px solid var(--line);
  padding: 24px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__legal p { margin: 0; font-size: 12.5px; color: #545b68; }

/* ============================================================
   LIGHTBOX
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(3, 4, 7, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  opacity: 0;
  transition: opacity 320ms ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox__figure { margin: 0; max-width: 1500px; width: 100%; }
.lightbox__figure img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9);
}
.lightbox__count {
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--dim);
}

.lightbox__nav,
.lightbox__close {
  background: rgba(22, 32, 46, 0.55);
  border: 1px solid var(--line-strong);
  color: var(--bone);
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 260ms ease, border-color 260ms ease, color 260ms ease;
  flex: none;
}
.lightbox__nav {
  width: 52px; height: 76px;
  font-size: 34px;
  line-height: 1;
}
.lightbox__close {
  position: absolute;
  top: 22px; right: 24px;
  width: 46px; height: 46px;
  font-size: 27px;
  line-height: 1;
}
.lightbox__nav:hover,
.lightbox__close:hover { background: rgba(232, 162, 74, 0.16); border-color: var(--amber); color: var(--amber); }

/* ============================================================
   SUPPORT PAGE
   ============================================================ */

/* --- donate button --- */
.btn--donate {
  background: linear-gradient(160deg, #f0a94e, #d7862c);
  color: #140f06;
  border-color: rgba(255, 214, 150, 0.5);
  font-weight: 600;
}
.btn--donate:hover {
  background: linear-gradient(160deg, #ffc072, #e59533);
  border-color: #ffd9a3;
  color: #140f06;
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.6), 0 0 26px rgba(232, 162, 74, 0.35);
}

/* --- page header --- */
.page-head {
  position: relative;
  padding: clamp(150px, 20vh, 210px) 0 clamp(70px, 9vw, 104px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-head__bg {
  position: absolute;
  inset: 0;
  background: url('../assets/screenshots/parlour.jpg') center 45%/cover no-repeat;
  filter: brightness(0.5) saturate(0.9);
  transform: scale(1.05);
}
.page-head::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 110% 90% at 30% 40%, transparent 10%, rgba(5, 6, 10, 0.62) 60%, var(--black) 100%),
    linear-gradient(to bottom, rgba(5, 6, 10, 0.82) 0%, rgba(5, 6, 10, 0.42) 40%, var(--black) 96%);
}
.page-head__inner { position: relative; z-index: 2; }

.page-head__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 5.4vw, 62px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0 0 26px;
  text-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
}
.page-head__title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 230, 225, 0.52);
}
.page-head__lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 38px;
}
.page-head__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.page-head__note {
  margin: 24px 0 0;
  font-size: 13.5px;
  color: var(--dim);
  max-width: 52ch;
}

/* --- fine print --- */
.fine-print {
  margin: 40px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--dim);
  max-width: 78ch;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
}

/* --- numbered help list --- */
.help-list {
  list-style: none;
  margin: 46px 0 0;
  padding: 0;
  counter-reset: help;
}
.help-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.help-list li:last-child { border-bottom: 1px solid var(--line); }

.help-list__num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 162, 74, 0.65);
  line-height: 1.1;
}
.help-list h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.03em;
  margin: 0 0 12px;
  color: var(--bone);
}
.help-list p { margin: 0; color: var(--muted); font-size: 15.5px; }

.link-arrow {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;
  transition: gap 300ms ease, color 260ms ease;
}
.link-arrow span { display: inline-block; transition: transform 320ms var(--ease); }
.link-arrow:hover { color: var(--amber-hot); }
.link-arrow:hover span { transform: translateX(5px); }

/* --- FAQ --- */
.faq { margin: 46px 0 0; }
.faq > div {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.faq > div:last-child { border-bottom: 1px solid var(--line); }
.faq dt {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--bone);
  margin-bottom: 12px;
}
.faq dd {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 72ch;
}

/* --- support CTA --- */
.cta--support .cta__bg {
  background-image: url('../assets/screenshots/village.jpg');
  filter: brightness(0.55) saturate(0.7) blur(2px);
}
.cta__pair {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* --- active nav item --- */
.nav__links a[aria-current="page"] { color: var(--bone); }
.nav__links a[aria-current="page"]::after { width: 100%; }
.mobile-menu a[aria-current="page"] { color: var(--amber); }

@media (max-width: 860px) {
  .help-list li { grid-template-columns: 44px 1fr; gap: 14px; }
  .help-list__num { font-size: 21px; }
  .page-head { padding-top: 130px; }
  .page-head__actions .btn { width: 100%; justify-content: center; }
  .cta__pair .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

/* Scoped to .js so a failed/blocked script leaves the page readable
   instead of invisible. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {
  .story__grid { grid-template-columns: 1fr; gap: 40px; }
  .specs { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .shot--wide { grid-column: span 2; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  body { font-size: 16px; }
  .wrap, .nav__inner, .hero__content { width: min(100% - 36px, var(--wrap)); }

  .hero__img--lit {
    -webkit-mask-image: radial-gradient(circle 340px at 50% 45%, #000 0%, rgba(0,0,0,0.5) 45%, transparent 72%);
    mask-image: radial-gradient(circle 340px at 50% 45%, #000 0%, rgba(0,0,0,0.5) 45%, transparent 72%);
    animation: slowDrift 34s ease-in-out infinite alternate, breathe 7s ease-in-out infinite;
  }
  @keyframes breathe { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }

  .hero__tag { max-width: 100%; }
  .hero__scroll { display: none; }
  .hero__content { padding-bottom: 40px; }
  .lead { font-size: 18px; }
  .note { transform: rotate(-0.8deg); }
  .footer__inner { flex-direction: column; gap: 40px; }
  .footer__cols { gap: 48px; }
  .lightbox__nav { width: 44px; height: 62px; font-size: 28px; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .shot--wide { grid-column: span 1; aspect-ratio: 16 / 9; }
  .spec__list > div { grid-template-columns: 1fr; gap: 2px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .card { padding: 32px 26px 36px; }
  .lightbox__nav { width: 38px; height: 54px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .grain { display: none; }
  .flashlight { display: none; }
  .hero__img--lit {
    -webkit-mask-image: radial-gradient(circle 420px at 50% 50%, #000 0%, transparent 72%);
    mask-image: radial-gradient(circle 420px at 50% 50%, #000 0%, transparent 72%);
  }
}
