/* Sunstruck: Horizon website. Dark, restrained, one accent (the logo's rust-amber sun). */

/* Self-hosted display face, latin subset (SIL OFL, see fonts/OFL.txt) */
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/big-shoulders-display-700.woff2") format("woff2");
}

@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/big-shoulders-display-800.woff2") format("woff2");
}

:root {
  --bg: #0b0907;
  --card: #1a1511;
  --surface: rgba(255, 236, 210, 0.035);
  --line: rgba(255, 236, 210, 0.12);
  --line-strong: rgba(255, 236, 210, 0.2);
  --text: #f3ece1;
  --text-2: #b0a698;
  --text-3: #8d8378;
  --accent: #e8913a;
  --accent-soft: rgba(232, 145, 58, 0.32);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --gutter: 24px;
  --section: clamp(80px, 9vw, 128px);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

/* Condensed industrial display face, set in caps like the logo's stencil */
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

strong {
  font-weight: 600;
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

a:focus-visible,
.steam-badge:focus-visible {
  border-radius: 10px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}

/* Soft hairline that fades out at both ends */
.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

/* Page-wide light: pre-built layers, crossfaded by opacity only */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.ambient__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}

.ambient__layer.is-active {
  opacity: 1;
}

.ambient__layer--neutral {
  background:
    radial-gradient(70% 55% at 72% -5%, rgba(255, 236, 210, 0.06), transparent 70%),
    radial-gradient(45% 40% at 0% 100%, rgba(255, 236, 210, 0.025), transparent 70%);
}

.ambient__layer--warm {
  background:
    radial-gradient(65% 55% at 85% 5%, rgba(232, 145, 58, 0.12), transparent 70%),
    radial-gradient(50% 45% at 5% 95%, rgba(200, 90, 30, 0.06), transparent 70%);
}

.ambient__layer--dusk {
  background:
    radial-gradient(60% 55% at 15% 10%, rgba(110, 100, 200, 0.12), transparent 70%),
    radial-gradient(45% 40% at 95% 95%, rgba(232, 145, 58, 0.05), transparent 70%);
}

.ambient__layer--dust {
  background:
    radial-gradient(70% 55% at 80% 20%, rgba(200, 150, 90, 0.11), transparent 70%),
    radial-gradient(45% 40% at 0% 90%, rgba(200, 150, 90, 0.05), transparent 70%);
}

/* Film grain over everything: one static noise tile, no animation cost */
.grain {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: overlay;
}

/* Header: fixed, transparent over the hero, solid once the page scrolls */
.header-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 80px;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(11, 9, 7, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand__logo {
  width: auto;
  height: 30px;
}

.site-nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sound: off on load, the button only ever starts music on a click */
.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.sound-toggle:hover {
  color: var(--text);
}

.sound-toggle svg {
  width: 20px;
  height: 20px;
}

.sound-toggle__waves {
  display: none;
}

.sound-toggle[aria-pressed="true"] {
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-soft);
}

.sound-toggle[aria-pressed="true"] .sound-toggle__waves {
  display: inline;
}

.sound-toggle[aria-pressed="true"] .sound-toggle__off {
  display: none;
}

/* Store button, the header's one solid pill (the "Download" of the sibling sites) */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s var(--ease);
}

.header-cta:hover {
  opacity: 0.85;
}

.header-cta svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* No store page yet: still shown, but quieter and not clickable-looking */
.header-cta[aria-disabled="true"] {
  background: transparent;
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: default;
}

.header-cta[aria-disabled="true"]:hover {
  opacity: 1;
}

.sound-toggle:focus-visible,
.header-cta:focus-visible,
.menu-toggle:focus-visible {
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
}

.menu-toggle__bar {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}

.menu-toggle__bar:first-child {
  top: 15px;
}

