/* ==========================================================================
   Copper Acorn — studio site
   Full-screen "scenes" with a background glow that shifts per section.
   ========================================================================== */

/* Scene colours are registered so the ambient glow can animate between them. */
@property --scene-a { syntax: '<color>'; inherits: true; initial-value: #b4552a; }
@property --scene-b { syntax: '<color>'; inherits: true; initial-value: #4a1d0b; }
@property --scene-c { syntax: '<color>'; inherits: true; initial-value: #ffb070; }

:root {
  --bg: #0f0a07;
  --bg-2: #18100b;
  --text: #f6eadb;
  --text-dim: #cdb8a2;
  --text-faint: #9a846f;
  --line: rgba(255, 214, 170, .14);
  --panel: rgba(255, 236, 214, .045);

  --copper-50: #ffeedb;
  --copper-200: #ffc995;
  --copper-400: #ec8f50;
  --copper-600: #b9592b;
  --copper-800: #5c2510;
  --copper-grad: linear-gradient(100deg, #ffe0b6 0%, #f4a065 30%, #c8642f 55%, #ffcf9c 80%, #f4a065 100%);

  --neon: #39d8ff;
  --lf-green: #8cc63f;
  --lf-cream: #fff4dc;

  --font-display: 'Urbanist', system-ui, sans-serif;
  --font-body: 'Urbanist', system-ui, sans-serif;
  --font-hud: 'Chakra Petch', 'Urbanist', system-ui, sans-serif;
  --font-lf: 'Lilita One', 'Urbanist', system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --header-h: 72px;
  --radius: 18px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

html { transition: --scene-a 1.2s ease, --scene-b 1.2s ease, --scene-c 1.2s ease; }
html[data-scene="home"]     { --scene-a: #b4552a; --scene-b: #4a1d0b; --scene-c: #ffb070; }
html[data-scene="hiveburn"] { --scene-a: #cf641d; --scene-b: #3a1606; --scene-c: #39d8ff; }
html[data-scene="bosses"]   { --scene-a: var(--boss, #ffb22e); --scene-b: #1d0c18; --scene-c: var(--boss, #ffb22e); }
html[data-scene="worlds"]   { --scene-a: #b8401e; --scene-b: #26113a; --scene-c: #7cc8ff; }
html[data-scene="armory"]   { --scene-a: #8a6a1c; --scene-b: #13241a; --scene-c: #ffc94a; }
html[data-scene="fairways"] { --scene-a: #4d8a26; --scene-b: #10260f; --scene-c: #ffd98a; }
html[data-scene="studio"]   { --scene-a: #c4612f; --scene-b: #2a140a; --scene-c: #ffd2a0; }
html[data-scene="contact"]  { --scene-a: #9a4219; --scene-b: #1c0d06; --scene-c: #ffb070; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--copper-200); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--copper-600); color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--copper-400); color: #1a0d05; border-radius: 10px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 16px; }

.wrap { width: min(1220px, 100% - var(--gutter) * 2); margin-inline: auto; position: relative; }

/* ---------- Ambient background (the Tencent-style colour shift) ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(55% 65% at 80% 22%, color-mix(in oklab, var(--scene-a) 46%, transparent), transparent 70%),
  radial-gradient(60% 60% at 6% 100%, color-mix(in oklab, var(--scene-b) 90%, transparent), transparent 72%),
  radial-gradient(30% 40% at 45% 55%, color-mix(in oklab, var(--scene-c) 9%, transparent), transparent 70%),
  var(--bg);
}
.ambient::before { /* a giant, faint acorn drifting behind everything */
  content: ""; position: absolute; width: min(90vh, 70vw); aspect-ratio: 498 / 587; left: -14vw; bottom: -22vh;
  background: url("../assets/img/acorn-light.webp") center / contain no-repeat;
  opacity: .05; transform: rotate(-18deg) translateY(calc(var(--scroll, 0) * -14vh)); filter: brightness(1.9) saturate(.7) blur(2px);
}
.ambient::after { /* film grain */
  content: ""; position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 850;
  font-size: clamp(2.5rem, 1.4rem + 4.2vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--font-hud);
  font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--copper-200);
  display: inline-flex; align-items: center; gap: .7em;
  margin-bottom: 1.1rem;
}
.lede { color: var(--text-dim); font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); max-width: 56ch; margin-top: 1.3rem; text-wrap: pretty; }
.copper-text {
  background: var(--copper-grad); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s ease-in-out infinite alternate;
  /* The gradient only paints inside the box: pad right for the italic overhang and
     below for descenders (g, p, y), then pull the spacing back with a negative margin. */
  padding: 0 .08em .16em 0;
  margin-bottom: -.16em;
}
@keyframes sheen { from { background-position: 0% 0; } to { background-position: 100% 0; } }

/* ---------- Buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.cta-row--center { justify-content: center; }
.btn {
  --btn-bg: transparent; --btn-fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: 0 1.5em; border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 750; font-size: 1rem; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease-out), box-shadow .25s, background-color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--copper { --btn-fg: #2a1206; background: linear-gradient(180deg, #ffd2a1, #e98a4c 55%, #c8642f) border-box; box-shadow: 0 10px 30px -10px rgba(233, 138, 76, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--copper:hover { box-shadow: 0 16px 40px -10px rgba(233, 138, 76, .9), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--ghost { border-color: rgba(255, 214, 170, .35); background: rgba(255, 236, 214, .04); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--copper-200); background: rgba(255, 236, 214, .08); }
.play-icon { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  transition: background-color .3s, backdrop-filter .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: rgba(15, 10, 7, .62); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { height: 34px; width: auto; filter: drop-shadow(0 2px 8px rgba(236, 143, 80, .45)); }
.brand__word { height: 15px; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.site-nav a { text-decoration: none; font-weight: 650; font-size: .95rem; color: var(--text-dim); position: relative; padding: 6px 0; transition: color .2s; }
.site-nav a:hover, .site-nav a[aria-current="true"] { color: var(--text); }
.site-nav a:not(.site-nav__cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--copper-400); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.site-nav a:hover::after, .site-nav a[aria-current="true"]::after { transform: scaleX(1); }
.site-nav__cta { padding: 8px 18px !important; border: 1px solid rgba(255, 214, 170, .35); border-radius: 999px; color: var(--text) !important; }
.site-nav__cta:hover { border-color: var(--copper-200); background: rgba(255, 236, 214, .06); }
.menu-toggle { display: none; }

/* ---------- Dot navigation (right edge) ---------- */
.dots { position: fixed; right: clamp(14px, 2vw, 30px); top: 50%; transform: translateY(-50%); z-index: 30; display: flex; flex-direction: column; gap: 6px; }
.dots a { position: relative; display: grid; place-items: center; width: 28px; height: 28px; text-decoration: none; }
.dots a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 238, 219, .55); transition: all .35s var(--ease-out); }
.dots a::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 2px solid var(--text); transform: scale(.3); opacity: 0; transition: all .35s var(--ease-out); }
.dots a[aria-current="true"]::before { background: var(--text); }
.dots a[aria-current="true"]::after { transform: scale(1); opacity: 1; }
.dots a:hover::before { background: var(--text); transform: scale(1.3); }
.dots span { position: absolute; right: 36px; white-space: nowrap; font-family: var(--font-hud); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; background: rgba(15, 10, 7, .7); backdrop-filter: blur(6px); opacity: 0; transform: translateX(6px); transition: all .25s; pointer-events: none; }
.dots a:hover span, .dots a:focus-visible span { opacity: 1; transform: none; }

/* ---------- Panels ---------- */
.panel { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-content: center; padding: calc(var(--header-h) + 24px) 0 56px; isolation: isolate; }
.panel__art { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.panel__art img { width: 100%; height: 100%; object-fit: cover; }
.section-head { max-width: 760px; }

/* Snap like a full-page site on roomy screens; free scrolling elsewhere. */
@media (min-width: 1024px) and (min-height: 700px) {
  html.snap { scroll-snap-type: y mandatory; }
  .panel { scroll-snap-align: start; scroll-snap-stop: always; }
  .site-footer { scroll-snap-align: end; }
}

/* ---------- Reveal-on-enter ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 110ms); }
.js .is-in [data-reveal] { opacity: 1; transform: none; }

/* ==========================================================================
   Intro (company stinger)
   ========================================================================== */
.intro { display: none; }
.show-intro .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 90; background: #070504; cursor: pointer;
  transition: opacity .9s ease, visibility .9s;
}
.intro-lock, .intro-lock body { overflow: hidden; }
.intro__ambient { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(40px) saturate(1.3) brightness(.7); opacity: .9; }
.intro__video { position: relative; height: 100%; width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 0 120px 20px rgba(0, 0, 0, .7); }
.intro__skip {
  position: absolute; right: clamp(16px, 3vw, 36px); bottom: clamp(16px, 4vh, 40px);
  padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 214, 170, .4); background: rgba(15, 10, 7, .55); backdrop-filter: blur(8px);
  font-family: var(--font-hud); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; cursor: pointer;
  opacity: 0; animation: fade-in .6s 1s forwards;
}
.intro__skip:hover { border-color: var(--copper-200); }
.intro.is-leaving { opacity: 0; visibility: hidden; }
@keyframes fade-in { to { opacity: 1; } }

/* ==========================================================================
   1 · Hero
   ========================================================================== */
.hero { align-content: stretch; grid-template-rows: 1fr auto; }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.hero__title { font-size: clamp(2.8rem, .9rem + 6.3vw, 7rem); }
.hero__line { display: block; white-space: nowrap; }
/* the acorn floats over the COPPER ACORN wordmark, set toward the right */
.hero__mark { justify-self: end; margin-right: -24px; width: min(100%, 420px); display: grid; justify-items: center; gap: 26px; }
.hero__emblem { position: relative; width: 82%; }
.hero__acorn { position: relative; width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55)) drop-shadow(0 0 40px rgba(236, 143, 80, .25)); animation: float 7s ease-in-out infinite; }
.hero__wordmark { width: 100%; height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .6)); }
.hero__halo { position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 176, 112, .35), rgba(185, 89, 43, .12) 55%, transparent 75%); animation: breathe 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-16px) rotate(1.5deg); } }
@keyframes breathe { 0%, 100% { opacity: .8; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }

.hero__ticker { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 28px; }
.ticker-card { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(10px); text-decoration: none; transition: border-color .25s, transform .25s var(--ease-out), background-color .25s; }
.ticker-card:hover { border-color: rgba(255, 201, 149, .5); transform: translateY(-3px); background: rgba(255, 236, 214, .07); }
.ticker-card img { width: 86px; height: 50px; object-fit: contain; }
.ticker-card b { display: block; font-weight: 800; font-size: 1.02rem; line-height: 1.2; }
.ticker-card small { display: block; color: var(--text-faint); font-family: var(--font-hud); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }

/* ==========================================================================
   2 · HiveBurn
   ========================================================================== */
.hb__art img { object-position: 72% 35%; opacity: .7; }
/* key art faded behind the copy: dark on the left for the text, the fight showing through on the right */
.hb__art::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(15, 10, 7, .95) 0%, rgba(15, 10, 7, .86) 30%, rgba(15, 10, 7, .45) 58%, rgba(15, 10, 7, .25) 100%),
  linear-gradient(0deg, var(--bg) 0%, rgba(15, 10, 7, 0) 24%),
  linear-gradient(180deg, rgba(15, 10, 7, .75) 0%, rgba(15, 10, 7, 0) 20%); }
