/* ==========================================================================
   FORGE THEME — shared styles
   Token layers mirror the Livetools system (@livetools/ui, --lt-*):
   1. primitive ramps (grey / shell / amber / red / green, steps 1–12)
   2. semantic roles (surface, text, border, action, status, glass)
   3. brief aliases (--ink, --steel, --plate, --safety, --on-safety, --signal, --ok)
   Re-skin for a client by remapping layer 2 only. See HANDOVER.md §2.
   ========================================================================== */

:root {
  /* 1 · primitives ------------------------------------------------------- */
  --grey-1: #fbfbfc; --grey-2: #f4f5f6; --grey-3: #eeeff0; --grey-4: #e8e9ea; --grey-5: #dfe1e3; --grey-6: #d5d8db;
  --grey-7: #c3c7cb; --grey-8: #a6abb1; --grey-9: #868c93; --grey-10: #6a7078; --grey-11: #4c5259; --grey-12: #26292d;
  --shell-1: #0b0c0d; --shell-2: #141517; --shell-3: #1b1d20; --shell-4: #222529; --shell-5: #2b2e33; --shell-6: #353940;
  --shell-7: #43474f; --shell-8: #5a5f68; --shell-9: #7a808a; --shell-10: #9aa0a8; --shell-11: #bcc1c7; --shell-12: #edeef0;
  --amber-3: #fff0cf; --amber-6: #ffd57a; --amber-8: #ffc23d; --amber-9: #ffb000; --amber-10: #f0a000; --amber-11: #9e6600; --amber-12: #5c3b00;
  --red-3: #fde4e1; --red-9: #e5372b; --red-11: #b42318;
  --green-3: #def5e6; --green-9: #1f9d55; --green-11: #137a3e;
  --white: #fff; --black: #000;

  /* 2 · semantic roles --------------------------------------------------- */
  --surface-page: var(--grey-4);
  --surface-plate: var(--grey-6);
  --surface-panel: var(--grey-2);
  --surface-raised: var(--grey-1);
  --surface-shell: var(--shell-2);
  --surface-shell-2: var(--shell-3);
  --text-primary: var(--shell-2);
  --text-secondary: var(--grey-11);
  --text-muted: var(--grey-10);
  --text-on-shell: var(--shell-12);
  --text-on-shell-muted: var(--shell-10);
  --border-subtle: rgba(20, 21, 23, .1);
  --border-default: rgba(20, 21, 23, .2);
  --border-strong: var(--shell-2);
  --border-on-shell: rgba(237, 238, 240, .12);
  --action-bg: var(--amber-9);
  --action-bg-hover: var(--amber-8);
  --action-text: var(--shell-2);
  --brand: var(--amber-9);
  --danger: var(--red-9); --danger-surface: var(--red-3); --danger-text: var(--red-11);
  --success: var(--green-9); --success-surface: var(--green-3); --success-text: var(--green-11);
  --warning: var(--amber-9); --warning-surface: var(--amber-3); --warning-text: var(--amber-12);
  --focus-ring: var(--amber-9);
  --glass-dark: rgba(20, 21, 23, .58);
  --glass-dark-edge: rgba(255, 255, 255, .1);
  --glass-light: rgba(244, 245, 246, .66);
  --glass-light-edge: rgba(255, 255, 255, .7);
  --glass-blur: saturate(140%) blur(18px);

  /* 3 · brief aliases ---------------------------------------------------- */
  --ink: var(--shell-2);
  --steel: var(--grey-4);
  --plate: var(--grey-6);
  --safety: var(--amber-9);
  --on-safety: var(--shell-2);
  --signal: var(--red-9);
  --ok: var(--green-9);

  /* type */
  --font-display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --text-2xs: .6875rem; --text-xs: .75rem; --text-sm: .8125rem; --text-base: .9375rem; --text-md: 1rem; --text-lg: 1.125rem;

  /* space (Livetools scale) */
  --space-1: .125rem; --space-2: .25rem; --space-3: .5rem; --space-4: .75rem; --space-5: 1rem; --space-6: 1.25rem;
  --space-7: 1.5rem; --space-8: 2rem; --space-9: 2.5rem; --space-10: 3rem; --space-11: 4rem; --space-12: 5rem; --space-13: 6.5rem;

  /* shape: the chamfer is the signature; radii only for status dots */
  --cham-xs: 5px; --cham-s: 8px; --cham-m: 14px; --cham-l: 24px; --cham-xl: 40px;
  --radius-full: 50%;

  /* motion: mechanical and precise */
  --ease-snap: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-standard: cubic-bezier(.2, 0, .38, 1);
  --dur-fast: .14s; --dur-base: .22s; --dur-slow: .5s;

  /* layout */
  --max: 1520px;
  --gutter: clamp(16px, 3.2vw, 48px);
  --section: clamp(72px, 8.5vw, 136px);
  --bar-h: 34px;
  --head-h: 68px;
  --nav-h: 46px;
  --z-sticky: 100; --z-mega: 200; --z-overlay: 300; --z-toast: 500;

  color-scheme: light;
}
@media (max-width: 1023px) { :root { --head-h: 60px; --nav-h: 0px; --bar-h: 32px; } }
@media (prefers-reduced-motion: reduce) { :root { --dur-fast: 0s; --dur-base: 0s; --dur-slow: 0s; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + var(--nav-h) + 16px); }
body { margin: 0; background: var(--surface-page); color: var(--text-primary); font: 400 var(--text-base)/1.55 var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--safety); color: var(--on-safety); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
[hidden] { display: none !important; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: square; stroke-linejoin: miter; }
.mono { font-family: var(--font-mono); font-feature-settings: "zero" 1; }
.mono-img { filter: grayscale(1) contrast(1.08) brightness(.94); }

/* ---------- type ---------- */
.h-display, .h-1, .h-2, .h-3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; line-height: .88; }
.h-display { font-size: clamp(3.6rem, 9.4vw, 9.6rem); font-weight: 900; line-height: .84; }
.h-1 { font-size: clamp(2.9rem, 6.2vw, 6.2rem); }
.h-2 { font-size: clamp(2.2rem, 4.2vw, 4.1rem); line-height: .9; }
.h-3 { font-size: clamp(1.4rem, 1.8vw, 1.75rem); line-height: 1; letter-spacing: 0; }
.h-display em, .h-1 em, .h-2 em { font-style: normal; color: var(--safety); }
.out { color: transparent !important; -webkit-text-stroke: 1.5px var(--stroke, var(--ink)); }
.lede { font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.55; color: var(--text-secondary); max-width: 54ch; }
.eyebrow { font: 500 var(--text-2xs)/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }

