/* Site do Projeto Genesis — mesma linguagem visual do site do CS-Nevinha (apps/game/src/landing), em ciano. */
:root {
  --bg: #05090c;
  --bg-2: #0a1216;
  --fg: #e9ece6;
  --dim: rgba(233, 236, 230, 0.56);
  --faint: rgba(233, 236, 230, 0.32);
  --line: rgba(233, 236, 230, 0.16);
  --accent: #59ffe6;
  --accent-hi: #b0fff4;
  --online: #6cff6c;
  --display: 'Saira Extra Condensed', 'Arial Narrow', sans-serif;
  --accent-face: 'Chakra Petch', system-ui, sans-serif;
  --ui: 'Barlow', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; -webkit-user-drag: none; user-select: none; }
a { color: inherit; text-decoration: none; }
p, h1, h2 { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }

.glyph { width: 28px; height: 28px; color: var(--accent); flex: none; }

/* Faint CRT scanlines over everything, the game-menu texture. */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px);
}

/* ---------- Intro guard (set by the inline head script, lifted by main.ts) ---------- */
.is-guard .hdr__inner,
.is-guard .corner .rise,
.is-guard .hint,
.is-guard .hero__title,
.is-guard .hud,
.is-guard .hero__cta { opacity: 0; }

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg);
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
#loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 10px; width: min(320px, 80vw); }
.loader__glyph { width: 44px; height: 44px; animation: spin 2.4s linear infinite; margin-bottom: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader__brand { font: 600 13px/1 var(--accent-face); letter-spacing: 0.6em; text-transform: uppercase; padding-left: 0.6em; }
.loader__sub { font: italic 500 15px/1 var(--accent-face); color: var(--dim); }
.loader__count { margin-top: 14px; font: 800 44px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--accent); }
.loader__bar { width: 100%; height: 1px; background: var(--line); }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 8px var(--accent); }

/* ---------- Fragment field ---------- */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }

/* ---------- Buttons (chamfered "pills") ---------- */
.btn {
  --cut: 10px;
  display: inline-flex; align-items: center; gap: 14px; height: 46px; padding: 0 6px 0 20px;
  font: 600 13px/1 var(--accent-face); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform 0.35s var(--ease), background-color 0.35s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--fg); }