.hb__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hb__logo { width: min(280px, 64%); height: auto; margin-bottom: 14px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); }
.hb .display { font-size: clamp(2.3rem, 1.2rem + 3vw, 3.9rem); }
.hb-neon { color: var(--neon); text-shadow: 0 0 24px rgba(57, 216, 255, .55); }
.hud-chip { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 6px 14px 6px 12px; border: 1px solid rgba(57, 216, 255, .45); border-radius: 4px; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); background: rgba(57, 216, 255, .08); font-family: var(--font-hud); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #bff3ff; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 0 0 rgba(57, 216, 255, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(57, 216, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(57, 216, 255, 0); } }
.hb-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 1.8rem; max-width: 600px; }
.hb-stats li { padding: 12px 14px; border: 1px solid rgba(57, 216, 255, .22); background: linear-gradient(180deg, rgba(57, 216, 255, .08), rgba(57, 216, 255, .02)); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.hb-stats b { display: block; font-family: var(--font-hud); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.1; color: #e9fbff; text-shadow: 0 0 18px rgba(57, 216, 255, .45); }
.hb-stats span { font-family: var(--font-hud); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #9fd9ea; }
.hb-points { display: grid; gap: 10px; margin-top: 1.6rem; max-width: 600px; }
.hb-points li { position: relative; padding-left: 26px; color: var(--text-dim); font-size: .98rem; line-height: 1.5; }
.hb-points li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; background: var(--copper-400); transform: rotate(45deg); box-shadow: 0 0 12px rgba(236, 143, 80, .7); }
.hb-points b { color: var(--text); }

.hb__phone { justify-self: center; }
/* The screen is exactly 9:16 like the trailer, so nothing is cropped; --pw is its width,
   capped so the whole phone fits the screen height. Camera and speaker sit in the bezels. */
.phone { --pw: min(28vw, 380px, (100svh - 200px) * 9 / 16); position: relative; width: calc(var(--pw) + 24px); padding: 28px 12px; border-radius: 42px; background: linear-gradient(145deg, #3b2a20, #120c09 45%, #2b1d15); box-shadow: 0 0 0 1px rgba(255, 214, 170, .18), 0 40px 80px -20px rgba(0, 0, 0, .8), 0 0 80px -10px rgba(207, 100, 29, .45); }
.phone::before { content: ""; position: absolute; top: 11px; left: 50%; translate: -50% 0; width: 22%; height: 6px; border-radius: 999px; background: #050302; box-shadow: 0 1px 0 rgba(255, 214, 170, .12); }
.phone::after { content: ""; position: absolute; bottom: 11px; left: 50%; translate: -50% 0; width: 30%; height: 4px; border-radius: 999px; background: rgba(255, 214, 170, .16); }
.phone__screen { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000; }
.phone__video { width: 100%; height: 100%; object-fit: cover; }
.phone__play { position: absolute; inset: auto 14px 18px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border: 1px solid rgba(57, 216, 255, .55); border-radius: 12px; background: rgba(4, 16, 22, .72); backdrop-filter: blur(6px); color: #dff8ff; font-family: var(--font-hud); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; cursor: pointer; transition: background-color .2s, opacity .3s; }
.phone__play:hover { background: rgba(57, 216, 255, .2); }
.phone.is-playing .phone__play { opacity: 0; pointer-events: none; }
.phone__sound { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(57, 216, 255, .55); background: rgba(4, 16, 22, .72); backdrop-filter: blur(6px); color: #dff8ff; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s, background-color .2s; }
.phone__sound:hover { background: rgba(57, 216, 255, .2); }
.phone.is-playing .phone__sound { opacity: 1; pointer-events: auto; }
.phone__sound .phone__sound-on, .phone__sound[aria-pressed="true"] .phone__sound-off { display: none; }
.phone__sound[aria-pressed="true"] .phone__sound-on { display: inline; }

/* ==========================================================================
   3 · Bosses
   ========================================================================== */
.bosses { --boss: #ffb22e; }
.bosses__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
/* The boss floats in its colour's glow, its name in huge outlined letters behind it */
.boss-stage { position: relative; aspect-ratio: 1; display: grid; place-items: center; justify-self: center; width: min(100%, 620px, 72vh); } /* a true square, scaled by width and screen height */
.boss-stage__ghost { position: absolute; inset: -4% -10% auto; text-align: center; font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(3rem, 8vw, 7.5rem); line-height: .82; color: transparent; -webkit-text-stroke: 1.5px color-mix(in oklab, var(--boss) 75%, transparent); opacity: .35; text-transform: uppercase; letter-spacing: -.03em; word-spacing: 100vw; transition: -webkit-text-stroke-color .5s; }
.boss-stage__glow { position: absolute; inset: 14% 8% 2%; transform: translateY(var(--drop, 0px)); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--boss) 55%, transparent), transparent 75%); filter: blur(10px); transition: background .6s; }
/* the model (and its glow) drop by --drop so its feet line up with the bottom of the picker; main.js measures it */
.boss-stage__img { position: relative; align-self: end; width: 88%; height: 88%; object-fit: contain; object-position: center bottom; transform: translateY(var(--drop, 0px)); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .7)); transition: opacity .35s, transform .6s var(--ease-out); }
.boss-stage.is-swapping .boss-stage__img { opacity: 0; transform: translateY(calc(var(--drop, 0px) + 10px)) scale(.94); }
.boss-card { margin-top: 1.4rem; padding: 22px 24px; border: 1px solid color-mix(in oklab, var(--boss) 40%, transparent); background: linear-gradient(135deg, color-mix(in oklab, var(--boss) 14%, transparent), rgba(15, 10, 7, .4)); border-radius: var(--radius); backdrop-filter: blur(8px); transition: border-color .5s, background .5s; }
.boss-card__tag { font-family: var(--font-hud); font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--boss); }
.boss-card__name { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.8rem); line-height: 1.05; margin-top: 4px; letter-spacing: -.01em; }
.boss-card__line { margin-top: 6px; color: var(--text-dim); font-size: 1.04rem; font-style: italic; line-height: 1.45; }
.boss-card__stats { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; margin-top: 14px; }
.boss-card__stats div { display: contents; }
.boss-card__stats dt { font-family: var(--font-hud); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); padding-top: 3px; }
.boss-card__stats dd { font-weight: 650; font-size: .98rem; line-height: 1.45; }
.boss-card__stats b { color: var(--boss); font-weight: 750; }
.boss-picker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 18px; }
.boss-pick { --c: #fff; position: relative; aspect-ratio: 1; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 236, 214, .035); cursor: pointer; transition: border-color .25s, background-color .25s, transform .25s var(--ease-out); }
.boss-pick img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(.6) brightness(.8); transition: filter .25s; }
.boss-pick:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--c) 60%, transparent); }
.boss-pick:hover img, .boss-pick[aria-selected="true"] img { filter: none; }
.boss-pick[aria-selected="true"] { border-color: var(--c); background: color-mix(in oklab, var(--c) 16%, transparent); box-shadow: 0 0 22px -6px var(--c); }

