/* sol147 PALLET BULL — forklift-amber warehouse.
   Palette law: AMBER IS GROUND-ONLY (never buttons, links, text, chips, focus rings).
   Ink is gantry blue-black. Strap green only on cartons / label paper. */

:root {
  --ground: #E29104;
  --ground-deep: #B87903;
  --ground-rec: #9A6403;
  --hairline: #7A4E04;
  --panel-amber: #F6C433;
  --ink: #14181F;
  --ink-2: #28303C;
  --carton: #A9743A;
  --carton-deep: #96652F;
  --label: #FAF6EC;
  --strap: #1B7A4A;
  --steel-1: #EDE6DA;
  --steel-2: #B5AC9C;
  --steel-3: #79736A;
  --steel-4: #47433C;
  --disp: 'Hammersmith One', 'Segoe UI', Arial, sans-serif;
  --body: 'Heebo', 'Segoe UI', Arial, sans-serif;
  --mono: 'Intel One Mono', Consolas, 'Courier New', monospace;
}

@font-face { font-family: 'Hammersmith One'; src: url('../assets/fonts/hammersmith-one.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Heebo'; src: url('../assets/fonts/heebo.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Intel One Mono'; src: url('../assets/fonts/intel-one-mono.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
html.rm { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 2px; }
a:hover { text-decoration-style: wavy; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.mono { font-family: var(--mono); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
::selection { background: var(--ink); color: var(--label); }

/* thin painted texture: faint floor-paint hairlines on the ground */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(122,78,4,.10) 119px 121px),
    repeating-linear-gradient(0deg, transparent 0 119px, rgba(122,78,4,.07) 119px 121px);
}

/* scrollbar + progress */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--ground-deep); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 2px solid var(--ground-deep); border-radius: 6px; }
#scrollbar-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 300; background: transparent; }
#scrollbar-progress i { display: block; height: 100%; width: 0; background: var(--ink); }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; gap: 18px;
  padding: 10px clamp(14px, 3vw, 34px);
  background: var(--ground);
  border-bottom: 3px solid var(--ink);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand b { font-family: var(--disp); font-size: 19px; letter-spacing: .02em; white-space: nowrap; }
.brand-scan { position: relative; display: inline-grid; border-radius: 6px; overflow: hidden; cursor: pointer; }
.brand-scan img { display: block; border-radius: 6px; }
.scanline { position: absolute; left: 0; right: 0; top: -20%; height: 3px; background: var(--label); opacity: 0; }
html:not(.rm) .brand-scan.scanning .scanline { animation: scanmove .9s linear forwards; }
@keyframes scanmove { 0% { top: -6%; opacity: .95; } 100% { top: 104%; opacity: .95; } }
.nav-links { display: flex; gap: 16px; margin-left: auto; }
.nav-links a { font-family: var(--disp); font-size: 14px; text-decoration: none; letter-spacing: .04em; }
.nav-links a:hover { text-decoration: underline; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.ca-pill {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0;
  max-width: min(34vw, 190px);
  border: 2px solid var(--ink); background: var(--label); color: var(--ink);
  font-family: var(--mono); font-size: 12px; padding: 6px 10px; border-radius: 999px; cursor: pointer;
}
.ca-pill .ca-k { font-weight: 700; }
.ca-pill .ca-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odo-chip {
  background: var(--ink); color: var(--label); font-family: var(--mono); font-size: 12px;
  padding: 7px 10px; border-radius: 4px; white-space: nowrap;
}
.odo-chip .odo-k { opacity: .7; }
.burger { display: none; background: var(--ink); border: 0; border-radius: 4px; width: 40px; height: 36px; padding: 8px 9px; cursor: pointer; }
.burger i { display: block; height: 3px; background: var(--label); margin: 3px 0; border-radius: 2px; }
.mobile-panel {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--ink); padding: 12px clamp(14px, 3vw, 34px) 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.mobile-panel a { color: var(--label); font-family: var(--disp); text-decoration: none; font-size: 16px; }

/* ============ HERO ============ */
.hero { padding: clamp(24px, 5vw, 64px) clamp(14px, 4vw, 44px) 40px; }
.hero-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 3.5vw, 48px); align-items: start; }
.kicker { font-size: 12px; letter-spacing: .14em; color: var(--ink-2); margin: 0 0 10px; }
.hero-lede { font-size: clamp(16px, 1.6vw, 19px); max-width: 56ch; }
.hero-note { font-size: 11.5px; letter-spacing: .08em; color: var(--ink-2); }

.stage { position: relative; height: clamp(190px, 24vw, 260px); margin: 6px 0 14px; touch-action: none; overflow: clip; }
.sq {
  position: absolute; border: 3px dashed var(--label); border-radius: 4px; opacity: .85;
}
.sq::after {
  content: "HOME"; position: absolute; right: 4px; bottom: 2px;
  font: 700 9px/1 var(--mono); color: var(--label); letter-spacing: .1em;
}
.carton {
  position: absolute; cursor: grab; user-select: none;
  font-family: var(--disp); color: var(--label);
  font-size: clamp(44px, 7vw, 84px); line-height: 1; padding: 10px 18px 12px;
  background: linear-gradient(175deg, var(--carton), var(--carton-deep));
  border: 3px solid var(--ink); border-radius: 6px;
  box-shadow: 0 8px 0 rgba(20, 24, 31, .3);
  text-shadow: 0 3px 0 rgba(20, 24, 31, .35);
}
.carton::before { /* tape */
  content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 26px;
  transform: translateX(-50%);
  background: rgba(250, 246, 236, .28); border-inline: 1px solid rgba(20,24,31,.25);
}
.carton:active { cursor: grabbing; }
.sticker {
  position: absolute; cursor: grab; user-select: none;
  background: var(--label); border: 2px solid var(--ink); border-radius: 4px;
  padding: 8px 14px; box-shadow: 0 5px 0 rgba(20,24,31,.3);
  font-size: clamp(15px, 1.8vw, 20px); font-weight: 700;
}
.sticker .mono { letter-spacing: .04em; }
.loose.dragging { z-index: 30; box-shadow: 0 16px 24px rgba(20,24,31,.35); }
.loose.carried { transition: none; }

.forks { position: absolute; z-index: 25; width: 120px; height: 74px; right: -140px; top: 30%; pointer-events: none; }
.forks .tine {
  position: absolute; left: 0; height: 12px; width: 104px; border-radius: 3px 6px 6px 3px;
  background: linear-gradient(180deg, var(--steel-1), var(--steel-2) 45%, var(--steel-3) 80%, var(--steel-4));
  border: 2px solid var(--ink);
}
.forks .t1 { top: 8px; }
.forks .t2 { bottom: 8px; }
.forks .mast {
  position: absolute; right: -6px; top: -6px; bottom: -6px; width: 16px; border-radius: 4px;
  background: linear-gradient(90deg, var(--ground-deep), var(--ground-rec));
  border: 2px solid var(--ink);
}
.intake-chip {
  position: absolute; left: 0; bottom: -6px; font-size: 11.5px; letter-spacing: .06em;
  background: var(--label); border: 2px solid var(--ink); border-radius: 3px; padding: 4px 8px;
  opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s;
}
.intake-chip.show { opacity: 1; transform: none; }

.label-chip {
  position: absolute; z-index: 28;
  background: var(--label); color: var(--ink);
  font: 600 10.5px/1.35 var(--mono); letter-spacing: .04em;
  border: 2px solid var(--ink); border-radius: 3px; padding: 4px 7px;
  box-shadow: 0 3px 0 rgba(20,24,31,.25);
  animation: chipzip .32s ease-out;
  max-width: 240px;
}
html.rm .label-chip { animation: none; }
@keyframes chipzip { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.hero-art { margin: 0; }
.hero-art img { border: 3px solid var(--ink); border-radius: 8px; display: block; }
.hero-art figcaption { font-size: 11px; letter-spacing: .08em; color: var(--ink-2); margin-top: 8px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--label); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 6px;
  font-family: var(--disp); font-size: 15px; letter-spacing: .04em;
  padding: 11px 18px; text-decoration: none; cursor: pointer;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--ink); }
