/* READY ROUNDS — Roman Empire × Gen Z
   Layout: four full-bleed "acts" (I–IV). Marble portal → perpetual WebGL vortex →
   bright product stage → community wall.
   Deliberately single-theme (imperial night), so every colour is set here. */

:root {
  --nero: #0A0706;
  --nero-2: #160F0D;
  --imperial: #C8102E;
  --imperial-deep: #6E0A12;
  --oro: #E9B949;
  --oro-deep: #9C6B1C;
  --marmo: #F1ECE4;
  --fuoco: #FF5A1F;
  --sole: #FFD23F;
  --muted: rgba(241, 236, 228, 0.66);
  --line: rgba(241, 236, 228, 0.16);

  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-roman: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --marble: linear-gradient(160deg, #efe9e0, #d9d0c4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--nero); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nero);
  color: var(--marmo);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main, section, footer { overflow-x: clip; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sole); outline-offset: 3px; }
.mono { font-family: var(--f-mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--sole); color: var(--nero); padding: 10px 14px; font-weight: 800;
}
.skip:focus { top: 12px; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--oro);
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline;
}
.eyebrow .mono { color: var(--muted); font-weight: 500; }

/* ---------- CTA ---------- */
.cta {
  --bg: var(--imperial);
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 28px 17px;
  background: var(--bg);
  color: var(--marmo);
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: .04em;
  text-decoration: none;
  border: 0; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  padding-right: 40px;
  overflow: hidden;
  transition: transform .25s var(--ease), background .25s;
}
.cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 230, 160, .55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s var(--ease);
}
.cta:hover { background: var(--fuoco); transform: translateY(-2px); }
.cta:hover::after { transform: translateX(120%); }
.cta span { transition: transform .25s var(--ease); }
.cta:hover span { transform: translateX(6px); }
.cta--small { font-size: 18px; padding: 12px 34px 11px 18px; }

.chip {
  border: 1px solid var(--line); background: rgba(10, 7, 6, .5);
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.chip b { color: var(--sole); }
.chip:hover { border-color: var(--oro); color: var(--marmo); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(180deg, rgba(10, 7, 6, .85), rgba(10, 7, 6, 0));
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__brand {
  display: flex; flex-direction: column; line-height: .8;
  font-family: var(--f-display); font-weight: 900; font-size: 22px; letter-spacing: .02em;
  text-decoration: none;
}
.nav__brand span:last-child { color: var(--imperial); -webkit-text-stroke: .6px var(--imperial); }
.nav__brand--logos { flex-direction: row; align-items: center; gap: 8px; line-height: 1; }
.nav__logo { display: block; width: auto; height: 48px; }
.nav__logo--pb { height: 34px; }
.nav__by { font-family: var(--f-roman); font-weight: 600; font-size: 13px; letter-spacing: .06em; color: var(--oro); }
@media (max-width: 520px) {
  .nav__brand--logos { gap: 6px; }
  .nav__logo { height: 42px; }
  .nav__logo--pb { height: 30px; }
  .nav__by { font-size: 11px; }
}
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  display: flex; align-items: baseline; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted);
  font-stretch: 90%;
  transition: color .2s, background .2s;
}
.nav__links a b { font-family: var(--f-roman); font-size: 11px; color: var(--oro); }
.nav__links a:hover, .nav__links a.is-on { color: var(--marmo); background: rgba(200, 16, 46, .28); }
.nav__tools { display: flex; align-items: center; gap: 10px; }
.nav__menu {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(10, 7, 6, .6); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav__menu span:not(.sr) { width: 18px; height: 2px; background: var(--marmo); transition: transform .3s var(--ease); }
.nav__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.sheet {
  position: fixed; inset: 0; z-index: 45;
  background: radial-gradient(120% 80% at 50% 0%, var(--imperial-deep), var(--nero) 70%);
  padding: calc(var(--nav-h) + 24px + env(safe-area-inset-top, 0px)) var(--gutter) 40px;
}
.sheet nav { display: grid; gap: 4px; }
.sheet a {
  display: flex; align-items: baseline; gap: 14px; text-decoration: none;
  font-family: var(--f-display); font-weight: 900; font-size: clamp(44px, 12vw, 80px); line-height: 1;
  border-bottom: 1px solid var(--line); padding-block: 10px;
}
.sheet a b { font-family: var(--f-roman); font-size: 16px; color: var(--oro); min-width: 34px; }

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__menu { display: flex; }
}