/* ==========================================================================
   4 · Worlds (hover accordion)
   ========================================================================== */
.worlds .section-head { max-width: 980px; }
.worlds .display { font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4.6rem); }
.world-list { display: flex; gap: 10px; height: clamp(300px, 46vh, 480px); margin-top: 1.8rem; }
.world { --w: #fff; position: relative; flex: 1; min-width: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; border: 1px solid rgba(255, 255, 255, .08); transition: flex .7s var(--ease-out), height .6s var(--ease-out), border-color .4s, box-shadow .4s; outline-offset: 4px; }
.world img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease-out), filter .6s; filter: saturate(.85) brightness(.8); }
.world::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 5, 4, .95) 8%, rgba(8, 5, 4, .35) 50%, rgba(8, 5, 4, .1)); }
.world > div { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px; }
.world small { display: block; font-family: var(--font-hud); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--w); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.world small i { font-style: normal; display: none; }
.world b { display: block; font-family: var(--font-display); font-style: italic; font-weight: 850; font-size: clamp(1.05rem, .7rem + .9vw, 1.6rem); line-height: 1.1; margin-top: 4px; }
.world span { display: block; max-width: 34ch; max-height: 0; overflow: hidden; color: var(--text-dim); font-size: .92rem; line-height: 1.45; opacity: 0; transition: opacity .4s, max-height .5s var(--ease-out), margin-top .5s; }
/* open: the default card, or whichever one is hovered / focused */
.world.is-open, .world:hover, .world:focus-visible { flex: 3.2; border-color: color-mix(in oklab, var(--w) 70%, transparent); box-shadow: 0 0 40px -12px var(--w); }
.world.is-open img, .world:hover img, .world:focus-visible img { transform: scale(1); filter: none; }
.world.is-open small i, .world:hover small i, .world:focus-visible small i { display: inline; }
.world.is-open span, .world:hover span, .world:focus-visible span { max-height: 6em; margin-top: 6px; opacity: 1; transition-delay: .15s; }
/* ...but the default card steps aside while another one is hovered or focused */
.world-list:hover .world.is-open:not(:hover),
.world-list:has(.world:focus-visible) .world.is-open:not(:focus-visible) { flex: 1; border-color: rgba(255, 255, 255, .08); box-shadow: none; }
.world-list:hover .world.is-open:not(:hover) img,
.world-list:has(.world:focus-visible) .world.is-open:not(:focus-visible) img { transform: scale(1.08); filter: saturate(.85) brightness(.8); }
.world-list:hover .world.is-open:not(:hover) small i,
.world-list:has(.world:focus-visible) .world.is-open:not(:focus-visible) small i { display: none; }
.world-list:hover .world.is-open:not(:hover) span,
.world-list:has(.world:focus-visible) .world.is-open:not(:focus-visible) span { max-height: 0; margin-top: 0; opacity: 0; }