.btn-primary { background: var(--ink); color: var(--label); }
.btn-primary:hover { background: var(--ink-2); }
.btn img { display: block; }
.btn-act { font-size: 14px; }

/* ============ MARQUEE — THE RACKING BEAM ============ */
.beam {
  position: relative; overflow: clip;
  background: linear-gradient(180deg, var(--ground-deep), var(--ground-rec));
  border-block: 3px solid var(--ink);
  padding: 14px 0 16px;
}
.beam-track { display: flex; gap: 46px; width: max-content; will-change: transform; align-items: flex-end; }
.beam-carton {
  position: relative; flex: none;
  background: linear-gradient(175deg, var(--carton), var(--carton-deep));
  border: 3px solid var(--ink); border-radius: 5px;
  padding: 12px 16px 14px; min-width: 150px;
  transform-origin: 50% 100%;
}
.beam-carton .bc-label {
  display: block; background: var(--label); border: 2px solid var(--ink); border-radius: 3px;
  font: 700 13px/1.25 var(--disp); letter-spacing: .05em; padding: 5px 9px;
  opacity: 0; transition: opacity .25s linear;
}
.beam-carton.true .bc-label { opacity: 1; }
.beam-carton .bc-strap { position: absolute; inset: -3px auto -3px 22%; width: 9px; background: var(--strap); border-inline: 2px solid var(--ink); }
.beam-carton .bc-glyph { position: absolute; right: 6px; bottom: 4px; font: 700 9px/1 var(--mono); color: rgba(20,24,31,.55); letter-spacing: .08em; }
.beam-carton.flipped { transform: rotate(180deg); }
.beam-carton.flipped .bc-arrow { position: absolute; left: 8px; top: 6px; font-size: 13px; color: rgba(20,24,31,.6); }
.beam-sep { flex: none; align-self: center; width: 54px; height: 44px; opacity: .9; }
.beam-sep svg { display: block; width: 100%; height: 100%; }
.beam-endplate {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  background: var(--steel-3); color: var(--steel-1);
  border-left: 3px solid var(--ink); padding: 8px 12px;
  font-size: 11px; letter-spacing: .1em;
}