/* ======================================================================
   I · HERO / PORTAL
   ====================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 8px + env(safe-area-inset-top, 0px)) var(--gutter) 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(60% 50% at 50% 46%, rgba(200, 16, 46, .38), transparent 70%),
    radial-gradient(90% 40% at 50% 100%, rgba(255, 90, 31, .22), transparent 70%),
    var(--nero);
  isolation: isolate;
}
/* pre-intro: hidden until the build timeline has set its start state (JS removes the class).
   Failsafe: if scripts never run, everything reveals itself after 4s. */
html.intro-pending .portal, html.intro-pending .hero__title, html.intro-pending .hero__sub, html.intro-pending #heroCta {
  visibility: hidden;
  animation: rr-failsafe 0s linear 4s forwards;
}
@keyframes rr-failsafe { to { visibility: visible; } }
.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__glow {
  position: absolute; inset: auto 0 0 0; height: 40%; z-index: -1;
  background: linear-gradient(0deg, rgba(10, 7, 6, 1), transparent);
}

.portal-wrap {
  width: min(1060px, 100%, calc((100svh - var(--nav-h) - 170px) * 1.5));
  perspective: 1600px;
}
.portal {
  --col: 11cqw;
  --lx: 0;
  container-type: inline-size;
  position: relative;
  display: grid;
  grid-template-columns: var(--col) 1fr var(--col);
  grid-template-areas: "ped ped ped" "cor cor cor" "ent ent ent" "colL screen colR" "sty sty sty";
  transform-style: preserve-3d;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .7));
}
/* marble material with cinematic key light (warm top) and red rim from below */
.portal .marble, .ped__face, .entab, .col__shaft, .col__abacus, .col__echinus, .col__torus, .col__plinth, .stylo i, .cornice {
  background-image: var(--marble);
  background-size: 100% auto;
}

.ped { grid-area: ped; position: relative; height: 15cqw; margin-inline: -3cqw; }
.ped__face {
  position: absolute; inset: 0;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background-image:
    linear-gradient(180deg, rgba(255, 236, 200, .25), rgba(0, 0, 0, .35)),
    var(--marble);
  background-size: cover;
}
.ped__tymp {
  position: absolute; left: 9cqw; right: 9cqw; bottom: 1.6cqw; top: 3.2cqw;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background:
    radial-gradient(60% 90% at 50% 100%, rgba(200, 16, 46, .55), transparent 70%),
    linear-gradient(180deg, #2a1a16, #120a09);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 1.4cqw;
}
.ped__tymp span {
  font-family: var(--f-roman); font-weight: 800; font-size: 3.2cqw; letter-spacing: .3em;
  background: linear-gradient(180deg, #fff1c4, var(--oro) 50%, var(--oro-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 1.2cqw rgba(233, 185, 73, .55));
}
.cornice {
  grid-area: cor; height: 2.6cqw; margin-inline: -3.6cqw;
  background-image:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .38) 0 1.1cqw, transparent 1.1cqw 2.6cqw),
    linear-gradient(180deg, rgba(255, 240, 210, .25), rgba(0, 0, 0, .45)),
    var(--marble);
  background-size: auto 45%, auto, cover;
  background-position: 0 100%, 0 0, center;
  background-repeat: repeat-x, no-repeat, no-repeat;
  box-shadow: 0 .4cqw 0 var(--oro-deep), 0 1cqw 1.4cqw rgba(0, 0, 0, .6);
}
.entab {
  grid-area: ent; height: 6.4cqw; margin-inline: -1.6cqw;
  display: flex; align-items: center; justify-content: center;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .32)),
    var(--marble);
  background-size: cover;
  border-bottom: .35cqw solid var(--oro-deep);
}
.entab span {
  font-family: var(--f-roman); font-weight: 800; font-size: 2.5cqw; letter-spacing: .32em;
  color: rgba(54, 34, 26, .82);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55), 0 -1px 0 rgba(0, 0, 0, .25);
  white-space: nowrap;
}