/* section tag: chamfered mono label, e.g. SEC 02 / CUTTING */
.sec-tag { --c: 7px; display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px 7px 10px; background: var(--ink); color: var(--shell-12); font: 500 var(--text-2xs)/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.sec-tag b { color: var(--safety); font-weight: 600; }
.sec-tag--light { background: var(--shell-12); color: var(--ink); }
.sec-tag--light b { color: var(--amber-11); }
.sec-tag--safety { background: var(--safety); color: var(--ink); }
.sec-tag--safety b { color: var(--ink); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(28px, 3.4vw, 52px); }
.sec-head__l { display: grid; justify-items: start; gap: 18px; }
.sec-head__l .lede { margin-top: 2px; }
.sec-head__r { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 767px) { .sec-head { flex-direction: column; align-items: flex-start; gap: 20px; } .sec-head__r { justify-content: flex-start; } }

/* ---------- chamfer utilities ---------- */
.cham { --c: var(--cham-m); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.cham-4 { --c: var(--cham-m); clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }

/* ---------- buttons ---------- */
.btn { --c: 9px; --bg: var(--ink); --fg: var(--shell-12); --sweep: var(--safety); --sweep-fg: var(--ink);
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px;
  background: var(--bg); color: var(--fg); font: 600 var(--text-sm)/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); overflow: hidden; transition: color var(--dur-base) var(--ease-snap); }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sweep); transform: translateX(-101%); transition: transform .38s var(--ease-snap); }
.btn > span, .btn > svg { position: relative; z-index: 1; }
.btn .i { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-snap); }
@media (hover: hover) { .btn:hover { color: var(--sweep-fg); } .btn:hover::after { transform: none; } .btn:hover .i--arrow { transform: translateX(4px); } }
.btn--safety { --bg: var(--safety); --fg: var(--on-safety); --sweep: var(--ink); --sweep-fg: var(--shell-12); }
.btn--light { --bg: var(--shell-12); --fg: var(--ink); --sweep: var(--safety); }
/* outline: the fill sits on ::before so the border survives the clipped corners */
.btn--line { --bg: var(--border-strong); --fill: var(--surface-page); --fg: var(--ink); --sweep: var(--ink); --sweep-fg: var(--shell-12); }
.btn--line::before { content: ""; position: absolute; inset: 1.5px; z-index: -2; background: var(--fill); clip-path: polygon(calc(var(--c) - .6px) 0, 100% 0, 100% calc(100% - var(--c) + .6px), calc(100% - var(--c) + .6px) 100%, 0 100%, 0 calc(var(--c) - .6px)); }
.btn--line-inv { --bg: rgba(237, 238, 240, .5); --fill: var(--ink); --fg: var(--shell-12); --sweep: var(--shell-12); --sweep-fg: var(--ink); }
.btn--line-inv::before { content: ""; position: absolute; inset: 1.5px; z-index: -2; background: var(--fill); clip-path: polygon(calc(var(--c) - .6px) 0, 100% 0, 100% calc(100% - var(--c) + .6px), calc(100% - var(--c) + .6px) 100%, 0 100%, 0 calc(var(--c) - .6px)); }
.btn--glass { --bg: rgba(255, 255, 255, .1); --fg: var(--shell-12); --sweep: var(--shell-12); --sweep-fg: var(--ink); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.btn--s { min-height: 40px; padding: 0 16px; font-size: var(--text-xs); --c: 7px; }
.btn--l { min-height: 58px; padding: 0 30px; font-size: var(--text-sm); --c: 11px; }
.btn--block { width: 100%; }
.btn--icon { padding: 0 13px; }
.btn:disabled { opacity: .45; pointer-events: none; }
.link-u { position: relative; display: inline-flex; align-items: center; gap: 8px; font: 600 var(--text-xs)/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; padding-bottom: 6px; }
.link-u::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform-origin: right; transition: transform .35s var(--ease-snap); }
@media (hover: hover) { .link-u:hover::after { transform: scaleX(.35); } }
.link-u .i { width: 16px; height: 16px; }


/* ---------- breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.crumbs > * { min-width: 0; }

/* ---------- segmented tabs + square icon buttons (shared) ---------- */
.seg { --c: 7px; display: inline-flex; padding: 3px; background: var(--surface-plate); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg button { --c: 5px; flex: none; height: 36px; padding: 0 14px; font: 600 var(--text-xs)/1 var(--font-sans); letter-spacing: .04em; color: var(--text-secondary); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); transition: background var(--dur-base), color var(--dur-base); }
.seg button:hover { color: var(--ink); }
.seg button.is-on { background: var(--ink); color: var(--shell-12); }
.sqbtn { --c: 8px; width: 46px; height: 46px; display: grid; place-items: center; background: rgba(237, 238, 240, .08); color: var(--shell-12); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); transition: background var(--dur-base), color var(--dur-base); }
.sqbtn:hover { background: var(--safety); color: var(--ink); }
.sqbtn--light { background: var(--surface-plate); color: var(--ink); }
.sqbtn--light:hover { background: var(--ink); color: var(--shell-12); }
.sqbtn:disabled { opacity: .35; }