.btn__arrow {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: transform 0.4s var(--ease);
}
.btn__arrow svg { width: 14px; height: 14px; }
.btn:hover .btn__arrow { transform: translateX(3px) rotate(-45deg); }
.btn:hover .btn__arrow:has(use[href='#arrow-down']) { transform: translateY(3px); }
.btn--light { background: var(--accent); color: var(--bg); }
.btn--light:hover { background: var(--accent-hi); }
.btn--light .btn__arrow { background: var(--bg); color: var(--accent); }
.btn--glass {
  background: rgba(233, 236, 230, 0.07); color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.btn--glass:hover { background: rgba(233, 236, 230, 0.12); }
.btn--glass .btn__arrow { background: var(--accent); color: var(--bg); }
.btn--mono { font: 500 12px/1 var(--mono); letter-spacing: 0.18em; }

/* ---------- Header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 60; transition: transform 0.5s var(--ease); }
.hdr.is-hidden { transform: translateY(-110%); }
.hdr__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 18px var(--gutter);
  background: linear-gradient(180deg, rgba(11, 13, 15, 0.7), rgba(11, 13, 15, 0));
}
.brand { display: flex; align-items: center; gap: 12px; justify-self: start; }
.brand__txt { display: grid; gap: 4px; font: 700 14px/1 var(--accent-face); letter-spacing: 0.42em; text-transform: uppercase; }
.brand__txt small { font: 400 10px/1 var(--mono); letter-spacing: 0.16em; color: var(--dim); }
.nav {
  --cut: 8px;
  display: flex; gap: 2px; padding: 5px;
  background: rgba(233, 236, 230, 0.06); box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.nav a {
  padding: 9px 16px; border-radius: 2px; font: 600 12px/1 var(--accent-face); letter-spacing: 0.14em; text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s;
}
.nav a i { font-style: italic; font-weight: 500; color: var(--accent); letter-spacing: 0; margin-right: 4px; text-transform: none; }
.nav a:hover { background: rgba(233, 236, 230, 0.1); }
.nav a:focus-visible { outline-offset: -2px; }
.hdr__actions { display: flex; align-items: center; gap: 22px; justify-self: end; }
.textlink {
  font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px;
  transition: color 0.3s, text-decoration-color 0.3s;
}
.textlink:hover { color: var(--fg); text-decoration-color: var(--accent); }
.status { display: none; }
@media (min-width: 1180px) {
  .hdr__inner { grid-template-columns: 1fr auto 1fr auto; }
  .status { display: flex; align-items: center; gap: 10px; justify-self: end; font: 400 10px/1.5 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
}
.status__dot { position: relative; width: 8px; height: 8px; background: var(--online); border-radius: 50%; box-shadow: 0 0 8px var(--online); }
.status__dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--online);
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* ---------- Shared type ---------- */
.mask { display: block; overflow: hidden; padding-bottom: 0.04em; }
.mask > span { display: block; }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 600 11px/1 var(--accent-face); letter-spacing: 0.32em; text-transform: uppercase; color: var(--dim); }
.eyebrow > span { display: inline-flex; align-items: center; gap: 12px; }
.rule { display: inline-block; width: 28px; height: 1px; background: var(--accent); }
.mono-eyebrow { font: 500 12px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 340vh; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__frame { --clip: inset(0% 0% 0% 0%); position: absolute; inset: 0; clip-path: var(--clip); will-change: clip-path; }
.hero__media { position: absolute; inset: 0; }
#hero-canvas { display: block; width: 100%; height: 100%; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 70% at 50% 50%, transparent 40%, rgba(11, 13, 15, 0.78) 100%),
    linear-gradient(180deg, rgba(11, 13, 15, 0.7) 0%, transparent 22%, transparent 62%, rgba(11, 13, 15, 0.92) 100%);
}
.hero__guides i { position: absolute; background: var(--line); transform: scale(0); }
.hero__guides .g-t, .hero__guides .g-b { left: 0; right: 0; height: 1px; }
.hero__guides .g-l, .hero__guides .g-r { top: 0; bottom: 0; width: 1px; }
.hero__guides .g-t { top: 15%; }
.hero__guides .g-b { bottom: 15%; }
.hero__guides .g-l { left: 27%; }
.hero__guides .g-r { right: 27%; }
.hero__brackets i { position: absolute; width: 22px; height: 22px; border: 0 solid var(--faint); pointer-events: none; }
.hero__brackets i:nth-child(1) { top: 84px; left: var(--gutter); border-width: 1px 0 0 1px; }
.hero__brackets i:nth-child(2) { top: 84px; right: var(--gutter); border-width: 1px 1px 0 0; }
.hero__brackets i:nth-child(3) { bottom: 24px; left: var(--gutter); border-width: 0 0 1px 1px; }
.hero__brackets i:nth-child(4) { bottom: 24px; right: var(--gutter); border-width: 0 1px 1px 0; }

.hero__title {
  position: absolute; left: 0; right: 0; top: 34%; translate: 0 -50%;
  display: grid; grid-template-columns: 1fr 22vw 1fr; align-items: end; padding: 0 var(--gutter);
  pointer-events: none; text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}
.hero__l { grid-column: 1; justify-self: end; font: 900 clamp(64px, 11vw, 210px)/0.82 var(--display); text-transform: uppercase; letter-spacing: 0.005em; }
.hero__r { grid-column: 3; justify-self: start; font: italic 600 clamp(44px, 7vw, 132px)/0.9 var(--accent-face); letter-spacing: -0.02em; }
.hero__r b { font-weight: inherit; color: var(--accent); }