.menu-toggle__bar:last-child {
  top: 23px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.site-nav a {
  color: var(--text-2);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-nav a:hover {
  color: var(--text);
}

/* Shared type */
.eyebrow {
  margin-bottom: 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.eyebrow--accent {
  color: var(--accent);
}

.lede {
  max-width: 36rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-2);
}

.lede--small {
  margin-top: 20px;
  font-size: 1.125rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(48px, 7vw, 88px);
}

.section-head h2,
.world h2 {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
}

/* Steam badge: same footprint as the App Store badge on the other product sites */
.steam-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 18px 0 12px;
  border-radius: 10px;
  background: #000;
  box-shadow: inset 0 0 0 1px #a6a6a6;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}

.steam-badge:hover {
  opacity: 0.85;
}

.steam-badge__icon {
  width: 28px;
  height: 28px;
  flex: none;
}

.steam-badge__text {
  display: grid;
  line-height: 1.05;
}

.steam-badge__small {
  font-size: 0.6875rem;
  letter-spacing: 0.01em;
}

.steam-badge__big {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Game screenshot frame */
.shot {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: var(--card);
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 210, 0.1),
    0 50px 100px -30px rgba(0, 0, 0, 0.9);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Shots that open in the lightbox */
[data-lightbox],
[data-lightbox-stage] {
  cursor: zoom-in;
}

[data-lightbox-stage]:focus-visible,
img[data-lightbox]:focus-visible {
  outline-offset: 4px;
  border-radius: 16px;
}

.shot__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(11, 9, 7, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3ece1' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M9 4H4v5M15 4h5v5M9 20H4v-5M15 20h5v-5'/%3E%3C/svg%3E") center / 18px no-repeat;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.shot:hover .shot__zoom,
.shot:focus-visible .shot__zoom {
  opacity: 1;
}

/* Hero: same two-column rhythm as the sibling product sites. Copy is vertically centred in the
   left column; the shot fills the right side, anchored to the content grid, not the viewport. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(100svh, 900px);
  padding: 104px 0 72px;
}

/* Starts 30% into the content column, so the Rig sits where the phones sit on the other sites */
.hero__backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: max(0px, calc(50% - var(--wrap) / 2 + var(--wrap) * 0.3));
  z-index: -1;
  overflow: hidden;
  /* Fade to transparent, not to a flat colour, so the ambient light behind shows no seam */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%), linear-gradient(0deg, transparent 0%, #000 30%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 32%), linear-gradient(0deg, transparent 0%, #000 30%);
  mask-composite: intersect;
}

.hero__backdrop img,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

/* The loop fades in over the still only once it is actually playing */
.hero__video {
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.hero__video.is-playing {
  opacity: 1;
}

.hero__dust {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 9, 7, 0.55) 0%, rgba(11, 9, 7, 0) 60%),
    linear-gradient(180deg, rgba(11, 9, 7, 0.6) 0%, rgba(11, 9, 7, 0) 22%);
}

.hero__logo {
  width: min(500px, 100%);
  margin: 4px 0 26px -5px;
}

.hero__logo img {
  width: 100%;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
}

.hero__tagline {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* Copy stays in the left column, about the width the other sites give theirs */
.hero__tagline {
  max-width: 540px;
}

.hero .lede {
  max-width: 32rem;
  color: #cfc5b7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 36px;
}

.cta-note {
  font-size: 0.9375rem;
  color: var(--text-2);
}

/* Facts strip */
.facts__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 32px 0;
}

.fact dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.fact dd {
  margin-top: 4px;
  font-size: 0.9375rem;
  color: var(--text-2);
}

/* Tour */
.tour {
  padding: var(--section) 0 calc(var(--section) * 0.6);
}

.tour__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
}

.tour__step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  max-width: 26rem;
}

.tour__step h3,
.tour__step p {
  opacity: 0.6;
  transition: opacity 0.5s var(--ease);
}

.tour__step.is-active h3,
.tour__step.is-active p {
  opacity: 1;
}

.tour__num {
  margin-bottom: 18px;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
  transition: color 0.5s var(--ease);
}

.tour__step.is-active .tour__num {
  color: var(--accent);
}

