/* Hank the HiAce: tokens, layout and components */

:root {
  --paper: #f5eadb;
  --paper-deep: #ecdcc4;
  --card: #fff9f0;
  --ink: #2a1a12;
  --ink-soft: #4b3226;
  --muted: #765a48;
  --rule: #dcc8ad;
  --red: #b3441f;
  --red-hover: #9c3a1a;
  --red-ink: #9a3a1c;
  --on-red: #fff8ef;
  --red-soft: #f2d5c4;
  --sun: #e3a23b;
  --sun-soft: #f5deb0;
  --gum: #55684a;
  --gum-soft: #e1e6d3;
  --sea: #d4e3ea;
  --sea-ink: #4d7590;
  --sand: #ead2ae;
  --sand-line: #c79f72;
  --night: #2a1a12;
  --night-2: #3a2419;
  --on-night: #f5eadb;
  --on-night-muted: #d3bfa7;
  --plate-1: #e4e2dc;
  --plate-2: #c9c6be;
  --plate-ink: #3a3631;
  --white: #ffffff;
  --sign: #f2b51c;
  --sky: #f6dfa6;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1rem + 0.5vw, 1.3rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  --fs-h2: clamp(2.1rem, 1.4rem + 3vw, 3.5rem);

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  --r-card: 14px;
  --r-ctl: 10px;
  --r-chip: 6px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgb(43 32 25 / 0.06), 0 6px 16px rgb(43 32 25 / 0.07);
  --shadow-2: 0 2px 6px rgb(43 32 25 / 0.08), 0 18px 40px rgb(43 32 25 / 0.14);
  --shadow-sticker: drop-shadow(0 14px 22px rgb(43 32 25 / 0.26)) drop-shadow(0 2px 3px rgb(43 32 25 / 0.18));

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-1: 200ms;
  --t-2: 400ms;
  --t-3: 600ms;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--ink);
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.01em; }
p, li { text-wrap: pretty; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: var(--r-ctl); text-decoration: none; font-weight: 600; transition: top var(--t-1) var(--ease); }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--card { background: var(--paper-deep); }
.eyebrow {
  margin: 0 0 var(--s-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-ink);
}
.sec-head { max-width: 46rem; margin-bottom: var(--s-7); }
.sec-head p:last-child { margin-bottom: 0; }
.sec-head h2 + p { margin-top: var(--s-4); font-size: var(--fs-lead); color: var(--ink-soft); }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0 1.35em;
  border: 0;
  border-radius: var(--r-pill);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease), background-color var(--t-1) var(--ease), color var(--t-1) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--red); color: var(--on-red); box-shadow: 0 2px 0 rgb(43 32 25 / 0.14), var(--shadow-1); }
.btn-primary:hover { background: var(--red-hover); box-shadow: 0 2px 0 rgb(43 32 25 / 0.14), var(--shadow-2); }
.btn-secondary { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-soft), var(--shadow-1); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1.5px var(--ink), var(--shadow-2); }
.btn-small { min-height: 40px; padding: 0 1.05em; font-size: 0.95rem; }
.btn-light { background: var(--on-night); color: var(--night); box-shadow: var(--shadow-1); }
.btn-light:hover { background: var(--white); box-shadow: var(--shadow-2); }
.btn-outline-light { background: rgb(255 255 255 / 0.06); color: var(--on-night); box-shadow: inset 0 0 0 1.5px rgb(244 235 221 / 0.6); }
.btn-outline-light:hover { box-shadow: inset 0 0 0 1.5px var(--on-night); background: rgb(255 255 255 / 0.1); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Header */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); padding-block: var(--s-5); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: 1.55rem; font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -0.02em; border-radius: 8px; }
.brand svg { width: 40px; height: 40px; }
.site-nav { display: none; gap: 4px; }
.site-nav a { padding: 10px 12px; border-radius: var(--r-pill); text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); transition: background-color var(--t-1) var(--ease), color var(--t-1) var(--ease); }
.site-nav a:hover { background: rgb(43 32 25 / 0.06); color: var(--ink); }
@media (min-width: 980px) { .site-nav { display: flex; } }