.col { display: flex; flex-direction: column; align-items: center; transform-style: preserve-3d; }
.col--l { grid-area: colL; }
.col--r { grid-area: colR; }
.col__abacus { width: 118%; height: 2cqw; box-shadow: inset 0 -.4cqw .6cqw rgba(0, 0, 0, .35); }
.col__echinus {
  width: 104%; height: 2.4cqw; border-radius: 0 0 50% 50% / 0 0 100% 100%;
  box-shadow: inset 0 -.8cqw 1cqw rgba(0, 0, 0, .45);
}
.col__neck { width: 82%; height: .9cqw; background: linear-gradient(180deg, #f8d77a, var(--oro-deep)); }
.col__shaft {
  flex: 1; width: 80%;
  clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%);
  background-image:
    linear-gradient(90deg,
      rgba(0, 0, 0, .7) 0%,
      rgba(0, 0, 0, .12) calc(26% + var(--lx) * 10%),
      rgba(255, 240, 215, .28) calc(40% + var(--lx) * 12%),
      rgba(0, 0, 0, .1) calc(62% + var(--lx) * 10%),
      rgba(0, 0, 0, .78) 100%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .3) 0 .9%, rgba(255, 255, 255, .1) .9% 2.6%, transparent 2.6% 9.4%, rgba(0, 0, 0, .14) 9.4% 11.11%),
    var(--marble);
  background-size: auto, auto, 100% auto;
}
.col--l .col__shaft { box-shadow: inset -.6cqw 0 1.2cqw rgba(200, 16, 46, .5); }
.col--r .col__shaft { box-shadow: inset .6cqw 0 1.2cqw rgba(200, 16, 46, .5); }
.col__torus { width: 98%; height: 1.8cqw; border-radius: 50% / 50%; box-shadow: inset 0 -.5cqw .8cqw rgba(0, 0, 0, .45); }
.col__plinth { width: 116%; height: 1.8cqw; box-shadow: inset 0 -.3cqw .5cqw rgba(0, 0, 0, .4); }

.stylo { grid-area: sty; display: grid; margin-inline: -5cqw; }
.stylo i { display: block; height: 1.6cqw; box-shadow: inset 0 -.4cqw .6cqw rgba(0, 0, 0, .5); }
.stylo i + i { margin-inline: -2.5cqw; height: 1.8cqw; filter: brightness(.7); }

.screen {
  grid-area: screen;
  position: relative;
  margin: 1.6cqw 1.4cqw 0;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  background: #050303;
  overflow: hidden;
  box-shadow: 0 0 0 .35cqw var(--oro-deep), 0 0 0 .7cqw #1a0f0c, 0 0 6cqw rgba(200, 16, 46, .55), inset 0 0 4cqw rgba(0, 0, 0, .8);
  align-self: end;
}
.screen video { width: 100%; height: 100%; object-fit: cover; }
.screen__video, .screen__fill { position: absolute; inset: 0; }
.screen.is-letterbox .screen__video { object-fit: contain; }
.screen__fill { filter: blur(22px) brightness(.5) saturate(1.2); transform: scale(1.18); }
.screen__sound, .screen__play {
  position: absolute; z-index: 2; cursor: pointer;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--marmo); background: rgba(10, 7, 6, .62); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 11px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: border-color .2s, color .2s;
}
.screen__sound { right: 10px; top: 10px; display: inline-flex; gap: 6px; align-items: center; }
.screen__sound i { font-style: normal; font-size: 7px; letter-spacing: 1px; color: var(--sole); }
.screen__sound:hover, .screen__play:hover { border-color: var(--oro); color: var(--sole); }
.screen__play { left: 50%; top: 50%; translate: -50% -50%; font-size: 13px; padding: 10px 16px; display: none; }
.screen.is-blocked .screen__play { display: block; }
.screen__ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 16px;
  background:
    radial-gradient(70% 70% at 50% 50%, rgba(200, 16, 46, .35), transparent 70%),
    repeating-linear-gradient(45deg, rgba(233, 185, 73, .06) 0 14px, transparent 14px 28px),
    #0b0605;
}
.screen__scan {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px);
  animation: scan 6s linear infinite;
}
@keyframes scan { to { background-position: 0 120px; } }
.screen__top {
  position: absolute; top: 12px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; font-size: 11px; color: var(--muted);
}
.rec { color: var(--marmo); display: inline-flex; gap: 6px; align-items: center; }
.rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--imperial); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.screen__label {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(28px, 6cqw, 64px); line-height: .9; color: var(--marmo);
  border: 2px dashed rgba(233, 185, 73, .6); padding: 8px 18px 4px;
}
.screen__hint { font-size: 11px; color: var(--muted); line-height: 1.6; }
.screen__hint code { color: var(--sole); }

