/* Callum's Garage. Gritty indoors, open and bright outdoors. */
:root {
  --ch: #1E2124; --ch2: #25292D; --ch3: #2F3438; --ch4: #3A4045;
  --vis: #F4C430; --vis-dk: #D6A615; --teal: #2E7D74; --teal-dk: #22605A;
  --cream: #F1EAD8; --cream-dk: #E3D9BF; --euc: #8FA98A; --euc-dk: #5E7A5B; --sky: #7FB3D5; --red: #D2452B;
  --ink: #17191B;
  --f-sign: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --f-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-stencil: 'Big Shoulders Stencil', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --gut: clamp(16px, 4.6vw, 56px);
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .13 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --stampmask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 2.6 -0.12'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --blocks: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='80'><g fill='none' stroke-width='2'><path d='M0 1H160M0 41H160M1 0V40M81 0V40M41 40V80M121 40V80' stroke='rgba(0,0,0,.38)'/><path d='M0 3H160M0 43H160' stroke='rgba(255,255,255,.05)'/></g></svg>");
  --hazard: repeating-linear-gradient(-45deg, var(--vis) 0 14px, var(--ch) 14px 28px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.reduced { scroll-behavior: auto; }
body {
  margin: 0; background: var(--ch); color: var(--cream);
  font-family: var(--f-body); font-size: 17px; line-height: 1.55;
  overflow-x: hidden; -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--vis); outline-offset: 3px; border-radius: 4px; }
svg :focus-visible { outline: none; }
svg [tabindex]:focus-visible .nut-hex, svg [tabindex]:focus-visible > rect:first-child { stroke: var(--vis); stroke-width: 3; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--vis); color: var(--ink); padding: 10px 14px; font-family: var(--f-sign); font-weight: 700; text-transform: uppercase; border-radius: 6px; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border-radius: 8px; border: 0; cursor: pointer;
  font-family: var(--f-sign); font-weight: 800; font-size: 19px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:active { transform: translateY(2px); }
.btn-vis { background: var(--vis); color: var(--ink); box-shadow: 0 4px 0 var(--vis-dk), 0 8px 18px rgba(0,0,0,.3); }
.btn-vis:active { box-shadow: 0 2px 0 var(--vis-dk); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }

/* ---------- HUD ---------- */
.hud {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; pointer-events: none;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left));
}
.hud-btn {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 0 14px 0 11px; border-radius: 999px; border: 2px solid var(--vis);
  background: rgba(22, 24, 26, 0.88); color: var(--cream); text-decoration: none; cursor: pointer;
  font-family: var(--f-sign); font-weight: 700; font-size: 16px; letter-spacing: 0.05em; text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0,0,0,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hud-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--vis); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hud-sound { padding: 0 11px; }