/* Hero: outback scene, then the intro row */
.hero { padding-bottom: var(--section-y); }
.hero-scene { --scene-h: clamp(560px, 76svh, 860px); position: relative; isolation: isolate; overflow: hidden; min-height: var(--scene-h); background: var(--sky); }
.scene-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.scene-inner { position: relative; min-height: inherit; padding-top: clamp(18px, 3.5vw, 44px); }
.scene-inner .eyebrow { display: inline-block; padding: 7px 14px; border-radius: var(--r-pill); background: rgb(255 249 240 / 0.86); color: var(--red-ink); box-shadow: var(--shadow-1); }
.wordmark { margin: clamp(6px, 1.5vw, 14px) 0 0 -1%; width: min(86%, 600px); }
.wordmark img { width: 100%; filter: drop-shadow(0 8px 14px rgb(42 26 18 / 0.22)); }
.scene-van {
  position: absolute;
  z-index: 2;
  right: max(1%, calc((100% - var(--wrap)) / 2 - 120px));
  bottom: clamp(14px, 3.4vw, 48px);
  width: min(50vw, 760px, calc((var(--scene-h) - 96px) * 1.28));
  container-type: inline-size;
}
.hero-van { width: 100%; filter: var(--shadow-sticker); transform-origin: 60% 90%; }
.honk-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 28px; -webkit-tap-highlight-color: transparent; }
.van-drive { position: relative; }
.dust {
  position: absolute;
  z-index: 0;
  left: 2%;
  bottom: 4%;
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(214 140 92 / 0.6), rgb(214 140 92 / 0) 68%);
  filter: blur(3px);
  opacity: 0;
  pointer-events: none;
}
.honk-btn { position: relative; z-index: 1; }
.honk-btn:focus-visible { box-shadow: var(--focus); }
.sign-btn {
  position: absolute;
  z-index: -1;
  left: -15%;
  bottom: 6%;
  width: 17%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sign-btn:focus-visible { box-shadow: var(--focus); }
.road-sign { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 12px rgb(42 26 18 / 0.28)); transform-origin: 50% 100%; }
.head-actions { display: flex; align-items: center; gap: var(--s-2); }
.sound-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-1);
  cursor: pointer;
  transition: background-color var(--t-1) var(--ease), color var(--t-1) var(--ease), transform var(--t-1) var(--ease);
}
.sound-toggle:hover { color: var(--ink); transform: translateY(-1px); }
.sound-toggle:active { transform: scale(0.96); }
.sound-toggle .ic { width: 20px; height: 20px; }
.sound-toggle .when-off, .sound-toggle[aria-pressed="false"] .when-on { display: none; }
.sound-toggle[aria-pressed="false"] .when-off { display: inline; }
.sound-toggle[aria-pressed="false"] { color: var(--muted); }
.price-tag {
  position: absolute;
  left: var(--tag-x, 31%);
  top: var(--tag-y, 41%);
  z-index: 3;
  transform-origin: 50% 0;
  transform: rotate(var(--tag-r, 8deg));
  pointer-events: none;
}
.price-tag .string { display: block; width: 9cqw; height: 9cqw; margin-left: -4.5cqw; margin-bottom: -1.2cqw; }
.price-tag .tag {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.1em;
  padding: 3.4cqw 3cqw 2.4cqw;
  width: max-content;
  min-width: 17cqw;
  transform: translateX(-50%);
  background: var(--sun-soft);
  border-radius: 2cqw 2cqw 2.4cqw 2.4cqw;
  clip-path: polygon(22% 0, 78% 0, 100% 16%, 100% 100%, 0 100%, 0 16%);
  box-shadow: inset 0 0 0 0.5cqw rgb(42 26 18 / 0.12);
  text-align: center;
}
.price-tag .tag::before {
  content: "";
  position: absolute;
  top: 1.4cqw;
  left: 50%;
  width: 2.2cqw;
  height: 2.2cqw;
  margin-left: -1.1cqw;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 0.45cqw rgb(42 26 18 / 0.35);
}
.price-tag .amount { font-family: var(--font-display); font-weight: 900; font-size: clamp(0.95rem, 4.2cqw, 1.7rem); white-space: nowrap; line-height: 1; letter-spacing: -0.03em; color: var(--ink); font-variation-settings: "SOFT" 100, "WONK" 1; }
.price-tag .ono { font-size: clamp(0.6rem, 2.1cqw, 0.82rem); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-ink); }
.hero-intro { display: grid; gap: var(--s-6); padding-top: var(--s-7); }
.hero-intro .lead { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 40rem; margin-bottom: var(--s-5); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border-radius: var(--r-pill);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--rule);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-soft);
}
.facts .ic { color: var(--red); }
.hero-buy { padding: clamp(20px, 3vw, 30px); border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-2); }
.hero-price { margin: 0 0 var(--s-5); }
.hero-price strong { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(2.6rem, 2rem + 2.4vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; color: var(--red-ink); font-variation-settings: "SOFT" 100, "WONK" 1; }
.hero-price span { display: block; margin-top: 8px; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (max-width: 640px) {
  .hero-scene { --scene-h: 600px; }
  .scene-van { right: 50%; transform: translateX(50%); width: min(96%, 460px); }
  .sign-btn { left: auto; right: 3%; bottom: auto; top: -27%; width: 15%; }
  .hero-cta .btn { flex: 1 1 100%; }
}
@media (min-width: 900px) {
  .wordmark { width: min(44%, 540px); }
  .hero-intro { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); align-items: start; gap: var(--s-8); }
}
.horizon-band { position: relative; z-index: 1; margin-top: calc(var(--section-y) * -0.55); line-height: 0; background: linear-gradient(to top, var(--night) 43%, var(--paper-deep) 43%); }
.horizon { display: block; width: min(100%, 1400px); height: auto; margin: 0 auto -2px; pointer-events: none; -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); }
.horizon-band + .enquire { padding-top: calc(var(--section-y) * 0.55); }