.hud {
  position: absolute; right: var(--gutter); top: 58%; width: 210px;
  padding: 16px 16px 14px; background: rgba(11, 13, 15, 0.42); box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.hud__label { font: 500 10px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.hud__num { margin: 8px 0 12px; font: 800 64px/0.85 var(--display); font-variant-numeric: tabular-nums; color: var(--fg); }
.hud__num small { font-size: 0.42em; color: var(--accent); margin-left: 2px; }
.hud__bar { height: 3px; background: var(--line); }
.hud__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; box-shadow: 0 0 10px var(--accent); }
.hud__read { display: flex; justify-content: space-between; margin-top: 8px; font: 400 10px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.hud__read span:last-child { color: var(--accent); }

.hero__cta { position: absolute; left: 50%; bottom: 11%; translate: -50% 0; display: grid; justify-items: center; gap: 14px; }

.corner { position: absolute; bottom: 44px; }
.corner--l { left: var(--gutter); }
.corner--r { right: var(--gutter); text-align: right; }
.lede { margin-top: 14px; font: italic 500 clamp(18px, 1.6vw, 24px)/1.25 var(--accent-face); color: var(--fg); }
.corner__label { font: 500 10px/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); }
.corner__date { margin-top: 8px; font: italic 600 clamp(16px, 1.4vw, 20px)/1 var(--accent-face); }

.hint {
  position: absolute; left: 50%; bottom: 30px; translate: -50% 0; display: grid; justify-items: center; gap: 8px;
  font: 400 10px/1 var(--mono); letter-spacing: 0.3em; text-transform: uppercase; color: var(--dim); padding-left: 0.3em;
}
.hint i { position: relative; width: 1px; height: 34px; background: var(--line); overflow: hidden; }
.hint i::after {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--accent);
  animation: drip 1.8s var(--ease) infinite;
}
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* ---------- Loadout ---------- */
.loadout { position: relative; height: 300vh; }
.loadout__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 4vw;
  padding: 90px var(--gutter) 40px calc(var(--gutter) + 40px);
}
.rail { position: absolute; left: calc(var(--gutter) * 0.5); top: 18%; bottom: 18%; width: 1px; background: var(--line); }
.rail i {
  position: absolute; left: -3px; top: 0; width: 7px; height: 7px; background: var(--accent); rotate: 45deg;
  box-shadow: 0 0 12px var(--accent), 0 0 30px rgba(89, 255, 230, 0.5);
}
.loadout__copy { max-width: 560px; }
.eyebrow--row { justify-content: space-between; }
.figcount { font: italic 500 14px/1 var(--accent-face); letter-spacing: 0.02em; text-transform: none; color: var(--fg); }
.figcount span { color: var(--accent); font-variant-numeric: tabular-nums; }
.loadout__title { margin: 28px 0 26px; font: 900 clamp(56px, 7.4vw, 132px)/0.86 var(--display); text-transform: uppercase; }
.mask--accent { padding-left: 0.9em; }
.mask--accent > span { white-space: nowrap; font: italic 600 0.56em/1.25 var(--accent-face); text-transform: none; color: var(--accent); letter-spacing: -0.01em; }
.hair { border: 0; height: 1px; background: var(--line); margin: 0 0 22px; }
.sub { font: italic 500 clamp(18px, 1.5vw, 22px)/1.3 var(--accent-face); }
.body { margin: 12px 0 28px; color: var(--dim); max-width: 46ch; }

.loadout__visual { display: grid; justify-items: center; gap: 36px; }
.mosaic {
  --size: min(36vw, 62vh, 560px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  width: calc(var(--size) / 1.4142); aspect-ratio: 1; transform: rotate(45deg);
}
.tile {
  position: relative; padding: 0; border: 0; overflow: hidden; background: var(--bg-2); cursor: pointer;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.35s;
}
.tile img {
  width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  rotate: -45deg; scale: 1.5; filter: brightness(0.82) saturate(0.95);
  transition: scale 0.6s var(--ease), filter 0.4s;
}
.tile::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px var(--accent); opacity: 0; transition: opacity 0.3s; }
.tile:hover img, .tile:focus-visible img, .tile.is-hot img { scale: 1.62; filter: brightness(1.06) saturate(1.05); }
.tile:hover::after, .tile:focus-visible::after, .tile.is-hot::after { opacity: 1; }
.tile:focus-visible { outline: none; }
.captions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0; padding: 0; list-style: none;
  user-select: none;
}
.captions li {
  display: flex; align-items: baseline; gap: 8px; font: 600 11px/1 var(--accent-face); letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--faint); transition: color 0.4s; cursor: default;
}
.captions em { font: italic 500 14px/1 var(--accent-face); letter-spacing: 0; text-transform: none; }
.captions li.is-lit { color: var(--fg); }
.captions li.is-lit em, .captions li.is-hot em { color: var(--accent); }
.captions li.is-hot { color: var(--accent-hi); }