/* ==========================================================================
   5 · Armory
   ========================================================================== */
.armory__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
/* the veteran fills the space under the intro text and is cut off by the bottom of the screen */
.armory__copy { align-self: stretch; display: flex; flex-direction: column; }
.armory__hero { position: relative; flex: 1 1 auto; min-height: 240px; margin: 4px -40px -56px; pointer-events: none; }
.armory__hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 196, 92, .26), rgba(201, 120, 40, .09) 60%, transparent); }
.armory__hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 22%); mask-image: linear-gradient(to top, transparent 0%, #000 22%); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); }
.ranks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ranks li { text-align: center; }
.ranks img { width: 100%; max-width: 58px; aspect-ratio: 196 / 260; object-fit: contain; margin: 0 auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); transition: transform .3s var(--ease-out); }
.ranks li:hover img { transform: translateY(-4px) scale(1.06); }
.ranks span { display: block; margin-top: 6px; font-family: var(--font-hud); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); line-height: 1.2; }
.hud-label { font-family: var(--font-hud); font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #ffd27a; display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.hud-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 210, 122, .45), transparent); }
.gear { display: grid; gap: 10px; }
.gear--guns { grid-template-columns: repeat(3, 1fr); margin-bottom: 22px; }
.gear--bombs { grid-template-columns: repeat(4, 1fr); margin-bottom: 22px; }
.gear li { padding: 12px 12px 14px; border: 1px solid rgba(255, 210, 122, .16); background: linear-gradient(180deg, rgba(255, 210, 122, .07), rgba(255, 210, 122, .015)); clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); transition: background-color .3s, border-color .3s; }
.gear li:hover { border-color: rgba(255, 210, 122, .45); background-color: rgba(255, 210, 122, .06); }
.gear img { height: 62px; width: 100%; object-fit: contain; margin-bottom: 8px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55)); transition: transform .4s var(--ease-out); }
.gear li:hover img { transform: scale(1.08) rotate(-3deg); }
.gear b { display: block; font-family: var(--font-hud); font-weight: 700; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }
.gear span { display: block; font-size: .8rem; color: var(--text-faint); line-height: 1.35; margin-top: 2px; }
.gear--bombs img { height: 56px; }