/* Motion: hero entrance */
@keyframes drive-in { from { transform: translateX(-125vw); } to { transform: none; } }
@keyframes rumble { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.7%); } }
@keyframes logo-pop { from { transform: scale(0.45) rotate(-7deg); } to { transform: none; } }
@keyframes dust { 0% { opacity: 0; transform: translate(0, 0) scale(0.4); } 25% { opacity: 0.85; } 100% { opacity: 0; transform: translate(-110%, -25%) scale(1.7); } }
@keyframes sign-in { from { transform: rotate(-8deg); } to { transform: none; } }
@keyframes honk { 0% { transform: none; } 30% { transform: translateY(-2.5%) rotate(-0.8deg); } 65% { transform: translateY(0.6%) rotate(0.3deg); } 100% { transform: none; } }
@keyframes wobble { 0% { transform: none; } 20% { transform: rotate(-10deg); } 45% { transform: rotate(7deg); } 70% { transform: rotate(-3deg); } 100% { transform: none; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tag-swing { 0% { transform: rotate(-14deg); } 45% { transform: rotate(13deg); } 75% { transform: rotate(5deg); } 100% { transform: rotate(var(--tag-r, 8deg)); } }
@media (prefers-reduced-motion: no-preference) {
  .js .wordmark img { transform: scale(0.45) rotate(-7deg); transform-origin: 32% 60%; }
  .js .van-drive { transform: translateX(-125vw); }
  .intro-go .wordmark img { animation: logo-pop 650ms cubic-bezier(0.2, 0.8, 0.3, 1) both; }
  .intro-go .van-drive { animation: drive-in 1700ms cubic-bezier(0.16, 0.84, 0.3, 1) both 250ms; }
  .intro-go .hero-van { animation: rumble 140ms linear 12 250ms; }
  .intro-go .dust.d1 { animation: dust 900ms ease-out 2 300ms; }
  .intro-go .dust.d2 { animation: dust 900ms ease-out 2 600ms; }
  .intro-go .dust.d3 { animation: dust 900ms ease-out 1 1050ms; }
  .road-sign { animation: sign-in var(--t-3) var(--ease) both 500ms; }
  .honk-btn.honking { animation: honk 480ms var(--ease); transform-origin: 60% 95%; }
  .sign-btn.wobbling { animation: wobble 700ms var(--ease); transform-origin: 50% 100%; }
  .intro-go .price-tag { animation: tag-swing 1.4s var(--ease) both 2050ms; }
}

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--t-3) var(--ease), transform var(--t-3) var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* The lap */
.lap-grid { display: grid; gap: var(--s-7); align-items: center; }
.lap-copy h2 { margin-bottom: var(--s-4); }
.lap-copy > p { color: var(--ink-soft); font-size: var(--fs-lead); }
.trip {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin: var(--s-6) 0 var(--s-5);
}
.trip-meter {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 8px 10px;
  background: #1d1714;
  border-radius: 10px;
  box-shadow: inset 0 2px 6px rgb(0 0 0 / 0.6), 0 1px 0 rgb(255 255 255 / 0.5), var(--shadow-1);
}
.trip-meter .drum {
  position: relative;
  width: 1.05em;
  height: 1.45em;
  overflow: hidden;
  border-radius: 3px;
  background: linear-gradient(#0e0b09, #2c2420 22%, #2c2420 78%, #0e0b09);
  font: 700 clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem)/1.45 var(--font-body);
  font-variant-numeric: tabular-nums;
  color: #f4ece0;
  text-align: center;
}
.trip-meter .drum.tenth { background: linear-gradient(#e9e2d6, #fbf8f2 22%, #fbf8f2 78%, #e9e2d6); color: #1d1714; }
.trip-meter .strip { display: flex; flex-direction: column; transform: translateY(calc(var(--d, 0) * -1.45em)); transition: transform 1100ms var(--ease); }
.trip-meter .strip span { height: 1.45em; }
.trip-label { display: grid; gap: 2px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.3; }
.trip-label strong { font-size: 1rem; color: var(--ink); }
.lap-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin: 0 0 var(--s-5); }
.lap-stats div { padding: var(--s-4); background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-1); }
.lap-stats dt { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); line-height: 1.3; }
.lap-stats dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 900; font-size: 2rem; line-height: 1; font-variation-settings: "SOFT" 100, "WONK" 1; }
.seg { display: inline-flex; padding: 4px; gap: 4px; background: rgb(43 32 25 / 0.07); border-radius: var(--r-pill); margin-bottom: var(--s-4); }
.seg button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font: 600 0.95rem/1 var(--font-body);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color var(--t-1) var(--ease), color var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease);
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-1); }
.map-note { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.legend-history { list-style: none; display: grid; gap: 8px; margin: 0 0 var(--s-4); }
.legend-history li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: baseline; font-size: 0.97rem; }
.legend-history .n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sea-ink); color: var(--white); font-size: var(--fs-xs); font-weight: 700; transform: translateY(5px); }
.legend-history b { font-weight: 600; }
.legend-history span.when { color: var(--muted); }
[data-panel][hidden] { display: none; }