/* ---------- tags & status ---------- */
.tag { --c: 5px; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; background: var(--ink); color: var(--shell-12); font: 600 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.tag--safety { background: var(--safety); color: var(--ink); }
.tag--line { background: var(--shell-12); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tag--plat { background: var(--grey-1); color: var(--ink); }
.tag--hazard { background: repeating-linear-gradient(-45deg, var(--safety) 0 6px, var(--ink) 6px 12px); color: var(--ink); position: relative; padding: 0 9px; }
.tag--hazard::before { content: ""; position: absolute; inset: 3px 4px; background: var(--safety); z-index: 0; }
.tag--hazard { isolation: isolate; }
.tag--hazard { text-shadow: none; }
.tag--hazard > * { position: relative; }
.hazard { background: repeating-linear-gradient(-45deg, var(--safety) 0 10px, var(--ink) 10px 20px); }

.dot { width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--grey-8); flex: none; }
.dot--ok, .stk--ok .dot { background: var(--ok); }
.dot--low, .stk--low .dot { background: var(--safety); }
.dot--out, .stk--out .dot { background: var(--grey-8); }
.status { display: inline-flex; align-items: center; gap: 8px; font: 500 var(--text-2xs)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--grey-8); box-shadow: 0 0 0 0 transparent; }
.status[data-state="open"]::before { background: var(--ok); animation: pulse 2.4s var(--ease-standard) infinite; }
.status[data-state="closing"]::before { background: var(--safety); animation: pulse 2.4s var(--ease-standard) infinite; }
.status[data-state="closed"]::before { background: var(--signal); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 157, 85, .55); } 70% { box-shadow: 0 0 0 7px rgba(31, 157, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0); } }

/* ---------- glass ---------- */
.glass { background: var(--glass-light); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: inset 0 0 0 1px var(--glass-light-edge), inset 0 1px 0 rgba(255, 255, 255, .9), 0 18px 40px -20px rgba(20, 21, 23, .35); }
.glass--dark { background: var(--glass-dark); color: var(--text-on-shell); box-shadow: inset 0 0 0 1px var(--glass-dark-edge), inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 60px -24px rgba(0, 0, 0, .6); }

/* ---------- blueprint grid ---------- */
.bp { background-image: linear-gradient(var(--bp-major, rgba(20, 21, 23, .07)) 1px, transparent 1px), linear-gradient(90deg, var(--bp-major, rgba(20, 21, 23, .07)) 1px, transparent 1px), linear-gradient(var(--bp-minor, rgba(20, 21, 23, .035)) 1px, transparent 1px), linear-gradient(90deg, var(--bp-minor, rgba(20, 21, 23, .035)) 1px, transparent 1px); background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px; }
.bp--dark { --bp-major: rgba(237, 238, 240, .06); --bp-minor: rgba(237, 238, 240, .025); }

/* registration / crosshair marks */
.reg { position: absolute; width: 22px; height: 22px; pointer-events: none; color: currentColor; opacity: .5; }
.reg::before, .reg::after { content: ""; position: absolute; background: currentColor; }
.reg::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.reg::after { top: 50%; left: 0; right: 0; height: 1px; }
.reg i { position: absolute; inset: 5px; border: 1px solid currentColor; border-radius: var(--radius-full); }

/* ---------- dimension lines (SVG) — draw in on scroll ---------- */
.dim line, .dim path { stroke: currentColor; stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.dim .dim__ln { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); transition: stroke-dashoffset 1.1s var(--ease-snap) var(--d, 0s); }
.dim text { fill: currentColor; font: 500 11px var(--font-mono); letter-spacing: .08em; opacity: 0; transition: opacity .4s var(--ease-standard) calc(var(--d, 0s) + .7s); }
.dim .dim__ar { fill: currentColor; stroke: none; opacity: 0; transition: opacity .3s calc(var(--d, 0s) + .6s); }
.dim.is-in .dim__ln { stroke-dashoffset: 0; }
.dim.is-in text, .dim.is-in .dim__ar { opacity: 1; }

