/* Number 10 — www.number10thegame.com
   Cinematic game site: the game itself on screen, edge to edge; heavy Inter capitals for
   headlines, the game's Source Serif for its voice, JetBrains Mono for labels.
   Image sizes are explicit or aspect-ratio based, never percentages of a grid or flex item
   (Safari resolves those differently). */

@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(assets/fonts/source-serif-latin.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 200 900; font-display: swap; src: url(assets/fonts/source-serif-latin-italic.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(assets/fonts/inter-latin.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url(assets/fonts/jetbrains-mono-latin.woff2) format('woff2'); }

:root {
  --bg: #05080d;
  --bg-2: #0a1019;
  --panel: #0d1624;
  --gold: #c9a53e;
  --gold-hi: #ffe28a;
  --gold-soft: rgba(201, 165, 62, 0.28);
  --bone: #f1ead6;
  --text: #e8edf3;
  --muted: #8d99aa;
  --dim: #5b6778;
  --hair: rgba(232, 237, 243, 0.12);
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  --pad: clamp(1.25rem, 4.5vw, 5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--bg); }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; padding: 0.8rem 1rem; background: var(--gold); color: var(--bg); }
.skip:focus { left: 1rem; top: 1rem; }

.mono, .kicker, .foot-k, .fact-list dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.kicker, .eyebrow { color: var(--gold); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 3.25rem; padding: 0 1.7rem; border-radius: 2px; cursor: pointer; text-decoration: none;
  font: 700 0.82rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, #e2c35c, var(--gold)); color: #120d02; border: 1px solid #e2c35c; box-shadow: 0 10px 30px -10px rgba(201, 165, 62, 0.6); }
.btn-gold:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn-glass { background: rgba(255, 255, 255, 0.06); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-glass:hover { border-color: var(--gold-hi); color: var(--gold-hi); }
.btn-sm { min-height: 2.6rem; padding: 0 1.1rem; font-size: 0.72rem; }
.play-dot { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* ---------- header ---------- */

.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem var(--pad); padding-top: max(1.1rem, env(safe-area-inset-top));
  transition: background-color 0.4s ease, border-color 0.4s ease, padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.bar.scrolled { background: rgba(5, 8, 13, 0.86); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border-bottom-color: var(--hair); padding-top: max(0.75rem, env(safe-area-inset-top)); padding-bottom: 0.75rem; }
.bar-mark { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; font: 800 0.86rem var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--bone); }
.bar-mark img { border-radius: 6px; }
.bar-word { font: 800 0.86rem var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--bone); }
.bar-nav { display: flex; gap: clamp(1.2rem, 2.6vw, 2.6rem); margin-left: auto; }
.bar-nav a { font: 600 0.78rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(232, 237, 243, 0.78); text-decoration: none; transition: color 0.3s; }
.bar-nav a:hover { color: var(--gold-hi); }
.bar-menu { display: none; margin-left: auto; align-items: center; gap: 0.7rem; padding: 0.65rem 1rem; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 2px; background: rgba(5, 8, 13, 0.4); color: var(--text); font: 700 0.72rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.bar-menu-lines { position: relative; width: 16px; height: 8px; }
.bar-menu-lines::before, .bar-menu-lines::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.bar-menu-lines::before { top: 0; } .bar-menu-lines::after { top: 7px; }
.menu-open .bar-menu-lines::before { top: 4px; transform: rotate(45deg); }
.menu-open .bar-menu-lines::after { top: 4px; transform: rotate(-45deg); }
.mnav { position: fixed; inset: 0; z-index: 49; background: rgba(5, 8, 13, 0.97); padding: 7rem var(--pad) 2.5rem; display: flex; flex-direction: column; gap: 2rem; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0s 0.4s; }
.menu-open .mnav { opacity: 1; visibility: visible; transition: opacity 0.4s ease, visibility 0s; }
.menu-open, .menu-open body { overflow: hidden; }
.mnav ul { list-style: none; border-top: 1px solid var(--hair); }
.mnav a:not(.btn) { display: block; padding: 1.1rem 0; border-bottom: 1px solid var(--hair); font: 800 clamp(2rem, 9vw, 3rem)/1 var(--sans); letter-spacing: -0.02em; text-transform: uppercase; text-decoration: none; color: var(--bone); }
.mnav .btn { align-self: flex-start; }

/* ---------- hero ---------- */

.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; display: grid; place-items: center; isolation: isolate; }
@supports (height: 1lvh) { .hero { height: 100lvh; } }
.hero-media { position: absolute; inset: 0; z-index: -2; background: #000 url(assets/media/hero-poster.jpg) center / cover no-repeat; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.04); }
.hero-video.on { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 42% 46% at 50% 47%, rgba(5, 8, 13, 0.58), rgba(5, 8, 13, 0.22) 75%, rgba(5, 8, 13, 0.35) 100%),
    linear-gradient(to bottom, rgba(5, 8, 13, 0.7) 0%, rgba(5, 8, 13, 0) 20%, rgba(5, 8, 13, 0) 58%, rgba(5, 8, 13, 0.9) 86%, var(--bg) 100%);
}
.hero-content { display: grid; justify-items: center; text-align: center; padding: 6rem var(--pad) 9rem; }
.hero-logo img { width: min(720px, 86vw); height: auto; filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.8)); margin: -4% 0 -6%; }
.hero-line { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.8vw, 2.3rem); color: var(--gold-hi); text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8); }
.hero-sub { margin-top: 0.4rem; color: rgba(232, 237, 243, 0.85); font-size: clamp(0.95rem, 1.3vw, 1.1rem); text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-top: 2.2rem; }