.map-card { margin: 0; position: relative; background: var(--sea); border-radius: 20px; padding: clamp(8px, 2vw, 20px); box-shadow: inset 0 0 0 1px rgb(77 117 144 / 0.18), var(--shadow-1); }
.map { width: 100%; height: auto; overflow: visible; }
.map .land { fill: url(#red-centre); stroke: var(--sand-line); stroke-width: 1.4; stroke-linejoin: round; }
.map .states { fill: none; stroke: var(--sand-line); stroke-width: 1.3; stroke-dasharray: 2 5; stroke-linecap: round; }
.map .state-label { font: 700 22px var(--font-body); letter-spacing: 0.12em; fill: rgb(43 32 25 / 0.35); text-anchor: middle; dominant-baseline: middle; }
.map .route { fill: none; stroke: var(--red); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0.1 11; }
.map .route-under { fill: none; stroke: var(--card); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; }
.map .stop circle { fill: var(--red); stroke: var(--card); stroke-width: 3; }
.map .stop text { font: 700 19px var(--font-body); fill: var(--ink); paint-order: stroke; stroke: var(--sand); stroke-width: 6px; stroke-linejoin: round; }
.map .stop text.sub { font-weight: 500; font-size: 16px; fill: var(--ink-soft); }
.map .stamp { transform-box: fill-box; transform-origin: center; opacity: 0.9; }
.js .map .stamp:not(.on) { opacity: 0; }
.map .stamp.on { opacity: 0.9; animation: stamp-in 420ms var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .map .stamp.on { animation: none; } }
.map .stamp circle { fill: none; stroke: var(--red); }
.map .stamp text { fill: var(--red); text-anchor: middle; dominant-baseline: middle; font-family: var(--font-body); font-weight: 800; }
@keyframes stamp-in { from { transform: scale(1.6) rotate(var(--rot, 0deg)); opacity: 0; } to { transform: scale(1) rotate(var(--rot, 0deg)); opacity: 0.9; } }
.map .stamp { transform: rotate(var(--rot, 0deg)); }
.map .hist-line { fill: none; stroke: var(--sea-ink); stroke-width: 2.5; stroke-dasharray: 6 7; stroke-linecap: round; opacity: 0.7; }
.map .hist-dot circle { fill: var(--sea-ink); stroke: var(--card); stroke-width: 3; }
.map .hist-dot text { font: 800 22px var(--font-body); fill: var(--white); text-anchor: middle; dominant-baseline: central; }
.map .marker { pointer-events: none; }
.map [data-layer][hidden] { display: none; }
.no-anim .map .stamp { opacity: 0.9; }

@media (min-width: 960px) {
  .lap-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s-8); }
}