/* ==========================================================================
   6 · Little Fairways
   ========================================================================== */
.lf { overflow: hidden; }
.lf__media { position: absolute; inset: 0; z-index: -1; }
.lf__video { width: 100%; height: 100%; object-fit: cover; }
.lf__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(10, 22, 8, .92) 0%, rgba(10, 22, 8, .7) 38%, rgba(10, 22, 8, .1) 75%),
  linear-gradient(0deg, rgba(10, 22, 8, .85) 0%, transparent 35%),
  linear-gradient(180deg, rgba(15, 10, 7, .65) 0%, transparent 22%); }
.lf__grid { display: grid; align-content: center; }
.lf__copy { max-width: 640px; }
.soon-badge { display: inline-block; padding: 8px 18px; border-radius: 10px; background: linear-gradient(180deg, #ffe39a, #f2b84b); color: #4a2a08; font-family: var(--font-lf); font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 6px 0 #a8701d, 0 14px 24px -6px rgba(0, 0, 0, .5); transform: rotate(-3deg); }
.lf__logo { width: min(100%, 520px); height: auto; margin: 26px 0 10px -14px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); }
.lf__lede { max-width: 580px; font-size: clamp(1.02rem, .95rem + .3vw, 1.14rem); color: #eef3df; text-wrap: pretty; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.lf__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lf__chips li { padding: 6px 14px; border-radius: 999px; background: rgba(255, 244, 220, .12); border: 1px solid rgba(255, 244, 220, .28); color: var(--lf-cream); font-weight: 700; font-size: .88rem; backdrop-filter: blur(4px); }

/* ==========================================================================
   7 · Studio
   ========================================================================== */
.studio__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.studio__logo { position: relative; }
.studio__logo::before { content: ""; position: absolute; inset: -10% -6%; background: radial-gradient(closest-side, rgba(255, 176, 112, .22), transparent 70%); z-index: -1; }
.studio__logo img { width: 100%; height: auto; filter: drop-shadow(0 24px 50px rgba(0, 0, 0, .55)); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 2rem; }
.pillars li { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); transition: border-color .3s, transform .3s var(--ease-out); }
.pillars li:hover { border-color: rgba(255, 201, 149, .45); transform: translateY(-4px); }
.pillar__num { font-family: var(--font-hud); font-weight: 700; font-size: .8rem; letter-spacing: .14em; color: var(--copper-400); }
.pillars b { display: block; margin-top: 8px; font-size: 1.12rem; font-weight: 800; }
.pillars p { margin-top: 6px; color: var(--text-dim); font-size: .92rem; line-height: 1.5; }

/* ==========================================================================
   8 · Contact + footer
   ========================================================================== */
.contact__inner { display: grid; justify-items: center; align-content: center; text-align: center; }
.contact__mark { width: 92px; height: auto; margin-bottom: 22px; filter: drop-shadow(0 0 30px rgba(236, 143, 80, .45)); animation: float 7s ease-in-out infinite; }
.contact .display { font-size: clamp(2.8rem, 1.4rem + 5.4vw, 6.4rem); }
.contact .lede { margin-inline: auto; }
.contact .btn { font-size: 1.05rem; min-height: 56px; padding: 0 1.8em; }
.site-footer { position: relative; border-top: 1px solid var(--line); background: rgba(9, 6, 4, .6); padding: 52px 0 calc(26px + env(safe-area-inset-bottom)); color: var(--text-faint); font-size: .94rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.site-footer__brand p { margin-top: 14px; color: var(--text-dim); }
.site-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-footer__col h2 { font-family: var(--font-hud); font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--copper-200); margin-bottom: 4px; }
.site-footer a { color: var(--text-dim); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--text); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .86rem; }

