/* InspectorVest — Design System
   DNA Hash: 1adec05e3951
   Dark-drenched industrial spec-sheet. Gold = the single action color.
   Hi-vis orange = restricted safety/urgency signal only. */

:root {
  /* Color */
  --ink:        #141414;
  --ink-900:    #171717;
  --ink-800:    #1C1C1C;
  --surface:    #232323;
  --surface-2:  #2A2A2A;
  --charcoal:   #3A3A3A;
  --line:       rgba(255,255,255,0.10);
  --line-strong:rgba(255,255,255,0.20);
  --gold:       #C9971C;
  --gold-bright:#E0AB2E;
  --gold-deep:  #A87D14;
  --hivis:      #E2711D;
  --gray:       #D9D9D9;
  --muted:      #A6A6A6;
  --offwhite:   #F2F0EC;
  --tan:        #B99B6B;
  --tan-deep:   #8A6F45;

  /* Type */
  --font-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Layout */
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--ink); }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.01em; color: var(--offwhite); text-transform: uppercase; margin: 0; }
.display { font-weight: 800; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

/* ---------- Utility surfaces ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px){ .wrap { padding-inline: 40px; } }

.hairline { height: 1px; width: 100%; background: var(--line); border: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-transform: uppercase;
  display: inline-block;
}
.eyebrow .slash { color: var(--muted); }

.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- Blueprint + grain textures ---------- */
.blueprint {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center;
}
.grain::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* corner ticks for blueprint/annotation framing */
.ticks { position: relative; }
.ticks::before, .ticks::after {
  content:""; position:absolute; width:14px; height:14px; border-color: var(--gold); pointer-events:none;
}
.ticks::before { top:10px; left:10px; border-top:1px solid; border-left:1px solid; }
.ticks::after  { bottom:10px; right:10px; border-bottom:1px solid; border-right:1px solid; }

/* ---------- Cards ---------- */
.spec-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
}
.spec-card--elevated { box-shadow: 0 24px 60px -24px rgba(0,0,0,0.7); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); text-transform: uppercase; font-weight: 600;
  letter-spacing: 0.02em; font-size: 17px; line-height: 1;
  padding: 16px 26px; cursor: pointer; border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
  min-height: 52px;
}
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--offwhite); border-color: var(--line-strong); }
.btn-block { width: 100%; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine){
  .btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); }
  .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
}

/* text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--gold); border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color 160ms var(--ease-out);
}
.link-arrow svg { transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine){ .link-arrow:hover { border-color: var(--gold); } .link-arrow:hover svg { transform: translateX(4px); } }

/* chips */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--gray); border: 1px solid var(--line); padding: 8px 12px; background: rgba(255,255,255,0.02);
}
.chip svg { width: 14px; height: 14px; color: var(--gold); }

/* ---------- Focus ---------- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
a.skip-link {
  position: absolute; left: 12px; top: 12px; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 10px 16px; font-family: var(--font-mono); font-size: 13px;
  transform: translateY(-180%); transition: transform 160ms var(--ease-out);
}
a.skip-link:focus { transform: translateY(0); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background-color 240ms var(--ease-out), border-color 240ms var(--ease-out), transform 240ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(15,15,15,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-link {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gray); padding: 6px 2px; position: relative;
}
.nav-link::after { content:""; position:absolute; left:0; right:0; bottom:-4px; height:1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine){ .nav-link:hover { color: var(--offwhite); } .nav-link:hover::after { transform: scaleX(1); } }
.nav-link[aria-current="page"] { color: var(--gold); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh; height: 100dvh;
  z-index: 120; display: none; flex-direction: column;
  background: var(--ink-900);
  overflow-y: auto;
  padding: 24px;
  padding-top: max(24px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a.m-link {
  font-family: var(--font-display); text-transform: uppercase; font-size: 34px; font-weight: 700;
  color: var(--offwhite); padding: 14px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu a.m-link:active { color: var(--gold); }

/* ---------- Sticky mobile bottom CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: rgba(15,15,15,0.94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  transform: translateY(120%); transition: transform 260ms var(--ease-out);
}
.mobile-cta.show { transform: translateY(0); }
@media (min-width: 1024px){ .mobile-cta { display: none !important; } }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out); will-change: opacity, transform; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Hotspots ---------- */
.hotspot {
  position: absolute; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--ink); background: var(--gold); color: var(--ink);
  font-family: var(--font-mono); font-weight: 700; font-size: 14px;
  display: grid; place-items: center; cursor: pointer;
  transform: translate(-50%,-50%); z-index: 3;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.hotspot::before {
  content:""; position:absolute; inset:-6px; border-radius:50%; border:1px solid var(--gold);
  animation: ping 2.4s var(--ease-out) infinite; z-index:-1;
}
.hotspot[aria-expanded="true"], .hotspot.active { background: var(--hivis); transform: translate(-50%,-50%) scale(1.12); }
.hotspot[aria-expanded="true"]::before { display: none; }
@media (hover: hover) and (pointer: fine){ .hotspot:hover { transform: translate(-50%,-50%) scale(1.12); } }
@keyframes ping { 0%{ transform: scale(0.9); opacity: 0.9; } 70%{ transform: scale(1.9); opacity: 0; } 100%{ opacity: 0; } }