/* ---------- Briefing (manifesto) ---------- */
.brief { position: relative; height: 240vh; }
.brief__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center;
  gap: 28px; padding: 80px var(--gutter) 40px;
}
.manifesto { max-width: 1400px; font: 900 clamp(40px, 6.2vw, 116px)/0.92 var(--display); text-transform: uppercase; }
.manifesto em { font: italic 600 0.8em/1 var(--accent-face); text-transform: none; letter-spacing: -0.02em; }
.manifesto .w { opacity: 0.14; }

/* ---------- Finale ---------- */
.finale { position: relative; height: 260vh; }
.finale__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.finale__glow {
  position: absolute; inset: 0; opacity: 0;
  background:
    radial-gradient(ellipse 50% 45% at 50% 62%, rgba(89, 255, 230, 0.22), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(40, 90, 200, 0.22), transparent 70%);
}
.wordmark {
  position: absolute; left: 0; right: 0; top: 9vh; display: flex; justify-content: center;
  font: 900 min(27vw, 52vh)/0.8 var(--display); text-transform: uppercase; letter-spacing: 0.01em;
  color: var(--fg); white-space: nowrap;
}
.wordmark .ch { display: inline-block; overflow: hidden; padding-bottom: 0.02em; }
.wordmark .ch > span { display: inline-block; }
.finale__subject {
  position: absolute; left: 50%; bottom: -7vh; height: min(76vh, 118vw); width: auto; translate: -50% 0;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.7)); pointer-events: none;
}
.finale__cta {
  position: absolute; left: 0; right: 0; bottom: 6vh; display: grid; justify-items: center; gap: 14px; text-align: center;
}
.finale__pick { font: 600 11px/1 var(--accent-face); letter-spacing: 0.32em; text-transform: uppercase; color: var(--fg); text-shadow: 0 2px 10px #000; }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 236px)); gap: 12px; }
.platform {
  --cut: 12px;
  display: flex; align-items: center; gap: 14px; padding: 12px 10px 12px 18px;
  background: rgba(11, 13, 15, 0.55); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform 0.35s var(--ease), background-color 0.35s;
}
.platform:hover { transform: translateY(-2px); background: rgba(30, 33, 36, 0.7); }
.platform:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--fg); }
.platform__icon { width: 26px; height: 26px; flex: none; }
.platform__txt { display: grid; gap: 6px; flex: 1; text-align: left; }
.platform__txt b { font: 700 18px/1 var(--accent-face); letter-spacing: 0.08em; text-transform: uppercase; }
.platform__txt small { font: 400 10px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.platform .btn__arrow { background: var(--accent); color: var(--bg); }
.platform:hover .btn__arrow { transform: translateY(3px); }
/* The visitor's own OS is the lit, primary choice. */
.platform.is-mine { background: var(--accent); color: var(--bg); box-shadow: none; }
.platform.is-mine:hover { background: var(--accent-hi); }
.platform.is-mine small { color: rgba(11, 13, 15, 0.7); }
.platform.is-mine .btn__arrow { background: var(--bg); color: var(--accent); }
.finale__lines { font: 400 10px/1.7 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); text-shadow: 0 2px 10px #000; }

/* ---------- Footer ---------- */
.foot {
  position: relative; z-index: 41; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding: 28px var(--gutter); border-top: 1px solid var(--line); background: var(--bg);
  font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
}
.foot__concept { display: flex; align-items: center; gap: 12px; }
.foot__concept .glyph { width: 18px; height: 18px; }
.foot__links { display: flex; gap: 22px; }
.foot a { transition: color 0.3s; }
.foot a:hover { color: var(--accent); }
.foot__top { display: inline-flex; align-items: center; gap: 8px; }
.foot__top svg { width: 12px; height: 12px; rotate: 180deg; }

/* ---------- Analytics consent (src/landing/analytics.ts) ---------- */
.consent {
  --cut: 12px;
  position: fixed; left: 50%; translate: -50% 0; bottom: 20px; z-index: 70; display: flex; align-items: center; gap: 20px;
  max-width: min(620px, calc(100vw - 32px)); padding: 16px 16px 16px 20px;
  background: rgba(11, 13, 15, 0.82); box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.consent[hidden] { display: none; }
.consent__text { font-size: 14px; line-height: 1.45; color: var(--dim); }
.consent__kicker { display: block; margin-bottom: 4px; font: 600 10px/1 var(--accent-face); letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); }
.consent__actions { display: flex; gap: 8px; flex: none; }
.consent__btn {
  height: 38px; padding: 0 16px; border: 0; cursor: pointer; background: rgba(233, 236, 230, 0.08); color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line); font: 600 11px/1 var(--accent-face); letter-spacing: 0.16em; text-transform: uppercase;
  transition: background-color 0.3s;
}
.consent__btn:hover { background: rgba(233, 236, 230, 0.14); }
.consent__btn--accept { background: var(--accent); color: var(--bg); box-shadow: none; }
.consent__btn--accept:hover { background: var(--accent-hi); }
.foot__privacy {
  padding: 0; border: 0; background: none; cursor: pointer; color: inherit;
  font: inherit; letter-spacing: inherit; text-transform: inherit; transition: color 0.3s;
}
.foot__privacy:hover { color: var(--accent); }
@media (max-width: 820px) {
  .consent { left: 16px; right: 16px; translate: none; bottom: max(16px, env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; gap: 12px; }
  .consent__actions .consent__btn { flex: 1; }
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .nav { display: none; }
  .hdr__inner { grid-template-columns: 1fr auto; padding-top: max(14px, env(safe-area-inset-top)); }
  .brand__txt small { display: none; }
  .hdr .btn { height: 40px; padding-left: 14px; font-size: 12px; }
  .hdr .btn__arrow { width: 30px; height: 30px; }
  .hdr .textlink { display: none; }
  .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100vw - 32px); gap: 8px; }
  .platform { gap: 10px; padding: 10px 8px 10px 12px; }
  .platform__icon { width: 20px; height: 20px; }
  .platform__txt b { font-size: 14px; }
  .platform__txt small { font-size: 9px; letter-spacing: 0.08em; }
  .platform .btn__arrow { width: 28px; height: 28px; }
  .finale__lines { font-size: 9px; letter-spacing: 0.1em; }

  .hero__guides .g-t { top: 20%; }
  .hero__guides .g-b { bottom: 20%; }
  .hero__guides .g-l { left: 9%; }
  .hero__guides .g-r { right: 9%; }
  .hero__brackets i:nth-child(1), .hero__brackets i:nth-child(2) { top: 72px; }
  .hero__title { top: 21%; grid-template-columns: 1fr; justify-items: center; gap: 0; text-align: center; translate: none; }
  .hero__l, .hero__r { grid-column: 1; justify-self: center; }
  .hero__l { font-size: clamp(64px, 21vw, 120px); }
  .hero__r { font-size: clamp(40px, 12vw, 80px); }
  .hud { top: auto; bottom: 23%; right: 16px; width: 150px; padding: 12px; }
  .hud__num { font-size: 44px; margin: 6px 0 8px; }
  .hero__cta { bottom: 12%; }
  .corner { bottom: 28px; }
  .corner--r { display: none; }
  .hint { display: none; }

  .loadout__stage {
    grid-template-columns: 1fr; align-content: center; gap: 22px; padding: 70px 16px 16px 34px;
  }
  .rail { left: 14px; }
  .loadout__visual { order: -1; gap: 18px; }
  .mosaic { --size: min(64vw, 36vh); gap: 10px; }
  .captions { gap: 6px 14px; }
  .captions li { font-size: 9px; letter-spacing: 0.18em; }
  .captions em { font-size: 11px; }
  .loadout__title { margin: 14px 0 12px; font-size: clamp(40px, 12vw, 64px); }
  .hair { margin-bottom: 12px; }
  .sub { font-size: 16px; }
  .body { margin: 8px 0 16px; font-size: 14px; line-height: 1.45; }

  .wordmark { top: 26vh; top: 26svh; font-size: 28vw; }
  .finale__subject { height: 70vh; height: 70svh; bottom: -8vh; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 820px) and (max-height: 700px) {
  .loadout .body { display: none; }
}