/* Spec plate and recent work */
.van-grid { display: grid; gap: var(--s-7); align-items: start; }
.plate {
  position: relative;
  padding: clamp(22px, 4vw, 36px) clamp(20px, 4vw, 40px);
  border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.05) 0 1px, rgb(0 0 0 / 0.025) 1px 3px),
    linear-gradient(160deg, var(--plate-1), var(--plate-2) 55%, #dcd9d1);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8), inset 0 -2px 3px rgb(0 0 0 / 0.12), 0 1px 1px rgb(0 0 0 / 0.2), var(--shadow-2);
  color: var(--plate-ink);
}
.plate::before, .plate::after, .plate .rivets::before, .plate .rivets::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fbfaf7, #a9a59d 60%, #7d7972);
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.35);
}
.plate::before { top: 12px; left: 12px; }
.plate::after { top: 12px; right: 12px; }
.plate .rivets::before { bottom: 12px; left: 12px; }
.plate .rivets::after { bottom: 12px; right: 12px; }
.plate-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); padding-bottom: var(--s-3); margin-bottom: var(--s-3); border-bottom: 1.5px solid rgb(58 54 49 / 0.35); }
.plate-head strong { font: 800 clamp(1rem, 0.9rem + 0.5vw, 1.2rem)/1.2 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; text-shadow: 0 1px 0 rgb(255 255 255 / 0.7); }
.plate-head span { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }
.plate dl { display: grid; grid-template-columns: max-content 1fr; gap: 9px 18px; margin: 0; }
.plate dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; opacity: 0.8; padding-top: 3px; }
.plate dd { margin: 0; font-weight: 600; text-shadow: 0 1px 0 rgb(255 255 255 / 0.6); }
.vin { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vin code { font: 600 0.95rem/1.3 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-pill);
  background: rgb(58 54 49 / 0.1);
  color: var(--plate-ink);
  font: 600 var(--fs-xs)/1 var(--font-body);
  cursor: pointer;
  transition: background-color var(--t-1) var(--ease);
}
.copy-btn:hover { background: rgb(58 54 49 / 0.18); }
.copy-btn .ic { width: 14px; height: 14px; }
.work h3 { margin-bottom: var(--s-4); }
.work-list { list-style: none; display: grid; gap: 2px; margin-bottom: var(--s-4); }
.work-list a {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: var(--s-3);
  align-items: baseline;
  padding: 12px 14px;
  border-radius: var(--r-ctl);
  text-decoration: none;
  transition: background-color var(--t-1) var(--ease);
}
.work-list a:hover { background: var(--card); box-shadow: var(--shadow-1); }
.work-list time { font-size: var(--fs-sm); font-weight: 700; color: var(--red-ink); white-space: nowrap; }
.work-list .what { font-weight: 500; }
.work-list .where { display: block; font-size: var(--fs-sm); color: var(--muted); font-weight: 400; }
.work-list .go { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.work-list .go .ic { width: 14px; height: 14px; }
.seller-note { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--r-ctl); background: var(--sun-soft); color: var(--ink-soft); font-size: 0.97rem; }
.seller-note .ic { color: var(--red-ink); margin-top: 3px; }
@media (min-width: 960px) { .van-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); } }
@media (max-width: 480px) {
  .plate dl { grid-template-columns: 1fr; gap: 2px; }
  .plate dd { margin-bottom: 10px; }
  .work-list a { grid-template-columns: 1fr auto; }
  .work-list time { grid-column: 1 / -1; }
}

/* Inside: hotspots */
.inside-grid { display: grid; gap: var(--s-6); align-items: center; }
.hotspot-fig { position: relative; margin: 0 auto; width: 100%; max-width: 560px; }
.hotspot-fig img { width: 100%; filter: var(--shadow-sticker); }
.spot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: var(--on-red);
  font: 800 0.95rem/1 var(--font-body);
  box-shadow: 0 0 0 4px rgb(255 248 239 / 0.85), var(--shadow-1);
  cursor: pointer;
  transition: transform var(--t-1) var(--ease), background-color var(--t-1) var(--ease);
}
.spot:hover, .spot[aria-expanded="true"] { transform: scale(1.12); background: var(--red-hover); }
.spot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .spot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgb(180 81 42 / 0.5); animation: ping 2.4s var(--ease) 3; }
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(180 81 42 / 0.45); } 70%, 100% { box-shadow: 0 0 0 16px rgb(180 81 42 / 0); } }
.spot-tip {
  position: absolute;
  z-index: 3;
  transform: translate(26px, -50%);
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--shadow-2);
}
.spot-tip.left { transform: translate(calc(-100% - 26px), -50%); }
.spot-list { list-style: none; display: grid; gap: var(--s-2); counter-reset: spot; }
.spot-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-ctl);
  transition: background-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease);
}
.spot-list li.active { background: var(--card); box-shadow: var(--shadow-1); }
.spot-list .n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: var(--on-red); font-size: var(--fs-sm); font-weight: 800; }
.spot-list b { display: block; font-weight: 700; }
.spot-list span.d { color: var(--ink-soft); font-size: 0.97rem; }
.inside-photos { display: grid; gap: var(--s-5); margin-top: var(--s-7); }
.photo-card { margin: 0; }
.photo-card button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r-card); }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); box-shadow: var(--shadow-1); transition: transform var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease); }
.photo-card button:hover img { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.photo-card figcaption { margin-top: 10px; font-size: var(--fs-sm); color: var(--muted); }
@media (min-width: 720px) { .inside-photos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .inside-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s-8); } }