/* ---------- spec plate: a tool's rating plate ---------- */
.plate { --c: 10px; position: relative; padding: 16px 18px 14px; color: var(--ink);
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .18) 0 1px, transparent 1px 3px), linear-gradient(160deg, #f1f2f4, #c9cdd2 48%, #e3e6e9 70%, #b8bdc3);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.plate::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(20, 21, 23, .28); clip-path: inherit; pointer-events: none; }
.rivet { position: absolute; width: 8px; height: 8px; border-radius: var(--radius-full); background: radial-gradient(circle at 35% 30%, #fff, #a6abb1 55%, #5a5f68); box-shadow: 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 1px rgba(0, 0, 0, .3); }
.rivet:nth-of-type(1) { top: 10px; left: 14px; } .rivet:nth-of-type(2) { top: 10px; right: 10px; } .rivet:nth-of-type(3) { bottom: 10px; left: 10px; } .rivet:nth-of-type(4) { bottom: 10px; right: 14px; }
.plate__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 12px 10px; border-bottom: 1px solid rgba(20, 21, 23, .3); }
.plate__brand { font: 900 1.35rem/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; }
.plate__model { font: 500 10px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--grey-11); }
.plate__rows { display: grid; padding: 6px 12px 4px; }
.plate__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed rgba(20, 21, 23, .22); font: 500 11px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.plate__rows dt { color: var(--grey-11); }
.plate__rows dd { font-weight: 600; text-shadow: 0 1px 0 rgba(255, 255, 255, .55); }
.plate__foot { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px 0; font: 500 9.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--grey-11); }
.plate--glass { background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)); color: var(--shell-12); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.plate--glass::before { border-color: rgba(255, 255, 255, .22); }
.plate--glass .plate__head { border-color: rgba(255, 255, 255, .2); }
.plate--glass .plate__rows div { border-color: rgba(255, 255, 255, .16); }
.plate--glass .plate__rows dt, .plate--glass .plate__model, .plate--glass .plate__foot { color: var(--shell-10); }
.plate--glass .plate__rows dd { text-shadow: none; }
/* mini plate inside cards: 3 key specs */
.plate--mini { --c: 6px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; background: var(--surface-panel); border: 0; }
.plate--mini::before { display: none; }
.plate--mini div { padding: 7px 8px 6px; border-left: 1px solid var(--border-subtle); min-width: 0; }
.plate--mini div:first-child { border-left: 0; }
.plate--mini dt { font: 500 9px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.plate--mini dd { margin-top: 4px; font: 600 11px/1.1 var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- price ---------- */
.price { display: inline-flex; flex-direction: column; gap: 3px; }
.price b { font: 800 1.6rem/.9 var(--font-display); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.price small { font: 500 9.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
[data-price="trade"] .price small, :root[data-price="trade"] .price small { color: var(--amber-11); }

/* ---------- stock by branch ---------- */
.stk { display: flex; gap: 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.stk li { flex: 1; display: flex; align-items: center; gap: 5px; padding: 7px 0 7px 6px; font: 500 10px/1 var(--font-mono); letter-spacing: .06em; color: var(--text-secondary); border-left: 1px solid var(--border-subtle); }
.stk li:first-child { border-left: 0; padding-left: 0; }
.stk b { margin-left: auto; padding-right: 6px; color: var(--ink); font-weight: 600; }
.stk--out { color: var(--text-muted) !important; }
.stk--out b { color: var(--text-muted); }

/* ==========================================================================
   SHARED CHROME
   ========================================================================== */
.site-top { position: sticky; top: 0; z-index: var(--z-mega); }
/* Shopify wraps every section in <div class="shopify-section">. Make the wrapper box-less so
   sticky bars (.site-top, .pnav) and page-level flex/grid keep working across sections. */
.shopify-section, .shopify-section-group-header-group, .shopify-section-group-footer-group { display: contents; }
/* announcement bar with a hazard-stripe edge */
.bar { position: relative; height: var(--bar-h); background: var(--shell-1); color: var(--shell-11); font: 500 var(--text-2xs)/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; overflow: hidden; transition: margin-top .35s var(--ease-snap); }
.site-top.is-hidden .bar { margin-top: calc(var(--bar-h) * -1); }
.bar__in { display: flex; align-items: center; height: 100%; gap: 20px; }
.bar__edge { width: 46px; height: 100%; flex: none; margin-left: calc(var(--gutter) * -1); clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.bar__msgs { position: relative; flex: 1; height: 100%; }
.bar__msg { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(100%); transition: transform .5s var(--ease-snap), opacity .5s; white-space: nowrap; }
.bar__msg b { color: var(--safety); font-weight: 600; }
.bar__msg.is-active { opacity: 1; transform: none; }
.bar__msg.is-out { opacity: 0; transform: translateY(-100%); }
.bar__links { display: flex; align-items: center; gap: 22px; }
.bar__links a:hover { color: var(--shell-12); }
.bar .status { color: var(--shell-12); }
@media (max-width: 1023px) { .bar__links a, .bar__links .bar__sep { display: none; } .bar__edge { width: 28px; } }
@media (max-width: 559px) { .bar__links { display: none; } .bar__msg { font-size: 10px; letter-spacing: .06em; } }

.header { position: relative; background: var(--surface-shell); color: var(--text-on-shell); transition: background var(--dur-base); }
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--border-on-shell); }
.header.is-scrolled { background: rgba(20, 21, 23, .84); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.header.is-mega { background: var(--surface-shell); }
.header__main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 2.4vw, 40px); height: var(--head-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--shell-12); }
.logo__mark { width: 38px; height: 38px; flex: none; }
.logo__word { display: grid; line-height: 1; }
.logo__word b { font: 900 1.7rem/.82 var(--font-display); letter-spacing: .04em; }
.logo__word small { margin-top: 3px; font: 500 8.5px/1 var(--font-mono); letter-spacing: .32em; color: var(--shell-10); }
.hsearch { --c: 8px; position: relative; display: flex; align-items: center; gap: 12px; width: 100%; max-width: 640px; height: 44px; padding: 0 8px 0 16px; background: rgba(237, 238, 240, .07); color: var(--shell-10); text-align: left; font-size: var(--text-sm); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); box-shadow: inset 0 0 0 1px var(--border-on-shell); transition: background var(--dur-base); }
.hsearch:hover { background: rgba(237, 238, 240, .12); color: var(--shell-12); }
.hsearch span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hsearch kbd { font: 500 10px/1 var(--font-mono); padding: 5px 7px; background: rgba(237, 238, 240, .1); color: var(--shell-11); }
.header__tools { display: flex; align-items: center; gap: 4px; }
.mode { --c: 6px; display: inline-flex; padding: 3px; background: rgba(237, 238, 240, .08); box-shadow: inset 0 0 0 1px var(--border-on-shell); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); margin-right: 8px; }
.mode button { --c: 4px; height: 30px; padding: 0 11px; font: 600 10px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--shell-10); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); transition: background var(--dur-base) var(--ease-snap), color var(--dur-base); }
.mode button.is-on { background: var(--shell-12); color: var(--ink); }
.mode button[data-mode="trade"].is-on { background: var(--safety); }
.mode--light { background: var(--surface-plate); box-shadow: none; }
.mode--light button { color: var(--text-secondary); }
.mode--light button.is-on { background: var(--ink); color: var(--shell-12); }
.tool-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; color: var(--shell-11); font: 500 var(--text-xs)/1 var(--font-sans); transition: color var(--dur-fast); }
.tool-btn:hover { color: var(--shell-12); }
.tool-btn .i { width: 22px; height: 22px; }
.tool-btn__lbl { display: grid; margin-left: 8px; text-align: left; line-height: 1.15; }
.tool-btn__lbl small { font: 500 9px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--shell-9); }
.count { --c: 4px; position: absolute; top: 3px; left: 19px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; background: var(--safety); color: var(--ink); font: 700 10px/1 var(--font-mono); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); transition: transform .3s var(--ease-snap); }
.count.is-empty { background: var(--shell-6); color: var(--shell-11); }
.count.bump { animation: bump .5s var(--ease-snap); }
@keyframes bump { 30% { transform: scale(1.35) rotate(-6deg); } }
.burger, .m-only { display: none; }
@media (max-width: 1279px) { .tool-btn__lbl { display: none; } }
@media (max-width: 1023px) {
  .header__main { grid-template-columns: auto 1fr auto; gap: 10px; }
  .hsearch, .mode--head, .tool-btn--acct { display: none; }
  .burger, .m-only { display: inline-flex; }
  .header__tools { justify-self: end; }
  .logo__mark { width: 32px; height: 32px; } .logo__word b { font-size: 1.45rem; } .logo__word small { font-size: 7.5px; letter-spacing: .26em; }
  .tool-btn { padding: 0 8px; }
}
@media (max-width: 380px) { .logo__word small { display: none; } }