/* ---------- Reduced motion: no scrubbed choreography, everything readable ---------- */
@media (prefers-reduced-motion: reduce) {
  .loader__glyph, .status__dot::after, .hint i::after { animation: none; }
  .hero { height: 260vh; }
  .loadout, .brief, .finale { height: auto; }
  .loadout__stage, .brief__stage, .finale__stage { position: relative; height: auto; min-height: 100vh; }
  .loadout__stage { padding-top: 120px; padding-bottom: 120px; }
  .captions li { color: var(--fg); }
  .manifesto .w, .manifesto { opacity: 1; }
  .manifesto em { color: var(--accent); }
  .finale__glow { opacity: 1; }
  .finale__stage { min-height: 100vh; }
}

/* ---------- Trailer ---------- */
.trailer { position: relative; z-index: 41; padding: 120px var(--gutter) 140px; background: var(--bg); }
.trailer__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; max-width: 1400px; margin: 0 auto 36px; }
.trailer__title { font: 900 clamp(48px, 6.4vw, 112px)/0.86 var(--display); text-transform: uppercase; margin-top: 18px; }
.trailer__title em { font: italic 600 0.56em/1 var(--accent-face); text-transform: none; color: var(--accent); letter-spacing: -0.01em; }
.trailer__note { max-width: 36ch; color: var(--dim); }
.player {
  --cut: 18px;
  position: relative; max-width: 1400px; margin: 0 auto; aspect-ratio: 16 / 9; background: #000;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: inset 0 0 0 1px var(--line);
}
.player video { display: block; width: 100%; height: 100%; object-fit: cover; }
.player__play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  background: radial-gradient(ellipse at center, rgba(5, 9, 12, 0.1), rgba(5, 9, 12, 0.6));
  transition: opacity 0.4s var(--ease);
}
.player__play[hidden] { display: none; }
.player__play span {
  display: inline-flex; align-items: center; gap: 14px; height: 58px; padding: 0 28px 0 24px;
  background: var(--accent); color: var(--bg); font: 700 14px/1 var(--accent-face); letter-spacing: 0.18em; text-transform: uppercase;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow: 0 0 40px rgba(89, 255, 230, 0.35); transition: transform 0.35s var(--ease);
}
.player__play:hover span { transform: scale(1.04); }
.player__icon { width: 16px; height: 16px; flex: none; }
.player__corners i { position: absolute; width: 22px; height: 22px; border: 0 solid var(--accent); pointer-events: none; z-index: 2; }
.player__corners i:nth-child(1) { top: -10px; left: -10px; border-width: 2px 0 0 2px; }
.player__corners i:nth-child(2) { top: -10px; right: -10px; border-width: 2px 2px 0 0; }
.player__corners i:nth-child(3) { bottom: -10px; left: -10px; border-width: 0 0 2px 2px; }
.player__corners i:nth-child(4) { bottom: -10px; right: -10px; border-width: 0 2px 2px 0; }
.player-wrap { position: relative; max-width: 1400px; margin: 0 auto; }
.trailer__meta { display: flex; justify-content: space-between; max-width: 1400px; margin: 14px auto 0; font: 400 10px/1.5 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 820px) {
  .trailer { padding: 80px 16px 90px; }
  .player-wrap { margin: 0 4px; }
}

/* Acentos em maiúsculas (Ú, Ç, Ã): a máscara da animação precisa de folga em cima. */
.hero__l .mask, .loadout__title .mask, .wordmark .ch { padding-top: 0.14em; margin-top: -0.14em; }