.hero-foot { position: absolute; left: var(--pad); right: var(--pad); bottom: max(1.8rem, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 1.5rem 2.5rem; flex-wrap: wrap; justify-content: center; }
@supports (height: 1lvh) { .hero-foot { bottom: calc(100lvh - 100svh + 1.8rem); } }
.hero-platforms { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 2.2rem; font: 800 0.8rem var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone); }
.hero-platforms li { display: flex; align-items: baseline; gap: 0.6rem; }
.hero-platforms span { font: 500 0.66rem var(--mono); letter-spacing: 0.12em; color: var(--muted); }
.hero-date { font: 500 0.7rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); padding-left: 2.5rem; border-left: 1px solid var(--hair); }
.hero-pause { position: absolute; right: 0; bottom: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(5, 8, 13, 0.4); cursor: pointer; display: grid; place-items: center; }
.hero-pause span { width: 10px; height: 12px; border-left: 3px solid var(--text); border-right: 3px solid var(--text); }
.hero-pause[aria-pressed="true"] span { width: 0; height: 0; border-right: none; border-left: 10px solid var(--text); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }

/* ---------- statement ---------- */

.statement { padding: clamp(6rem, 16vh, 11rem) var(--pad); text-align: center; display: grid; justify-items: center; gap: 2rem; background: var(--bg); }
.statement-big { font: 900 clamp(2.6rem, 7.4vw, 7.4rem)/0.92 var(--sans); letter-spacing: -0.035em; text-transform: uppercase; color: var(--bone); max-width: 15ch; }
.statement-big em { font-style: normal; color: var(--gold); }
.statement-small { max-width: 44rem; color: var(--muted); font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.5; }

/* ---------- feature panels ---------- */

.panel { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; border-top: 1px solid var(--hair); }
.panel-media { position: absolute; inset: 0; z-index: -2; background: var(--panel); }
.panel-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.4s var(--ease); }
.panel.in .panel-media img { transform: scale(1.02); }
.panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5, 8, 13, 0.94) 0%, rgba(5, 8, 13, 0.78) 30%, rgba(5, 8, 13, 0.1) 62%, rgba(5, 8, 13, 0) 100%),
              linear-gradient(to top, rgba(5, 8, 13, 0.9), transparent 45%);
}
.panel.right::after { background: linear-gradient(270deg, rgba(5, 8, 13, 0.94) 0%, rgba(5, 8, 13, 0.78) 30%, rgba(5, 8, 13, 0.1) 62%, rgba(5, 8, 13, 0) 100%), linear-gradient(to top, rgba(5, 8, 13, 0.9), transparent 45%); }
.panel-copy { width: min(42rem, 100%); padding: 0 var(--pad) clamp(3.5rem, 10vh, 6.5rem); }
.panel.right .panel-copy { margin-left: auto; }
.panel h2 { font: 900 clamp(2.3rem, 4.6vw, 4.8rem)/0.92 var(--sans); letter-spacing: -0.035em; text-transform: uppercase; color: var(--bone); margin: 1rem 0 1.2rem; }
.panel-line { font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.4; color: rgba(232, 237, 243, 0.88); }
.panel-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.panel-facts li { font: 500 0.66rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-hi); padding: 0.5rem 0.75rem; border: 1px solid var(--gold-soft); background: rgba(5, 8, 13, 0.5); }
/* framed: the game behind, blurred and dark; the window itself sharp on the right */
.panel.framed .panel-media img { filter: blur(6px) brightness(0.55); }
.panel-card {
  position: absolute; z-index: 0; right: var(--pad); top: 50%;
  width: min(58vw, 1040px); height: auto; transform: translateY(-50%);
  border-radius: 10px; border: 1px solid var(--gold-soft);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.95);
  opacity: 0; transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.panel.framed.in .panel-card { opacity: 1; }