/* nav row */
.nav { height: var(--nav-h); border-top: 1px solid var(--border-on-shell); }
.nav__in { display: flex; align-items: stretch; height: 100%; gap: 2px; }
.nav__item { position: relative; display: flex; }
.nav__link { display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; color: var(--shell-11); font: 500 var(--text-sm)/1 var(--font-sans); white-space: nowrap; transition: color var(--dur-fast); }
.nav__link::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 2px; background: var(--safety); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-snap); }
.nav__item:hover .nav__link, .nav__item.is-open .nav__link { color: var(--shell-12); }
.nav__item:hover .nav__link::after, .nav__item.is-open .nav__link::after { transform: none; }
.nav__link .i { width: 14px; height: 14px; transition: transform var(--dur-base) var(--ease-snap); }
.nav__item.is-open .nav__link .i { transform: rotate(180deg); }
.nav__all { padding-left: 0; color: var(--shell-12); font-weight: 600; }
.nav__all .bars { width: 16px; height: 12px; background: linear-gradient(currentColor 0 0) 0 0 / 100% 2px no-repeat, linear-gradient(currentColor 0 0) 0 50% / 70% 2px no-repeat, linear-gradient(currentColor 0 0) 0 100% / 100% 2px no-repeat; }
.nav__item:first-child .nav__link::after { left: 0; }
.nav__sep { width: 1px; margin: 12px 8px; background: var(--border-on-shell); }
.nav__spacer { flex: 1; }
.nav__kidlat .nav__link { color: var(--safety); font-weight: 600; }
.nav__kidlat .bolt { width: 12px; height: 16px; fill: var(--safety); stroke: none; }
@media (max-width: 1360px) { .nav__link { padding: 0 9px; font-size: var(--text-xs); } .nav__hide-l { display: none; } }
@media (max-width: 1180px) { .nav__hide-m { display: none; } }
@media (max-width: 1023px) { .nav { display: none; } }

/* mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: var(--z-mega); pointer-events: none; }
.mega__panel { position: absolute; left: 0; right: 0; top: 0; background: var(--surface-shell); color: var(--text-on-shell); border-top: 1px solid var(--border-on-shell); opacity: 0; visibility: hidden; transform: translateY(-8px); clip-path: inset(0 0 100% 0); transition: clip-path .45s var(--ease-snap), opacity .2s, transform .45s var(--ease-snap), visibility 0s .45s; pointer-events: auto; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.mega__panel.is-open { opacity: 1; visibility: visible; transform: none; clip-path: inset(0 0 0 0); transition: clip-path .5s var(--ease-snap), opacity .2s, transform .5s var(--ease-snap); }
.mega__in { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-block: 34px 38px; }
.mega__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 28px; }
.mega__col { padding-top: 14px; border-top: 1px solid var(--border-on-shell); transition: border-color var(--dur-base); }
.mega__col.is-hot { border-color: var(--safety); }
.mega__col h4 { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font: 800 1.15rem/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; }
.mega__col h4 a:hover { color: var(--safety); }
.mega__col h4 small { font: 500 9.5px/1 var(--font-mono); letter-spacing: .1em; color: var(--shell-9); }
.mega__col li a { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; color: var(--shell-10); font-size: var(--text-sm); transition: color var(--dur-fast), padding var(--dur-base) var(--ease-snap); }
.mega__col li a:hover { color: var(--shell-12); padding-left: 6px; }
.mega__col li a span { font: 500 10px/1.8 var(--font-mono); color: var(--shell-8); }
.mega__feat { --c: 18px; position: relative; display: grid; align-content: space-between; min-height: 100%; padding: 22px; background: var(--shell-3); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); overflow: hidden; }
.mega__feat-art { width: 76%; margin: 6px auto 0; aspect-ratio: 1; }
.mega__feat-art .tool { width: 100%; height: 100%; }
.mega__feat-name { font: 800 1.6rem/1 var(--font-display); text-transform: uppercase; }
.mega__feat-count { font: 500 10px/1 var(--font-mono); letter-spacing: .12em; color: var(--shell-9); text-transform: uppercase; }
.mega__brands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.btile { --c: 12px; position: relative; display: grid; gap: 16px; align-content: space-between; min-height: 132px; padding: 18px; background: var(--shell-3); color: var(--shell-12); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); transition: background var(--dur-base); }
.btile:hover { background: var(--shell-4); }
.btile:hover .wm { color: var(--safety); }
.btile small { font: 500 10px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--shell-9); }
.btile--house::after { content: "House brand"; position: absolute; top: 12px; right: 14px; font: 500 9px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--safety); }

/* brand wordmarks — all made up, each with its own type treatment */
.wm { display: inline-flex; align-items: center; gap: 6px; line-height: 1; white-space: nowrap; transition: color var(--dur-base); }
.wm--kidlat { font: italic 900 1.9rem/1 var(--font-display); letter-spacing: .02em; }
.wm--kidlat svg { width: 16px; height: 24px; fill: var(--safety); }
.wm--bakal { font: 900 1.55rem/1 var(--font-display); letter-spacing: .14em; }
.wm--bakal i { font-style: normal; font: 600 .62rem/1 var(--font-mono); letter-spacing: .1em; padding: 3px 4px; border: 1px solid currentColor; }
.wm--ironridge { font: 700 1.05rem/1 var(--font-sans); letter-spacing: .32em; }
.wm--voltmark { font: 600 1.25rem/1 var(--font-mono); letter-spacing: -.02em; }
.wm--voltmark::before { content: ""; width: 10px; height: 10px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.wm--tigas { font: 900 2.1rem/1 var(--font-display); letter-spacing: -.01em; transform: scaleX(.92); transform-origin: left; }
.wm--northgate { display: grid; gap: 2px; font: 800 1.25rem/1 var(--font-display); letter-spacing: .08em; }
.wm--northgate small { font: 500 8px/1 var(--font-mono) !important; letter-spacing: .38em !important; color: inherit !important; opacity: .7; }
.wm--precisa { font: 300 1.35rem/1 var(--font-sans); letter-spacing: .28em; }
.wm--precisa b { font-weight: 600; }

/* scrim */
.scrim { position: fixed; inset: 0; z-index: calc(var(--z-overlay) - 1); background: rgba(11, 12, 13, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.scrim.is-on { opacity: 1; visibility: visible; transition: opacity .35s; }
.scrim.is-mega { z-index: calc(var(--z-mega) - 1); }

/* search overlay: smoked glass panel from the top */
.search { position: fixed; inset: 0 0 auto; z-index: var(--z-overlay); max-height: 100dvh; overflow: auto; background: rgba(20, 21, 23, .86); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); color: var(--text-on-shell); transform: translateY(-104%); visibility: hidden; transition: transform .55s var(--ease-snap), visibility 0s .55s; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .7); }
.search.is-open { transform: none; visibility: visible; transition: transform .55s var(--ease-snap); }
.search__in { padding-block: 26px 40px; }
.search__top { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border-on-shell); }
.search__top .i { width: 28px; height: 28px; color: var(--safety); }
.search__top input { flex: 1; min-width: 0; height: 64px; background: none; border: 0; outline: 0; font: 800 clamp(1.6rem, 3.2vw, 2.8rem)/1 var(--font-display); text-transform: uppercase; color: var(--shell-12); }
.search__top input::placeholder { color: var(--shell-8); }
.search__x { --c: 6px; width: 44px; height: 44px; display: grid; place-items: center; background: rgba(237, 238, 240, .08); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.search__x:hover { background: var(--safety); color: var(--ink); }
.search__meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 20px 0 12px; }
.search__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.search__chips button { --c: 5px; height: 30px; padding: 0 12px; font: 500 11px/1 var(--font-mono); letter-spacing: .06em; background: rgba(237, 238, 240, .08); color: var(--shell-11); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.search__chips button:hover { background: var(--shell-12); color: var(--ink); }
#searchLabel { font: 500 var(--text-2xs)/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--shell-9); }
.search__results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.sres { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border-on-shell); transition: background var(--dur-fast), padding var(--dur-base) var(--ease-snap); }
.sres:hover { padding-left: 8px; }
.sres:hover .sres__main b { color: var(--safety); }
.sres__art { --c: 8px; width: 64px; height: 64px; background: var(--grey-6); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.sres__art .tool { width: 100%; height: 100%; }
.sres__main { display: grid; gap: 3px; min-width: 0; }
.sres__main small { font: 500 10px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--shell-9); }
.sres__main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--dur-fast); }
.sres__main .mono { font-size: 10.5px; color: var(--shell-10); letter-spacing: .04em; }
.sres mark { background: var(--safety); color: var(--ink); padding: 0 1px; }
.sres__side { display: grid; justify-items: end; gap: 6px; }
.sres__side .price b { font-size: 1.3rem; }
.sres__side .price small { color: var(--shell-9); text-align: right; }
.sres__stk { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--shell-10); }
.sres__all { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding-bottom: 5px; border-bottom: 1.5px solid var(--safety); font: 600 var(--text-xs)/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--shell-12); }
.sres__all .i { width: 16px; height: 16px; color: var(--safety); }
.sres__none { grid-column: 1 / -1; padding: 24px 0; color: var(--shell-10); }
.sres__none b { color: var(--shell-12); font-family: var(--font-mono); }
@media (max-width: 767px) { .search__results { grid-template-columns: 1fr; } .sres { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; } .sres__art { width: 52px; height: 52px; } .sres__stk { display: none; } }