.tour__step h3 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  margin-bottom: 16px;
}

.tour__step p:not(.tour__num) {
  color: var(--text-2);
  font-size: 1.125rem;
}

.shot--step {
  display: none;
}

.tour__sticky {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  height: 100vh;
}

.shot--stage {
  width: 100%;
}

.tour__shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.tour__shot.is-active {
  opacity: 1;
}

.tour__dots {
  display: flex;
  gap: 8px;
}

.tour__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background-color 0.4s var(--ease);
}

.tour__dots span.is-active {
  background: var(--accent);
}

/* A day in town: one camera, six skies. Buttons sit beside the shot so both fit one screen. */
.day {
  padding: var(--section) 0;
}

.day__viewer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  grid-template-areas:
    "stage controls"
    "caption controls";
  gap: 18px 20px;
  align-items: start;
}

.shot--day {
  grid-area: stage;
}

.day__img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}

.day__img.is-active {
  opacity: 1;
}

.day__controls {
  grid-area: controls;
  display: grid;
  gap: 10px;
}

.day__btn {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.day__btn:hover {
  background: rgba(255, 236, 210, 0.07);
}

.day__btn:focus-visible {
  border-radius: 14px;
}

.day__btn[aria-pressed="true"] {
  background: rgba(232, 145, 58, 0.1);
  box-shadow: inset 0 0 0 1px var(--accent-soft);
}

.day__time {
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.day__btn[aria-pressed="true"] .day__time {
  color: var(--accent);
}

.day__caption {
  grid-area: caption;
  font-size: 1rem;
  color: var(--text-2);
}

/* World: full-bleed desert behind the copy, darkened from the edges for legibility */
.world {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--section) * 1.5) 0;
}

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

.world__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}

.world__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(11, 9, 7, 0.35) 22%, rgba(11, 9, 7, 0.35) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11, 9, 7, 0.88) 0%, rgba(11, 9, 7, 0.55) 55%, rgba(11, 9, 7, 0.78) 100%);
}

.world__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px 80px;
  align-items: center;
}

.world h2 {
  margin-bottom: 24px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.world__intro p:not(.eyebrow) {
  color: #d3c9bb;
  font-size: 1.125rem;
  max-width: 32rem;
}

.world__intro p + p {
  margin-top: 14px;
}

.world__points {
  display: grid;
  gap: 32px;
  align-content: center;
}

.world__points h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.world__points li {
  padding-left: 20px;
  border-left: 2px solid var(--accent-soft);
}

.world__points p {
  color: #c9bfb1;
  font-size: 1rem;
}

/* FAQ */
.faq {
  padding: var(--section) 0 calc(var(--section) * 0.7);
}

.faq__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 72px;
}

.faq__item dt {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 10px;
}

.faq__item dd {
  color: var(--text-2);
  font-size: 1rem;
}

.faq__item a {
  color: var(--text);
  text-underline-offset: 4px;
  text-decoration-color: var(--line-strong);
}

/* Closing CTA */
.closing {
  padding: calc(var(--section) * 0.7) 0 var(--section);
}

.closing__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.closing__mark {
  width: 260px;
  margin-bottom: 40px;
}

.closing h2 {
  font-size: clamp(3.25rem, 9vw, 7rem);
  line-height: 0.95;
}

.closing p {
  margin: 20px 0 36px;
  max-width: 28rem;
  font-size: 1.1875rem;
  color: var(--text-2);
}

/* Follow links: rendered from main.js LINKS, hidden while every URL is empty */
.follow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
}

.follow[hidden] {
  display: none;
}

.closing .follow__label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.follow__list {
  display: flex;
  gap: 10px;
}

.follow__link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text-2);
  transition: color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.follow__link:hover {
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-soft);
}

.follow__link svg {
  width: 18px;
  height: 18px;
}

.follow--footer {
  margin-top: 0;
}

.follow--footer .follow__link {
  width: 36px;
  height: 36px;
}

