/* ==========================================================================
   LERONMEDSUPPLIES: non-pharmaceutical catalogue
   Dials: variance 5 / motion 4 / density 6
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --bg: #F3F5F4;
  --surface: #FFFFFF;
  --surface-2: #E9EDEB;
  --tile: #E4E8E6;
  --ink: #0E1714;
  --ink-2: #3F4B46;
  --muted: #64716B;
  --line: #D9E0DC;
  --line-strong: #C3CCC7;
  --accent: #1E6B52;
  --accent-hover: #175942;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCEBE4;
  --accent-text: #1E6B52;
  --danger: #B42318;
  --shadow: 0 1px 2px rgb(14 23 20 / .04), 0 8px 24px -12px rgb(14 23 20 / .14);
  --shadow-lg: 0 2px 4px rgb(14 23 20 / .04), 0 24px 60px -20px rgb(14 23 20 / .28);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 26px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --wrap: 1240px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1210; --surface: #131B18; --surface-2: #1A2420; --tile: #1C2622;
    --ink: #E7EDEA; --ink-2: #B3BFBA; --muted: #8A9893; --line: #24302B; --line-strong: #33413B;
    --accent: #5DBE96; --accent-hover: #74CBA7; --accent-ink: #06130E; --accent-soft: #163329; --accent-text: #74CBA7;
    --danger: #F97066;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6);
    --shadow-lg: 0 24px 60px -20px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1210; --surface: #131B18; --surface-2: #1A2420; --tile: #1C2622;
  --ink: #E7EDEA; --ink-2: #B3BFBA; --muted: #8A9893; --line: #24302B; --line-strong: #33413B;
  --accent: #5DBE96; --accent-hover: #74CBA7; --accent-ink: #06130E; --accent-soft: #163329; --accent-text: #74CBA7;
  --danger: #F97066;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6);
  --shadow-lg: 0 24px 60px -20px rgb(0 0 0 / .7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { flex-shrink: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: var(--bg); padding: .7rem 1rem; border-radius: var(--r-sm); }
.skip:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }

/* ---------- Utility bar ---------- */
.utility { border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.utility__inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: .55rem; }
.utility .dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; margin: 0 .6rem; vertical-align: middle; }
.utility__links { display: flex; gap: 1.4rem; }
.utility__links a:hover { color: var(--ink); }