/* drawers (cart + quote) */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-overlay); width: min(480px, 100vw); display: flex; flex-direction: column; background: var(--surface-panel); transform: translateX(104%); visibility: hidden; transition: transform .55s var(--ease-snap), visibility 0s .55s; box-shadow: -40px 0 80px -30px rgba(0, 0, 0, .45); }
.drawer.is-open { transform: none; visibility: visible; transition: transform .55s var(--ease-snap); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 18px; background: var(--ink); color: var(--shell-12); }
.drawer__head h2 { display: flex; align-items: baseline; gap: 12px; font: 900 1.9rem/1 var(--font-display); text-transform: uppercase; }
.drawer__head h2 small { font: 500 var(--text-2xs)/1 var(--font-mono); letter-spacing: .12em; color: var(--shell-9); }
.drawer__x { --c: 6px; width: 40px; height: 40px; display: grid; place-items: center; background: rgba(237, 238, 240, .08); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.drawer__x:hover { background: var(--safety); color: var(--ink); }
.drawer__body { flex: 1; overflow: auto; padding: 4px 22px 20px; overscroll-behavior: contain; }
.drawer__foot { padding: 18px 22px 22px; background: var(--surface-raised); border-top: 1px solid var(--border-subtle); display: grid; gap: 12px; }
.drawer__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.drawer__row > span { font: 500 var(--text-2xs)/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); }
.drawer__row b { font: 800 1.8rem/1 var(--font-display); }
.drawer__fine { font-size: var(--text-xs); color: var(--text-muted); }
.drawer__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer__empty { display: grid; justify-items: center; gap: 12px; padding: 30px 8px; text-align: center; color: var(--text-secondary); }
.drawer__empty-art { --c: 18px; width: 160px; height: 160px; background: var(--surface-plate); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.drawer__empty-art .tool { width: 100%; height: 100%; }
.drawer__empty .h-3 { color: var(--ink); }
.drawer__empty p { max-width: 32ch; font-size: var(--text-sm); }
/* free delivery gauge */
.ship { padding: 16px 22px; background: var(--surface-raised); border-bottom: 1px solid var(--border-subtle); }
.ship p { font-size: var(--text-sm); }
.ship__bar { position: relative; height: 12px; margin-top: 10px; background: repeating-linear-gradient(90deg, var(--grey-7) 0 1px, transparent 1px 10%), var(--grey-5); }
.ship__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 1%); background: var(--ink); transition: width .7s var(--ease-snap); }
.ship.is-done .ship__fill { background: var(--safety); }
.ship__scale { display: flex; justify-content: space-between; margin-top: 6px; font: 500 9.5px/1 var(--font-mono); letter-spacing: .08em; color: var(--text-muted); }
/* line items */
.li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border-subtle); }
.li__art { --c: 8px; width: 72px; height: 72px; background: var(--surface-plate); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.li__art .tool { width: 100%; height: 100%; }
.li__main { display: grid; gap: 3px; min-width: 0; align-content: start; }
.li__main small { font-size: 10px; color: var(--text-muted); letter-spacing: .04em; }
.li__main b { font-size: var(--text-sm); font-weight: 600; line-height: 1.3; }
.li__opt { font-size: var(--text-xs); color: var(--text-secondary); }
.li__row { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.li__rm { font: 500 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.li__rm:hover { color: var(--signal); }
.li__nudge { margin-top: 6px; font: 500 10.5px/1.3 var(--font-mono); color: var(--amber-11); }
.li__nudge::before { content: "▲ "; }
.li__nudge.is-on { color: var(--success-text); }
.li__nudge.is-on::before { content: "✓ "; }
.li__price { display: grid; justify-items: end; align-content: start; gap: 4px; font: 800 1.25rem/1 var(--font-display); }
.li__price small { font: 500 10px/1 var(--font-mono); color: var(--text-muted); }
.li__note input { width: 100%; height: 34px; margin-top: 8px; padding: 0 10px; background: var(--surface-raised); border: 1px solid var(--border-default); font-size: var(--text-xs); }
.li__note input:focus { outline: 0; border-color: var(--ink); }
.qty { display: inline-flex; align-items: center; height: 32px; box-shadow: inset 0 0 0 1px var(--border-default); }
.qty button { width: 30px; height: 100%; font: 600 15px/1 var(--font-mono); color: var(--text-secondary); }
.qty button:hover { background: var(--ink); color: var(--shell-12); }
.qty input { width: 38px; height: 100%; border: 0; background: none; text-align: center; font: 600 12px/1 var(--font-mono); }
.qty input:focus { outline: 0; background: var(--surface-raised); }
/* quote form */
.qform { display: grid; gap: 12px; padding: 18px 0 4px; }
.qform h3 { font: 800 1.3rem/1 var(--font-display); text-transform: uppercase; }
.qform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 5px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); }
.field input, .field select, .field textarea { width: 100%; height: 42px; padding: 0 12px; background: var(--surface-raised); border: 1px solid var(--border-default); border-radius: 0; font-size: var(--text-sm); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.field__err { min-height: 0; font: 500 10.5px/1.3 var(--font-mono); color: var(--danger-text); }
.field.is-bad input { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.field.is-bad .field__err::before { content: "⚠ "; }
.sent { display: grid; justify-items: start; gap: 12px; padding: 34px 0; }
.sent__stamp { --c: 14px; width: 72px; height: 72px; display: grid; place-items: center; background: var(--safety); color: var(--ink); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.sent__stamp svg { width: 44px; height: 44px; }
.sent__stamp path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .7s var(--ease-snap) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sent__kicker { font-size: var(--text-2xs); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.sent p { color: var(--text-secondary); }
.sent__meta { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin: 6px 0 10px; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.sent__meta div { padding: 12px 0; }
.sent__meta dt { font: 500 9.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.sent__meta dd { margin-top: 5px; font: 600 var(--text-sm)/1 var(--font-mono); }
.drawer.is-sent .drawer__foot { display: none; }
@media (max-width: 479px) { .qform__grid { grid-template-columns: 1fr; } }

/* mobile nav */
.mnav { position: fixed; inset: 0 auto 0 0; z-index: var(--z-overlay); width: min(420px, 100vw); display: flex; flex-direction: column; background: var(--surface-shell); color: var(--text-on-shell); transform: translateX(-104%); visibility: hidden; transition: transform .55s var(--ease-snap), visibility 0s .55s; }
.mnav.is-open { transform: none; visibility: visible; transition: transform .55s var(--ease-snap); }
.mnav__head { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); border-bottom: 1px solid var(--border-on-shell); }
.mnav__body { flex: 1; overflow: auto; padding: 8px var(--gutter) 24px; }
.mnav__search { width: 100%; max-width: none; margin: 10px 0 14px; }
.mnav__acc { border-bottom: 1px solid var(--border-on-shell); }
.mnav__acc > button, .mnav__link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 0; font: 800 1.35rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
.mnav__acc > button small, .mnav__link small { font: 500 10px/1 var(--font-mono); letter-spacing: .1em; color: var(--shell-9); }
.mnav__acc > button .i { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-snap); }
.mnav__acc.is-open > button .i { transform: rotate(45deg); color: var(--safety); }
.mnav__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-snap); }
.mnav__acc.is-open .mnav__sub { grid-template-rows: 1fr; }
.mnav__sub > div { overflow: hidden; }
.mnav__sub a { display: flex; justify-content: space-between; padding: 9px 0; color: var(--shell-10); font-size: var(--text-sm); }
.mnav__sub a span { font: 500 10px/1.6 var(--font-mono); color: var(--shell-8); }
.mnav__sub div > :last-child { margin-bottom: 14px; }
.mnav__link { border-bottom: 1px solid var(--border-on-shell); }
.mnav__link--kidlat { color: var(--safety); }
.mnav__foot { display: grid; gap: 14px; padding: 18px var(--gutter) 22px; border-top: 1px solid var(--border-on-shell); background: var(--shell-1); }
.mnav__foot .mode { justify-self: start; margin: 0; }
.mnav__foot p { font: 500 var(--text-2xs)/1.5 var(--font-mono); letter-spacing: .06em; color: var(--shell-9); text-transform: uppercase; }

/* toast */
.toast { --c: 10px; position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast); display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 14px 18px 14px 14px; background: var(--ink); color: var(--shell-12); font-size: var(--text-sm); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); transform: translate(-50%, calc(100% + 140px)); transition: transform .5s var(--ease-snap); pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); }
.toast__ic { width: 26px; height: 26px; display: grid; place-items: center; flex: none; background: var(--safety); color: var(--ink); }
.toast__ic .i { width: 15px; height: 15px; stroke-width: 2.4; }
.toast[data-kind="bad"] .toast__ic { background: var(--signal); color: var(--white); }