/* Lightbox */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: clamp(16px, 4vw, 56px);
  border: 0;
  background: transparent;
  color: var(--text);
}

.lightbox[open] {
  display: grid;
  place-items: center;
  animation: fade-in 0.3s var(--ease);
}

.lightbox::backdrop {
  background: rgba(6, 5, 4, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lightbox__figure {
  display: grid;
  gap: 14px;
  max-width: min(1600px, 100%);
  max-height: 100%;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: auto;
  border-radius: 12px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
}

.lightbox__caption {
  color: var(--text-2);
  font-size: 0.9375rem;
  text-align: center;
}

.lightbox__close {
  position: fixed;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 236, 210, 0.08);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.lightbox__close:hover {
  background: rgba(255, 236, 210, 0.14);
}

.lightbox__close:focus-visible {
  border-radius: 50%;
}

.lightbox__close svg {
  width: 20px;
  height: 20px;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Footer */
.site-footer {
  padding-bottom: 40px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  font-size: 0.9375rem;
  color: var(--text-3);
}

.site-footer nav {
  display: flex;
  gap: 24px;
}

.site-footer a {
  color: var(--text-2);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

/* Reveal on scroll: CSS scroll-driven where supported, JS fallback adds .is-in */
@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 180px;
    }
  }

  .reveal-js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }

  .reveal-js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .world__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .day__viewer {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "stage"
      "controls"
      "caption";
  }

  .day__controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tour__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tour__stage {
    display: none;
  }

  .tour__steps {
    display: grid;
    gap: 96px;
  }

  .tour__step {
    min-height: 0;
    max-width: none;
  }

  .tour__step h3,
  .tour__step p {
    opacity: 1;
  }

  .tour__step .tour__num {
    color: var(--accent);
  }

  .tour__step p:not(.tour__num) {
    max-width: 36rem;
  }

  .shot--step {
    display: block;
    margin-top: 32px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }

  :root {
    --header-h: 64px;
  }

  .brand__logo {
    height: 26px;
  }

  .sound-toggle {
    padding: 0 10px;
  }

  .sound-toggle__label {
    display: none;
  }

  .site-header__inner {
    gap: 12px;
  }

  .header-cta {
    padding: 0 12px 0 10px;
  }

  /* No room for a dead "Coming soon" pill on a phone; the hero badge says it */
  .header-cta[aria-disabled="true"] {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  /* Phone menu: the same nav, dropped down as a panel under the header */
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: rgba(11, 9, 7, 0.96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 var(--line), 0 30px 60px rgba(0, 0, 0, 0.6);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }

  .site-header.is-menu-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  .site-header.is-menu-open {
    background: rgba(11, 9, 7, 0.96);
  }

  .site-nav a {
    padding: 14px 0;
    font-size: 1.125rem;
    color: var(--text);
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 0;
    padding-top: 96px;
  }

  /* Phone: image sits on top, copy below it on solid ground */
  .hero__backdrop {
    left: 0;
    bottom: auto;
    height: 62vw;
    min-height: 260px;
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 55%);
    mask-image: linear-gradient(0deg, transparent 0%, #000 55%);
  }

  .hero__backdrop::after {
    background: linear-gradient(180deg, rgba(11, 9, 7, 0.6) 0%, rgba(11, 9, 7, 0) 30%);
  }

  .hero__inner {
    padding-top: calc(max(62vw, 260px) - 170px);
  }

  .facts__list {
    padding: 28px 0;
  }

  .shot {
    border-radius: 12px;
  }

  .day__controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .world {
    padding: var(--section) 0;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* 404 page */
.not-found {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 48px 0;
}

.not-found__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.not-found__logo {
  width: 240px;
  margin-bottom: 48px;
}

.not-found h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.not-found p:not(.eyebrow) {
  margin: 20px 0 32px;
  max-width: 26rem;
  font-size: 1.125rem;
  color: var(--text-2);
}

.not-found__home {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s var(--ease);
}

.not-found__home:hover {
  background: rgba(232, 145, 58, 0.1);
}