/* ---------- Belt/Vest slider ---------- */
.compare { position: relative; overflow: hidden; user-select: none; touch-action: pan-y; }
.compare .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split, 50%)); }
.compare .handle {
  position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; background: var(--gold);
  transform: translateX(-50%); z-index: 4; cursor: ew-resize;
}
.compare .handle .grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

/* ---------- Progress bar ---------- */
.meter { height: 10px; background: var(--surface-2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.meter > span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); transition: transform 900ms var(--ease-out); }

/* scroll progress (top of page) */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--gold); z-index: 130; }

/* ---------- Config tabs ---------- */
.seg { display: inline-flex; border: 1px solid var(--line); background: var(--ink-800); padding: 4px; flex-wrap: wrap; gap: 4px; }
.seg button {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 600; font-size: 15px; letter-spacing: 0.02em;
  color: var(--muted); background: transparent; border: 0; padding: 12px 18px; cursor: pointer;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.seg button[aria-selected="true"] { background: var(--gold); color: var(--ink); }
@media (hover: hover){ .seg button:not([aria-selected="true"]):hover { color: var(--offwhite); } }

/* qty stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); }
.stepper button { width: 44px; height: 44px; background: var(--ink-800); color: var(--offwhite); border: 0; font-size: 20px; cursor: pointer; font-family: var(--font-mono); }
.stepper button:active { background: var(--surface-2); }
.stepper input { width: 56px; height: 44px; text-align: center; background: transparent; border: 0; color: var(--offwhite); font-family: var(--font-mono); font-size: 16px; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Forms ---------- */
.field label { display:block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--ink-800); border: 1px solid var(--line); color: var(--offwhite);
  padding: 14px 14px; font-family: var(--font-body); font-size: 16px; min-height: 52px;
  transition: border-color 160ms var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.field .req { color: var(--gold); }
.field .err-msg { color: var(--hivis); font-family: var(--font-mono); font-size: 12px; margin-top: 6px; display: none; }
.field.invalid .err-msg { display: block; }
.field.invalid input, .field.invalid select { border-color: var(--hivis); }

/* recent reservations feed */
.feed-item { display:flex; gap:10px; align-items:baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed-item .dot { width:7px; height:7px; border-radius:50%; background: var(--hivis); flex: none; transform: translateY(2px); }

/* clearly-marked placeholder-stat badge */
.approval-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--hivis); border: 1px dashed rgba(226,113,29,0.5); padding: 2px 6px; text-transform: uppercase; white-space: nowrap; }

/* count number */
.stat-num { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; color: var(--gold); line-height: 1; }