.panel.framed { align-items: center; }
.panel.framed .panel-copy { width: min(30rem, 34vw); padding-bottom: 0; }
.panel.epic { min-height: 100vh; align-items: center; justify-content: center; text-align: center; }
.panel.epic::after { background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(5, 8, 13, 0.55), rgba(5, 8, 13, 0.9)); }
.panel.epic .panel-copy { margin: 0 auto; padding-bottom: 0; width: min(44rem, 100%); }
.panel.epic h2 { color: var(--gold-hi); }

.panel-copy > * { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.panel-copy > :nth-child(2) { transition-delay: 0.08s; } .panel-copy > :nth-child(3) { transition-delay: 0.16s; } .panel-copy > :nth-child(4) { transition-delay: 0.24s; }
.panel.in .panel-copy > * { opacity: 1; transform: none; }
.no-js .panel-copy > * { opacity: 1; transform: none; }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- numbers ---------- */

.numbers { padding: clamp(4rem, 10vh, 7rem) var(--pad); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.numbers ul { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2rem 1rem; text-align: center; }
.numbers b { display: block; font: 900 clamp(2.4rem, 5vw, 4.6rem)/1 var(--sans); letter-spacing: -0.04em; color: var(--bone); font-variant-numeric: tabular-nums; }
.numbers span { display: block; margin-top: 0.6rem; font: 500 0.68rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }

/* ---------- media ---------- */

.media { padding: clamp(6rem, 14vh, 9rem) var(--pad); background: var(--bg-2); }
.sect-head { margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.sect-head h2, .platforms h2, .press h2 { font: 900 clamp(2.6rem, 6vw, 5.6rem)/0.92 var(--sans); letter-spacing: -0.035em; text-transform: uppercase; color: var(--bone); margin-top: 0.9rem; }
.trailer { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; background: #000; cursor: pointer; overflow: hidden; border: 1px solid var(--gold-soft); }
.trailer img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity 0.4s; opacity: 0.9; }
.trailer:hover img { transform: scale(1.03); opacity: 1; }
.trailer-play { position: absolute; left: 50%; top: 50%; width: clamp(72px, 9vw, 112px); height: clamp(72px, 9vw, 112px); transform: translate(-50%, -50%); border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(201, 165, 62, 0.5); animation: pulse 2.4s infinite; display: grid; place-items: center; transition: background-color 0.3s; }
.trailer-play span { width: 0; height: 0; border-left: 26px solid #120d02; border-top: 16px solid transparent; border-bottom: 16px solid transparent; margin-left: 6px; }
.trailer:hover .trailer-play { background: var(--gold-hi); }
@keyframes pulse { 70% { box-shadow: 0 0 0 24px rgba(201, 165, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 165, 62, 0); } }
.trailer-label { position: absolute; right: 1.4rem; bottom: 1.2rem; font: 800 0.86rem var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone); text-shadow: 0 2px 12px #000; }
.trailer-label i { font: 500 0.7rem var(--mono); font-style: normal; color: var(--gold-hi); margin-left: 0.6rem; }
.films { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(0.5rem, 1.2vw, 1rem); align-items: stretch; }
.films-side { display: flex; flex-direction: column; gap: clamp(0.5rem, 1.2vw, 1rem); height: 100%; }
.films-note { margin-top: auto; padding: 1.2rem 0 0.2rem; border-top: 1px solid var(--gold-soft); font: 400 clamp(0.95rem, 1.1vw, 1.08rem)/1.6 var(--serif); color: var(--muted); }
.trailer.teaser .trailer-play { width: clamp(56px, 6vw, 80px); height: clamp(56px, 6vw, 80px); }
.trailer.teaser .trailer-play span { border-left-width: 20px; border-top-width: 12px; border-bottom-width: 12px; margin-left: 5px; }
@media (max-width: 1180px) {
  .films { grid-template-columns: 1fr; }
  .films-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; height: auto; }
  .films-note { margin: 0; padding: 0 0 0 clamp(1rem, 2vw, 1.6rem); border-top: 0; border-left: 1px solid var(--gold-soft); }
}
.gallery { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.5rem, 1.2vw, 1rem); margin-top: clamp(0.5rem, 1.2vw, 1rem); }
.gallery button { display: block; width: 100%; border: none; padding: 0; background: #000; cursor: zoom-in; overflow: hidden; aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), opacity 0.4s; opacity: 0.85; }
.gallery button:hover img, .gallery button:focus-visible img { transform: scale(1.05); opacity: 1; }

/* ---------- platforms ---------- */

.platforms { position: relative; overflow: hidden; isolation: isolate; padding: clamp(7rem, 18vh, 11rem) var(--pad); }
.platforms-bg { position: absolute; inset: 0; z-index: -1; }
.platforms-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; opacity: 0.55; }
.platforms-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(5, 8, 13, 0.85) 40%, rgba(5, 8, 13, 0.3) 100%); }
.platforms-inner { max-width: 44rem; }
.plat-tiles { list-style: none; display: grid; gap: 0.6rem; margin: 2.4rem 0 2.2rem; }
.plat-tiles li { display: grid; grid-template-columns: 1fr auto 3.4rem; align-items: center; gap: 1rem; padding: 1.15rem 1.3rem; background: rgba(13, 22, 36, 0.72); border: 1px solid var(--hair); border-left: 3px solid var(--gold); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pt-name { font: 800 clamp(1.1rem, 1.8vw, 1.45rem) var(--sans); letter-spacing: 0.02em; text-transform: uppercase; color: var(--bone); }
.pt-sub { font: 500 0.66rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pt-when { font: 600 0.7rem var(--mono); letter-spacing: 0.14em; color: var(--gold-hi); text-align: right; }
.fine { margin-top: 1.4rem; font-size: 0.8rem; color: var(--dim); }

/* ---------- press ---------- */

.press { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); padding: clamp(5rem, 12vh, 8rem) var(--pad); border-top: 1px solid var(--hair); background: var(--bg); }
.press h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
.press-line { margin-top: 1.2rem; color: var(--muted); }
.press-line a { color: var(--gold-hi); }
.fact-list { border-top: 1px solid var(--hair); }
.fact-list div { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--hair); }
.fact-list dt { color: var(--gold); padding-top: 0.2rem; }
.fact-list dd { color: var(--text); }