.hud-sound .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hud-sound .cross { display: none; }
.hud-sound.is-off .cross { display: block; }
.hud-sound.is-off .waves { display: none; }
.hud-sound.is-off { border-color: #6B7378; }
.hud-sound.is-off svg { stroke: #9AA2A6; }

/* =====================================================
   THE GARAGE (hero)
   ===================================================== */
.garage {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  background-color: #3B3F42; background-image: var(--noise), var(--blocks), linear-gradient(#45494C, #34383B);
  background-size: 180px 180px, 80px 40px, auto;
  padding-top: max(60px, calc(env(safe-area-inset-top) + 54px));
  overflow: hidden;
}
.facade { padding: 4px var(--gut) 10px; display: flex; justify-content: center; }
.sign-board {
  position: relative; display: inline-block; text-align: center;
  background: var(--vis); color: var(--ink); padding: 8px 22px 7px; border-radius: 4px;
  box-shadow: 0 3px 0 var(--vis-dk), 0 14px 30px rgba(0,0,0,.4);
  background-image: var(--grain), linear-gradient(175deg, #FBD447, var(--vis) 50%, #EDBE26);
  background-size: 180px, auto; transform: rotate(-0.6deg);
}
.sign-board .bolt { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #EDEFF0, #6D757A 70%); }
.bolt.b1 { top: 6px; left: 7px; } .bolt.b2 { top: 6px; right: 7px; } .bolt.b3 { bottom: 6px; left: 7px; } .bolt.b4 { bottom: 6px; right: 7px; }
.sign-title {
  margin: 0; font-family: var(--f-sign); font-weight: 900; text-transform: uppercase;
  font-size: clamp(36px, 11.6vw, 96px); line-height: 0.95; letter-spacing: 0.01em; white-space: nowrap;
}
.sign-sub { margin: 3px 0 0; font-family: var(--f-sign); font-weight: 700; font-size: min(3.05vw, 18px); letter-spacing: 0.07em; text-transform: uppercase; line-height: 1.3; display: flex; flex-wrap: wrap; justify-content: center; column-gap: 0.45em; white-space: nowrap; }
.sign-sub > span { white-space: nowrap; }
.sign-sub > span + span:not(.est)::before { content: '\00B7'; margin-right: 0.45em; }
.sign-sub .est { flex-basis: 100%; font-weight: 600; letter-spacing: 0.2em; opacity: 0.75; font-size: 0.85em; }
.sign-sub .est::before { content: none !important; }

.opening {
  position: relative; flex: 1 1 auto; min-height: 470px;
  margin: 0 12px; border: 10px solid #191B1D; border-bottom: 0;
  box-shadow: inset 0 0 0 2px #0E0F10, 0 0 0 3px #4D5256;
  overflow: hidden; isolation: isolate;
}

/* inside the workshop */
.inside {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, #50555A 0, #4A4F53 54%, var(--teal-dk) 54%, #1F5550 78%, transparent 78%), var(--ch);
}
.inside::before { /* blockwork on the back wall */
  content: ''; position: absolute; inset: 0 0 22% 0; background-image: var(--blocks), var(--noise); background-size: 80px 40px, 180px; opacity: 0.8;
}
.inside::after { /* the yellow safety line where wall meets floor */
  content: ''; position: absolute; left: 0; right: 0; bottom: 22%; height: 6px; background: var(--vis); opacity: 0.75;
}
.floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 22.4%;
  background:
    radial-gradient(ellipse 30% 22% at 30% 62%, rgba(8,8,8,.55), transparent 70%),
    radial-gradient(ellipse 14% 12% at 72% 80%, rgba(8,8,8,.5), transparent 70%),
    var(--noise),
    linear-gradient(#6A6C6B, #8A8B87);
  background-size: auto, auto, 180px, auto;
}
.ceiling { position: absolute; top: 0; left: 0; right: 0; height: 22px; background: #1B1D1F; z-index: 2; display: flex; justify-content: space-around; align-items: flex-end; }
.fluoro { position: relative; width: 34%; height: 9px; background: #6A6F72; border-radius: 5px; transform: translateY(6px); }
.fluoro i { position: absolute; inset: 2px 6px; border-radius: 3px; background: #9EA4A6; }
.lit .fluoro i { background: #FDFDF6; box-shadow: 0 0 14px 4px rgba(255,255,240,.85), 0 0 60px 20px rgba(240,245,230,.25); }
.back-wall { position: absolute; inset: 22px 0 22% 0; }
.wall-shelf { position: absolute; display: none; }

.truck-bay { position: absolute; left: 50%; bottom: 1.5%; width: min(92%, 430px, calc((100svh - 330px) * 0.86)); transform: translateX(-50%); z-index: 1; }
.truck-rear { position: relative; }
.truck-rear .truck-svg { width: 100%; height: auto; overflow: visible; }
.truck-rear .t-body { transform-box: view-box; transform-origin: 200px 300px; }
.truck-rear .t-aerial { transform-box: view-box; transform-origin: 352px 40px; animation: aerial 3.8s ease-in-out infinite; }
@keyframes aerial { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.6deg); } }
.sticker-btn {
  position: absolute; left: 15%; width: 70%; top: 80.5%; height: 10%;
  border: 0; background: transparent; cursor: pointer; border-radius: 4px; padding: 0;
}
.stamps { position: absolute; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none; }
.stamp {
  position: absolute; font-family: var(--f-stencil); font-weight: 900; text-transform: uppercase; white-space: nowrap;
  color: var(--red); border: 3px solid currentColor; border-radius: 6px; padding: 1px 8px 0; line-height: 1.05;
  font-size: clamp(17px, 5.2vw, 28px); letter-spacing: 0.04em; background: rgba(250,246,234,.5);
  -webkit-mask-image: var(--stampmask); mask-image: var(--stampmask); -webkit-mask-size: 120px; mask-size: 120px;
  animation: stamp-in 0.28s cubic-bezier(.2,.9,.3,1.3) both;
}
.stamp.teal { color: var(--teal-dk); }
@keyframes stamp-in { from { transform: translate(-50%, -50%) scale(2.4) rotate(var(--r)); opacity: 0; } to { transform: translate(-50%, -50%) scale(1) rotate(var(--r)); opacity: 0.92; } }
.inside-hint {
  position: absolute; z-index: 3; left: 50%; bottom: 23%; transform: translateX(-50%);
  margin: 0; font-family: var(--f-sign); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 15px;
  color: var(--ink); background: var(--cream); padding: 5px 11px 4px; border-radius: 4px; white-space: nowrap; box-shadow: 0 6px 14px rgba(0,0,0,.35);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.inside-hint::after { content: ''; position: absolute; left: 50%; top: 100%; border: 7px solid transparent; border-top-color: var(--cream); transform: translateX(-50%); }
.inside-hint.show { opacity: 1; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, -4px); } }
.dark {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 70%, rgba(4,5,6,.86), rgba(4,5,6,.97));
  transition: opacity 0.12s;
}
.lit .dark { opacity: 0; transition: opacity 0.5s; }
.inside.lit::before { opacity: 0.9; }
.inside .vignette { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(ellipse 80% 70% at 50% 60%, transparent 55%, rgba(0,0,0,.45)); }

/* the days-without board */
.days-board {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%) rotate(0.8deg);
  width: min(78%, 300px); background: #F6F2E6; color: var(--ink); border-radius: 4px; overflow: hidden;
  box-shadow: 0 2px 0 #C9C1AA, 0 10px 22px rgba(0,0,0,.4); text-align: center; cursor: pointer;
  border: 0; padding: 0; display: block; font: inherit;
}
.db-head { background: #1F7A4A; color: #fff; font-family: var(--f-sign); font-weight: 800; letter-spacing: 0.14em; font-size: 12px; padding: 3px 0 2px; text-transform: uppercase; }
.db-body { padding: 5px 10px 5px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; text-align: left; }
.db-top, .db-unit { font-family: var(--f-sign); font-weight: 700; text-transform: uppercase; line-height: 1.02; }
.db-top { font-size: 12px; letter-spacing: 0.06em; opacity: 0.75; }
.db-unit { font-size: clamp(17px, 5vw, 22px); letter-spacing: 0.01em; }
.db-num { position: relative; width: 44px; height: 50px; perspective: 300px; }
.db-card {
  position: absolute; inset: 0; background: #1E2124; color: var(--vis); border-radius: 4px;
  font-family: var(--f-sign); font-weight: 900; font-size: 44px; line-height: 50px; text-align: center;
  box-shadow: inset 0 -25px 0 rgba(255,255,255,.04), inset 0 -26px 0 -25px rgba(0,0,0,.6);
  backface-visibility: hidden; transform-origin: 50% 50%;
}
.db-card.flip { animation: flip 0.32s ease-in-out; }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
.db-num::before, .db-num::after { content: ''; position: absolute; top: -5px; width: 6px; height: 10px; border-radius: 3px; background: #9AA2A6; z-index: 2; }
.db-num::before { left: 10px; } .db-num::after { right: 10px; }
.db-foot { font-family: var(--f-sign); font-weight: 600; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; border-top: 1px dashed #C9C1AA; padding: 2px 0 3px; opacity: 0.8; }
.db-quip { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 6px); white-space: nowrap; background: var(--vis); color: var(--ink); font-family: var(--f-sign); font-weight: 700; font-size: 14px; padding: 2px 8px; border-radius: 3px; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.db-quip.show { opacity: 1; }

/* the roller door */
.door-roll { position: absolute; top: 0; left: 0; right: 0; height: 18px; z-index: 6; background: linear-gradient(#0E0F10, #26292C 60%, #111213); box-shadow: 0 3px 8px rgba(0,0,0,.6); }
.door {
  position: absolute; inset: 0; z-index: 5; touch-action: none; cursor: grab;
  background:
    linear-gradient(90deg, rgba(0,0,0,.35), transparent 10%, transparent 90%, rgba(0,0,0,.35)),
    linear-gradient(to top, rgba(60,44,28,.55), rgba(60,44,28,.0) 18%),
    var(--noise),
    repeating-linear-gradient(to bottom, #3F978C 0 2px, #2E7D74 2px 9px, #215F58 9px 12px, #2A746B 12px 16px);
  background-size: auto, auto, 180px, auto;
  will-change: transform;
}
.door.dragging { cursor: grabbing; }
.door.rolling { transition: transform 1.05s cubic-bezier(.55,.05,.25,1); }
.door.gone { visibility: hidden; }
.door::after { /* bottom rail and rubber seal */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: linear-gradient(#A9B0B4, #6B7276 40%, #1A1B1C 70%);
}
.caution {
  position: absolute; left: 50%; top: 22%; transform: translateX(-50%) rotate(-1.2deg);
  width: min(80%, 340px); background: #FBFAF4; color: var(--ink); border-radius: 5px; overflow: hidden;
  box-shadow: 0 2px 0 rgba(0,0,0,.2), 0 14px 26px rgba(0,0,0,.35); border: 4px solid #FBFAF4;
}
.caution::before, .caution::after { content: ''; position: absolute; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: #8B9399; z-index: 2; }
.caution::before { left: 4px; } .caution::after { right: 4px; }
.caution-head { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--vis); padding: 6px 10px 4px; border-radius: 2px 2px 0 0; }
.caution-head svg { width: 38px; height: 34px; }
.caution-head span { font-family: var(--f-sign); font-weight: 900; font-size: clamp(30px, 9vw, 46px); line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; }
.caution-body { margin: 0; padding: 10px 12px 12px; text-align: center; font-family: var(--f-sign); font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 9.6vw, 50px); line-height: 0.95; letter-spacing: 0.01em; }
.door-note {
  position: absolute; left: 7%; top: 5.5%; width: 150px; transform: rotate(-4deg);
  background: #FFF6B8; color: var(--ink); padding: 12px 10px 10px; text-decoration: none;
  font-family: var(--f-sign); font-weight: 700; font-size: 17px; line-height: 1.1; box-shadow: 0 8px 14px rgba(0,0,0,.3);
}
.door-note::before { content: ''; position: absolute; left: 50%; top: -8px; width: 54px; height: 16px; transform: translateX(-50%) rotate(3deg); background: rgba(244,196,48,.75); }
.door-note span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.door-handle {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; padding: 8px 16px;
}
.handle-bar { width: 110px; height: 22px; border-radius: 6px; background: linear-gradient(#E9ECEE, #8C9499 60%, #5C6368); box-shadow: 0 4px 0 #2B2F32, 0 8px 14px rgba(0,0,0,.4); }
.handle-label {
  white-space: nowrap; font-family: var(--f-sign); font-weight: 800; font-size: 18px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--ch); color: var(--vis); padding: 6px 14px 5px; border-radius: 5px; display: inline-flex; align-items: center; gap: 6px;
}
.handle-label::before { content: ''; width: 0; height: 0; border: 7px solid transparent; border-bottom: 10px solid var(--vis); border-top: 0; }
.door-handle .handle-label { animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-6px); } 90% { transform: translateY(0); } }
.apron {
  position: relative; height: 22px; margin: 0 12px;
  background: var(--noise), linear-gradient(#77797A, #5C5E5F); background-size: 180px, auto; border-top: 3px solid #2A2C2E;
}
.apron .stain { position: absolute; border-radius: 50%; background: radial-gradient(rgba(10,10,10,.5), transparent 70%); }
.stain.s1 { left: 40%; top: 4px; width: 90px; height: 22px; } .stain.s2 { left: 70%; top: 10px; width: 40px; height: 14px; }

/* =====================================================
   BAYS (shared)
   ===================================================== */
.bay {
  position: relative; padding: 76px var(--gut) 72px;
  background-color: var(--ch); background-image: var(--noise); background-size: 180px;
}
.bay-wall { background-image: var(--noise), var(--blocks), linear-gradient(#25282B, #1E2124 70%); background-size: 180px, 80px 40px, auto; }
.bay::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 12px; background: var(--hazard); opacity: 0.9; }
.bay-head { max-width: 1120px; margin: 0 auto 30px; position: relative; }
.bay-no {
  margin: 0 0 6px; display: inline-block; font-family: var(--f-stencil); font-weight: 900; font-size: 18px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); background: var(--vis); padding: 2px 10px 1px; border-radius: 2px;
}
.bay-head h2 {
  margin: 0; font-family: var(--f-sign); font-weight: 900; text-transform: uppercase; color: var(--cream);
  font-size: clamp(44px, 13vw, 88px); line-height: 0.9; letter-spacing: 0.005em;
}
.bay-lede { margin: 10px 0 0; max-width: 40ch; color: #CFC8B4; font-size: 17px; }
.bay-head-out h2 { color: var(--ink); }
.bay-head-out .bay-lede { color: #2F3A3C; }
.stencil-label { margin: 0 0 10px; font-family: var(--f-stencil); font-weight: 900; font-size: 20px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--vis); }
.stencil-label span { font-family: var(--f-sign); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; color: #A8A28F; margin-left: 6px; }

/* =====================================================
   BAY 01: the wall
   ===================================================== */
.wall-grid { max-width: 1120px; margin: 0 auto; display: grid; gap: 40px; }
.pegboard { margin: 0; }
.peg-svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 12px 18px rgba(0,0,0,.4)); }
.peg-svg .tool { cursor: grab; touch-action: none; }
.peg-svg .tool-ghost { opacity: 0.3; }
.peg-svg .tool-ghost * { fill: #F6EEDC !important; stroke: #F6EEDC !important; stroke-width: 5px !important; stroke-linejoin: round; }

/* radio */
.radio-wrap { position: relative; }
.radio-wrap > .stencil-label { margin-bottom: 30px; }
.radio-wrap::after { content: ''; display: block; height: 16px; margin: 0 -10px; border-radius: 3px; background: linear-gradient(#B98A57, #8A6440 60%, #5E4127); box-shadow: 0 10px 18px rgba(0,0,0,.4); }
.radio { margin-bottom: 0; }
.radio { position: relative; max-width: 440px; margin: 0 auto; padding: 46px 16px 0; }
.radio-cage { position: absolute; inset: 0 0 auto 0; width: 100%; height: auto; z-index: 2; pointer-events: none; overflow: visible; }
.radio-body {
  position: relative; z-index: 1; border-radius: 14px; padding: 14px; display: grid; grid-template-columns: 34% 1fr; gap: 12px;
  background: var(--noise), linear-gradient(#34393E, #1E2225); background-size: 180px, auto;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 18px 30px rgba(0,0,0,.45);
}
.radio-speaker {
  position: relative; aspect-ratio: 1; border-radius: 50%; align-self: center;
  background: radial-gradient(circle, #0D0F10 1.4px, transparent 1.6px) 0 0/7px 7px, radial-gradient(circle at 50% 45%, #2C3135, #15181A 70%);
  box-shadow: inset 0 0 0 5px #121416, inset 0 0 0 7px #3B4146;
}
.radio-speaker .cone { position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle, #3D4449, #14171A); transition: transform 0.05s; }
.radio-face { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.radio-dial { position: relative; height: 42px; border-radius: 5px; background: linear-gradient(#EDE6CF, #D7CDAE); overflow: hidden; color: var(--ink); }
.radio-dial .scale { position: absolute; left: 6px; right: 6px; top: 4px; height: 14px;
  background: repeating-linear-gradient(90deg, #1E2124 0 1.5px, transparent 1.5px 9.6px); opacity: 0.55; }
.radio-dial .nums { position: absolute; left: 6px; right: 6px; bottom: 3px; display: flex; justify-content: space-between; font-family: var(--f-sign); font-weight: 700; font-size: 12px; }
.radio-dial .fm { position: absolute; right: 6px; top: 2px; font-family: var(--f-sign); font-weight: 800; font-size: 10px; color: var(--teal-dk); }
.radio-dial .needle { position: absolute; top: 0; bottom: 0; width: 3px; left: 8%; background: var(--red); box-shadow: 0 0 6px rgba(210,69,43,.6); transition: left 0.5s cubic-bezier(.3,1.3,.5,1); }
.radio-lcd {
  height: 30px; border-radius: 4px; background: #1A2420; color: #9FE0B4; overflow: hidden; position: relative;
  font-family: var(--f-sign); font-weight: 700; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 30px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.6); text-shadow: 0 0 6px rgba(120,230,160,.45);
}
.radio-lcd .marquee { position: absolute; white-space: nowrap; left: 8px; }
.radio-lcd.scrolling .marquee { left: 0; padding-left: 100%; animation: marquee 9s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
.radio-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px 6px; }
.preset {
  position: relative; height: 46px; border: 0; border-radius: 5px; cursor: pointer; padding: 3px 0 0;
  background: linear-gradient(#EEF0F1, #A9B0B4); color: var(--ink); box-shadow: 0 5px 0 #4B5257, 0 7px 10px rgba(0,0,0,.35);
  font-family: var(--f-sign); font-weight: 900; font-size: 20px; line-height: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transition: transform 0.08s, box-shadow 0.08s;
}
.preset small { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.75; }
.preset[aria-pressed="true"] { transform: translateY(4px); box-shadow: 0 1px 0 #4B5257, 0 2px 4px rgba(0,0,0,.35); background: linear-gradient(var(--vis), #E0AE1E); }
.radio-caption { margin: 14px 0 0; text-align: center; font-family: var(--f-sign); font-weight: 600; font-size: 16px; letter-spacing: 0.06em; color: #BDB7A3; text-transform: uppercase; }
.radio-caption b { color: var(--vis); font-weight: 800; }

/* tool chest */
.toolbox { max-width: 380px; width: 100%; margin: 0 auto; }
.chest { position: relative; padding: 0 6px; }
.chest-top { height: 30px; border-radius: 10px 10px 2px 2px; background: linear-gradient(#3B958A, var(--teal) 60%, var(--teal-dk)); position: relative; box-shadow: inset 0 2px 0 rgba(255,255,255,.2); }
.chest-top::after { content: ''; position: absolute; left: 50%; top: -9px; width: 90px; height: 12px; transform: translateX(-50%); border: 4px solid #B9C0C4; border-bottom: 0; border-radius: 6px 6px 0 0; }
.chest-drawers { background: var(--teal-dk); padding: 6px; display: flex; flex-direction: column; gap: 6px; border-radius: 0 0 4px 4px; box-shadow: 0 16px 26px rgba(0,0,0,.45); }
.drawer { position: relative; }
.drawer-front {
  width: 100%; min-height: 58px; border: 0; border-radius: 3px; cursor: pointer; position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px;
  background: linear-gradient(#3A9488, var(--teal) 55%, #286F67); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -2px 0 rgba(0,0,0,.25);
  transition: transform 0.22s cubic-bezier(.3,1.4,.5,1);
}
.drawer.open .drawer-front { transform: translateY(4px); }
.dymo {
  font-family: 'Courier New', monospace; font-weight: 700; font-size: 15px; letter-spacing: 0.18em; color: #fff;
  background: #121416; padding: 3px 8px 2px; border-radius: 2px; text-shadow: 0 1px 0 #000, 0 -1px 0 rgba(255,255,255,.35);
}
.drawer:nth-child(4) .dymo { background: var(--red); }
.pull { width: 44%; height: 12px; border-radius: 6px; background: linear-gradient(#F0F2F3, #8D959A); box-shadow: 0 3px 4px rgba(0,0,0,.35); }
.drawer-inside { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s ease; }
.drawer.open .drawer-inside { grid-template-rows: 1fr; }
.drawer-inside > div { overflow: hidden; }
.tray { margin: 0 4px; padding: 10px; background: #161819; border-radius: 0 0 4px 4px; box-shadow: inset 0 6px 10px rgba(0,0,0,.6); }
.tray svg { width: 100%; height: auto; }
.tray-note { margin: 6px 2px 0; font-family: var(--f-sign); font-weight: 600; font-size: 16px; color: var(--cream); letter-spacing: 0.02em; }
.chest-base { display: flex; justify-content: space-between; padding: 0 16px; }
.chest-base span { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, #6D757A 25%, #1A1C1E 30%); margin-top: -2px; }

/* =====================================================
   BAY 02: service
   ===================================================== */
.service-grid { max-width: 1120px; margin: 0 auto; display: grid; gap: 28px; }
.job-card { background: #2A2E32; border-radius: 12px; padding: 12px; box-shadow: 0 18px 34px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06); }
.job-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.job-tab {
  border: 0; cursor: pointer; border-radius: 7px; padding: 8px 4px 7px; min-height: 54px;
  background: #1C1F22; color: #A8A28F; text-align: left;
  font-family: var(--f-sign); font-weight: 800; text-transform: uppercase; font-size: 15px; line-height: 1.05; letter-spacing: 0.03em;
  display: flex; flex-direction: column; gap: 2px; padding-left: 10px;
}
.job-tab .no { font-family: var(--f-stencil); font-size: 13px; color: #6B7378; }
.job-tab[aria-selected="true"] { background: var(--cream); color: var(--ink); }
.job-tab[aria-selected="true"] .no { color: var(--teal); }
.job-tab.done .no::after { content: ' \2713'; color: var(--teal); font-family: var(--f-sign); }
.job-tab.done:not([aria-selected="true"]) { color: var(--euc); }
.job-stage { position: relative; border-radius: 8px; overflow: hidden; background: #121416; touch-action: none; user-select: none; -webkit-user-select: none; }
.job-pane { display: none; position: relative; }
.job-pane.active { display: block; }
.job-svg { width: 100%; height: auto; }
.wheel-svg { background: radial-gradient(circle, #2B2F33, #121416 70%); }
.wheel-svg .nut { cursor: pointer; }
.wheel-svg .nut-hex { transition: transform 0.25s; }
.wheel-svg .nut.loose .nut-hex { transform: translate(1.5px, 1.5px) rotate(18deg) scale(1.08); }
.wheel-svg .nut.loose .nut-seat { fill: #0A0B0C; }
.wheel-svg .nut-mark { stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset 0.3s ease-out; }
.wheel-svg .nut.tight .nut-mark { stroke-dashoffset: 0; }
.wheel-svg .nut.loose .nut-hex { animation: wobble 1.6s ease-in-out infinite; }
.wheel-svg .nut.loose:nth-child(2n) .nut-hex { animation-delay: -0.6s; }
@keyframes wobble { 0%, 100% { transform: translate(1.5px, 1.5px) rotate(18deg) scale(1.08); } 50% { transform: translate(1.5px, 1.5px) rotate(12deg) scale(1.08); } }
.job-action { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; pointer-events: none; }
.job-action .btn { pointer-events: auto; }
.hold-btn { position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.job-status { margin: 10px 4px 2px; min-height: 2.6em; font-family: var(--f-sign); font-weight: 600; font-size: 18px; letter-spacing: 0.02em; color: var(--cream); }
.job-status b { color: var(--vis); }
.batt-svg .clamp { cursor: grab; }
.batt-svg .clamp.dragging { cursor: grabbing; }
.oil-svg .oil-jug { transition: transform 0.3s ease; }

/* logbook */
.logbook {
  position: relative; color: var(--ink); border-radius: 6px 10px 10px 6px; padding: 22px 18px 20px 30px;
  background:
    linear-gradient(90deg, transparent 22px, rgba(210,69,43,.35) 22px 24px, transparent 24px),
    repeating-linear-gradient(transparent 0 31px, rgba(46,125,116,.22) 31px 32px),
    var(--grain), #F5EFDD;
  background-size: auto, auto, 180px, auto;
  box-shadow: -6px 0 0 #2E7D74, 0 18px 34px rgba(0,0,0,.45);
}
.logbook-head h3 { margin: 0; font-family: var(--f-sign); font-weight: 900; font-size: 30px; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; }
.logbook-head p { margin: 4px 0 14px; font-family: var(--f-sign); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: #5A5F5C; }
.log-entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.log-entry { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; min-height: 64px; border-bottom: 1.5px dashed rgba(30,33,36,.25); padding-bottom: 12px; }
.log-entry .le-line { font-family: var(--f-sign); font-weight: 700; font-size: 19px; line-height: 1.15; }
.log-entry .le-meta { font-family: var(--f-sign); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #6A6E6B; }
.log-entry .le-empty { color: #8A836D; font-style: italic; font-family: var(--f-body); font-weight: 400; font-size: 15px; }
.log-entry .le-stamp {
  position: absolute; z-index: 2; right: 62px; bottom: 6px; font-family: var(--f-stencil); font-weight: 900; font-size: 22px; color: var(--teal);
  border: 3px solid currentColor; border-radius: 5px; padding: 0 6px; transform: rotate(-8deg); opacity: 0;
  -webkit-mask-image: var(--stampmask); mask-image: var(--stampmask); -webkit-mask-size: 120px; mask-size: 120px;
}
.log-entry.done .le-stamp { animation: stamp-log 0.3s cubic-bezier(.2,.9,.3,1.3) forwards; }
@keyframes stamp-log { from { transform: scale(2.2) rotate(-8deg); opacity: 0; } to { transform: scale(1) rotate(-8deg); opacity: 0.9; } }
.le-photo {
  grid-row: 1 / span 3; grid-column: 2; width: 92px; align-self: start; background: #fff; padding: 5px 5px 16px; border: 0; cursor: pointer;
  box-shadow: 0 6px 12px rgba(0,0,0,.25); transform: rotate(3deg); position: relative;
}
.le-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.le-photo::before { content: ''; position: absolute; left: 50%; top: -7px; width: 46px; height: 14px; transform: translateX(-50%) rotate(-4deg); background: rgba(244,196,48,.8); }
.le-photo.locked { background: rgba(30,33,36,.06); border: 2px dashed rgba(30,33,36,.2); box-shadow: none; display: grid; place-items: center; aspect-ratio: 1; padding: 4px; cursor: default; transform: rotate(2deg); }
.le-photo.locked::before { display: none; }
.le-photo.locked span { font-family: var(--f-sign); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #8A836D; text-align: center; padding: 6px; }
.le-photo.reveal { animation: photo-in 0.5s cubic-bezier(.2,.9,.3,1.2); }
@keyframes photo-in { from { transform: translateY(-30px) rotate(-12deg) scale(0.6); opacity: 0; } }
.log-final[hidden] { display: none; }
.log-final { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stamp-final {
  font-family: var(--f-stencil); font-weight: 900; font-size: 30px; text-transform: uppercase; color: var(--red);
  border: 4px solid currentColor; border-radius: 6px; padding: 0 10px; transform: rotate(-6deg);
  -webkit-mask-image: var(--stampmask); mask-image: var(--stampmask); -webkit-mask-size: 120px; mask-size: 120px;
  animation: stamp-log 0.32s cubic-bezier(.2,.9,.3,1.3);
}

/* =====================================================
   BAY 03: ignition
   ===================================================== */
.ign-stage { max-width: 1120px; margin: 0 auto; display: grid; gap: 12px; }
.ign-truck {
  position: relative; border-radius: 12px; overflow: hidden; padding: 0 6% 0;
  background: linear-gradient(transparent 76%, #5E605F 76%, #7A7B78), radial-gradient(ellipse 70% 60% at 50% 40%, #4A4F53, #2A2E31);
}
.ign-truck .truck-rear { max-width: min(380px, 62vw); margin: -4% auto 0; }
.smoke { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.truck-rear.running .t-tail { fill: #E0503A; filter: drop-shadow(0 0 6px rgba(255,80,50,.9)); }
.truck-rear.braking .t-hmsl { fill: #FF5A3A; filter: drop-shadow(0 0 5px rgba(255,80,50,.9)); }
.dash {
  border-radius: 14px; padding: 14px;
  background: radial-gradient(circle, rgba(255,255,255,.035) 1px, transparent 1.3px) 0 0/5px 5px, linear-gradient(#2A2E32, #1A1D1F);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.06), 0 18px 34px rgba(0,0,0,.45);
}
.cluster-svg { width: 100%; max-width: 440px; margin: 0 auto; height: auto; }
@media (max-width: 719px) { .cluster-svg { max-width: 320px; } .dash { padding: 10px 12px 8px; } .key { width: 112px; } .pedal { width: 90px; } .ign-status { font-size: 17px; margin-top: 4px; } }
.cluster-svg .lamp { color: #2C3236; transition: color 0.08s; }
.cluster-svg .lamp.on { color: #FF9E2C; filter: drop-shadow(0 0 4px rgba(255,160,40,.9)); }
.cluster-svg .lamp-batt.on, .cluster-svg .lamp-oil.on, .cluster-svg .lamp-brake.on { color: #FF4B33; filter: drop-shadow(0 0 4px rgba(255,70,50,.9)); }
.cluster-svg .lamp-4wd.on { color: #57E08B; filter: drop-shadow(0 0 4px rgba(80,230,140,.8)); }
.cluster-svg.powered .odo { fill: #A9D69A; }
.dash-controls { display: flex; align-items: flex-end; justify-content: space-around; gap: 10px; margin-top: 4px; }
.key, .pedal { border: 0; background: none; padding: 0; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.key { width: 150px; }
.key-svg { width: 100%; height: auto; overflow: visible; }
.key-svg .kp.on { fill: var(--vis); }
.pedal { width: 116px; }
.pedal-svg { width: 100%; height: auto; overflow: visible; }
.pedal .pedal-pad { transform-box: fill-box; transform-origin: 50% 0; transition: transform 0.08s; }
.pedal.down .pedal-pad { transform: perspective(200px) rotateX(24deg) translateY(4px); }
.ign-status { margin: 10px 0 0; text-align: center; min-height: 2.6em; font-family: var(--f-sign); font-weight: 700; font-size: 19px; letter-spacing: 0.02em; color: var(--cream); }
.ign-status .fix { margin-left: 6px; }
.ign-status button { font-family: var(--f-sign); }

/* =====================================================
   THE DRIVE
   ===================================================== */
.drive {
  position: relative; padding-top: 70px;
  background: linear-gradient(#5E9BC6, #8FC0DE 50%, #B9D7E6);
}
.drive::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 12px; background: var(--hazard); }
.drive .bay-head { padding: 0 var(--gut); }
.drive-stage {
  position: relative; height: clamp(470px, 84svh, 700px); overflow: hidden; touch-action: pan-y;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: pointer;
  background: #A9CDE2;
}
.drive-canvas, .drive-fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.drive-fx { pointer-events: none; z-index: 3; }
.drive-world { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.drive-truck { position: absolute; left: 0; top: 0; z-index: 2; width: 200px; pointer-events: none; will-change: transform; }
.drive-truck .truck-side { width: 100%; height: auto; overflow: visible; }
.drive-truck .ts-body, .drive-truck .ts-wheel .spin { will-change: transform; }
.drive-hud {
  position: absolute; z-index: 4; top: 64px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; pointer-events: none;
}
.hud-gauge { background: rgba(22,24,26,.82); border-radius: 10px; padding: 6px 10px 5px; color: var(--cream); font-family: var(--f-sign); text-transform: uppercase; box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.hud-gauge .big { font-weight: 900; font-size: 30px; line-height: 1; color: var(--vis); font-variant-numeric: tabular-nums; }
.hud-gauge .unit { font-weight: 700; font-size: 12px; letter-spacing: 0.1em; opacity: 0.75; margin-left: 3px; }
.hud-gauge .row { display: flex; align-items: baseline; gap: 10px; }
.hud-gauge .gear { font-weight: 900; font-size: 22px; color: var(--cream); }
.hud-gauge .bar { margin-top: 5px; height: 5px; border-radius: 3px; background: #3A4045; overflow: hidden; width: 120px; }
.hud-gauge .bar i { display: block; height: 100%; width: 0; background: var(--euc); }
.hud-gauge .bar i.red { background: var(--red); }
.hud-trip { text-align: right; }
.hud-trip .sign { font-weight: 800; font-size: 13px; letter-spacing: 0.1em; color: #fff; background: #6B4A2B; padding: 2px 7px; border-radius: 3px; display: inline-block; }
.hud-trip .big { font-size: 26px; }
.drive-horn {
  position: absolute; z-index: 5; left: 14px; bottom: 16px; width: 64px; height: 64px; border-radius: 50%; border: 3px solid #0E0F10; cursor: pointer;
  background: radial-gradient(circle at 40% 35%, #4A5157, #1E2124 70%); color: var(--vis);
  font-family: var(--f-sign); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 6px 14px rgba(0,0,0,.4);
}
.drive-horn:active { transform: scale(0.94); }
.pedal-drive { position: absolute; z-index: 5; right: 12px; bottom: 8px; width: 104px; }
.pedal-drive .pedal-svg { filter: drop-shadow(0 8px 12px rgba(0,0,0,.45)); }
.drive-hint {
  position: absolute; z-index: 4; left: 50%; top: 40%; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font-family: var(--f-sign); font-weight: 800; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--ch); color: var(--vis); padding: 7px 14px 6px; border-radius: 6px; box-shadow: 0 8px 16px rgba(0,0,0,.3);
  transition: opacity 0.4s;
}
.drive-hint.hide { opacity: 0; }

/* roadside signs */
.rs { position: absolute; left: 0; top: 0; transform-origin: 0 0; visibility: hidden; will-change: transform; }
.rs-inner { display: flex; flex-direction: column; align-items: center; transform-origin: 50% 100%; }
.rs.pop .rs-inner { animation: plant 0.55s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes plant { from { transform: scaleY(0.15) rotate(-5deg); } }
.rs-post { display: block; width: 7px; flex: none; background: linear-gradient(90deg, #8C949A, #D7DCDF 50%, #7B8389); border-radius: 2px 2px 0 0; }
.rs-post.wood { width: 10px; background: linear-gradient(90deg, #5E4127, #9B7347 50%, #5E4127); }
.rs-post-pair { display: flex; gap: 120px; }
.rs-board { position: relative; flex: none; font-family: var(--f-sign); text-transform: uppercase; text-align: center; line-height: 0.95; box-shadow: 0 6px 12px rgba(0,0,0,.22); }
.rs-plate { flex: none; margin-top: 4px; white-space: nowrap; font-family: var(--f-sign); font-weight: 800; font-size: 12.5px; letter-spacing: 0.03em; padding: 3px 7px 2px; border-radius: 2px; box-shadow: 0 4px 8px rgba(0,0,0,.2); }
.rs-school .rs-board { width: 112px; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 6px; padding: 7px 6px 8px; font-weight: 900; font-size: 22px; }
.rs-school .rs-board small { display: block; font-size: 13px; font-weight: 900; letter-spacing: 0.14em; margin-bottom: 3px; color: var(--red); }
.rs-school .rs-plate { background: var(--vis); color: var(--ink); }
.rs-warning .rs-board, .rs-roadwork .rs-board { width: 108px; height: 108px; box-shadow: none; }
.rs-warning .rs-board::before, .rs-roadwork .rs-board::before { content: ''; position: absolute; inset: 0; background: var(--vis); border: 3px solid var(--ink); border-radius: 8px; transform: rotate(45deg) scale(0.71); box-shadow: 0 6px 12px rgba(0,0,0,.25); }
.rs-roadwork .rs-board::before { background: #F08A24; }
.rs-warning .rs-board span, .rs-roadwork .rs-board span { position: relative; display: flex; flex-direction: column; justify-content: center; height: 100%; font-weight: 900; font-size: 22px; color: var(--ink); }
.rs-roadwork .rs-board span { font-size: 15.5px; }
.rs-warning .rs-plate, .rs-roadwork .rs-plate { background: var(--vis); color: var(--ink); border: 2px solid var(--ink); text-transform: uppercase; margin-top: -6px; position: relative; }
.rs-roadwork .rs-plate { background: #F08A24; }
.rs-no .rs-board { width: 130px; background: #fff; color: var(--ink); border: 3px solid var(--red); border-radius: 5px; padding: 8px 6px 7px; font-weight: 900; font-size: 20px; outline: 2px solid #fff; }
.rs-no .rs-plate { background: #fff; color: var(--ink); border: 2px solid var(--ink); font-style: italic; }
.rs-tourist .rs-board { width: 130px; background: #6B4A2B; color: #fff; border: 2px solid #fff; outline: 2px solid #6B4A2B; border-radius: 5px; padding: 6px 6px 8px; font-weight: 800; font-size: 22px; }
.rs-tourist .rs-board svg, .rs-lookout .rs-board svg { width: 52px; height: 30px; margin: 0 auto 4px; }
.rs-tourist .rs-plate { background: #6B4A2B; color: #fff; border: 1.5px solid #fff; }
.rs-guide .rs-board { width: 204px; background: #1E6B45; color: #fff; border: 2px solid #fff; outline: 2px solid #1E6B45; border-radius: 6px; padding: 6px 9px; text-transform: none; text-align: left; }
.rs-guide .row { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 14px; line-height: 1.2; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.3); }
.rs-guide .row:last-child { border: 0; }
.rs-guide .row b { font-weight: 800; text-align: right; }
.rs-photo .rs-board, .rs-info .rs-board { width: 156px; background: #7B5A36; padding: 6px 6px 7px; border-radius: 3px; text-transform: none; }
.rs-info .rs-board { width: 172px; background: #6B4A2B; }
.rs-photo img, .rs-info img { width: 100%; height: 106px; object-fit: cover; border: 3px solid #F5EFDD; }
.rs-photo .cap, .rs-info .cap { display: block; margin-top: 5px; color: #F5EFDD; font-weight: 700; font-size: 13px; letter-spacing: 0.02em; line-height: 1.1; }
.rs-lookout .rs-board { width: 132px; background: #6B4A2B; color: #fff; border: 2px solid #fff; outline: 2px solid #6B4A2B; border-radius: 5px; padding: 7px 7px 6px; font-weight: 900; font-size: 26px; }
.rs-lookout .rs-board svg { width: 40px; height: 24px; }
.rs-lookout .rs-plate { background: #6B4A2B; color: #fff; border: 1.5px solid #fff; }

.arrive {
  position: absolute; z-index: 6; left: 50%; top: 62px; transform: translateX(-50%); width: min(90%, 420px);
  background: rgba(245,239,221,.97); color: var(--ink); border-radius: 12px; padding: 18px 18px 16px; text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,.35); animation: rise 0.4s cubic-bezier(.2,.9,.3,1.2);
}
.arrive[hidden] { display: none; }
@keyframes rise { from { transform: translate(-50%, -24px); opacity: 0; } }
.drive-stage.parked .drive-hud, .drive-stage.parked .pedal-drive, .drive-stage.parked .drive-horn, .drive-stage.parked .drive-hint { opacity: 0; pointer-events: none; transition: opacity .4s; }
.arrive-title { font-size: 26px !important; }
.arrive-kicker { margin: 0; font-family: var(--f-stencil); font-weight: 900; font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.arrive-title { margin: 2px 0 12px; font-family: var(--f-sign); font-weight: 900; font-size: 30px; text-transform: uppercase; line-height: 1; }
.arrive-btns { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.arrive .btn-ghost { color: var(--ink); min-height: 44px; font-size: 16px; }

/* =====================================================
   THE LOOKOUT: glovebox + letter
   ===================================================== */
.lookout {
  position: relative; padding: 70px var(--gut) 80px; overflow: hidden; outline: none;
  background: linear-gradient(#B9D7E6, #D9E8EC 34%, #E8EBDF 60%, #DCE3CF);
  color: var(--ink);
}
.lookout-sky { position: absolute; inset: 0; pointer-events: none; }
.lookout-hills { position: absolute; left: 0; right: 0; top: 160px; height: 260px; opacity: 0.55;
  background:
    radial-gradient(ellipse 30% 60% at 22% 100%, #7E9C83 60%, transparent 61%),
    radial-gradient(ellipse 40% 45% at 70% 100%, #8EA990 60%, transparent 61%),
    radial-gradient(ellipse 60% 30% at 40% 100%, #A3B9A0 60%, transparent 61%);
}
.lookout .bay-head { z-index: 1; }
.gb-wrap { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
.gb {
  position: relative; border-radius: 22px 22px 16px 16px; padding: 20px 18px 22px;
  background: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1.3px) 0 0/5px 5px, linear-gradient(#34393D, #202326 70%);
  box-shadow: 0 24px 40px rgba(20,30,30,.35), inset 0 2px 0 rgba(255,255,255,.08);
}
.gb-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.gb-vent { flex: 0 0 110px; height: 40px; border-radius: 8px; background: repeating-linear-gradient(#0E1011 0 4px, #3A4045 4px 8px); box-shadow: inset 0 0 0 3px #15181A; }
.gb-label { font-family: var(--f-sign); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #8C949A; }
.gb-box { position: relative; perspective: 900px; height: 210px; }
.gb-cavity {
  position: absolute; inset: 0; border-radius: 10px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 20%, #26292C, #0B0C0D 75%); box-shadow: inset 0 10px 24px rgba(0,0,0,.8);
}
.gb-item { position: absolute; }
.gb-torch { left: 8%; bottom: 18px; width: 94px; height: 22px; border-radius: 6px 11px 11px 6px; background: linear-gradient(#F4C430, #C99A12); transform: rotate(-6deg); }
.gb-torch::after { content: ''; position: absolute; right: -6px; top: -3px; width: 16px; height: 28px; border-radius: 4px; background: linear-gradient(#DADFE1, #7C858A); }
.gb-manual { right: 6%; bottom: 14px; width: 120px; height: 34px; background: var(--teal-dk); border-radius: 3px; transform: rotate(4deg); color: var(--cream); font-family: var(--f-sign); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; display: grid; place-items: center; }
.gb-gauge { left: 46%; bottom: 24px; width: 54px; height: 12px; border-radius: 6px; background: linear-gradient(#E9ECEE, #8C9499); transform: rotate(14deg); }
.gb-envelope {
  position: absolute; left: 50%; top: 22px; width: min(76%, 300px); aspect-ratio: 1.62; transform: translateX(-50%) rotate(-2deg);
  border: 0; padding: 0; cursor: pointer; background: #F6F0DF; border-radius: 4px; color: var(--ink);
  box-shadow: 0 10px 20px rgba(0,0,0,.5); transition: transform 0.55s cubic-bezier(.3,1.2,.5,1), opacity 0.4s;
  overflow: hidden;
}
.gb-envelope::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 58%; background: #ECE3CA; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.gb-envelope .to { position: absolute; left: 0; right: 0; bottom: 18%; font-family: var(--f-sign); font-weight: 800; font-size: 28px; text-transform: uppercase; letter-spacing: 0.04em; }
.gb-envelope .seal { position: absolute; left: 50%; top: 46%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--vis); box-shadow: 0 2px 0 var(--vis-dk); display: grid; place-items: center; font-family: var(--f-stencil); font-weight: 900; font-size: 14px; }
.gb-docket {
  position: absolute; left: 50%; top: 18px; width: min(76%, 300px); transform: translateX(-50%) rotate(-2deg);
  background: #FFF6B8; color: var(--ink); padding: 12px 14px; border-radius: 2px; box-shadow: 0 10px 20px rgba(0,0,0,.5);
  font-family: var(--f-sign); text-transform: uppercase;
}
.gb-docket b { display: block; font-family: var(--f-stencil); font-weight: 900; font-size: 26px; color: var(--red); letter-spacing: 0.05em; }
.gb-docket span { display: block; font-weight: 700; font-size: 16px; text-transform: none; line-height: 1.2; margin-top: 4px; }
.gb-docket small { display: block; font-weight: 700; font-size: 12px; letter-spacing: 0.12em; margin-top: 8px; opacity: 0.7; }
.gb-lid {
  position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; border-radius: 10px; transform-origin: 50% 100%;
  background: radial-gradient(circle, rgba(255,255,255,.035) 1px, transparent 1.3px) 0 0/5px 5px, linear-gradient(#3C4247, #2A2E32);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.1), inset 0 -3px 0 rgba(0,0,0,.4), 0 2px 0 #121416;
  transition: transform 0.6s cubic-bezier(.35,1.45,.55,1); z-index: 2; color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.gb-lid .latch { width: 96px; height: 26px; border-radius: 13px; background: linear-gradient(#5A6268, #23272A); box-shadow: inset 0 -2px 0 rgba(0,0,0,.4), 0 0 0 3px #15181A; position: relative; }
.gb-lid .latch::after { content: ''; position: absolute; left: 14px; right: 14px; top: 9px; height: 6px; border-radius: 3px; background: #0E1011; }
.gb-lid .lid-label { font-family: var(--f-sign); font-weight: 800; font-size: 18px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--vis); }
.gb-lid .lid-sticker { position: absolute; right: 16px; bottom: 14px; transform: rotate(-5deg); background: var(--vis); color: var(--ink); font-family: var(--f-stencil); font-weight: 900; font-size: 12px; padding: 2px 6px; border-radius: 2px; letter-spacing: 0.04em; }
.gb.open .gb-lid { transform: rotateX(-102deg); pointer-events: none; background: linear-gradient(#202326, #2C3034); }
.gb-lid > * { transition: opacity .2s; }
.gb.open .gb-lid > * { opacity: 0; }
.gb.open .gb-envelope { transform: translateX(-50%) translateY(-34px) rotate(1deg) scale(1.04); }
.gb.out .gb-envelope { transform: translateX(-50%) translateY(-120%) rotate(6deg) scale(0.9); opacity: 0; }
.gb-plain { display: flex; justify-content: center; margin-top: 18px; }
.gb-plain .btn-ghost { color: var(--ink); }

.letter {
  position: relative; z-index: 1; max-width: 680px; margin: 36px auto 0; color: #22262A;
  background: var(--grain), linear-gradient(#FBF8EF, #F5EFDD); background-size: 180px, auto;
  padding: 34px 24px 34px; border-radius: 4px;
  box-shadow: 0 2px 0 #E2D9C0, 0 30px 60px rgba(30,40,40,.28);
}
.letter.show { animation: unfold 0.7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes unfold { from { transform: translateY(-40px) scaleY(0.6); opacity: 0; transform-origin: 50% 0; } }
.letter::before { /* perforated edge, torn from the logbook */
  content: ''; position: absolute; left: 0; right: 0; top: -6px; height: 12px;
  background: radial-gradient(circle at 8px 6px, #E6ECE2 4px, transparent 4.5px) 0 0/16px 12px;
}
.letter-kicker { margin: 0 0 18px; display: flex; align-items: center; gap: 10px; font-family: var(--f-sign); font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); }
.letter-kicker::after { content: ''; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--teal) 0 6px, transparent 6px 10px); opacity: 0.5; }
.letter h3 { margin: 0 0 16px; font-family: var(--f-sign); font-weight: 800; font-size: clamp(34px, 9vw, 46px); line-height: 1; color: var(--ink); }
.letter p { margin: 0 0 1em; font-size: 19px; line-height: 1.7; max-width: 62ch; }
.letter .signoff { margin: 26px 0 0; font-size: 19px; }
.letter .signature { margin: 2px 0 0; font-family: var(--f-sign); font-weight: 800; font-style: italic; font-size: 46px; line-height: 1; color: var(--teal-dk); position: relative; display: inline-block; }
.letter .signature svg { position: absolute; left: -6px; right: -16px; bottom: -10px; width: calc(100% + 22px); height: 16px; }
.letter .thumb { position: absolute; right: 14px; bottom: 16px; width: 74px; height: 92px; opacity: 0.13; transform: rotate(-18deg); pointer-events: none; }
.letter .card-imgs { display: grid; gap: 12px; margin-top: 24px; }
.letter .card-imgs img { width: 100%; border-radius: 4px; box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.letter.pending { text-align: center; }
.letter.pending h3 { font-size: 34px; }
.letter-actions { display: flex; justify-content: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* =====================================================
   PRINTS
   ===================================================== */
.prints { position: relative; overflow: hidden; padding: 64px var(--gut) 80px; color: var(--ink); background: linear-gradient(#DCE3CF, #CFD9C2); }
.print-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 1120px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
.print-grid li:nth-child(3n+1) { transform: rotate(-2.2deg); }
.print-grid li:nth-child(3n+2) { transform: rotate(1.6deg) translateY(8px); }
.print-grid li:nth-child(3n) { transform: rotate(-0.8deg); }
.print {
  display: block; width: 100%; border: 0; padding: 7px 7px 10px; background: #fff; cursor: zoom-in; text-align: left; color: var(--ink);
  box-shadow: 0 10px 22px rgba(30,40,30,.28); position: relative; transition: transform 0.2s;
}
.print:hover { transform: translateY(-3px) rotate(-0.6deg); }
.print::before { content: ''; position: absolute; left: 50%; top: -8px; width: 54px; height: 16px; transform: translateX(-50%) rotate(-3deg); background: rgba(244,196,48,.78); z-index: 1; }
.print img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #ddd; }
.print.tall img { aspect-ratio: 3 / 4; }
.print span { display: block; margin-top: 7px; font-family: var(--f-sign); font-weight: 600; font-size: 16px; line-height: 1.2; }

/* =====================================================
   SERVICE HISTORY (classes)
   ===================================================== */
.history { position: relative; padding: 70px var(--gut) 76px; background-color: var(--ch); background-image: var(--noise); background-size: 180px; }
.history[hidden] { display: none; }
.history::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 12px; background: var(--hazard); }
.history-book { max-width: 820px; margin: 0 auto; color: var(--ink); border-radius: 6px; padding: 18px 16px 10px;
  background: var(--grain), #F5EFDD; background-size: auto, 180px, auto;
  box-shadow: -6px 0 0 var(--teal), 0 18px 34px rgba(0,0,0,.45); }
.history-cols, .history-row { display: grid; grid-template-columns: 54px 1fr 92px; gap: 10px; align-items: center; }
.history-cols { font-family: var(--f-sign); font-weight: 800; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #6A6E6B; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.history-cols span:nth-child(3) { display: none; }
.history-rows { list-style: none; margin: 0; padding: 0; }
.history-row { min-height: 64px; border-bottom: 1.5px dashed rgba(30,33,36,.25); padding: 8px 0; }
.history-row .yr { font-family: var(--f-stencil); font-weight: 900; font-size: 22px; color: var(--teal); }
.history-row .cls { font-family: var(--f-sign); font-weight: 700; font-size: 20px; line-height: 1.1; }
.history-row .cls small { display: block; font-weight: 600; font-size: 14px; color: #5A5F5C; letter-spacing: 0.02em; }
.history-row .teacher { display: none; }
.history-row .ok { justify-self: end; font-family: var(--f-stencil); font-weight: 900; font-size: 14px; color: var(--red); border: 2.5px solid currentColor; border-radius: 4px; padding: 1px 5px; transform: rotate(-6deg); text-transform: uppercase;
  -webkit-mask-image: var(--stampmask); mask-image: var(--stampmask); -webkit-mask-size: 120px; mask-size: 120px; }

/* =====================================================
   FOOTER + LIGHTBOX
   ===================================================== */
.foot { position: relative; padding: 46px var(--gut) calc(54px + env(safe-area-inset-bottom)); text-align: center; background: #15171A; }
.foot .hazard { position: absolute; top: 0; left: 0; right: 0; height: 12px; background: var(--hazard); }
.foot-line { margin: 0 auto 18px; max-width: 34ch; font-family: var(--f-sign); font-weight: 600; font-size: 18px; letter-spacing: 0.04em; color: #BDB7A3; }
.foot .btn-ghost { color: var(--vis); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(10,11,12,.9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: min(94vw, 1100px); text-align: center; }
.lightbox img { max-width: 100%; max-height: 78vh; margin: 0 auto; border: 8px solid #fff; border-bottom-width: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.lightbox figcaption { margin-top: 12px; color: var(--cream); font-family: var(--f-sign); font-weight: 600; font-size: 19px; }
.lb-btn { position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--vis); background: rgba(22,24,26,.85); color: var(--vis); font-size: 32px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* =====================================================
   WIDER SCREENS
   ===================================================== */
@media (min-width: 720px) {
  body { font-size: 18px; }
  .opening { margin: 0 auto; width: min(94vw, 1060px); min-height: 640px; }
  .apron { margin: 0 auto; width: min(94vw, 1060px); height: 56px; }
  .days-board { left: 6%; top: 40px; transform: rotate(-1.2deg); width: 260px; }
  .db-quip { left: 50%; }
  .wall-shelf { display: block; right: 5%; top: 44px; width: 210px; height: 120px; border-bottom: 8px solid #6B4A2B;
    background:
      linear-gradient(90deg, transparent 6px, var(--vis) 6px 40px, transparent 40px 48px, var(--teal) 48px 80px, transparent 80px 88px, #C9C2AE 88px 116px, transparent 116px 124px, var(--red) 124px 150px, transparent 150px) bottom / 100% 58px no-repeat,
      linear-gradient(90deg, transparent 20px, #9AA2A6 20px 70px, transparent 70px 96px, var(--teal-dk) 96px 160px, transparent 160px) bottom 58px left 0 / 100% 0 no-repeat; }
  .truck-bay { width: min(54%, 540px, calc((100svh - 300px) * 0.9)); }
  .caution { width: min(52%, 460px); top: 20%; }
  .door-handle { bottom: 34px; }
  .handle-bar { width: 150px; }
  .wall-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .pegboard { grid-column: 1 / -1; max-width: 760px; width: 100%; margin: 0 auto; }
  .service-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
  .ign-stage { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .ign-truck { display: flex; align-items: flex-end; }
  .ign-truck .truck-rear { width: 100%; }
  .dash { display: flex; flex-direction: column; justify-content: center; }
  .letter { padding: 52px 64px 50px; }
  .print-grid { grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
  .history-cols, .history-row { grid-template-columns: 70px 1fr 1fr 100px; }
  .history-cols span:nth-child(3), .history-row .teacher { display: block; }
  .history-row .teacher { font-family: var(--f-sign); font-weight: 600; font-size: 18px; }
  .history-row .cls small { display: none; }
  .drive-horn { left: 24px; bottom: 22px; }
  .pedal-drive { right: 24px; bottom: 12px; width: 120px; }
}
@media (min-width: 1100px) {
  .wall-grid { grid-template-columns: 1.05fr 1.5fr 0.9fr; align-items: end; }
  .pegboard { grid-column: auto; }
  .radio { padding-top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.2s !important; }
  .door.rolling { transition: opacity 0.4s !important; }
}
