:root {
  color-scheme: dark;
  --bg: #06090d;
  --panel: #0a0f15;
  --fg: #edf2f6;
  --muted: #9fb0bd;
  --accent: #bddce9;
  --line: rgba(255, 255, 255, .15);
  --paper: #eef2f5;
  --ink: #0a0e13;
  --gutter: clamp(20px, 4vw, 64px);
  --display: "Space Grotesk", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --steel: linear-gradient(180deg, #f4f8fb 8%, #aebfcc 55%, #56687a 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.mono {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow { color: var(--accent); }
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--fg); color: var(--ink); border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--gutter);
  mix-blend-mode: difference;
  font-size: .8rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
}
.nav a, .nav button { color: #fff; opacity: .92; transition: opacity .2s; }
.nav a:hover, .nav button:hover { opacity: .55; }
.nav button { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.nav-music[aria-pressed="true"] { opacity: 1; text-shadow: 0 0 14px #fff; }

/* ---------- hero ---------- */
.hero { position: relative; height: 170vh; }
.hero-pin {
  --p: 0;
  --hero-img: url(/assets/optimized/exterior-1920.webp);   /* replaced on load by a background set in the studio panel */
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.hero-title {
  position: absolute; z-index: 3;
  /* the logo file has empty space above the lettering, so the image starts above the nav */
  top: calc(clamp(52px, 9vh, 96px) - 8vw); left: var(--gutter); right: var(--gutter);
  opacity: calc(1 - var(--p) * 1.5);
  transform: translateY(calc(var(--p) * -70px));
}
.hero-title img { width: 100%; filter: drop-shadow(0 10px 34px rgba(0, 0, 0, .7)); }

.hero-art {
  position: absolute; inset: 0; z-index: 2;
  opacity: calc(1 - var(--p) * var(--p));
  transform: scale(calc(1 + var(--p) * .14));
}
.hero-dots, .hero-lens {
  position: absolute; inset: 0;
  background-position: center 62%;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-dots {
  --r: calc(2.55px * (1 - var(--p)));
  background-image: var(--hero-img);
  filter: brightness(1.3) contrast(1.12) sepia(.5) hue-rotate(165deg) saturate(1.5);
  -webkit-mask-image: radial-gradient(circle, #000 var(--r), transparent calc(var(--r) + .75px));
  mask-image: radial-gradient(circle, #000 var(--r), transparent calc(var(--r) + .75px));
  -webkit-mask-size: 7px 7px; mask-size: 7px 7px;
}
.hero-lens {
  background-image: var(--hero-img);
  filter: brightness(1.15);
  -webkit-mask-image: radial-gradient(circle 240px at var(--mx, -999px) var(--my, -999px), #000 22%, transparent 100%);
  mask-image: radial-gradient(circle 240px at var(--mx, -999px) var(--my, -999px), #000 22%, transparent 100%);
  opacity: var(--lens, 0);
  transition: opacity .45s;
}
.hero-pin::after {
  content: ""; position: absolute; inset: auto 0 0 0; z-index: 3; height: 38%;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.hero-copy, .hero-scroll, .hero-cta {
  position: absolute; z-index: 4;
  opacity: calc(1 - var(--p) * 2.2);
}
.hero-copy { left: var(--gutter); bottom: clamp(26px, 6vh, 56px); max-width: min(30em, 44vw); }
.hero-kicker { color: var(--accent); }
.hero-lead {
  margin-top: 12px;
  font-size: clamp(1.05rem, 1.7vw, 1.5rem); font-weight: 600; line-height: 1.2; letter-spacing: -.01em;
}
.hero-sub {
  margin-top: 10px; color: var(--muted);
  font-size: .8rem; font-weight: 500; line-height: 1.55; letter-spacing: .06em; text-transform: uppercase;
}
.hero-scroll {
  left: 50%; bottom: clamp(26px, 6vh, 56px); transform: translateX(-50%);
  color: var(--muted); padding-bottom: 34px;
}
.hero-scroll::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 26px;
  background: linear-gradient(var(--accent), transparent);
  animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip { 0%, 100% { transform: scaleY(.35); transform-origin: top; opacity: .5; } 50% { transform: scaleY(1); transform-origin: top; opacity: 1; } }
.hero-cta {
  right: var(--gutter); bottom: clamp(22px, 5.4vh, 50px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
  color: var(--muted);
}

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.05em 2em; border-radius: 999px; border: 2px solid transparent;
  background: linear-gradient(#0a1018, #0a1018) padding-box,
              linear-gradient(100deg, #e6f5ff, #6fb2ff 45%, #9d8cff) border-box;
  color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(111, 178, 255, .35), inset 0 0 18px rgba(111, 178, 255, .18);
  transition: transform .25s, box-shadow .25s;
}
.pill:hover { transform: translateY(-2px); box-shadow: 0 0 46px rgba(111, 178, 255, .6), inset 0 0 24px rgba(111, 178, 255, .32); }

/* ---------- particle story ---------- */
.story { position: relative; height: 560vh; }
.story-pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.story-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.story-lines {
  position: absolute; left: 0; right: 0; bottom: clamp(84px, 15vh, 150px);
  display: grid; justify-items: center; align-items: end;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.line {
  --o: 0;
  grid-area: 1 / 1;
  max-width: 17em;
  text-align: center; text-wrap: balance;
  font-size: clamp(1.7rem, 4.1vw, 3.7rem); font-weight: 600; line-height: 1.1; letter-spacing: -.02em;
  opacity: var(--o);
  transform: translateY(calc((1 - var(--o)) * 26px));
  filter: drop-shadow(0 0 14px rgba(189, 220, 233, .5));
}
.line span, .line em {
  font-style: normal;
  color: transparent;
  -webkit-background-clip: text; background-clip: text;
  background-size: 3.2px 3.2px, auto;
}
.line span {
  background-image: radial-gradient(circle, #f6fafc 1.15px, transparent 1.5px),
                    linear-gradient(rgba(237, 242, 246, .34), rgba(237, 242, 246, .34));
}
.line em {
  background-image: radial-gradient(circle, var(--hl) 1.2px, transparent 1.55px),
                    linear-gradient(color-mix(in srgb, var(--hl) 55%, transparent), color-mix(in srgb, var(--hl) 55%, transparent));
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--hl) 70%, transparent));
}
.story-hud {
  position: absolute; left: var(--gutter); bottom: clamp(26px, 5vh, 46px);
  display: flex; align-items: center; gap: 12px;
  color: var(--muted);
  opacity: var(--hud, 0);
  transition: opacity .4s;
}
.hud-index { color: var(--fg); }
.hud-label { color: var(--accent); min-width: 9em; }
.hud-bar { display: block; width: clamp(80px, 14vw, 200px); height: 1px; background: var(--line); }
.hud-bar b { display: block; height: 100%; width: calc(var(--bar, 0) * 100%); background: var(--accent); }

/* ---------- about ---------- */
.about { padding: clamp(96px, 17vh, 210px) var(--gutter) clamp(80px, 13vh, 160px); }
.about-text {
  margin-top: 28px; max-width: 24em;
  font-size: clamp(1.45rem, 3.2vw, 3rem); font-weight: 500; line-height: 1.2; letter-spacing: -.02em;
}
.about-text .w { opacity: .16; transition: opacity .3s; }
.about-text .w.on { opacity: 1; }

/* ---------- shared display title ---------- */
.section-title {
  margin-top: 18px;
  font-size: clamp(2.9rem, 10.2vw, 10rem); font-weight: 700; line-height: .9; letter-spacing: -.045em;
  text-transform: uppercase;
}
.section-title.steel { background: var(--steel); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- systems ---------- */
.systems {
  background: var(--paper); color: var(--ink);
  border-radius: 40px 40px 0 0;
  padding: clamp(72px, 12vh, 140px) var(--gutter) clamp(120px, 18vh, 200px);
}
.systems .eyebrow { color: #4d6272; }
.systems .section-title { font-size: clamp(2.4rem, 7.6vw, 7.6rem); }
.systems-mode {
  display: inline-block; margin-top: 26px; padding: .7em 1.2em;
  border: 1px solid rgba(10, 14, 19, .35); border-radius: 999px;
}
.sys-list { margin-top: clamp(36px, 6vh, 72px); }
.sys-row {
  display: grid; grid-template-columns: minmax(56px, .5fr) 2.2fr 3fr; gap: 12px clamp(16px, 3vw, 48px);
  align-items: baseline;
  padding: clamp(20px, 3.2vh, 34px) clamp(0px, 1vw, 16px);
  border-top: 1px solid rgba(10, 14, 19, .18);
  transition: background .3s, color .3s, padding .3s;
}
.sys-row:last-child { border-bottom: 1px solid rgba(10, 14, 19, .18); }
.sys-row:hover { background: var(--ink); color: var(--paper); padding-left: clamp(12px, 2.2vw, 36px); }
.sys-num { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; opacity: .6; }
.sys-row h3 {
  font-size: clamp(1.35rem, 2.9vw, 2.5rem); font-weight: 700; line-height: 1.02; letter-spacing: -.02em;
  text-transform: uppercase;
}
.sys-row p { max-width: 34em; font-size: 1rem; line-height: 1.55; opacity: .8; }

/* ---------- places ---------- */
.places {
  position: relative; z-index: 2;
  margin-top: -40px;
  background: var(--bg);
  border-radius: 40px 40px 0 0;
  padding: clamp(72px, 12vh, 140px) var(--gutter) clamp(40px, 8vh, 96px);
}
.places-stack { margin-top: clamp(44px, 8vh, 96px); }
.card {
  position: sticky; top: calc(70px + var(--i) * 26px);
  margin-bottom: 36px;
  border: 1px solid var(--line); border-radius: 28px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 -18px 50px rgba(0, 0, 0, .55);
}
.card-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(16px, 2.6vw, 36px); align-items: center;
  padding: clamp(16px, 2.4vh, 24px) clamp(18px, 2.6vw, 34px);
}
.card-desc { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.card-num {
  font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 700; line-height: 1; letter-spacing: -.04em;
  background: var(--steel); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card-head .mono { color: var(--accent); }
.card-head h3 {
  margin-top: 6px;
  font-size: clamp(1.1rem, 2.2vw, 1.9rem); font-weight: 600; line-height: 1.12; letter-spacing: -.015em;
  text-transform: uppercase;
}
.card img { width: 100%; aspect-ratio: 16 / 7.4; object-fit: cover; }

/* ---------- transmission ---------- */
.transmission { padding: clamp(72px, 13vh, 160px) var(--gutter) clamp(72px, 12vh, 140px); text-align: center; }
.tx-sub { margin-top: 18px; color: var(--muted); font-size: 1.05rem; }
/* The card's markup is written by the studio panel (play button or "coming soon"); the page only styles it. */
.transmission .teaser-card {
  position: relative; display: block;
  width: min(100%, 1180px); margin: clamp(32px, 6vh, 64px) auto 0; padding: 0;
  border: 1px solid var(--line); border-radius: 28px; overflow: hidden;
  background: #000; color: #fff; font: inherit; cursor: pointer;
}
.transmission .teaser-soon { cursor: default; }
.transmission .teaser-card img { width: 100%; height: auto; aspect-ratio: 1232 / 706; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter .5s; }
.transmission .teaser-play:hover img { transform: scale(1.04); filter: brightness(1.2); }
/* the poster carries the logo in its centre, so the play button sits below it */
.transmission .play-symbol, .transmission .soon-badge {
  position: absolute; left: 50%; bottom: clamp(52px, 13%, 120px); transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(6, 9, 13, .4);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 0 44px rgba(111, 178, 255, .35);
}
.transmission .play-symbol {
  display: grid; place-items: center;
  width: clamp(60px, 7vw, 92px); aspect-ratio: 1; border-radius: 50%; padding-left: .12em;
  font-size: clamp(1.2rem, 2vw, 1.8rem); line-height: 1;
  transition: transform .35s, box-shadow .35s;
}
.transmission .teaser-play:hover .play-symbol { transform: translateX(-50%) scale(1.08); box-shadow: 0 0 70px rgba(111, 178, 255, .6); }
.transmission .teaser-label, .transmission .soon-badge {
  font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
}
.transmission .teaser-label { position: absolute; left: 0; right: 0; bottom: clamp(16px, 3vh, 30px); }
.transmission .soon-badge { padding: .8em 1.5em; border-radius: 999px; }
.transmission .teaser-soon .teaser-label { display: none; }
.tx-note { margin-top: 26px; color: var(--muted); }

/* ---------- footer ---------- */
.footer { padding: 0 var(--gutter) 40px; }
.studio {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(20px, 4vw, 64px); align-items: center;
  padding-top: clamp(20px, 4vh, 44px); border-top: 1px solid var(--line);
  background: radial-gradient(60% 80% at 32% 50%, rgba(120, 34, 10, .2), transparent 70%);
}
.studio-logo {
  width: 100%;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 74% 80% at center, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 74% 80% at center, #000 55%, transparent 100%);
}
.studio-story .mono { color: var(--accent); margin-bottom: 12px; }
.studio-story p + p { margin-top: 8px; }
.footer-name { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.footer-muted { color: var(--muted); }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1.4fr 1fr; gap: 16px clamp(20px, 4vw, 64px); align-items: center;
  margin-top: clamp(20px, 4vh, 44px); padding-top: 26px; border-top: 1px solid var(--line);
  font-size: .95rem;
}
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.footer-links .mono { color: var(--accent); }
.footer-grid a, .footer-links button { border-bottom: 1px solid transparent; transition: border-color .2s; }
.footer-links button { background: none; border-width: 0 0 1px; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.footer-grid a:hover, .footer-links button:hover { border-color: currentColor; }
.footer-end { justify-content: flex-end; }
/* the site's layout follows another designer's work; he is named here at his request */
.footer-credit { margin-top: 22px; color: var(--muted); font-size: .9rem; }
.footer-credit a { color: var(--fg); border-bottom: 1px solid var(--line); transition: border-color .2s; }
.footer-credit a:hover { border-color: currentColor; }

.sf-dialog {
  width: min(92vw, 560px); padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line); border-radius: 24px;
  background: var(--panel); color: var(--fg);
}
.sf-dialog::backdrop { background: rgba(3, 5, 8, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sf-dialog h2 { font-size: 1.4rem; font-weight: 600; letter-spacing: -.01em; }
.sf-dialog p { margin-top: 14px; color: var(--muted); line-height: 1.6; }
.sf-dialog form { margin-top: 22px; text-align: right; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; gap: 6px 10px; font-size: .6rem; letter-spacing: .03em; padding-top: 16px; white-space: nowrap; }
  .nav-music-label { display: none; }
  .hero-pin::after { height: 58%; background: linear-gradient(transparent, rgba(6, 9, 13, .82) 42%, var(--bg)); }
  .hero-title { top: calc(64px - 8vw); }
  .hero-dots, .hero-lens { background-position: 30% 60%; }
  .hero-dots { -webkit-mask-size: 6px 6px; mask-size: 6px 6px; --r: calc(2.15px * (1 - var(--p))); }
  .hero-copy { bottom: 150px; right: var(--gutter); max-width: none; }
  .hero-sub { font-size: .72rem; }
  .hero-scroll { display: none; }
  .hero-cta { left: var(--gutter); align-items: stretch; text-align: center; }
  .story-lines { bottom: 110px; }
  .hud-label { min-width: 0; }
  .systems, .places { border-radius: 28px 28px 0 0; }
  .sys-row { grid-template-columns: 1fr; }
  .card { border-radius: 20px; top: calc(60px + var(--i) * 16px); }
  .card-head { grid-template-columns: auto minmax(0, 1fr); }
  .card-desc { grid-column: 1 / -1; }
  .card img { aspect-ratio: 4 / 3; }
  .transmission .teaser-card { border-radius: 20px; }
  .transmission .teaser-card img { aspect-ratio: 4 / 3; }
  .studio, .footer-grid { grid-template-columns: 1fr; }
  .footer-end { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll::after { animation: none; }
  .line { transform: none; }
}

/* a location card without a picture (text only) */
.card-text .card-head { padding-block: clamp(30px, 6vh, 64px); }

/* ---------- how it plays: big frames from the game, one step of the day each ---------- */
.play { padding: clamp(40px, 8vh, 96px) var(--gutter) clamp(110px, 18vh, 200px); }
.play-intro { margin-top: 26px; max-width: 30em; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.25rem); }
.play-list { display: grid; gap: clamp(56px, 11vh, 140px); margin-top: clamp(48px, 9vh, 110px); }
.play-item {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(22px, 4vw, 72px); align-items: center;
  opacity: var(--in, 1); transform: translateY(calc((1 - var(--in, 1)) * 60px));
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
}
.play-item:nth-child(even) .play-media { order: 2; }
.play-media {
  margin: 0; position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 28px; background: var(--panel);
}
.play-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transform: scale(calc(1.08 - var(--in, 1) * .08)); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.play-num {
  display: block;
  font-size: clamp(3rem, 7vw, 6.2rem); font-weight: 700; line-height: .9; letter-spacing: -.05em;
  background: var(--steel); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.play-copy .mono { margin-top: 18px; color: var(--accent); }
.play-copy h3 {
  margin-top: 10px;
  font-size: clamp(1.6rem, 3.4vw, 3.1rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; text-transform: uppercase;
  text-wrap: balance;
}
.play-text { margin-top: 18px; max-width: 30em; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
/* the last step fills the width, its words over the picture */
.play-wide { grid-template-columns: 1fr; }
.play-wide .play-media { grid-area: 1 / 1; border-radius: 32px; }
.play-wide .play-media img { aspect-ratio: 21 / 9; }
.play-wide .play-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 9, 13, .86), rgba(6, 9, 13, .2) 62%, transparent); }
.play-wide .play-copy { grid-area: 1 / 1; z-index: 1; align-self: end; padding: clamp(24px, 5vw, 72px); max-width: 40em; }
.play-wide .play-text { color: #c9d6e0; }
/* Thor fired in the browser over the Defence picture */
.thor-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 26px; }
.play-wide .play-copy > :not(.thor-controls), .play-wide .play-media::after { transition: opacity 1.2s ease .3s; }
.play-wide:has(.thor-live) .play-copy > :not(.thor-controls) { opacity: 0; transition-delay: 0s; transition-duration: .6s; }
.play-wide:has(.thor-live) .play-media::after { opacity: .35; transition-delay: 0s; }
/* the big red button sits where the strike will land; pressed, it sinks and gives way to the shot */
.thor-red {
  position: absolute; z-index: 2; left: 68%; top: 50%; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: clamp(18px, 2.2vw, 28px);
  padding: 0; border: 0; background: none; color: var(--fg); cursor: pointer;
  transition: opacity .45s ease, transform .5s cubic-bezier(.3, .7, .2, 1);
  -webkit-tap-highlight-color: transparent;
}
.thor-red[hidden] { display: none; }
.thor-red:focus-visible { outline: none; }
/* brushed-steel housing with a dark well */
.thor-red-base {
  position: relative; display: grid; place-items: center; width: clamp(118px, 12.5vw, 176px); aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 210deg, #2b3037, #8f9aa6, #3a4049, #d3dbe3, #444b55, #7e8994, #262a30, #a9b3bd, #2b3037);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .65), 0 0 0 2px #0a0c0f, inset 0 2px 3px rgba(255, 255, 255, .45), inset 0 -4px 8px rgba(0, 0, 0, .6);
}
.thor-red-base::before {
  content: ""; position: absolute; inset: 9%; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #250807, #070303 72%);
  box-shadow: inset 0 6px 12px rgba(0, 0, 0, .95), 0 1px 0 rgba(255, 255, 255, .25);
}
.thor-red-base::after {
  content: ""; position: absolute; inset: -16px; border-radius: 50%;
  border: 2px solid rgba(255, 70, 50, .5); animation: thor-ring 2.6s ease-out infinite;
}
@keyframes thor-ring { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
/* the glossy red dome: a side that shows its height, a soft highlight on top and a glint that sweeps across now and then */
.thor-red-cap {
  --depth: 10px;
  position: relative; z-index: 1; width: 72%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 28%, #ff7b66 0%, #f3291c 32%, #c20f07 66%, #720503 100%);
  box-shadow: 0 var(--depth) 0 #7c0804, 0 calc(var(--depth) + 2px) 0 #3d0201, 0 calc(var(--depth) + 6px) 14px rgba(0, 0, 0, .75),
              inset 0 -10px 16px rgba(60, 0, 0, .6), inset 0 3px 5px rgba(255, 210, 200, .45), 0 0 46px 6px rgba(255, 40, 20, .38);
  transform: translateY(calc(-1 * var(--depth)));
  transition: transform .12s ease, box-shadow .12s ease, filter .25s ease;
}
.thor-red-cap::before {
  content: ""; position: absolute; left: 17%; top: 6%; width: 66%; height: 40%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 25%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .2) 55%, transparent 72%);
}
.thor-red-cap::after {
  content: ""; position: absolute; inset: -40%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .6) 50%, transparent 58%);
  transform: translateX(-110%); animation: thor-glint 5s ease-in-out infinite 1s;
}
@keyframes thor-glint { 0%, 70% { transform: translateX(-110%); } 88%, 100% { transform: translateX(110%); } }
.thor-red:hover .thor-red-cap, .thor-red:focus-visible .thor-red-cap { filter: brightness(1.1) saturate(1.1); }
.thor-red:focus-visible .thor-red-base { box-shadow: 0 18px 34px rgba(0, 0, 0, .65), 0 0 0 3px var(--accent); }
.thor-red.is-pressed .thor-red-cap { --depth: 2px; filter: brightness(.88); }
.thor-red-label {
  font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #ffe3dc; text-shadow: 0 0 18px rgba(255, 50, 30, .85), 0 2px 0 rgba(0, 0, 0, .6);
}
.thor-red.is-gone { opacity: 0; transform: translate(-50%, -50%) scale(.55); pointer-events: none; }
.thor-red:disabled { cursor: default; }
.thor-sound {
  padding: .9em 1.2em; border: 1px solid var(--line); border-radius: 999px; background: rgba(6, 9, 13, .55);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); cursor: pointer;
}
.thor-sound[aria-pressed="true"] { color: var(--fg); }
/* the film from the game takes the frame (whole, with dark bars on a wide screen) */
.thor-video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; background: #000; opacity: 0; transition: opacity .6s ease; }
.thor-live .thor-video { opacity: 1; }
.thor-wait, .thor-close, .thor-progress { position: absolute; z-index: 3; opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.thor-wait { left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--mono); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.thor-live.thor-loading .thor-wait { opacity: 1; }
.thor-close {
  top: clamp(12px, 2vw, 22px); right: clamp(12px, 2vw, 22px); padding: .7em 1.1em; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(6, 9, 13, .6); font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg); cursor: pointer;
}
.thor-live .thor-close { opacity: 1; pointer-events: auto; }
.thor-progress { left: 0; bottom: 0; height: 3px; width: calc(var(--p, 0) * 100%); background: #ff4a32; box-shadow: 0 0 10px rgba(255, 74, 50, .8); }
.thor-live .thor-progress { opacity: 1; }

/* ---------- fleet: the modes and the road map under the vehicle list ---------- */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin-top: clamp(48px, 8vh, 96px); }
.mode { padding: clamp(22px, 3vw, 36px); border-radius: 28px; background: var(--ink); color: var(--paper); }
.mode .mono { color: var(--accent); }
.mode h3 { margin-top: 14px; font-size: clamp(1.25rem, 2vw, 1.8rem); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; text-transform: uppercase; }
.mode p:last-child { margin-top: 12px; color: #b8c6d1; line-height: 1.55; }
.mode-road { background: transparent; color: var(--ink); border: 1px dashed rgba(10, 14, 19, .4); }
.mode-road .mono { color: #4d6272; }
.mode-road p:last-child { color: #3a4b58; }

@media (max-width: 760px) {
  .play-item, .play-item:nth-child(even) { grid-template-columns: 1fr; }
  .play-item:nth-child(even) .play-media { order: 0; }
  .play-media { border-radius: 20px; }
  .play-num { font-size: 3rem; }
  .play-wide .play-media img { aspect-ratio: 4 / 5; }
  .play-wide .play-media::after { background: linear-gradient(0deg, rgba(6, 9, 13, .92), rgba(6, 9, 13, .3) 60%, transparent); }
  /* on a phone the words go under the picture, so the red button and the shot have the whole frame */
  .play-wide .play-copy { grid-area: auto; padding: 0; }
  .play-wide .play-media::after { display: none; }
  .thor-red { left: 50%; }
  .play-wide .play-media.thor-on img { aspect-ratio: 16 / 9; }   /* the film is 16:9, so the frame takes its shape while it plays */
  .modes { grid-template-columns: 1fr; }
  .mode { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .play-item, .play-media img { transition: none; transform: none; }
  .thor-red-cap::after, .thor-red-base::after { animation: none; }
}

/* ---------- weather: four conditions read from the observatory's instruments ---------- */
.weather { padding: 0 var(--gutter) clamp(110px, 18vh, 200px); }
.weather-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin-top: clamp(40px, 7vh, 80px); }
.wx {
  position: relative; overflow: hidden;
  padding: clamp(24px, 3.2vw, 44px); min-height: clamp(220px, 30vh, 320px);
  display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid var(--line); border-radius: 28px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(111, 178, 255, .14), transparent 60%), var(--panel);
}
.wx:nth-child(2) { background: radial-gradient(120% 90% at 100% 0%, rgba(92, 243, 160, .16), transparent 60%), var(--panel); }
.wx:nth-child(3) { background: radial-gradient(120% 90% at 100% 0%, rgba(190, 225, 255, .18), transparent 60%), var(--panel); }
.wx:nth-child(4) { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 140, 90, .14), transparent 60%), var(--panel); }
.wx .mono { color: var(--accent); }
.wx h3 { margin-top: 12px; font-size: clamp(1.5rem, 3vw, 2.7rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; text-transform: uppercase; }
.wx p:last-child { margin-top: 14px; max-width: 32em; color: var(--muted); line-height: 1.6; }
.weather-note { margin-top: 26px; color: var(--muted); }

/* ---------- systems: the fleet as tiles under the list ---------- */
.sub-title { margin-top: clamp(56px, 9vh, 110px); font-size: clamp(2rem, 5vw, 4.6rem); font-weight: 700; line-height: .95; letter-spacing: -.04em; text-transform: uppercase; scroll-margin-top: 80px; }
.modes.fleet { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(24px, 4vh, 44px); }
.modes.fleet + .modes { margin-top: clamp(14px, 2vw, 28px); }

@media (max-width: 760px) {
  .weather-grid, .modes.fleet { grid-template-columns: 1fr; }
  .wx { border-radius: 20px; min-height: 0; }
}
@media (min-width: 761px) and (max-width: 1100px) { .modes.fleet { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