/* Off-grid power */
.power-grid { display: grid; gap: var(--s-7); align-items: center; }
.power-art { position: relative; max-width: 420px; width: 100%; margin-inline: auto; }
.power-art img { width: 100%; filter: var(--shadow-sticker); transform: rotate(-2deg); }
.callouts { list-style: none; display: grid; gap: var(--s-2); margin-top: var(--s-5); counter-reset: c; }
.callouts li { display: flex; gap: 10px; align-items: baseline; font-size: 0.97rem; font-weight: 500; }
.callouts .tick { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: var(--fs-xs); font-weight: 800; flex: none; transform: translateY(4px); }
.icon-list { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.icon-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.icon-list .bubble { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow-1); color: var(--red); }
.icon-list .bubble .ic { width: 22px; height: 22px; }
.icon-list b { display: block; font-weight: 700; line-height: 1.3; }
.icon-list span.d { display: block; font-size: 0.95rem; color: var(--muted); line-height: 1.4; }
@media (min-width: 960px) { .power-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); } }

/* Gear */
.gear-top { display: grid; gap: var(--s-6); align-items: end; margin-bottom: var(--s-7); }
.gear-top .sec-head { margin-bottom: 0; }
.gear-photo { margin: 0; }
.gear-photo img { width: 100%; max-width: 620px; margin-left: auto; filter: var(--shadow-sticker); }
.gear-photo figcaption { text-align: right; font-size: var(--fs-sm); color: var(--muted); margin-top: 6px; }
.kit { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: var(--s-3); }
.kit li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
}
.kit .ic { width: 26px; height: 26px; color: var(--red); margin-top: 2px; }
.kit b { display: block; font-weight: 700; line-height: 1.3; }
.kit span { display: block; font-size: 0.93rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
@media (min-width: 960px) { .gear-top { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }

/* Service history */
.history-head { display: grid; gap: var(--s-6); margin-bottom: var(--s-7); }
.history-head .sec-head { margin-bottom: 0; }
.h-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.h-stats div { padding: var(--s-4); border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-1); }
.h-stats dt { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); line-height: 1.35; }
.h-stats dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.05; font-variation-settings: "SOFT" 100, "WONK" 1; }
.odo-card { padding: var(--s-4) var(--s-4) var(--s-3); border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-1); }
.odo-card h3 { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 8px; }
.odo-chart { width: 100%; height: auto; }
.odo-chart .grid { stroke: var(--rule); stroke-width: 1; }
.odo-chart .axis { font: 500 11px var(--font-body); fill: var(--muted); }
.odo-chart .line { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.odo-chart .pt { fill: var(--red); stroke: var(--card); stroke-width: 2; }
.odo-chart .last { font: 700 12px var(--font-body); fill: var(--ink); }
@media (min-width: 960px) {
  .history-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  .h-side { display: grid; gap: var(--s-3); }
}
.stamp-badge {
  display: inline-grid;
  place-items: center;
  margin: var(--s-5) 0 0;
  padding: 10px 18px;
  border: 3px double var(--gum);
  border-radius: 10px;
  color: var(--gum);
  font: 800 var(--fs-sm)/1.25 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  transform: rotate(-4deg);
}
.stamp-badge small { display: block; font-size: var(--fs-xs); letter-spacing: 0.08em; font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--rule);
  font: 600 0.93rem/1 var(--font-body);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color var(--t-1) var(--ease), color var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease);
}
.chip span { font-size: var(--fs-xs); color: var(--muted); font-weight: 700; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink-soft); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.chip[aria-pressed="true"] span { color: var(--sand); }
.history-note { display: flex; gap: 8px; align-items: center; font-size: var(--fs-sm); color: var(--muted); margin: 0 0 var(--s-5); }
.history-note .ic { width: 16px; height: 16px; }