/* ---------- Nav ---------- */
.nav-shell { position: sticky; top: 0; z-index: 40; padding-top: .75rem; }
.nav {
  display: flex; align-items: center; gap: 1.5rem;
  padding: .55rem .6rem .55rem 1rem;
  background: color-mix(in oklab, var(--surface) 82%, transparent);
  border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow .3s var(--ease);
}
.nav-shell.is-stuck .nav { box-shadow: var(--shadow); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; letter-spacing: -.02em; }
.brand__mark { width: 30px; height: 30px; }
.brand__mark rect { fill: var(--accent); }
.brand__mark path { fill: var(--accent-ink); }
.brand__name { font-size: .98rem; font-weight: 700; letter-spacing: .015em; text-transform: uppercase; line-height: 1; }
.brand__name span { color: var(--accent-text); font-weight: 500; letter-spacing: .03em; }
.brand__mark .brand__plus { fill: color-mix(in oklab, var(--accent-ink) 62%, var(--accent)); }
.nav__links { display: flex; gap: .2rem; margin-left: auto; }
.nav__links a { padding: .5rem .85rem; border-radius: 999px; font-size: .92rem; color: var(--ink-2); transition: background-color .2s, color .2s; }
.nav__links a:hover { background: var(--surface-2); color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: .4rem; }
.theme-toggle, .icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  transition: background-color .2s, transform .2s var(--ease);
}
.theme-toggle:hover, .icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.theme-toggle:active, .icon-btn:active { transform: scale(.94); }
.theme-toggle svg, .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.quote-btn {
  display: inline-flex; align-items: center; gap: .55rem; height: 40px; padding: 0 .5rem 0 .95rem;
  border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .9rem; font-weight: 500;
  transition: transform .2s var(--ease), background-color .2s;
}
.quote-btn:active { transform: scale(.97); }
.quote-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.quote-btn__count {
  min-width: 26px; height: 26px; padding: 0 .45rem; display: grid; place-items: center;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: .78rem;
}
.quote-btn.bump .quote-btn__count { animation: bump .45s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.3); } }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: var(--h); padding: 0 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: .97rem; white-space: nowrap;
  transition: background-color .25s var(--ease), border-color .25s, color .25s, transform .2s var(--ease), box-shadow .25s;
}
.btn:active { transform: scale(.975); }
.btn--primary { background: var(--accent); color: var(--accent-ink); padding-right: .45rem; }
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 10px 24px -12px color-mix(in oklab, var(--accent) 70%, transparent); }
.btn--ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-2); }
.btn--text { background: none; color: var(--muted); padding-inline: .6rem; }
.btn--text:hover { color: var(--danger); }
.btn--sm { --h: 40px; font-size: .88rem; padding-inline: 1rem; }
.btn--primary.btn--sm { padding-right: 1rem; }
.btn--block { width: 100%; justify-content: space-between; padding-left: 1.3rem; }
.btn__icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  background: color-mix(in oklab, var(--accent-ink) 16%, transparent);
  transition: transform .35s var(--ease);
}
.btn__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn__icon { transform: translateX(3px) rotate(0deg); }
.btn .wa { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; color: var(--accent-text); }
.link-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Bezel (double frame) ---------- */
.bezel {
  padding: 7px; border-radius: var(--r-lg);
  background: color-mix(in oklab, var(--surface-2) 70%, transparent);
  border: 1px solid var(--line);
}
.bezel__core {
  border-radius: calc(var(--r-lg) - 7px); background: var(--surface);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), var(--shadow);
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
  min-height: min(calc(100dvh - 110px), 760px);
}
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.7rem); letter-spacing: -0.045em; line-height: 1.0; margin-top: 1.1rem; max-width: 12ch; padding-bottom: .06em; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero__sub { margin-top: 1.4rem; font-size: 1.12rem; color: var(--ink-2); max-width: 44ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.hero__media { position: relative; }
.hero__frame img { width: 100%; aspect-ratio: 3 / 2.15; object-fit: cover; }
.dispatch {
  position: absolute; left: -1.75rem; bottom: 2rem;
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1.1rem .85rem .95rem; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.dispatch__pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.dispatch__pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--accent); animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.dispatch__label { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.dispatch__time { font-weight: 600; font-size: .98rem; font-variant-numeric: tabular-nums; }

/* ---------- Stats ---------- */
.stats { padding-bottom: clamp(3rem, 7vw, 6rem); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin: 0; }
.stat { padding: 1.4rem 1.5rem 0 0; display: flex; flex-direction: column-reverse; gap: .35rem; }
.stat + .stat { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.stat dt { color: var(--muted); font-size: .9rem; }
.stat dd { margin: 0; display: flex; align-items: baseline; gap: .4rem; }
.stat .num { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat .unit { font-family: var(--mono); font-size: .82rem; color: var(--muted); }

/* ---------- Section head ---------- */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.035em; }
.section-head p { color: var(--ink-2); max-width: 52ch; justify-self: end; }

/* ---------- Catalogue ---------- */
.catalogue { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--surface); border-block: 1px solid var(--line); }
.cat-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.filters { position: sticky; top: 100px; }
.filters__title { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .75rem; }
.filters__list { display: grid; gap: 2px; }
.filter {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  padding: .6rem .8rem; border: 0; border-radius: var(--r-sm); background: transparent;
  color: var(--ink-2); font-size: .93rem; text-align: left;
  transition: background-color .2s, color .2s;
}
.filter:hover { background: var(--surface-2); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.filter__count { font-family: var(--mono); font-size: .75rem; opacity: .7; }
.filters__help { margin-top: 1.5rem; padding: 1rem; border-radius: var(--r); background: var(--accent-soft); font-size: .9rem; display: grid; gap: .35rem; }

.toolbar { display: flex; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.search { position: relative; flex: 1; max-width: 440px; }
.search svg { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.search input {
  width: 100%; height: 48px; padding: 0 2.6rem 0 2.75rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--bg); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent); background: var(--surface); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { position: absolute; right: .8rem; top: 50%; translate: 0 -50%; font-family: var(--mono); font-size: .75rem; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 6px; padding: .05rem .4rem; }
.toolbar__right { display: flex; align-items: center; gap: 1rem; }
.result-count { font-size: .88rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
select {
  height: 48px; padding: 0 2.5rem 0 1rem; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364716B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .9rem center / 16px;
  appearance: none; font-size: .92rem; cursor: pointer;
}
select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 1rem; }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: border-color .25s, box-shadow .35s var(--ease), transform .35s var(--ease);
  animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media {
  position: relative; display: block; width: 100%; border: 0; padding: 0; background: var(--tile);
  aspect-ratio: 5 / 4; overflow: hidden; cursor: zoom-in;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img, .card:hover .card__media .illo { transform: scale(1.045); }
.card__badge {
  position: absolute; left: .7rem; top: .7rem; padding: .22rem .55rem; border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 88%, transparent); backdrop-filter: blur(6px);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .02em; color: var(--ink-2);
}
.card__body { display: flex; flex-direction: column; gap: .35rem; padding: .95rem 1rem 1rem; flex: 1; }
.card__sku { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.card__title { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.card__title button { all: unset; cursor: pointer; }
.card__title button:hover { color: var(--accent-text); }
.card__title button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.card__spec { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .85rem; }
.card__pack { font-size: .78rem; color: var(--ink-2); font-family: var(--mono); }
.add-btn {
  display: inline-flex; align-items: center; gap: .35rem; height: 36px; padding: 0 .85rem 0 .7rem;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
  font-size: .84rem; font-weight: 500; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.add-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.add-btn:hover { border-color: var(--accent); color: var(--accent-text); }
.add-btn:active { transform: scale(.95); }
.add-btn.is-added { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

[data-theme="dark"] .card__media img, [data-theme="dark"] .pd__media img, [data-theme="dark"] .line__thumb img { filter: brightness(.86) contrast(1.04); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card__media img, :root:not([data-theme="light"]) .pd__media img { filter: brightness(.86) contrast(1.04); } }

/* illustrations */
.illo { width: 100%; height: 100%; display: grid; place-items: center; transition: transform .6s var(--ease);
  background-image: radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--ink) 9%, transparent) 1px, transparent 0);
  background-size: 14px 14px; }
.illo svg { width: 58%; height: auto; max-height: 82%; fill: none; stroke: var(--ink-2); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.illo .f, .empty .f, .bento__icon .f { fill: var(--accent-soft); }
.illo .f2 { fill: var(--accent); stroke: var(--accent); }
.illo .thin { stroke-width: 1.3; }

/* empty */
.empty { text-align: center; padding: 3.5rem 1.5rem; border: 1px dashed var(--line-strong); border-radius: var(--r); background: var(--bg); }
.empty svg { width: 96px; margin: 0 auto 1rem; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.empty h3 { font-size: 1.25rem; }
.empty p { color: var(--muted); max-width: 46ch; margin: .5rem auto 1.25rem; }
.empty__actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Restocking: staircase rail ---------- */
.restock { padding-block: clamp(4rem, 9vw, 7.5rem); }
.restock__head { display: grid; gap: 1.1rem; max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.restock__head h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.035em; }
.restock__head p { color: var(--ink-2); max-width: 58ch; }
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; align-items: start; }
.rail__step {
  --rise: 2.6rem;
  position: relative; display: grid; gap: .55rem; align-content: start;
  margin-top: calc((3 - var(--i)) * var(--rise));
  padding: 1.6rem 1.5rem 0 0; border-top: 1.5px solid var(--line-strong);
}
.rail__step::after { /* riser joining each step to the next */
  content: ""; position: absolute; right: 0; top: calc(-1 * var(--rise)); width: 1.5px; height: var(--rise); background: var(--line-strong);
}
.rail__step--last::after { display: none; }
.rail__step--last { border-top-color: var(--accent); }
.rail__node {
  position: absolute; top: 0; left: 0; translate: 0 -50%;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--line-strong);
  font-family: var(--mono); font-size: .78rem; color: var(--ink-2);
}
.rail__step--last .rail__node { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.rail__meta { margin-top: 1rem; justify-self: start; font-family: var(--mono); font-size: .72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem; white-space: nowrap; }
.rail__step h3 { font-size: 1.22rem; letter-spacing: -0.02em; }
.rail__step p { color: var(--ink-2); font-size: .95rem; max-width: 34ch; }
.rail__step .link-arrow { margin-top: .4rem; }

/* ---------- Facilities ---------- */
.facilities { padding-bottom: clamp(4rem, 8vw, 7rem); }
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee__track span { font-size: clamp(1.25rem, 2.4vw, 1.9rem); font-weight: 500; letter-spacing: -0.02em; color: var(--ink-2); padding-inline: 1.6rem; display: inline-flex; align-items: center; gap: 3.2rem; white-space: nowrap; }
.marquee__track span::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); margin-left: 1.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(150px, auto); gap: 1rem; }
.bento > * { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); padding: clamp(1.4rem, 2.5vw, 2rem); }
.bento__quote { grid-column: span 4; grid-row: span 2; margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  background: var(--ink); color: var(--bg); border-color: transparent; }
.bento__quote blockquote { margin: 0; }
.bento__quote p { font-size: clamp(1.35rem, 2.5vw, 2rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.25; max-width: 30ch; }
.bento__quote figcaption { display: flex; align-items: center; gap: .9rem; font-size: .9rem; opacity: .85; line-height: 1.45; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: .9rem; flex-shrink: 0; }
.bento__card { grid-column: span 2; display: flex; flex-direction: column; gap: .5rem; }
.bento__card h3 { font-size: 1.1rem; letter-spacing: -0.015em; }
.bento__card p { color: var(--ink-2); font-size: .93rem; }
.bento__card--accent { background: var(--accent-soft); border-color: transparent; justify-content: flex-end; }
.bento__card--accent .big { font-size: clamp(2.6rem, 4.5vw, 3.6rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.bento__card--accent .big span { font-size: .5em; margin-left: .1em; }
.bento__icon { width: 40px; height: 40px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: auto; }
.bento__card--wide { grid-column: span 4; flex-direction: row; align-items: center; gap: 2rem; justify-content: space-between; }
.bento__card--wide > div { max-width: 40ch; display: grid; gap: .5rem; }
.mini-list { display: grid; gap: .1rem; min-width: 260px; }
.mini-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list span { color: var(--muted); }
.mini-list strong { font-weight: 500; text-align: right; }
.bento > .bento__card:nth-of-type(3), .bento > .bento__card:nth-of-type(4) { grid-row: span 1; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 9vw, 7rem); align-items: start; }
.contact__info { display: grid; gap: 1.2rem; }
.contact__info h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.035em; }
.contact__info > p { color: var(--ink-2); max-width: 44ch; }
.contact__list { margin: .8rem 0 0; display: grid; border-top: 1px solid var(--line); }
.contact__list div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact__list dt { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-top: .15rem; }
.contact__list dd { margin: 0; font-size: .97rem; }
.contact__list a { color: var(--accent-text); font-weight: 500; }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.form { padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .88rem; font-weight: 500; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line-strong); background: var(--bg); border-radius: 12px;
  padding: .8rem .95rem; font-size: .96rem; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field select { height: auto; border-radius: 12px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .8rem; min-height: 0; }
.field__error:empty { display: none; }
.form__quote { border-radius: 12px; background: var(--surface-2); padding: .9rem 1rem; font-size: .88rem; }
.form__quote:empty { display: none; }
.form__quote p { color: var(--ink-2); }
.form__quote ul { margin-top: .5rem; display: grid; gap: .25rem; font-family: var(--mono); font-size: .78rem; color: var(--ink-2); }
.form__quote button { all: unset; cursor: pointer; color: var(--accent-text); font-weight: 500; }
.form__send { border: 0; padding: 0; margin: .3rem 0 0; display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding-top: 3.5rem; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer__brand { display: grid; gap: 1rem; align-content: start; }
.footer__brand p { color: var(--muted); max-width: 38ch; font-size: .93rem; }
.footer__cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; }
.footer__h { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .85rem; }
.footer__cols ul { display: grid; gap: .45rem; font-size: .93rem; }
.footer__cols a { color: var(--ink-2); }
.footer__cols a:hover { color: var(--accent-text); }
.footer__base { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); flex-wrap: wrap; }

/* ---------- Floating quote pill ---------- */
.float-quote {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 30;
  display: inline-flex; align-items: center; gap: .7rem; padding: .4rem .4rem .4rem 1.1rem; height: 52px;
  border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font-weight: 500; font-size: .92rem;
  box-shadow: var(--shadow-lg); transition: transform .4s var(--ease), opacity .3s, visibility .4s;
}
.float-quote .btn__icon { background: var(--accent); color: var(--accent-ink); }
.float-quote[hidden] { display: inline-flex; transform: translateY(140%); opacity: 0; pointer-events: none; visibility: hidden; }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgb(8 14 12 / .5); backdrop-filter: blur(3px); }
dialog[open] { animation: dlgIn .4s var(--ease); }
dialog[open]::backdrop { animation: fadeIn .3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes dlgIn { from { opacity: 0; transform: translateY(16px) scale(.985); } }

.product-dialog { width: min(100% - 2rem, 960px); margin: auto; }
.pd { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: calc(100dvh - 2rem); }
.pd__media { background: var(--tile); min-height: 100%; position: relative; }
.pd__media img, .pd__media .illo { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.pd__body { padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: 1rem; overflow-y: auto; }
.pd__top { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.pd__cat { font-family: var(--mono); font-size: .75rem; color: var(--accent-text); text-transform: uppercase; letter-spacing: .04em; }
.pd h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.03em; margin-top: .35rem; }
.pd__desc { color: var(--ink-2); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-table th, .spec-table td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-weight: 400; color: var(--muted); width: 38%; }
.pd__label { font-size: .85rem; font-weight: 500; margin-bottom: .45rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { height: 36px; padding: 0 .85rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); font-size: .85rem; font-family: var(--mono); transition: all .2s; }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pd__actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: auto; padding-top: .5rem; }
.stepper { display: inline-flex; align-items: center; height: 48px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); }
.stepper button { width: 44px; height: 100%; border: 0; background: none; font-size: 1.15rem; color: var(--ink-2); border-radius: 999px; }
.stepper button:hover { color: var(--ink); background: var(--surface-2); }
.stepper input { width: 52px; border: 0; background: none; text-align: center; font-family: var(--mono); font-size: .95rem; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; }
.stepper input:focus { outline: none; }
.stepper--sm { height: 34px; }
.stepper--sm button { width: 32px; font-size: 1rem; }
.stepper--sm input { width: 38px; font-size: .85rem; }
.pd__note { font-size: .8rem; color: var(--muted); }

.drawer { margin: 0 0 0 auto; height: 100dvh; width: min(100%, 440px); }
.drawer[open] { animation: drawerIn .45s var(--ease); }
@keyframes drawerIn { from { transform: translateX(100%); } }
.drawer__inner { height: 100%; display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line); }
.drawer__head { display: flex; justify-content: space-between; align-items: start; padding: 1.4rem 1.4rem 1rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.4rem; }
.drawer__head p { color: var(--muted); font-size: .88rem; margin-top: .2rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: .5rem 1.4rem; }
.drawer__foot { padding: 1rem 1.4rem 1.4rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.drawer__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: .85rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.line__thumb { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--tile); }
.line__thumb img, .line__thumb .illo { width: 100%; height: 100%; object-fit: cover; }
.line__thumb .illo { background-size: 8px 8px; }
.line__thumb .illo svg { width: 74%; stroke-width: 3; }
.line__name { font-weight: 500; font-size: .93rem; line-height: 1.3; }
.line__meta { font-size: .78rem; color: var(--muted); font-family: var(--mono); }
.line__right { display: grid; justify-items: end; gap: .3rem; }
.line__remove { all: unset; cursor: pointer; font-size: .76rem; color: var(--muted); min-height: 24px; padding: 0 .25rem; display: inline-flex; align-items: center; }
.line__remove:hover { color: var(--danger); }
.line__remove:focus-visible { outline: 2px solid var(--accent); border-radius: 4px; }
.drawer-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); display: grid; gap: .8rem; justify-items: center; }
.drawer-empty svg { width: 72px; fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drawer-empty strong { color: var(--ink); font-size: 1.05rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 60; translate: -50% 0;
  padding: .75rem 1.1rem; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .9rem;
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .35s var(--ease);
}
.toast.show { opacity: 1; transform: none; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .dispatch { left: 1rem; bottom: 1rem; }
  .cat-layout { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .filters { min-width: 0; }
  .filters { position: static; }
  .filters__title, .filters__help { display: none; }
  .filters__list { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: none; margin-inline: -1.25rem; padding-inline: 1.25rem; }
  .filters__list li { flex-shrink: 0; }
  .filter { border: 1px solid var(--line-strong); border-radius: 999px; white-space: nowrap; padding: .5rem .9rem; }
  .rail { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .rail__step { margin-top: 0; }
  .rail__step::after { display: none; }
  .bento__quote, .bento__card--wide { grid-column: span 6; }
  .bento__card { grid-column: span 3; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .utility__inner > p:first-child { display: none; }
  .utility__inner { justify-content: center; }
  .brand__name { font-size: .86rem; }
  .quote-btn__label { display: none; }
  .quote-btn { padding-left: .75rem; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 1.4rem; }
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
  .section-head p { justify-self: start; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search { max-width: none; }
  .search kbd { display: none; }
  .toolbar__right { justify-content: space-between; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .card__body { padding: .75rem; }
  .card__foot { flex-direction: column; align-items: stretch; }
  .add-btn { justify-content: center; }
  .rail { grid-template-columns: 1fr; row-gap: 0; border-left: 1.5px solid var(--line-strong); margin-left: 20px; }
  .rail__step { border-top: 0; padding: 0 0 2.2rem 2.2rem; }
  .rail__node { left: -20px; top: 0; translate: 0 0; }
  .rail__meta { margin-top: .5rem; }
  .bento__card { grid-column: span 6; }
  .bento__card--wide { flex-direction: column; align-items: stretch; }
  .mini-list { min-width: 0; }
  .form__row { grid-template-columns: 1fr; }
  .contact__list div { grid-template-columns: 90px 1fr; }
  .footer__inner, .footer__cols { grid-template-columns: 1fr; }
  .pd { grid-template-columns: 1fr; overflow-y: auto; }
  .pd__media img, .pd__media .illo { min-height: 0; aspect-ratio: 4 / 3; }
  .pd__body { overflow: visible; }
  .hero__ctas .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__track span:nth-child(n+10) { display: none; }
}