/* ---------- Analytics consent bar (js/analytics.js) ---------- */
.consent { position: fixed; z-index: 80; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); translate: -50% 0; width: min(760px, calc(100% - 32px));
  display: flex; align-items: center; gap: 16px 24px; padding: 14px 16px 14px 22px; border: 1px solid rgba(255, 201, 149, .35); border-radius: var(--radius);
  background: rgba(20, 13, 9, .94); backdrop-filter: blur(12px); box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .7); animation: consent-in .5s var(--ease-out); }
.consent p { flex: 1; color: var(--text-dim); font-size: .94rem; line-height: 1.5; }
.consent a { color: var(--copper-200); white-space: nowrap; }
.consent__actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent__btn { min-height: 42px; padding: 0 1.2em; font-size: .92rem; }
@keyframes consent-in { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 560px) { .consent { flex-direction: column; align-items: stretch; } .consent__actions > * { flex: 1; } }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; padding: calc(var(--header-h) + 56px) 0 80px; }
.legal .display { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
.legal__meta { margin-top: 14px; color: var(--text-faint); font-family: var(--font-hud); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.legal__summary { margin-top: 28px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); }
.legal h2 { margin-top: 40px; font-size: 1.35rem; font-weight: 800; color: var(--text); }
.legal p, .legal li { margin-top: 12px; color: var(--text-dim); line-height: 1.7; }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal li::marker { color: var(--copper-400); }
.legal a { color: var(--copper-200); text-underline-offset: 3px; }
.legal code { font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--panel); color: var(--text); }
.legal a:hover { color: var(--copper-50); }