.history-list { list-style: none; display: grid; gap: var(--s-6); }
.year-group > h3 { font-size: 1.6rem; margin-bottom: var(--s-3); display: flex; align-items: center; gap: var(--s-3); }
.year-group > h3::after { content: ""; flex: 1; height: 1.5px; background: var(--rule); }
.year-group > ol { list-style: none; display: grid; gap: var(--s-2); }
.year-group[hidden], .rec[hidden] { display: none; }
.rec details { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-1); transition: box-shadow var(--t-2) var(--ease); }
.rec details[open] { box-shadow: var(--shadow-2); }
.rec summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px var(--s-4);
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  border-radius: var(--r-card);
}
.rec summary::-webkit-details-marker { display: none; }
.rec .r-date { grid-column: 1; display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.rec .badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: var(--r-chip); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.badge-service { background: var(--red-soft); color: var(--red-ink); }
.badge-inspection { background: var(--gum-soft); color: #3d5537; }
.badge-parts { background: var(--sea); color: #3b5f76; }
.badge-fitout { background: var(--sun-soft); color: #7a5418; }
.badge-registration { background: #e9e1d5; color: var(--ink-soft); }
.rec .r-title { display: block; font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.rec .r-biz { display: block; font-size: var(--fs-sm); color: var(--muted); }
.rec .r-meta { display: grid; justify-items: end; gap: 2px; text-align: right; }
.rec .r-total { font-weight: 800; font-variant-numeric: tabular-nums; }
.rec .r-odo { font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rec .r-chev { grid-column: 2; grid-row: 1; justify-self: end; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgb(43 32 25 / 0.06); transition: transform var(--t-2) var(--ease), background-color var(--t-1) var(--ease); }
.rec details[open] .r-chev { transform: rotate(180deg); }
.rec summary:hover .r-chev { background: rgb(43 32 25 / 0.12); }
.rec .r-chev .ic { width: 16px; height: 16px; }
.rec-body { padding: 0 18px 18px; display: grid; gap: var(--s-4); }
.rec-body > p { margin: 0; color: var(--ink-soft); }
.rec-items { list-style: none; display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--paper); font-size: 0.95rem; }
.rec-items li { display: flex; gap: 8px; }
.rec-items li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sand-line); flex: none; margin-top: 0.62em; }
.rec-notes { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--sun-soft); font-size: 0.95rem; }
.rec-notes h4 { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #7a5418; }
.rec-notes ul { list-style: none; display: grid; gap: 4px; }
.rec-notes li { display: flex; gap: 8px; }
.rec-notes li .ic { width: 16px; height: 16px; margin-top: 4px; color: #7a5418; }
.rec-notes .fixed { color: var(--gum); font-weight: 600; }
.rec-notes .fixed a { color: inherit; }
.rec-docs { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.doc-thumb {
  display: grid;
  gap: 6px;
  width: 116px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: zoom-in;
  border-radius: 8px;
}
.doc-thumb img { width: 116px; height: 150px; object-fit: cover; object-position: top; border-radius: 6px; background: var(--paper-deep); box-shadow: 0 0 0 1px var(--rule), var(--shadow-1); transition: transform var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease); }
.doc-thumb:hover img { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 0 0 1px var(--rule), var(--shadow-2); }
.doc-thumb span { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); line-height: 1.3; }
@media (min-width: 720px) {
  .rec summary { grid-template-columns: 112px minmax(0, 1fr) auto 28px; padding: 16px 20px; }
  .rec .r-date { grid-column: auto; flex-direction: column; align-items: flex-start; gap: 6px; }
  .rec .r-chev { grid-column: auto; grid-row: auto; }
  .rec-body { padding: 0 20px 20px 148px; }
}

/* Gallery */
.gallery { columns: 3 260px; column-gap: var(--s-5); }
.gallery figure { break-inside: avoid; margin: 0 0 var(--s-6); }
.gallery button {
  display: block;
  width: 100%;
  padding: 10px 10px 0;
  border: 0;
  background: var(--white);
  border-radius: 3px;
  box-shadow: var(--shadow-2);
  cursor: zoom-in;
  transform: rotate(var(--tilt, 0deg));
  transition: transform var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease);
}
.gallery button:hover { transform: rotate(0) translateY(-3px); }
.gallery img { width: 100%; border-radius: 1px; }
.gallery figcaption { padding: 12px 4px 14px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); text-align: center; }
.gallery figure:nth-child(3n + 1) { --tilt: -1.6deg; }
.gallery figure:nth-child(3n + 2) { --tilt: 1.2deg; }
.gallery figure:nth-child(3n) { --tilt: -0.6deg; }

/* Enquire */
.enquire { background: var(--night); color: var(--on-night); overflow: hidden; }
.enquire .eyebrow { color: var(--sun); }
.enquire h2 { color: var(--on-night); }
.enq-grid { display: grid; gap: var(--s-7); align-items: center; }
.enq-copy > p { color: var(--on-night-muted); font-size: var(--fs-lead); max-width: 36rem; }
.enq-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: var(--s-5) 0; }
.enq-price strong { font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 2rem + 4vw, 4.6rem); line-height: 1; color: var(--sun); font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -0.03em; }
.enq-price span { font-size: var(--fs-lead); color: var(--on-night-muted); }
.enq-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-5); }
.enq-contact { padding: 16px 18px; border-radius: var(--r-card); background: var(--night-2); color: var(--on-night-muted); font-size: 0.98rem; max-width: 36rem; }
.enq-contact b { color: var(--on-night); }
.checklist { list-style: none; display: grid; gap: var(--s-3); padding: clamp(20px, 3vw, 28px); border-radius: var(--r-card); background: var(--night-2); }
.checklist h3 { color: var(--on-night); font-size: 1.25rem; margin-bottom: 4px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--on-night-muted); font-size: 0.98rem; }
.checklist li .ic { color: var(--sun); width: 20px; height: 20px; margin-top: 3px; }
.checklist a { color: var(--on-night); text-underline-offset: 3px; }
.checklist code { font: 600 0.92rem ui-monospace, "SF Mono", Menlo, monospace; color: var(--on-night); letter-spacing: 0.04em; }
.enq-van { width: min(100%, 420px); margin: var(--s-6) auto 0; filter: drop-shadow(0 16px 30px rgb(0 0 0 / 0.45)); transform: scaleX(-1) rotate(2deg); }
@media (min-width: 960px) { .enq-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--s-8); } }