/* ---------- footer ---------- */

.foot { padding: clamp(4rem, 10vh, 6rem) var(--pad) 2rem; background: #020406; border-top: 1px solid var(--hair); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem 3rem; }
.foot-logo { width: min(320px, 70vw); height: auto; margin: -2rem 0 -2.5rem -1.5rem; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 2rem 3.5rem; color: var(--muted); font-size: 0.95rem; }
.foot-k { color: var(--gold); margin-bottom: 0.5rem; }
.foot a { color: var(--text); text-decoration-color: var(--gold-soft); text-underline-offset: 3px; }
.foot a:hover { color: var(--gold-hi); }
.foot-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--hair); display: grid; gap: 0.6rem; color: var(--dim); font-size: 0.78rem; max-width: 62rem; }

/* ---------- viewers (trailer and screenshots) ---------- */

.viewer { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; border: none; padding: 0; background: rgba(2, 4, 6, 0.96); color: var(--text); }
.viewer[open] { display: grid; place-items: center; }
.viewer::backdrop { background: rgba(2, 4, 6, 0.9); }
.viewer video { width: min(92vw, calc(84vh * 16 / 9)); height: auto; aspect-ratio: 16 / 9; background: #000; }
.viewer figure { display: grid; gap: 1rem; justify-items: center; padding: 0 4rem; }
.viewer figure img { width: auto; max-width: min(92vw, 1600px); max-height: 80vh; height: auto; }
.viewer figcaption { font-family: var(--serif); font-size: 1.05rem; color: var(--muted); max-width: 60ch; text-align: center; }
.viewer-close { position: absolute; top: max(1rem, env(safe-area-inset-top)); right: 1.2rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(5, 8, 13, 0.6); color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 2; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(5, 8, 13, 0.6); color: var(--text); font-size: 1.8rem; line-height: 1; cursor: pointer; z-index: 2; }
.viewer-nav.prev { left: 1rem; } .viewer-nav.next { right: 1rem; }
.viewer-close:hover, .viewer-nav:hover { border-color: var(--gold-hi); color: var(--gold-hi); }

/* ---------- legal page (privacy) ---------- */

.legal { padding: clamp(8rem, 18vh, 11rem) var(--pad) clamp(4rem, 10vh, 6rem); max-width: 48rem; }
.legal h1 { font: 900 clamp(3rem, 8vw, 5.5rem)/0.95 var(--sans); letter-spacing: -0.035em; text-transform: uppercase; color: var(--bone); margin: 1rem 0 0.8rem; }
.legal .updated { color: var(--dim); margin-bottom: 2.5rem; }
.legal h2 { font: 800 1.4rem var(--sans); color: var(--bone); margin: 2.4rem 0 0.7rem; }
.legal p { color: var(--muted); }
.legal p + p { margin-top: 0.9rem; }
.legal a { color: var(--gold-hi); }
.legal .lede { font-family: var(--serif); font-size: 1.4rem; line-height: 1.4; color: var(--bone); }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .numbers ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .press { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .films { grid-template-columns: 1fr; }
  .films-side { grid-template-columns: 1fr; }
  .films-note { padding: 0.9rem 0 0; border-left: 0; border-top: 1px solid var(--gold-soft); }
}

@media (max-width: 760px) {
  .bar-nav, .bar-cta { display: none; }
  .bar-menu { display: inline-flex; }
  .hero-content { padding: 5rem var(--pad) 10rem; }
  /* phones: the words sit over busier map, so give them a calmer band */
  .hero-shade { background:
    linear-gradient(to bottom, rgba(5, 8, 13, 0.7) 0%, rgba(5, 8, 13, 0.2) 16%, rgba(5, 8, 13, 0.76) 36%, rgba(5, 8, 13, 0.76) 66%, rgba(5, 8, 13, 0.9) 86%, var(--bg) 100%); }
  .hero-logo img { width: 96vw; }
  .hero-ctas { flex-direction: column; align-items: stretch; width: min(100%, 22rem); }
  .hero-foot { flex-direction: column; gap: 0.8rem; }
  .hero-platforms { gap: 0.4rem 1.2rem; font-size: 0.7rem; }
  .hero-platforms span { display: none; }
  .hero-date { padding-left: 0; border-left: none; }
  .hero-pause { bottom: auto; top: -3.2rem; }

  /* panels stack: picture, then words */
  .panel { min-height: 0; display: block; }
  .panel-media { position: relative; inset: auto; aspect-ratio: 16 / 10; }
  .panel::after { inset: 0 0 auto 0; height: calc(100vw * 10 / 16); background: linear-gradient(to top, var(--bg), transparent 40%) !important; }
  .panel-copy, .panel.right .panel-copy, .panel.epic .panel-copy { width: 100%; margin: -2.5rem 0 0; padding: 0 var(--pad) 3.5rem; position: relative; }
  .panel.epic { min-height: 0; text-align: left; }
  .panel.framed .panel-media img { filter: none; }
  .panel-card { display: none; }
  .panel.framed .panel-copy { width: 100%; padding-bottom: 3.5rem; }
  .viewer figure { padding: 0 0.5rem; }
  .viewer-nav { top: auto; bottom: 1.5rem; transform: none; }
  .fact-list div { grid-template-columns: 1fr; gap: 0.2rem; }
  .plat-tiles li { grid-template-columns: 1fr 3rem; }
  .pt-sub { grid-column: 1; grid-row: 2; }
  .pt-when { grid-row: 1 / span 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .panel-media img { transform: none; }
  .panel-copy > *, [data-reveal] { opacity: 1 !important; transform: none !important; }
}