/* ============ SECTIONS ============ */
.section { padding: clamp(44px, 7vw, 90px) clamp(14px, 4vw, 44px); }
.section > * { max-width: 1180px; margin-inline: auto; }
.section-deep { background: var(--ground-deep); border-block: 3px solid var(--ink); }
.section-ink { background: var(--ink); color: var(--label); }
.section-ink a { color: var(--label); }
.section-ink .kicker { color: #b8c0cf; }
.sec-head h2 { font-family: var(--disp); font-size: clamp(30px, 4.6vw, 52px); letter-spacing: .01em; margin: 0 0 10px; }
.sec-lede { max-width: 62ch; font-size: 16.5px; }

/* lore cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.card {
  background: linear-gradient(175deg, var(--carton), var(--carton-deep));
  border: 3px solid var(--ink); border-radius: 8px; padding: 18px 18px 8px;
  box-shadow: 0 7px 0 rgba(20, 24, 31, .28);
}
.card h3 { font-family: var(--disp); font-size: 21px; margin: 8px 0 8px; color: var(--label); text-shadow: 0 2px 0 rgba(20,24,31,.3); }
.card p { font-size: 15px; }
.card .card-no {
  display: inline-block; background: var(--label); border: 2px solid var(--ink); border-radius: 3px;
  padding: 3px 8px; font-size: 10.5px; letter-spacing: .12em; margin: 0;
}
.card > p:not(.card-no) { background: var(--label); border: 2px solid var(--ink); border-radius: 5px; padding: 10px 12px; }

.lore-props { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px; margin-top: 26px; align-items: stretch; }
.prop-air { position: relative; border: 0; background: none; cursor: pointer; }
.air-box {
  position: relative; height: 150px; border-radius: 6px;
  background: linear-gradient(175deg, var(--carton), var(--carton-deep));
  border: 3px solid var(--ink); overflow: visible;
}
.air-box .flap {
  position: absolute; top: 0; width: 50%; height: 34px; background: var(--carton-deep);
  border: 2px solid var(--ink); transform-origin: top center; transition: transform .5s ease;
}
.air-box .fl { left: 0; border-radius: 4px 0 0 0; }
.air-box .fr { right: 0; border-radius: 0 4px 0 0; }
.prop-air.open .fl { transform: rotateX(140deg) skewX(-4deg); }
.prop-air.open .fr { transform: rotateX(140deg) skewX(4deg); }
html.rm .air-box .flap { transition: none; }
.air-face { position: absolute; inset: 34px 0 0; display: grid; place-items: center; }
.air-label {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  background: var(--label); border: 2px solid var(--ink); border-radius: 3px;
  font-size: 10.5px; letter-spacing: .06em; padding: 4px 8px; white-space: nowrap; max-width: 96%;
  overflow: hidden; text-overflow: ellipsis;
}
.air-scale { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); display: flex; gap: 6px; align-items: center;
  background: var(--steel-2); border: 2px solid var(--ink); border-radius: 4px; padding: 3px 8px; font-size: 10px; }
.air-scale .needle { width: 22px; height: 3px; background: var(--ink); transform-origin: left center; }
html:not(.rm) .prop-air.weighing .needle { animation: needlejig .8s ease-out; }
@keyframes needlejig { 0% { transform: rotate(-38deg); } 55% { transform: rotate(9deg); } 100% { transform: rotate(0); } }

.prop-break {
  position: relative; border: 3px solid var(--ink); border-radius: 8px; background: var(--panel-amber);
  padding: 16px; min-height: 150px;
}
.break-sign { margin: 0 0 12px; font-size: 11px; letter-spacing: .1em; }
.sandwich { position: relative; width: 120px; height: 54px; margin: 6px auto 8px; }
.sandwich i { position: absolute; left: 0; right: 0; border: 2px solid var(--ink); border-radius: 10px; }
.sandwich .bread-top { top: 0; height: 20px; background: var(--carton); border-radius: 22px 22px 8px 8px; }
.sandwich .filling { top: 17px; height: 14px; background: var(--strap); border-radius: 4px; left: -5px; right: -5px; }
.sandwich .bread-bot { bottom: 0; height: 16px; background: var(--carton); }
.sandwich.gone { opacity: 0; transition: opacity .4s; }
.break-hint { text-align: center; font-size: 10.5px; letter-spacing: .1em; margin: 0; }

/* ============ GAME ============ */
.game-wrap { max-width: 1020px; }
.game-hud { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; letter-spacing: .06em; padding: 0 2px 8px; }
#gameCanvas {
  display: block; width: 100%; height: auto; aspect-ratio: 960 / 420;
  background: var(--ink); border: 3px solid var(--ink); border-radius: 8px;
}
#gameCanvas:focus-visible { outline-offset: 4px; }
.game-toast {
  margin-top: 10px; background: var(--label); border: 2px solid var(--ink); border-radius: 3px;
  padding: 8px 12px; font-size: 12.5px; letter-spacing: .04em; width: fit-content; max-width: 100%;
}
.game-controls { display: flex; gap: 16px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.dpad { display: grid; grid-template-columns: repeat(4, 46px); gap: 8px; }
.dpad button {
  height: 44px; border: 3px solid var(--ink); border-radius: 6px; background: var(--label);
  font-size: 16px; cursor: pointer; box-shadow: 0 4px 0 var(--ink); color: var(--ink);
}
.dpad button:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.joblist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.joblist li {
  background: var(--label); border: 2px solid var(--ink); border-radius: 3px;
  font-size: 11.5px; letter-spacing: .05em; padding: 7px 10px;
}
.joblist li.done { text-decoration: line-through; opacity: .6; }
.joblist li.now { outline: 3px solid var(--ink); }

/* ============ MANIFEST ============ */
.manifest { border: 2px solid var(--label); border-radius: 6px; overflow: hidden; margin-top: 26px; }
.mrow {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 14px;
  padding: 12px 16px; font-size: 13.5px; letter-spacing: .04em;
  border-bottom: 1px solid rgba(250, 246, 236, .25);
}
.mrow:first-child { background: rgba(250, 246, 236, .12); font-weight: 700; }
.mrow:last-child { border-bottom: 0; }
.mrow span:last-child { text-align: right; white-space: nowrap; }
.manifest-note { font-size: 11.5px; letter-spacing: .1em; opacity: .75; margin-top: 14px; }

/* ============ PROTOCOL ============ */
.proto { list-style: none; padding: 0; margin: 26px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; max-width: 1180px; }
.sheet {
  background: var(--label); border: 3px solid var(--ink); border-radius: 6px;
  padding: 18px; box-shadow: 0 7px 0 rgba(20, 24, 31, .25); position: relative;
}
.sheet::before { /* perforation strip */
  content: ""; position: absolute; top: 6px; left: 10px; right: 10px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px); opacity: .25;
}
.sheet h3 { font-family: var(--disp); margin: 8px 0; font-size: 20px; }
.sheet p { font-size: 15px; }
.step-k { font-size: 11px; letter-spacing: .12em; color: var(--ink-2); margin: 4px 0 0; }