.portal__sweep {
  position: absolute; inset: -10% -20%; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 236, 190, .55) 48%, rgba(255, 255, 255, .9) 50%, rgba(255, 236, 190, .55) 52%, transparent 60%);
  mix-blend-mode: overlay;
  transform: translateX(-110%);
}

.hero__copy {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-top: clamp(-74px, -5.6vw, -26px);
  text-align: center;
}
.hero__title {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .18em;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(64px, 12.5vw, 196px); line-height: .8; letter-spacing: -.01em;
  perspective: 600px;
}
.hero__title .w { display: inline-flex; }
.hero__title .ch {
  display: inline-block;
  background: linear-gradient(180deg, #fffaf0 0%, var(--marmo) 45%, var(--oro) 78%, var(--oro-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 .05em 0 var(--imperial)) drop-shadow(0 .12em .2em rgba(0, 0, 0, .7));
  transform-origin: 50% 100%;
}
.hero__title .w:last-child .ch {
  background: linear-gradient(180deg, #ff6b4a 0%, var(--imperial) 55%, #7d0716 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 .05em 0 var(--oro-deep)) drop-shadow(0 .12em .2em rgba(0, 0, 0, .7));
}
.hero__sub {
  font-family: var(--f-roman); font-weight: 800; letter-spacing: .32em;
  font-size: clamp(13px, 1.6vw, 19px); color: var(--oro);
}

/* phones / portrait: a 9:16 temple designed for vertical screens */
@media (max-aspect-ratio: 4/5), (max-width: 640px) {
  .portal-wrap { width: min(100%, calc((100svh - var(--nav-h) - 210px) * .62)); }
  .portal { --col: 13cqw; }
  .screen { aspect-ratio: 9 / 16; margin: 2cqw 2cqw 0; }
  .ped { height: 22cqw; }
  .ped__tymp span { font-size: 5cqw; }
  .entab { height: 9cqw; }
  .entab span { font-size: 3.4cqw; letter-spacing: .14em; }
  .cornice { height: 3.6cqw; }
  .screen__label { font-size: 9cqw; }
  .hero__copy { margin-top: -38px; }
}

/* ---------- MARQUEE ---------- */
.marquee {
  position: relative; z-index: 3;
  overflow: hidden; white-space: nowrap;
  padding-block: 12px 9px;
  transform: rotate(-1.6deg); margin-block: -14px; width: 104%; margin-left: -2%;
}
.marquee--gold { background: var(--sole); color: var(--nero); }
.marquee--red { background: var(--imperial); color: var(--marmo); transform: rotate(1.4deg); }
.marquee__track { display: inline-flex; animation: marq 26s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee__track span {
  font-family: var(--f-display); font-weight: 900; font-size: clamp(22px, 3vw, 36px);
  letter-spacing: .02em; padding-inline: 22px; line-height: 1;
}
.marquee__track i { font-style: normal; font-family: var(--f-roman); font-weight: 800; font-size: .9em; align-self: center; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ======================================================================
   II · VORTEX
   ====================================================================== */
.vortex { position: relative; height: 100svh; min-height: 560px; background: #050303; }
.vortex__stage { position: relative; height: 100%; overflow: hidden; }
.vortex__gl, .vortex__gl canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vortex__gl {
  background: radial-gradient(circle at 50% 50%, #000 0 6%, rgba(233, 185, 73, .5) 6.6%, rgba(200, 16, 46, .45) 12%, rgba(110, 10, 18, .25) 30%, #050303 60%);
}
.vortex__hud {
  position: absolute; left: var(--gutter); bottom: calc(40px + env(safe-area-inset-bottom, 0px)); z-index: 2;
  max-width: 440px; display: grid; gap: 12px; pointer-events: none;
  perspective: 900px;
}
.vortex__title {
  font-family: var(--f-display); font-weight: 900; font-size: clamp(80px, 14vw, 200px); line-height: .78;
  color: var(--marmo);
  text-shadow: 0 0 40px rgba(200, 16, 46, .6);
  justify-self: start; will-change: transform;
}
.vortex__hint { color: var(--muted); max-width: 34ch; }
.vortex__meta {
  position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 16px + env(safe-area-inset-top, 0px));
  display: grid; gap: 4px; text-align: right; font-size: 11px; letter-spacing: .12em; color: var(--muted);
  pointer-events: none;
}
.vortex__meta b { color: var(--sole); font-variant-numeric: tabular-nums; }

/* lite / no-WebGL fallback: horizontal swipe feed */
.vortex__lite {
  position: absolute; inset: calc(var(--nav-h) + 20px) 0 auto 0;
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 20px;
}
.vortex__lite button {
  flex: 0 0 min(52vw, 230px); scroll-snap-align: center;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.vortex__lite img { width: 100%; aspect-ratio: 9 / 16; border-radius: 18px; }
html.is-lite .vortex { height: auto; }
html.is-lite .vortex__stage { position: relative; height: auto; min-height: 100svh; padding-bottom: 32px; }
html.is-lite .vortex__gl { position: absolute; }
html.is-lite .vortex__hud { position: relative; left: auto; bottom: auto; padding: 0 var(--gutter); margin-top: calc(var(--nav-h) + 20px + min(100vw * .52, 230px) * 16 / 9 + 40px); }
html.is-lite .vortex__meta { display: none; }

/* ======================================================================
   III · PRODUCTS
   ====================================================================== */
.products {
  --acc: var(--imperial);
  position: relative;
  background: var(--sole);
  color: var(--nero);
  padding-block: clamp(80px, 10vw, 140px) clamp(60px, 8vw, 110px);
  transition: background-color .6s;
}
.products::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 50% at 30% 50%, color-mix(in srgb, var(--acc) 35%, transparent), transparent 70%),
    repeating-conic-gradient(from 0deg at 30% 50%, rgba(255, 255, 255, .12) 0 6deg, transparent 6deg 18deg);
  transition: background .6s;
}
.prod-wrap { position: relative; padding-inline: var(--gutter); max-width: 1400px; margin-inline: auto; display: grid; gap: 28px; }
.prod-head .eyebrow { color: var(--imperial-deep); }
.prod-title { font-family: var(--f-display); font-weight: 900; font-size: clamp(64px, 10vw, 160px); line-height: .8; }
.prod-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 60px); align-items: center; }
.prod-stage {
  position: relative; aspect-ratio: 1; max-width: 100%;
  perspective: 1100px; touch-action: pan-y;
}
.prod-ring { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.prod-ring svg { width: 100%; height: 100%; overflow: visible; }
.prod-ring text { font-family: var(--f-roman); font-weight: 800; font-size: 19px; letter-spacing: 5px; fill: var(--nero); }
@keyframes spin { to { rotate: 360deg; } }
.prod-burst {
  position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle, var(--acc) 0 52%, transparent 53%);
  box-shadow: 0 0 0 10px var(--nero), 0 0 0 16px var(--acc);
  transition: background .6s, box-shadow .6s;
}
.prod-packs { position: absolute; inset: 0; transform-style: preserve-3d; }
.pack {
  position: absolute; left: 50%; top: 50%;
  width: 46%; aspect-ratio: 3 / 4; translate: -50% -50%;
  transform-style: preserve-3d;
}
.pack__face {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center; padding: 14px;
  background:
    repeating-linear-gradient(45deg, rgba(10, 7, 6, .05) 0 10px, transparent 10px 20px),
    var(--marmo);
  border: 3px dashed var(--nero);
  box-shadow: 0 40px 70px rgba(10, 7, 6, .45);
  backface-visibility: hidden;
}
.pack__face b { font-family: var(--f-display); font-weight: 900; font-size: clamp(22px, 3vw, 40px); line-height: .9; display: block; }
.pack__face small { font-family: var(--f-mono); font-size: 11px; line-height: 1.5; display: block; margin-top: 8px; color: #4b3b33; }
.pack__face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pack--real { width: 62%; aspect-ratio: 1; }
.pack--real .pack__face { padding: 0; background: none; border: 0; box-shadow: none; filter: drop-shadow(0 40px 50px rgba(10, 7, 6, .45)); }
.pack__back { transform: rotateY(180deg); background: var(--nero); color: var(--sole); border-color: var(--sole); }
.prod-arrows { position: absolute; inset: auto 0 4% 0; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.prod-arrows button {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--nero);
  background: var(--sole); color: var(--nero); font-size: 22px; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.prod-arrows button:hover { background: var(--nero); color: var(--sole); transform: scale(1.06); }

.prod-info { display: grid; gap: 16px; min-width: 0; }
.prod-info .k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--imperial-deep); }
.prod-info h3 { font-family: var(--f-display); font-weight: 900; font-size: clamp(48px, 6vw, 96px); line-height: .82; }
.prod-info .tag { font-weight: 700; font-stretch: 110%; font-size: 18px; }
.prod-info p.d { max-width: 44ch; color: #2b1f1a; }
.prod-info ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.prod-info li { display: flex; gap: 10px; align-items: baseline; font-weight: 600; }
.prod-info li::before { content: "✦"; color: var(--imperial); }
.prod-info .ph { font-family: var(--f-mono); font-size: 11px; color: #5a463c; border: 1px dashed currentColor; padding: 6px 10px; justify-self: start; }

.prod-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.prod-picker button {
  display: grid; gap: 4px; text-align: left; cursor: pointer;
  padding: 14px 16px; border: 2px solid var(--nero); background: transparent; color: var(--nero);
  transition: background .25s, color .25s, transform .25s;
}
.prod-picker button b { font-family: var(--f-display); font-weight: 900; font-size: 24px; line-height: 1; }
.prod-picker button span { font-family: var(--f-mono); font-size: 11px; }
.prod-picker button:hover { transform: translateY(-3px); }
.prod-picker button[aria-selected="true"] { background: var(--nero); color: var(--sole); }

@media (max-width: 860px) {
  .prod-main { grid-template-columns: 1fr; }
  .prod-stage { width: min(100%, 460px); justify-self: center; }
  .prod-picker { gap: 8px; }
  .prod-picker button { padding: 12px 10px; }
  .prod-picker button b { font-size: 20px; }
}

/* ======================================================================
   IV · EMPIRE / COMMUNITY
   ====================================================================== */
.empire {
  position: relative;
  background:
    radial-gradient(80% 50% at 80% 0%, rgba(200, 16, 46, .45), transparent 70%),
    linear-gradient(180deg, var(--nero), #1c0507 60%, var(--imperial-deep));
  padding-block: clamp(90px, 12vw, 160px) clamp(60px, 8vw, 100px);
}
.empire__wrap {
  padding-inline: var(--gutter); max-width: 1400px; margin-inline: auto;
  display: grid; gap: clamp(28px, 4vw, 48px);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "soc" "grid";
}
.empire__head { grid-area: head; display: grid; gap: 16px; }
.empire__title { font-family: var(--f-display); font-weight: 900; font-size: clamp(48px, 8vw, 132px); line-height: .84; }
.empire__title em { display: block; font-style: normal; color: var(--sole); }
.empire__lede { color: var(--muted); max-width: 52ch; font-size: 18px; }
.empire__socials { grid-area: soc; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.soc {
  position: relative; overflow: hidden;
  display: grid; gap: 6px; padding: 22px 24px; text-decoration: none;
  border: 2px solid var(--marmo);
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.soc::after { content: "↗"; position: absolute; right: 20px; top: 16px; font-size: 28px; transition: transform .3s var(--ease); }
.soc:hover { transform: translateY(-4px) rotate(-.6deg); background: var(--marmo); color: var(--nero); }
.soc:hover::after { transform: translate(4px, -4px); }
.soc .k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--oro); }
.soc:hover .k { color: var(--imperial); }
.soc b { font-family: var(--f-display); font-weight: 900; font-size: clamp(36px, 5vw, 72px); line-height: .9; }
.soc small { font-family: var(--f-mono); font-size: 12px; opacity: .8; }

.empire__grid { grid-area: grid; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-content: start; }
.ugc {
  position: relative; padding: 0; border: 0; background: none; cursor: pointer;
  aspect-ratio: 9 / 16; max-width: 100%;
  transition: transform .35s var(--ease);
}
.ugc:nth-child(4n+2) { translate: 0 28px; }
.ugc:nth-child(4n+4) { translate: 0 14px; }
.ugc img, .ugc video, .ugc iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 16px; background: var(--nero-2); }
.ugc { overflow: hidden; border-radius: 16px; cursor: auto; }
.ugc:hover { transform: scale(1.04) rotate(-1.2deg); z-index: 2; }
.ugc:nth-child(even):hover { transform: scale(1.04) rotate(1.2deg); }


@media (max-width: 960px) {
  .empire__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ugc:nth-child(4n+2), .ugc:nth-child(4n+4) { translate: none; }
  .ugc:nth-child(even) { translate: 0 22px; }
}
@media (max-width: 520px) {
  .empire__socials { grid-template-columns: 1fr; }
  /* one reel per row on phones, so each player is large enough to use */
  .empire__grid { grid-template-columns: minmax(0, 340px); justify-content: center; gap: 18px; }
  .ugc:nth-child(even) { translate: none; }
}

/* ---------- FOOTER ---------- */
.foot { background: var(--imperial-deep); padding: 40px var(--gutter) calc(96px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 22px; }
.foot__big { font-family: var(--f-display); font-weight: 900; font-size: clamp(44px, 9vw, 150px); line-height: .82; color: var(--marmo); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12px; color: rgba(241, 236, 228, .75); border-top: 1px solid var(--line); padding-top: 16px; }
.foot__spqr { font-family: var(--f-roman); font-weight: 800; letter-spacing: .28em; }

/* ---------- HUD / TOAST / CURSOR ---------- */
.hud {
  position: fixed; z-index: 40; left: var(--gutter); right: var(--gutter);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex; justify-content: space-between; align-items: center; pointer-events: none;
  opacity: 0; translate: 0 12px; transition: opacity .4s, translate .4s var(--ease);
}
.hud.is-on { opacity: 1; translate: 0 0; }
.hud__sec {
  margin-left: auto;
  font-size: 11px; color: var(--muted); letter-spacing: .12em;
  background: rgba(10, 7, 6, .72); border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px;
}
.hud__sec span { font-family: var(--f-roman); font-weight: 800; color: var(--marmo); }

.toast {
  position: fixed; z-index: 60; left: 50%; top: calc(var(--nav-h) + 14px + env(safe-area-inset-top, 0px));
  translate: -50% -20px; opacity: 0; pointer-events: none;
  background: var(--sole); color: var(--nero);
  font-family: var(--f-display); font-weight: 900; font-size: 22px; letter-spacing: .03em;
  padding: 12px 22px 9px; box-shadow: 6px 6px 0 var(--imperial);
  transition: opacity .3s, translate .4s var(--ease);
  white-space: nowrap;
}
.toast.is-on { opacity: 1; translate: -50% 0; }

.cursor { position: fixed; z-index: 70; left: 0; top: 0; pointer-events: none; display: none; }
.cursor i {
  position: absolute; width: 34px; height: 34px; translate: -50% -50%; border-radius: 50%;
  border: 1.5px solid var(--oro); transition: width .25s var(--ease), height .25s var(--ease), background .25s;
  mix-blend-mode: difference;
}
.cursor span {
  position: absolute; translate: -50% -50%; font-family: var(--f-mono); font-weight: 700; font-size: 10px;
  letter-spacing: .1em; color: var(--nero); opacity: 0; transition: opacity .2s;
}
.cursor.is-big i { width: 76px; height: 76px; background: var(--sole); border-color: var(--sole); mix-blend-mode: normal; }
.cursor.is-big span { opacity: 1; }
@media (pointer: fine) { html.has-cursor .cursor { display: block; } }

/* ---------- PLAYER ---------- */
.player {
  border: 0; padding: 0; background: transparent; color: var(--marmo);
  max-width: none; max-height: none; width: 100%; height: 100%;
}
.player::backdrop { background: rgba(5, 3, 3, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.player__inner {
  height: 100%; display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap;
  padding: 60px var(--gutter);
}
.player__media {
  height: min(78svh, 760px); aspect-ratio: 9 / 16; max-width: 100%;
  border-radius: 22px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 2px var(--oro-deep), 0 0 80px rgba(200, 16, 46, .5);
}
.player__media img, .player__media video, .player__media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.player__meta { display: grid; gap: 12px; max-width: 340px; min-width: 0; }
.player__meta .k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--oro); }
.player__meta h3 { font-family: var(--f-display); font-weight: 900; font-size: clamp(36px, 4vw, 56px); line-height: .9; }
.player__meta p { color: var(--muted); }
.player__meta code { color: var(--sole); }
.player__close {
  position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); right: var(--gutter);
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(10, 7, 6, .7); cursor: pointer; font-size: 18px;
}
@media (max-width: 700px) {
  .player__inner { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; padding-top: 76px; overflow-y: auto; }
  .player__media { height: auto; width: min(100%, 62svh * 9 / 16); }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track, .prod-ring, .screen__scan, .rec::before { animation: none; }
}
html.is-lite .marquee__track, html.is-lite .prod-ring { animation-duration: 90s; }