/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .gear--guns { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .pillars li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; }
  .pillars li b { margin-top: 0; }
  .pillars li p { grid-column: 2; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .dots { display: none; }

  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(15, 10, 7, .5); cursor: pointer; z-index: 2; }
  .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s, opacity .3s; }
  .menu-toggle__bars { position: relative; }
  .menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle__bars::before { top: -6px; } .menu-toggle__bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 22px; background: rgba(12, 8, 5, .96); backdrop-filter: blur(16px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav a { font-family: var(--font-display); font-style: italic; font-weight: 850; font-size: 2rem; color: var(--text); }
  .site-nav__cta { font-size: 1.3rem !important; padding: 10px 26px !important; }
  .menu-open, .menu-open body { overflow: hidden; }

  .panel { min-height: auto; padding: calc(var(--header-h) + 20px) 0 44px; }
  .hero { min-height: 100svh; }
  .hero__grid, .hb__grid, .bosses__grid, .armory__grid, .studio__grid { grid-template-columns: 1fr; }
  .hero__mark { order: -1; justify-self: center; margin-right: 0; width: min(62vw, 260px); gap: 14px; }
  .hero__copy { text-align: left; }

  .hb__art img { height: 600px; object-position: 66% 30%; opacity: .6; }
  .hb__art::after { background: linear-gradient(180deg, rgba(15, 10, 7, .5) 0, rgba(15, 10, 7, .72) 300px, var(--bg) 600px); }
  .hb-stats { grid-template-columns: repeat(2, 1fr); }
  .phone { --pw: min(78vw, 340px); }

  .boss-stage { width: min(100%, 420px); }
  .armory__hero { flex: none; aspect-ratio: 1; width: min(100%, 420px); min-height: 0; margin: 8px auto -24px; }
  /* phones: heading, then the boss, then its card and the picker */
  .boss-info { display: contents; }
  .boss-info > .eyebrow { order: 1; justify-self: start; margin-bottom: -10px; }
  .boss-info > .display { order: 2; }
  .boss-stage { order: 3; }
  .boss-card { order: 4; margin-top: 0; }
  .boss-picker { order: 5; margin-top: 0; }
  .bosses__grid { gap: 18px; }
  .boss-picker { grid-template-columns: repeat(5, 1fr); }

  .world-list { flex-direction: column; height: auto; }
  .world { flex: none; height: 92px; }
  .world.is-open, .world:hover, .world:focus-visible { flex: none; height: 250px; }
  .world-list:hover .world.is-open:not(:hover), .world-list:has(.world:focus-visible) .world.is-open:not(:focus-visible) { flex: none; height: 92px; }

  .lf__media::after { background: linear-gradient(0deg, rgba(10, 22, 8, .96) 25%, rgba(10, 22, 8, .55) 70%, rgba(15, 10, 7, .7)); }
  .lf__logo { margin-left: -8px; }

  .studio__logo { max-width: 360px; justify-self: center; }
}