/* annotation connector line */
.annot-line { height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

/* footer */
.foot-link { color: var(--muted); font-size: 14px; padding: 4px 0; display: inline-block; transition: color 160ms var(--ease-out); }
@media (hover: hover){ .foot-link:hover { color: var(--gold); } }

/* ---------- Configurator visual tint ---------- */
.cfg-visual { position: relative; overflow: hidden; background: var(--ink-800); }
.cfg-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cfg-visual img { transition: filter 300ms var(--ease-out); }
.cfg-visual[data-tint="hivis"] img { filter: sepia(0.55) saturate(2.4) hue-rotate(-14deg) brightness(1.04); }
.model-badge {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: var(--gold); padding: 4px 10px; display: inline-block;
}

/* ---------- Belt vs Vest schematic ---------- */
.figure-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.figure-stage svg { width: 100%; height: 100%; }
.strain-glow { transform-origin: center; animation: strain 2.6s ease-in-out infinite; }
@keyframes strain { 0%,100%{ opacity: 0.55; } 50%{ opacity: 0.9; } }
.readout {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em;
  padding: 6px 10px; border: 1px solid var(--line); background: rgba(0,0,0,0.5); position: absolute;
}

/* annotation panel */
.annot-panel { border: 1px solid var(--line); background: var(--ink-800); padding: 24px; }

/* load-map zones over a real photo (belt vs vest) */
.load-zone { position: absolute; width: var(--z-size, 150px); height: var(--z-size, 150px); transform: translate(-50%,-50%); border-radius: 50%; pointer-events: none; filter: blur(3px); }
.load-zone.strain { background: radial-gradient(circle, rgba(226,113,29,0.9), rgba(226,113,29,0) 66%); animation: strain 2.6s ease-in-out infinite; }
.load-zone.spread { background: radial-gradient(circle, rgba(201,151,28,0.85), rgba(201,151,28,0) 66%); }
.load-arrow { position: absolute; transform: translateX(-50%); pointer-events: none; }
.lm-layer { opacity: 0; transition: opacity 0.35s var(--ease-out); pointer-events: none; }
.lm-layer.on { opacity: 1; }

/* mini persistent CTA in explorer corner */
.mini-cta {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em; text-transform: uppercase;
  background: var(--gold); color: var(--ink); padding: 10px 14px; display: inline-flex; align-items: center; gap: 8px;
}

/* comparison caption */
.compare-caption {
  position: absolute; bottom: 12px; left: 12px; z-index: 5;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em; color: var(--offwhite);
  background: rgba(0,0,0,0.55); padding: 6px 10px; border: 1px solid var(--line);
}
.compare .side-label {
  position: absolute; top: 12px; z-index: 5; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 9px; border: 1px solid var(--line);
}

/* number lead for steps */
.step-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 7vw, 76px); color: #737373; line-height: 0.8; letter-spacing: -0.02em; }

/* comparison table */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.spec-table thead th { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.spec-table td.iv { color: var(--offwhite); background: rgba(201,151,28,0.05); }
.spec-table .row-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); }

/* ---------- Field gallery filmstrip ---------- */
.filmstrip {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; cursor: grab; padding-bottom: 10px;
  scrollbar-width: none;
}
.filmstrip::-webkit-scrollbar { display: none; }
.filmstrip.dragging { cursor: grabbing; scroll-snap-type: none; }
.shot {
  position: relative; flex: 0 0 82%; scroll-snap-align: start;
  border: 1px solid var(--line); overflow: hidden; background: var(--ink-800); margin: 0;
}
@media (min-width: 640px){ .shot { flex-basis: 47%; } }
@media (min-width: 1024px){ .shot { flex-basis: 31.5%; } }
.shot img {
  display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5;
  filter: grayscale(100%) contrast(1.08) brightness(0.82);
  transition: filter 0.55s var(--ease-out), transform 0.8s var(--ease-out);
}
.shot::after {
  content: ""; position: absolute; inset: 0; background: rgba(201,151,28,0.30);
  mix-blend-mode: overlay; pointer-events: none; transition: opacity 0.55s var(--ease-out);
}
.shot .shot-meta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; z-index: 2;
  background: linear-gradient(to top, rgba(15,15,15,0.92), rgba(15,15,15,0.4) 55%, transparent);
  pointer-events: none;
}
.shot.is-active img { filter: none; }
.shot.is-active::after { opacity: 0; }
@media (hover: hover) and (pointer: fine){
  .shot:hover img { filter: none; transform: scale(1.05); }
  .shot:hover::after { opacity: 0; }
}
.strip-btn {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: var(--ink-800); color: var(--offwhite);
  transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.strip-btn:active { transform: scale(0.95); }
@media (hover: hover){ .strip-btn:hover { border-color: var(--gold); color: var(--gold); } }

/* ---------- 3D tilt ---------- */
.tilt-wrap { perspective: 1100px; }
[data-tilt] { transition: transform 0.35s var(--ease-out); transform-style: preserve-3d; will-change: transform; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hotspot::before { animation: none !important; }
  .btn:active { transform: none !important; }
}