/* Footer */
.site-foot { background: var(--night-2); color: var(--on-night-muted); padding-block: var(--s-7); font-size: var(--fs-sm); }
.foot-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.site-foot .brand { color: var(--on-night); font-size: 1.3rem; }
.site-foot .brand svg { width: 34px; height: 34px; }
.site-foot p { margin: 0; }

/* Lightbox */
.lightbox {
  width: min(100vw - 24px, 1100px);
  height: min(100dvh - 24px, 1000px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--night);
  color: var(--on-night);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.5);
  overflow: hidden;
}
.lightbox::backdrop { background: rgb(26 20 16 / 0.72); backdrop-filter: blur(4px); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; align-items: center; gap: var(--s-3); padding: 12px 12px 12px 20px; border-bottom: 1px solid rgb(244 235 221 / 0.1); }
.lb-title { margin: 0; flex: 1; font-weight: 600; line-height: 1.3; min-width: 0; }
.lb-title small { display: block; font-weight: 400; color: var(--on-night-muted); font-size: var(--fs-sm); }
.lb-count { font-size: var(--fs-sm); color: var(--on-night-muted); white-space: nowrap; }
.lb-btn {
  display: inline-grid;
  place-items: center;
  gap: 6px;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-pill);
  background: rgb(244 235 221 / 0.08);
  color: var(--on-night);
  font: 600 0.92rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color var(--t-1) var(--ease);
}
.lb-btn:hover { background: rgb(244 235 221 / 0.16); }
.lb-btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.lb-btn[hidden] { display: none; }
.lb-btn.wide { grid-auto-flow: column; }
.lb-stage { position: relative; min-height: 0; overflow: auto; display: grid; place-items: center; background: #17110d; overscroll-behavior: contain; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; user-select: none; }
.lb-stage.zoomed { place-items: start; }
.lb-stage.zoomed img { max-width: none; max-height: none; width: 200%; cursor: zoom-out; }
.lb-bar { display: flex; align-items: center; justify-content: center; gap: var(--s-3); padding: 10px; border-top: 1px solid rgb(244 235 221 / 0.1); }
html.lb-open { overflow: hidden; }

/* 404 */
.lost { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: var(--s-7) var(--gutter); }
.lost img { width: min(80vw, 380px); margin: 0 auto var(--s-5); transform: rotate(-8deg); filter: var(--shadow-sticker); }
.lost h1 { font-size: clamp(2.4rem, 1.6rem + 4vw, 4rem); margin-bottom: var(--s-3); }
.lost p { color: var(--ink-soft); }

/* Print: keep it readable */
@media print {
  body { background: #fff; }
  .site-nav, .hero-cta, .seg, .chips, .lightbox, .skip { display: none !important; }
  .rec details { box-shadow: none; border: 1px solid #ccc; }
}