@media (max-width: 560px) {
  .brand__word { height: 12px; }
  .hero__ticker { flex-direction: column; }
  .ticker-card { width: 100%; }
  .gear--bombs { grid-template-columns: repeat(2, 1fr); }
  .ranks { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__bottom { flex-direction: column; }
}

/* Short laptop screens: tighten so each scene still fits one screen */
@media (min-width: 901px) and (max-height: 840px) {
  :root { --header-h: 64px; }
  .panel { padding: calc(var(--header-h) + 8px) 0 28px; }
  .lede { margin-top: .9rem; font-size: 1rem; }
  .cta-row { margin-top: 1.3rem; }
  .eyebrow { margin-bottom: .7rem; }
  .hero__title { font-size: clamp(2.8rem, .8rem + 4.9vw, 5.6rem); }
  .hero__mark { width: min(100%, 350px); gap: 18px; }
  .hero__ticker { padding-top: 16px; }
  .hb__logo { width: 210px; margin-bottom: 8px; }
  .hud-chip { margin-bottom: 10px; }
  .hb .display { font-size: clamp(2rem, .9rem + 2.6vw, 3.1rem); }
  .hb-stats { margin-top: 1rem; }
  .hb-stats li { padding: 7px 12px; }
  .hb-points { margin-top: .9rem; gap: 5px; }
  .hb-points li { font-size: .9rem; }
  .boss-stage { width: min(100%, 620px, 62vh); }
  .boss-card { padding: 13px 20px 14px; margin-top: 1rem; }
  .boss-card__stats { margin-top: 10px; gap: 6px 20px; }
  .boss-picker { margin-top: 12px; gap: 6px; }
  .armory__hero { margin-bottom: -28px; }
  .world-list { height: clamp(260px, 42vh, 420px); margin-top: 1.2rem; }
  .lf__logo { width: min(100%, 430px); margin-top: 20px; }
  .soon-badge { font-size: .92rem; padding: 6px 14px; }
  .lf__chips { margin-top: 12px; }
  .lf__chips li { padding: 4px 12px; font-size: .82rem; }
  .pillars li { padding: 16px; }
}

/* Reduced motion (the ?motion=full demo switch opts back in) */
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-full) { scroll-behavior: auto; }
  html:not(.motion-full) *, html:not(.motion-full) *::before, html:not(.motion-full) *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js:not(.motion-full) [data-reveal] { opacity: 1; transform: none; }
}