/* to-top: a gauge ring */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: calc(var(--z-overlay) - 2); width: 48px; height: 48px; display: grid; place-items: center; background: var(--ink); color: var(--shell-12); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease-snap); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top::before { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p, 0) * 100%); background: var(--safety); }
.to-top .i { width: 18px; height: 18px; }

/* ==========================================================================
   PRODUCT CARD
   ========================================================================== */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface-raised); }
.card__media { --c: var(--cham-l); position: relative; display: block; aspect-ratio: 1 / .92; background: var(--surface-plate); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%); overflow: hidden; }
.card__grid { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; background-image: linear-gradient(rgba(20, 21, 23, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 21, 23, .06) 1px, transparent 1px); background-size: 20px 20px; }
.card__art { position: absolute; inset: 6% 6% 4%; width: 88%; height: 90%; transition: transform .6s var(--ease-out); }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.card__sku { position: absolute; right: 14px; top: 14px; font-size: 9.5px; letter-spacing: .1em; color: var(--text-muted); }
.card__media::after { content: ""; position: absolute; right: 0; bottom: 0; width: var(--c); height: var(--c); background: linear-gradient(135deg, transparent 50%, var(--safety) 50%); transform: translate(100%, 100%); transition: transform .35s var(--ease-snap); }
@media (hover: hover) {
  .card:hover .card__art { transform: scale(1.06) rotate(-2deg); }
  .card:hover .card__grid { opacity: 1; }
  .card:hover .card__media::after { transform: none; }
  .card:hover .card__title a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
}
.card__specs { display: none; }
.card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 14px 14px 16px; }
.card__brand { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); }
.card__brand span { letter-spacing: .02em; color: var(--ink); }
.card__brand em { font-style: normal; color: var(--text-muted); }
.card__title { font-size: var(--text-base); font-weight: 600; line-height: 1.3; min-height: 2.6em; }
.card__buy { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.card__price { display: grid; gap: 6px; }
.card__tier { font-size: 9.5px; letter-spacing: .04em; color: var(--text-muted); }
.card__tier b { font: 600 9.5px var(--font-mono); color: var(--ink); }
.card__acts { display: flex; gap: 6px; }
.card__acts .btn--line { --fill: var(--surface-raised); }
.card__acts .btn__lbl { display: none; }
@media (max-width: 559px) {
  .card__body { padding: 12px 10px 12px; gap: 8px; }
  .card__title { font-size: var(--text-sm); }
  .card__buy { flex-direction: column; align-items: stretch; }
  .card__acts .btn--safety { flex: 1; padding: 0 8px; }
  .plate--mini dd { font-size: 10px; }
  .stk li { font-size: 9px; gap: 3px; padding-left: 4px; }
  .stk li .dot { width: 5px; height: 5px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; background: var(--surface-shell); color: var(--text-on-shell-muted); overflow: hidden; }
.footer .hazard { height: 8px; }
.branches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--border-on-shell); }
.branch { display: grid; gap: 10px; align-content: start; padding: 34px 28px 30px 0; border-right: 1px solid var(--border-on-shell); }
.branch + .branch { padding-left: 28px; }
.branch:last-child { border-right: 0; }
.branch__code { font: 500 10px/1 var(--font-mono); letter-spacing: .14em; color: var(--safety); }
.branch h4 { font: 800 1.5rem/1 var(--font-display); text-transform: uppercase; color: var(--shell-12); }
.branch p { font-size: var(--text-sm); line-height: 1.5; }
.branch .status { color: var(--shell-12); }
.branch__links { display: flex; gap: 16px; margin-top: 4px; font: 500 10.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.branch__links a { color: var(--shell-12); border-bottom: 1px solid var(--shell-7); padding-bottom: 3px; }
.branch__links a:hover { border-color: var(--safety); color: var(--safety); }
.footer__main { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 56px 48px; }
.footer__brand { display: grid; gap: 18px; align-content: start; }
.footer__brand p { max-width: 34ch; font-size: var(--text-sm); }
.footer h5 { margin-bottom: 14px; font: 500 var(--text-2xs)/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--shell-12); }
.footer__col li a { display: inline-block; padding: 5px 0; font-size: var(--text-sm); transition: color var(--dur-fast); }
.footer__col li a:hover { color: var(--safety); }
.socials { display: flex; gap: 6px; }
.socials a { --c: 6px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--shell-4); color: var(--shell-12); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); transition: background var(--dur-base); }
.socials a:hover { background: var(--safety); color: var(--ink); }
.socials .i { width: 18px; height: 18px; }
.pays { display: flex; flex-wrap: wrap; gap: 6px; }
.pay { height: 28px; display: inline-flex; align-items: center; padding: 0 9px; background: var(--shell-4); color: var(--shell-11); font: 600 10px/1 var(--font-mono); letter-spacing: .06em; box-shadow: inset 0 0 0 1px var(--border-on-shell); }
.pay--terms { background: var(--safety); color: var(--ink); box-shadow: none; }
.footer__mark { display: flex; justify-content: center; padding-top: 56px; overflow: hidden; }
.footer__wm { position: relative; }
.footer__word { font: 900 clamp(5rem, 23vw, 22rem)/.74 var(--font-display); letter-spacing: -.01em; color: transparent; -webkit-text-stroke: 1px var(--shell-6); white-space: nowrap; user-select: none; transform: translateY(14%); }
.footer__dim { position: absolute; left: 0; right: 0; top: -24px; height: 1px; background: var(--shell-7); color: var(--shell-8); }
.footer__dim::before, .footer__dim::after { content: ""; position: absolute; top: -8px; width: 1px; height: 17px; background: currentColor; }
.footer__dim::before { left: 0; } .footer__dim::after { right: 0; }
.footer__dim span { position: absolute; left: 50%; top: -6px; translate: -50% 0; padding: 0 14px; background: var(--surface-shell); font: 500 10px/1.2 var(--font-mono); letter-spacing: .16em; color: var(--shell-9); white-space: nowrap; }
.footer__legal { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px 22px; border-top: 1px solid var(--border-on-shell); font: 500 10px/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; background: var(--surface-shell); }
.footer__legal nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__legal a:hover { color: var(--shell-12); }
@media (max-width: 1023px) {
  .branches { grid-template-columns: 1fr 1fr; }
  .branch { padding: 26px 18px 24px 0 !important; border-right: 0; border-bottom: 1px solid var(--border-on-shell); }
  .branch:nth-child(odd) { border-right: 1px solid var(--border-on-shell); }
  .branch:nth-child(even) { padding-left: 18px !important; }
  .footer__main { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 559px) { .branches { grid-template-columns: 1fr; } .branch, .branch:nth-child(even) { padding-left: 0 !important; border-right: 0 !important; } }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out) var(--rd, 0s), transform .9s var(--ease-out) var(--rd, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="wipe"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease-snap) var(--rd, 0s); }
[data-reveal="wipe"].is-in { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal="wipe"] { opacity: 1; transform: none; clip-path: none; transition: none; }
  .dim .dim__ln { stroke-dashoffset: 0; transition: none; }
  .dim text, .dim .dim__ar { opacity: 1; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
