/* ============================================================
   WRECKANICS studio site · shared machine language
   Chassis is constant; each page may set --acc / --acc-dim.
   ============================================================ */

@font-face {
  font-family: "IBM Plex Sans Condensed";
  src: url("fonts/ibm-plex-sans-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --void: #05080a;
  --field: #0b1216;
  --plate: #141d22;
  --plate-hi: #1b262c;
  --edge: #405058;
  --steel: #8f9ea3;
  --steel-light: #e2eaeb;
  --ink: #010203;
  --text: #d7e0e2;
  --text-dim: #a8b6bb;
  --head: #eef5f6;
  --cyan: #63e2f5;
  --copper: #c96736;
  --copper-light: #ffa066;
  --amber: #ffa845;
  /* page accent: defaults to signal cyan, game pages may retune */
  --acc: #63e2f5;
  --acc-dim: rgba(99, 226, 245, .5);
  --acc-glow: rgba(99, 226, 245, .14);
  --sans: "IBM Plex Sans Condensed", "Arial Narrow", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* one fixed grain pass over everything, like the game's sealed field */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90;
  background: var(--noise); opacity: .028; pointer-events: none;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(99, 226, 245, .28); color: var(--head); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

/* machined scrollbar */
html { scrollbar-color: #2c3a41 #070d10; scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #070d10; border-left: 1px solid #010407; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #35434a, #223037);
  border: 2px solid #070d10;
}
::-webkit-scrollbar-thumb:hover { background: #405058; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- machined primitives ---------- */

/* countersunk screw; rotate the slot per instance with --r */
.sc {
  position: absolute; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #74848c, #2c3a41 55%, #101a21);
  box-shadow: 0 1px 2px rgba(0,0,0,.85), inset 0 1px 1px rgba(255,255,255,.22);
}
.sc::after {
  content: ""; position: absolute; left: 2px; right: 2px; top: 4.6px; height: 1.7px;
  background: #060d11; border-radius: 1px;
  box-shadow: 0 1px 0 rgba(255,255,255,.14);
  transform: rotate(var(--r, 0deg));
}
.sc.tl { top: 7px; left: 7px; } .sc.tr { top: 7px; right: 7px; }
.sc.bl { bottom: 7px; left: 7px; } .sc.br { bottom: 7px; right: 7px; }

.mplate {
  position: relative;
  background: linear-gradient(180deg, var(--plate-hi), var(--plate) 55%, #10181d);
  border: 1px solid #04080b;
  box-shadow:
    inset 0 1px 0 rgba(226,234,235,.10),
    inset 0 -3px 5px rgba(0,0,0,.5),
    0 14px 30px rgba(0,0,0,.55);
}
.mplate::before {
  content: ""; position: absolute; inset: 0;
  background: var(--noise); opacity: .05; pointer-events: none;
}
.cham { clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px); }

.stamp {
  font-family: var(--mono); font-size: 11px; letter-spacing: 3px;
  color: #7d8d94; text-shadow: 0 1px 0 rgba(1,2,3,.9);
}
.stamp a:hover { color: var(--acc); }

/* fine vent slots, used as plate detail */
.vents {
  position: absolute; width: 46px; height: 14px; opacity: .8; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(1,4,7,.85) 0 5px, transparent 5px 9px);
  box-shadow: 0 1px 0 rgba(226,234,235,.05);
}

/* ---------- nav rail ---------- */
header.rail {
  position: sticky; top: 0; z-index: 50;
  height: 60px;
  background: linear-gradient(180deg, #10181d, #0a1115 80%, #070d10);
  border-bottom: 1px solid #010407;
  box-shadow: inset 0 1px 0 rgba(226,234,235,.08), 0 6px 16px rgba(0,0,0,.5);
}
header.rail .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; position: relative; }
/* travel gauge: page position read out along the rail's lower edge */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    header.rail::after {
      content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
      background: linear-gradient(90deg, var(--acc), var(--acc));
      transform-origin: left; transform: scaleX(0);
      box-shadow: 0 0 8px var(--acc-glow);
      animation: travel linear both;
      animation-timeline: scroll();
    }
  }
}
@keyframes travel { from { transform: scaleX(0); } to { transform: scaleX(1); } }
header.rail .wrap > .sc { top: 24px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand img.mk { width: 32px; flex: none; align-self: center; filter: drop-shadow(0 2px 3px rgba(0,0,0,.7)); margin-right: 4px; }
.brand b {
  font-size: 18px; letter-spacing: 3px; color: var(--steel-light);
  text-shadow: 0 2px 1px rgba(1,2,3,.95);
}
.brand span { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; color: #5c6c73; }
nav { display: flex; gap: 26px; height: 100%; align-items: stretch; }
nav a {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 2px;
  color: var(--text-dim);
  padding: 0 2px;
  border-bottom: 2px solid transparent;
  transition: color .18s ease-out, border-color .18s ease-out;
}
/* leading tick: same index language as the footer catalog */
header.rail nav a::before {
  content: ""; flex: none; width: 6px; height: 1px; background: #3d4d55;
  transition: width .18s ease-out, background-color .18s ease-out;
}
nav a:hover { color: var(--acc); border-color: var(--acc-dim); }
header.rail nav a:hover::before { width: 13px; background: var(--acc); }
nav a[aria-current="page"] { color: var(--head); border-color: var(--edge); }
header.rail nav a[aria-current="page"]::before { width: 13px; background: var(--acc); }
.brand b { transition: color .18s ease-out; }
.brand:hover b { color: #fff; }

/* ---------- status lamp ---------- */
.lamp {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 2.5px;
  padding: 7px 12px;
  background: linear-gradient(180deg, #0d1519, #0a1013);
  border: 1px solid #030608;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.8), inset 0 -1px 0 rgba(226,234,235,.06);
  white-space: nowrap;
}
.lamp i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.lamp.live { color: var(--cyan); }
.lamp.live i {
  background: radial-gradient(circle at 35% 30%, #d9fdff, var(--cyan) 45%, #1a7a8c 90%);
  box-shadow: 0 0 10px rgba(99,226,245,.9), inset 0 -1px 2px rgba(0,40,50,.6);
  animation: lampon 1.1s ease-out 1;
}
.lamp.cold { color: var(--amber); }
.lamp.cold i {
  background: radial-gradient(circle at 35% 30%, #ffe8c4, var(--amber) 45%, #9c5a12 90%);
  box-shadow: 0 0 10px rgba(255,168,69,.7), inset 0 -1px 2px rgba(60,30,0,.6);
}
@keyframes lampon { 0% {opacity:.1} 30% {opacity:1} 45% {opacity:.35} 100% {opacity:1} }

/* ---------- store latch ---------- */
.store {
  position: relative;
  display: inline-flex; align-items: center; gap: 13px;
  padding: 13px 26px 13px 20px;
  background: linear-gradient(180deg, #26343c, #16212700 40%), linear-gradient(180deg, #1e2a31, #121b21 60%, #0e161b);
  border: 1px solid #04080b;
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
  box-shadow: inset 0 1px 0 rgba(226,234,235,.16), inset 0 -4px 6px rgba(0,0,0,.55);
  transition: transform .1s ease-out, box-shadow .18s ease-out, filter .18s ease-out;
}
.store::before, .store::after {
  content: ""; position: absolute; top: 8px; bottom: 8px; width: 5px;
  background: repeating-linear-gradient(-45deg, #3c4c54 0 3px, #101a20 3px 6px);
  opacity: .9;
}
.store::before { left: 6px; } .store::after { right: 6px; }
.store svg { width: 24px; height: 24px; fill: #d3dcde; filter: drop-shadow(0 1px 0 rgba(1,2,3,.9)); margin-left: 8px; flex: none; }
.store .lbl { text-align: left; }
.store .lbl small { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: 1.8px; color: #8299a1; }
.store .lbl b { display: block; font-size: 17px; letter-spacing: 1.6px; color: var(--head); text-shadow: 0 1px 0 rgba(1,2,3,.9); margin-top: 2px; }
.store:hover {
  filter: brightness(1.16);
  box-shadow: inset 0 1px 0 rgba(226,234,235,.16), inset 0 -4px 6px rgba(0,0,0,.55),
    0 0 0 1px var(--acc-dim), 0 0 18px var(--acc-glow);
}
.store:active { transform: translateY(1px); }
.store.sm { padding: 10px 20px 10px 14px; }
.store.sm svg { width: 20px; height: 20px; }
.store.sm .lbl b { font-size: 15px; }

.stores { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- sections ---------- */
section { position: relative; padding: 108px 0; }
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 54px; }
.sec-head h2 {
  font-size: clamp(30px, 4vw, 44px); letter-spacing: 3px; color: var(--steel-light);
  text-shadow: 0 2px 1px rgba(1,2,3,.95);
}
/* scribed rule with drawing ticks */
.sec-head .scribe {
  flex: 1; height: 7px; margin-bottom: 4px;
  background:
    repeating-linear-gradient(90deg, rgba(143,158,163,.4) 0 1px, transparent 1px 24px) 0 100% / 100% 4px no-repeat,
    linear-gradient(0deg, rgba(143,158,163,.35), rgba(143,158,163,.35)) 0 100% / 100% 1px no-repeat;
}

/* ---------- phone test rig ---------- */
.rig { position: relative; justify-self: center; width: min(320px, 82vw); }
.rig .arm {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 148px; height: 20px; z-index: 2;
  background: linear-gradient(180deg, #d98a52, #8a4423 55%, #5e2d16);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 100%, 0 100%);
  box-shadow: inset 0 1px 0 rgba(255,224,200,.45), 0 3px 6px rgba(0,0,0,.7);
}
.rig .arm.b { bottom: -12px; top: auto; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 8px 100%); }
.rig .arm.t { top: -12px; }
.rig .arm i {
  position: absolute; top: 50%; margin-top: -3.5px; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffcaa4, #7c3d1e 70%);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.6);
}
.rig .arm i.l { left: 12px; } .rig .arm i.r { right: 12px; }
.phone {
  position: relative;
  padding: 11px; border-radius: 30px;
  background: linear-gradient(160deg, #2b363c, #0d1418 60%);
  border: 1px solid #030608;
  box-shadow:
    inset 0 1px 0 rgba(226,234,235,.18),
    inset 0 -2px 4px rgba(0,0,0,.6),
    0 30px 60px rgba(0,0,0,.65);
  transition: box-shadow .18s ease-out;
}
a.rig { display: block; }
a.rig:hover .phone {
  box-shadow:
    inset 0 1px 0 rgba(226,234,235,.18),
    inset 0 -2px 4px rgba(0,0,0,.6),
    0 30px 60px rgba(0,0,0,.65),
    0 0 0 1px var(--acc-dim), 0 0 26px var(--acc-glow);
}
.phone .scr { position: relative; border-radius: 20px; overflow: hidden; background: var(--ink); }
.phone .scr img { width: 100%; }
.phone .scr::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,.075), transparent 28%);
  pointer-events: none;
}

/* ---------- shop papers: the legal documents ---------- */
.papers { padding: 84px 0 116px; }
.papers .wrap { max-width: 860px; }
.paperhead { margin-bottom: 44px; }
.paperhead h1 {
  font-size: clamp(32px, 5vw, 50px); letter-spacing: 3px; color: var(--steel-light);
  text-shadow: 0 2px 1px rgba(1,2,3,.95);
}
.paperhead .docid { margin-top: 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.paperhead .rulecal { margin-top: 24px; max-width: 420px; }
/* the sheet: one bolted plate holding every clause */
.sheet { padding: 14px 44px 20px; }
.sheet > .sc { z-index: 2; }
.clause { padding: 30px 0 32px; border-bottom: 1px solid #04080b; box-shadow: inset 0 -1px 0 rgba(226,234,235,.045); }
.clause:last-child { border-bottom: 0; box-shadow: none; }
.clause h2 { display: flex; align-items: baseline; gap: 16px; font-size: 15px; letter-spacing: 2.5px; color: #cdd7d9; text-shadow: 0 1px 0 rgba(1,2,3,.9); }
.clause h2 .cn { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: #5c6c73; }
.clause p { margin-top: 13px; font-size: 14.5px; line-height: 1.72; color: var(--text-dim); text-shadow: 0 1px 0 rgba(1,2,3,.8); }
.clause a { color: var(--acc); border-bottom: 1px solid var(--acc-dim); }
.clause ul { margin: 13px 0 0; padding-left: 2px; list-style: none; }
.clause li {
  position: relative; padding: 5px 0 5px 22px;
  font-size: 14.5px; line-height: 1.65; color: var(--text-dim); text-shadow: 0 1px 0 rgba(1,2,3,.8);
}
.clause li::before { content: ""; position: absolute; left: 0; top: 15px; width: 10px; height: 1px; background: #4a5a62; }
.papers .return { text-align: center; padding: 54px 0 0; }
/* the return latch (shared by the papers pages; dossier pages carry their own copy) */
.papers .latchlink {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 30px;
  background: linear-gradient(180deg, #22313a, #131c21);
  border: 1px solid #04080b;
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
  font-size: 16px; letter-spacing: 2.5px; color: var(--head);
  box-shadow: inset 0 1px 0 rgba(226,234,235,.12), inset 0 -4px 6px rgba(0,0,0,.5);
  transition: transform .1s ease-out, filter .18s ease-out, box-shadow .18s ease-out;
}
.papers .latchlink .tri {
  width: 0; height: 0; transform: rotate(180deg);
  border-left: 10px solid var(--acc);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  filter: drop-shadow(0 0 6px var(--acc-glow));
}
.papers .latchlink:hover { filter: brightness(1.16); box-shadow: inset 0 1px 0 rgba(226,234,235,.12), inset 0 -4px 6px rgba(0,0,0,.5), 0 0 0 1px var(--acc-dim), 0 0 18px var(--acc-glow); }
.papers .latchlink:active { transform: translateY(1px); }
@media (max-width: 620px) {
  .papers { padding: 56px 0 80px; }
  .sheet { padding: 6px 22px 10px; }
  .clause h2 { flex-direction: column; gap: 8px; }
}

/* ---------- footer: the shutdown plate ---------- */
footer.shop {
  position: relative;
  background: linear-gradient(180deg, #0e171c, #0a1114 58%, #070d10);
  border-top: 1px solid #010407;
  box-shadow: inset 0 1px 0 rgba(226,234,235,.09);
}
footer.shop::before {
  content: ""; position: absolute; inset: 0;
  background: var(--noise); opacity: .04; pointer-events: none;
}

/* the deck: four bolted cells, seams between them */
footer .deck {
  position: relative;
  display: grid; grid-template-columns: 1.5fr .9fr 1fr 1.25fr;
  padding: 62px 28px 48px;
}
footer .deck > .sc { top: 22px; }
footer .deck .vents { top: 24px; right: 26px; }
footer .fcell { padding-left: 28px; min-width: 0; }
footer .fcell + .fcell {
  border-left: 1px solid #04080b;
  box-shadow: inset 1px 0 0 rgba(226,234,235,.045);
}
footer .fcell:first-child { padding-left: 0; }
/* the footer's index columns are stacked lists, not the rail's inline nav */
footer nav.fcell { display: block; gap: 0; }
footer nav.fcell a { padding: 0; border-bottom: 0; }

/* identity cell */
footer .fbrand { display: flex; align-items: baseline; gap: 10px; flex-wrap: nowrap; white-space: nowrap; }
footer .fbrand img { width: 34px; flex: none; align-self: center; margin-right: 4px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.7)); }
footer .fbrand b { font-size: 17px; letter-spacing: 3px; color: var(--steel-light); text-shadow: 0 2px 1px rgba(1,2,3,.95); }
footer .fbrand span { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; color: #5c6c73; }
footer .fid p {
  margin-top: 16px; max-width: 34ch;
  font-size: 13.5px; line-height: 1.62; color: var(--text-dim);
  text-shadow: 0 1px 0 rgba(1,2,3,.8);
}
footer .fid .rulecal { margin-top: 20px; max-width: 300px; height: 9px; }

/* cell head: stamped label over a scribed rule */
footer .fcell h3 {
  font-family: var(--mono); font-weight: 700; font-size: 10px; letter-spacing: 3px;
  color: #7d8d94; text-shadow: 0 1px 0 rgba(1,2,3,.9);
}
footer .fcell h3::after {
  content: ""; display: block; margin-top: 10px; height: 5px;
  background:
    repeating-linear-gradient(90deg, rgba(143,158,163,.42) 0 1px, transparent 1px 16px) 0 100% / 100% 5px no-repeat,
    linear-gradient(90deg, rgba(143,158,163,.45), rgba(143,158,163,.1)) 0 100% / 100% 1px no-repeat;
}

/* index rows: leading tick that extends and lights on hover */
footer .findex { list-style: none; margin-top: 6px; }
footer .findex li {
  border-bottom: 1px solid #04080b;
  box-shadow: inset 0 -1px 0 rgba(226,234,235,.04);
}
footer .findex li:last-child { border-bottom: 0; box-shadow: none; }
footer .flink {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.2px;
  color: var(--text-dim); white-space: nowrap;
  transition: color .18s ease-out;
}
footer .flink::before {
  content: ""; flex: none; width: 7px; height: 1px; background: #3d4d55;
  transition: width .18s ease-out, background-color .18s ease-out;
}
footer .flink .u { margin-left: auto; font-size: 10px; letter-spacing: 2px; color: #5c6c73; transition: color .18s ease-out; }
footer a.flink:hover { color: var(--acc); }
footer a.flink:hover::before { width: 15px; background: var(--acc); }
footer a.flink:hover .u { color: var(--acc-dim); }
/* the unit you are standing in reads back lit, like its bay lamp */
footer .flink[aria-current="page"] { color: var(--head); }
footer .flink[aria-current="page"]::before { width: 15px; background: var(--acc); }
footer .flink[aria-current="page"] .u { color: var(--acc-dim); }
footer .flink.sealed { color: #55646a; }
footer .flink.sealed::before { background: #2a373d; }

/* dispatch cell */
footer .fdispatch .lamp { margin-top: 11px; }
footer .fdispatch .store { margin-top: 14px; width: 100%; }
footer .fdispatch .store .lbl b { font-size: 12.5px; letter-spacing: 1.1px; }
/* shop papers: the legal index under the dispatch latch */
footer .flegal { margin-top: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
footer .flegal a {
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.8px;
  color: #6f7f86; text-shadow: 0 1px 0 rgba(1,2,3,.9);
  transition: color .18s ease-out;
}
footer .flegal a:hover { color: var(--acc); }
footer .flegal a[aria-current="page"] { color: var(--head); }
footer .flegal i { width: 3px; height: 3px; border-radius: 50%; background: #3d4d55; }

/* the stamp bar: recessed strip along the bottom edge */
footer .stampbar {
  position: relative;
  border-top: 1px solid #04080b;
  box-shadow: inset 0 1px 0 rgba(226,234,235,.05);
  background: linear-gradient(180deg, rgba(3,7,10,.45), rgba(3,7,10,.9));
}
footer .stampbar .wrap {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding-top: 18px; padding-bottom: 18px;
}
footer .stampbar .sc { top: 21px; }
footer .stampbar .mark { color: #63727a; }
footer a.totop { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; margin: -8px -12px; transition: color .18s ease-out; }
footer a.totop .tri {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-bottom: 6px solid currentColor;
}
footer a.totop:hover { color: var(--acc); }

/* below the full width the identity takes its own row and the cells regroup */
@media (max-width: 1120px) {
  footer .deck { grid-template-columns: 1fr 1fr 1.15fr; gap: 40px 0; padding: 54px 28px 42px; }
  footer .fcell.fid { grid-column: 1 / -1; padding-left: 0; }
  footer .fcell.fcat { border-left: 0; padding-left: 0; box-shadow: none; }
}
@media (max-width: 860px) {
  footer .deck { grid-template-columns: 1fr 1fr; }
  footer .fcell.fdispatch { grid-column: 1 / -1; border-left: 0; padding-left: 0; box-shadow: none; padding-top: 8px; }
  footer .fdispatch .store { max-width: 340px; }
}
@media (max-width: 620px) {
  footer .deck { grid-template-columns: 1fr; gap: 34px; padding: 44px 20px 34px; }
  footer .fcell { padding-left: 0; border-left: 0; box-shadow: none; }
  footer .fcell + .fcell {
    border-left: 0; border-top: 1px solid #04080b;
    box-shadow: inset 0 1px 0 rgba(226,234,235,.045);
    padding-top: 30px;
  }
  footer .fcell.fdispatch { padding-top: 30px; }
  footer .deck .vents { display: none; }
  /* coarse input: index rows and the top latch get full-thumb targets */
  footer .flink { padding: 15px 0; font-size: 12px; }
  footer .stampbar .wrap { flex-direction: column; justify-content: center; text-align: center; gap: 13px; }
  footer .stampbar .sc { display: none; }
  footer a.totop {
    margin: 2px 0 0; padding: 13px 22px; min-height: 44px;
    border: 1px solid #04080b;
    background: linear-gradient(180deg, #101a1f, #0b1216);
    box-shadow: inset 0 1px 0 rgba(226,234,235,.07);
  }
}

/* ---------- reveal: drawer slide, damped, no bounce ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .lamp i { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive base ---------- */
@media (max-width: 900px) {
  section { padding: 76px 0; }
}
@media (max-width: 700px) {
  header.rail nav a::before { display: none; }
  /* Phone headers keep the complete linked identity accessible while showing
     only the Wreckanics mark, leaving the navigation room to breathe. */
  header.rail .brand b,
  header.rail .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  header.rail .brand { align-items: center; gap: 0; }
}
@media (max-width: 520px) {
  .brand b { font-size: 15px; letter-spacing: 2px; }
  .brand span { display: none; }
  .brand img.mk { width: 26px; margin-right: 2px; }
  nav { gap: 16px; }
  nav a { font-size: 11px; letter-spacing: 1px; }
  .stores { flex-direction: column; align-items: stretch; }
  .store { justify-content: center; }
  .wrap { padding: 0 20px; }
}
/* shared calibration rule for identity blocks */
.rulecal {
  margin-top: 26px; height: 11px; max-width: 480px;
  background:
    repeating-linear-gradient(90deg, rgba(143,158,163,.55) 0 1px, transparent 1px 40px) 0 0 / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, rgba(143,158,163,.35) 0 1px, transparent 1px 8px) 0 4px / 100% 6px no-repeat,
    linear-gradient(0deg, rgba(143,158,163,.5), rgba(143,158,163,.5)) 0 100% / 100% 1px no-repeat;
}