/* ============ PICK LIST ============ */
.picks { list-style: none; padding: 0; margin: 26px auto 0; max-width: 900px; display: grid; gap: 14px; }
.pick {
  display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; align-items: start;
  background: var(--label); border: 3px solid var(--ink); border-radius: 6px; padding: 14px 16px;
}
.pick .tick {
  width: 34px; height: 34px; margin-top: 4px; border: 3px solid var(--ink); border-radius: 4px;
  background: var(--label); position: relative;
}
.pick .tick:not(.tick-open)::after {
  content: ""; position: absolute; inset: 4px;
  background: var(--strap);
  clip-path: polygon(14% 46%, 38% 68%, 86% 12%, 100% 26%, 40% 96%, 0 60%);
}
.pick-k { font-size: 11px; letter-spacing: .12em; color: var(--ink-2); margin: 0 0 4px; }
.pick p { margin: 0; font-size: 15.5px; }

/* ============ TELEMETRY ============ */
.tile { background: rgba(250, 246, 236, .07); border: 2px solid var(--label); border-radius: 6px; padding: 14px; }
.t-k { font-size: 10.5px; letter-spacing: .12em; opacity: .7; margin: 0 0 6px; }
.t-v { font-size: clamp(18px, 2.2vw, 26px); font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.t-status { grid-column: 1 / -1; font-size: 11.5px; letter-spacing: .08em; opacity: .8; margin: 4px 0 0; }

/* ============ COMMUNITY / FOOTER ============ */
.comm-lede { max-width: 58ch; }
.comm-ctas { margin-top: 20px; }
.footer { background: var(--ink); color: var(--label); padding: 40px clamp(14px, 4vw, 44px) 26px; border-top: 3px solid var(--ink); }
.footer > * { max-width: 1180px; margin-inline: auto; }
.dock { border: 2px dashed rgba(250, 246, 236, .5); border-radius: 8px; padding: 14px 16px 18px; margin-bottom: 26px; }
.dock-sign { font-size: 11px; letter-spacing: .14em; opacity: .8; margin: 0 0 10px; }
.dock-slot { min-height: 64px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dock-empty { font: 400 12px/1.5 var(--mono); opacity: .55; }
.wrapped-sandwich { position: relative; width: 120px; height: 54px; flex: none; cursor: pointer; border: 0; background: none; padding: 0; }
.wrapped-sandwich .sandwich { margin: 0; }
.wrapped-sandwich::after { /* shrink-wrap sheen */
  content: ""; position: absolute; inset: -6px; border-radius: 10px;
  background: linear-gradient(115deg, rgba(250,246,236,.28), rgba(250,246,236,.05) 45%, rgba(250,246,236,.3));
  border: 2px solid rgba(250, 246, 236, .55);
}
.dock-note { font: 600 10.5px/1.4 var(--mono); background: var(--label); color: var(--ink); border-radius: 3px; padding: 4px 7px; max-width: 300px; }
.foot-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-brand { font-family: var(--disp); font-size: 22px; margin: 0 0 4px; }
.foot-brand .mono { font-size: 14px; opacity: .8; }
.foot-odo { font-size: 12px; letter-spacing: .06em; opacity: .85; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { font-family: var(--disp); font-size: 15px; color: var(--label);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px;
  text-decoration-color: rgba(250,246,236,.45); }
.foot-links a:hover, .foot-links a:focus-visible { text-decoration-color: var(--label); }
/* any anchor inside a dark panel inherits the light text colour, never the ink default */
.footer a, .mobile-panel a { color: var(--label); }
.disclaimer { font-size: 10.5px; letter-spacing: .05em; line-height: 1.7; opacity: .6; margin-top: 26px; }

/* ============ REVEALS / MOTION ============ */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.rv.in { opacity: 1; transform: none; }
html.rm .rv { opacity: 1; transform: none; transition: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .odo-chip { display: none; }
  .lore-props { grid-template-columns: 1fr; }
  .mrow { grid-template-columns: 84px minmax(0, 1fr) auto; font-size: 12px; gap: 8px; }
  .ca-pill { max-width: min(38vw, 150px); }
  .stage { height: 210px; }
}
@media (max-width: 560px) {
  .ca-pill .ca-val { overflow-wrap: anywhere; white-space: normal; }
  .dpad { grid-template-columns: repeat(4, 42px); }
}

/* no-JS fallback: keep everything visible */
@media (prefers-reduced-motion: reduce) {
  html:not(.force) .rv { opacity: 1; transform: none; transition: none; }
}
