/* ==========================================================================
   DECM Engineering — shared base layer
   Component library driven entirely by custom properties. Each direction's
   theme.css redefines the token contract below; this file never hard-codes
   a brand colour, radius or type size.
   ========================================================================== */

/* --- token contract (defaults; every theme.css overrides these) ---------- */
:root {
  --brand: #1257c4;
  --brand-600: #0f47a1;
  --brand-700: #0c3a85;
  --brand-900: #0a1b3d;
  --accent: #00d4ff;
  --accent-2: #7ce8ff;

  --bg: #ffffff;
  --surface: #f6f8fc;
  --surface-2: #eef3fa;
  --border: #d8e2f0;

  --text: #0d1b2a;
  --text-dim: #5a6a80;
  --text-inv: #ffffff;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(13, 27, 42, .06);
  --shadow: 0 8px 24px rgba(13, 27, 42, .08);
  --shadow-lg: 0 24px 60px rgba(13, 27, 42, .14);

  --font-display: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, Consolas, "Cascadia Mono", monospace;

  --fs-hero: clamp(2.2rem, 1.2rem + 4vw, 4.2rem);
  --fs-h2: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem);
  --fs-h3: clamp(1.05rem, .95rem + .5vw, 1.3rem);
  --lh-display: 1.06;

  --tracking-display: -0.02em;
  --display-transform: none;

  --section-py: clamp(3.5rem, 2rem + 6vw, 7rem);
  --container: 1240px;
  --gutter: clamp(1rem, .6rem + 2vw, 2.5rem);

  --ring: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 clamp(.95rem, .9rem + .2vw, 1.0625rem)/1.65 var(--font-body);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-display);
  font-weight: 800;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* --- layout primitives -------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-py); position: relative; }
.section--tint { background: var(--surface); }
.section--brand { background: var(--brand-900); color: var(--text-inv); }
.section--brand .lede, .section--brand .eyebrow { color: color-mix(in srgb, #fff 72%, transparent); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 700 .72rem/1 var(--font-mono);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: ""; width: 1.6rem; height: 2px; background: var(--accent); border-radius: 2px;
}
.h2 { font-size: var(--fs-h2); text-transform: var(--display-transform); }
.h3 { font-size: var(--fs-h3); }
.lede { margin-top: 1rem; color: var(--text-dim); font-size: 1.05em; }

/* --- placeholder blocks ------------------------------------------------- */
.ph {
  position: relative;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg,
      color-mix(in srgb, var(--brand) 7%, transparent) 0 10px,
      transparent 10px 20px),
    var(--surface-2);
  border: 1px dashed color-mix(in srgb, var(--brand) 30%, transparent);
  display: grid; place-items: center;
  overflow: hidden;
  min-height: 120px;
}
.ph::after {
  content: attr(data-label);
  font: 600 .72rem/1.4 var(--font-mono);
  letter-spacing: .04em;
  color: color-mix(in srgb, var(--text) 55%, transparent);
  text-align: center;
  padding: .6rem 1rem;
  max-width: 24ch;
}
.ph--wide { aspect-ratio: 16 / 10; min-height: 0; }
.ph--square { aspect-ratio: 1; min-height: 0; }
.ph--tall { aspect-ratio: 3 / 4; min-height: 0; }
.ph--logo { height: 40px; width: 128px; min-height: 0; border-radius: var(--radius-sm); }
.ph--logo::after { font-size: .62rem; max-width: none; }
.ph--map { aspect-ratio: 16 / 9; min-height: 0; }

/* placeholder copy markers keep it obvious nothing here is final */
.pl { color: inherit; }
.pl-note {
  display: inline-block;
  font: 600 .68rem/1 var(--font-mono);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent);
  padding: .35rem .55rem; border-radius: 999px;
}

/* --- buttons ------------------------------------------------------------ */
.btn {
  --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--border);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: .95rem;
  text-transform: var(--btn-transform, none);
  letter-spacing: var(--btn-tracking, 0);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--brand); --btn-fg: var(--text-inv); --btn-bd: var(--brand); }
.btn--primary:hover { --btn-bg: var(--brand-600); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--brand-900); --btn-bd: var(--accent); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--brand); --btn-bd: color-mix(in srgb, var(--brand) 40%, transparent); }
.btn--on-dark { --btn-bg: rgba(255,255,255,.08); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.34); }
.btn--sm { padding: .55rem .9rem; font-size: .84rem; border-radius: var(--radius-sm); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* --- header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding .3s var(--ease), background .3s, border-color .3s, box-shadow .3s;
  padding-block: 1.05rem;
}
.site-header.is-stuck {
  padding-block: .6rem;
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; gap: clamp(1rem, .5rem + 2vw, 2.5rem); }
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 900;
  letter-spacing: .04em; font-size: 1.15rem;
  flex: 0 0 auto;
}
.brand-mark {
  width: 2.1rem; height: 2.1rem; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center;
  color: #fff; font-size: .78rem; font-weight: 900; letter-spacing: 0;
}
.brand span small {
  display: block; font: 500 .58rem/1 var(--font-mono);
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim);
  margin-top: .2rem;
}
.nav { display: flex; gap: clamp(.6rem, .2rem + 1vw, 1.6rem); margin-inline: auto; }
.nav a {
  position: relative; padding: .4rem 0;
  font-size: .92rem; font-weight: 600; color: var(--text-dim);
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent); transition: right .3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }

.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { border-color: var(--brand); transform: translateY(-1px); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 1.15rem; height: 1.15rem; padding: 0 .25rem;
  border-radius: 999px; background: var(--accent); color: var(--brand-900);
  font: 800 .68rem/1.15rem var(--font-body); text-align: center;
}
.cart-count[data-empty="true"] { display: none; }
.hamburger { display: none; }

.drawer-nav {
  position: fixed; inset: 0 0 0 auto; width: min(86vw, 340px); z-index: 90;
  background: var(--bg); border-left: 1px solid var(--border);
  padding: 1.5rem var(--gutter);
  transform: translateX(100%); transition: transform .34s var(--ease);
  display: flex; flex-direction: column; gap: .4rem;
  box-shadow: var(--shadow-lg);
}
.drawer-nav.is-open { transform: none; }
.drawer-nav a { padding: .8rem .2rem; border-bottom: 1px solid var(--border); font-weight: 600; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(10, 27, 61, .55); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

/* --- hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 1.5rem + 6vw, 6.5rem); }
.hero-grid {
  display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
}
.hero h1 { font-size: var(--fs-hero); text-transform: var(--display-transform); }
.hero .lede { max-width: 48ch; font-size: 1.12em; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.2rem, .5rem + 2vw, 2.75rem);
  margin-top: 2.5rem; padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.hero-stats .stat-num { font-size: 1.7rem; }
.hero-media { position: relative; }

/* --- trust strip -------------------------------------------------------- */
.trust {
  border-block: 1px solid var(--border);
  padding-block: 1.6rem;
  background: var(--surface);
}
.trust-inner { display: flex; align-items: center; gap: clamp(1rem, .5rem + 2vw, 2.5rem); flex-wrap: wrap; }
.trust-label {
  font: 700 .7rem/1.4 var(--font-mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-dim); max-width: 14ch;
}
.trust-logos { display: flex; gap: clamp(.75rem, .4rem + 1.4vw, 2rem); flex-wrap: wrap; flex: 1; }

/* --- card grids --------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, .6rem + 1.4vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, .9rem + 1vw, 1.9rem);
  display: flex; flex-direction: column; gap: .75rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.card:hover::before { transform: none; }
.card-icon {
  width: 3rem; height: 3rem; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
  margin-bottom: .35rem;
}
.card-icon svg { width: 1.6rem; height: 1.6rem; }
.card p { color: var(--text-dim); font-size: .95em; }
.card-link {
  margin-top: auto; padding-top: .5rem;
  font-weight: 700; font-size: .88rem; color: var(--brand);
  display: inline-flex; align-items: center; gap: .4rem;
}
.card-link::after { content: "→"; transition: transform .25s var(--ease); }
.card:hover .card-link::after { transform: translateX(4px); }

/* --- category tiles ----------------------------------------------------- */
.tile {
  position: relative; display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 1.15rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s;
  overflow: hidden;
}
.tile .ph { margin-bottom: .9rem; border-style: solid; }
.tile-name { font-weight: 700; font-size: .98rem; }
.tile-meta { font: 500 .76rem/1.4 var(--font-mono); color: var(--text-dim); letter-spacing: .04em; }
.tile:hover { transform: translateY(-5px) scale(1.01); box-shadow: var(--shadow-lg); }

/* --- configurator teaser ------------------------------------------------ */
.teaser {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--brand-900), var(--brand));
  color: var(--text-inv);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  align-items: center;
}
.teaser::after {
  content: ""; position: absolute; width: 26rem; height: 26rem; right: -8rem; top: -10rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 68%);
  pointer-events: none;
}
.teaser .ph { background-color: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.teaser .ph::after { color: rgba(255, 255, 255, .75); }
.teaser-list { display: grid; gap: .5rem; margin-top: 1.25rem; }
.teaser-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.teaser-list li::before { content: "✓"; color: var(--accent); font-weight: 900; }

/* --- projects ----------------------------------------------------------- */
.project { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg); }
.project .ph { border: 0; border-radius: 0; }
.project-body { padding: 1.25rem; display: grid; gap: .5rem; }
.project-tag {
  font: 700 .68rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand);
}
.project:hover .ph { transform: scale(1.03); }
.project .ph { transition: transform .5s var(--ease); }

/* --- stats -------------------------------------------------------------- */
.stat-num {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
  line-height: 1; letter-spacing: -.03em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.section--brand .stat-num { color: var(--accent); }
.stat-label {
  margin-top: .5rem; font-size: .84rem; color: var(--text-dim);
  font-weight: 600;
}
.section--brand .stat-label { color: rgba(255, 255, 255, .7); }

/* --- testimonials ------------------------------------------------------- */
.quote {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  display: grid; gap: 1rem;
}
.quote-mark { font: 900 2.5rem/1 var(--font-display); color: var(--accent); }
.quote p { font-size: 1.02em; }
.quote-by { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.quote-by .ph { width: 2.75rem; height: 2.75rem; border-radius: 999px; min-height: 0; }
.quote-by .ph::after { content: ""; }
.quote-name { font-weight: 700; font-size: .9rem; }
.quote-role { font-size: .8rem; color: var(--text-dim); }

/* --- CTA band ----------------------------------------------------------- */
.cta-band {
  background: linear-gradient(100deg, var(--brand), var(--accent));
  color: var(--brand-900);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 1rem + 3vw, 3.25rem);
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between;
}
.cta-band h2 { font-size: var(--fs-h2); max-width: 30ch; }
.cta-band .btn { --btn-bg: var(--brand-900); --btn-fg: #fff; --btn-bd: var(--brand-900); }

/* --- contact ------------------------------------------------------------ */
.contact-grid { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
.contact-list { display: grid; gap: 1rem; margin-top: 1.75rem; }
.contact-item {
  display: flex; gap: .9rem; align-items: center;
  padding: .95rem 1.1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg);
  transition: border-color .2s, transform .2s var(--ease);
}
.contact-item:hover { border-color: var(--brand); transform: translateX(3px); }
.contact-item svg { width: 1.25rem; height: 1.25rem; color: var(--brand); flex: 0 0 auto; }
.contact-item b { display: block; font-size: .92rem; }
.contact-item span { font-size: .82rem; color: var(--text-dim); }

/* --- footer ------------------------------------------------------------- */
.site-footer {
  background: var(--brand-900); color: rgba(255, 255, 255, .72);
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) 1.5rem;
  font-size: .92rem;
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr repeat(3, 1fr); }
.site-footer h4 {
  color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  font-family: var(--font-mono); margin-bottom: 1rem;
}
.site-footer a:hover { color: var(--accent); }
.footer-links { display: grid; gap: .55rem; }
.social-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.social {
  width: 2.4rem; height: 2.4rem; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  transition: transform .25s var(--ease), background .25s, border-color .25s;
}
.social svg { width: 1.1rem; height: 1.1rem; }
.social:hover { transform: translateY(-3px); background: var(--accent); border-color: var(--accent); color: var(--brand-900); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .8rem;
}

/* --- WhatsApp float ----------------------------------------------------- */
.wa-float {
  position: fixed; z-index: 70;
  right: clamp(1rem, .5rem + 1vw, 1.75rem);
  bottom: calc(clamp(1rem, .5rem + 1vw, 1.75rem) + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.1rem; border-radius: 999px;
  background: #25d366; color: #05331a; font-weight: 700; font-size: .88rem;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .4);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float svg { width: 1.3rem; height: 1.3rem; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float span { display: none; }
@media (min-width: 640px) { .wa-float span { display: inline; } }

/* ==========================================================================
   Shop
   ========================================================================== */
.shop-layout {
  display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
}
.filters {
  position: sticky; top: 6rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); padding: 1.25rem;
  display: grid; gap: 1.5rem;
}
.filter-group > h4 {
  font: 700 .72rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: .8rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  padding: .4rem .7rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg);
  font-size: .8rem; font-weight: 600; color: var(--text-dim);
  transition: all .2s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--text-inv); }
.range-row { display: flex; align-items: center; gap: .6rem; font: 600 .8rem var(--font-mono); color: var(--text-dim); }
input[type="range"] { flex: 1; accent-color: var(--brand); }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.result-count { font: 600 .85rem var(--font-mono); color: var(--text-dim); }
.select {
  padding: .6rem .8rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg); font-size: .88rem; font-weight: 600;
}

.p-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.p-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); }
.p-media { position: relative; background: var(--surface); display: grid; place-items: center; aspect-ratio: 4 / 3; }
.p-media svg { width: 58%; height: 58%; color: var(--brand); opacity: .85; transition: transform .4s var(--ease); }
.p-card:hover .p-media svg { transform: scale(1.06) rotate(-1deg); }
.p-badge {
  position: absolute; top: .7rem; left: .7rem;
  padding: .3rem .6rem; border-radius: 999px;
  font: 800 .66rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
}
.p-badge--stock { background: #d7f7e4; color: #0a5c32; }
.p-badge--custom { background: color-mix(in srgb, var(--brand) 14%, #fff); color: var(--brand-700); }
.p-body { padding: 1rem 1.1rem 1.15rem; display: grid; gap: .45rem; flex: 1; }
.p-cat { font: 600 .68rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.p-name { font-weight: 700; font-size: .98rem; line-height: 1.35; }
.p-spec { font-size: .8rem; color: var(--text-dim); }
.p-foot { margin-top: auto; padding-top: .75rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.p-price { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.p-price small { display: block; font: 500 .68rem/1 var(--font-mono); color: var(--text-dim); margin-top: .25rem; }
.p-price--quote { font-size: .9rem; color: var(--brand); }

/* cart + modal */
.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 90;
  width: min(92vw, 420px);
  background: var(--bg); border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .34s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.is-open { transform: none; }
.drawer-header, .drawer-footer { padding: 1.15rem var(--gutter); border-block: 1px solid var(--border); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; border-top: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem var(--gutter); display: grid; gap: .8rem; align-content: start; }
.drawer-footer { border-bottom: 0; display: grid; gap: .6rem; }
.line {
  display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; gap: .8rem; align-items: center;
  padding-bottom: .8rem; border-bottom: 1px solid var(--border);
}
.line-media { aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--surface); display: grid; place-items: center; color: var(--brand); }
.line-media svg { width: 70%; height: 70%; }
.line-name { font-weight: 700; font-size: .85rem; line-height: 1.3; }
.line-meta { font: 500 .72rem/1.3 var(--font-mono); color: var(--text-dim); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.qty button { width: 1.7rem; height: 1.7rem; background: none; border: 0; font-weight: 800; color: var(--brand); }
.qty span { min-width: 1.5rem; text-align: center; font: 700 .82rem var(--font-mono); }
.subtotal { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.05rem; }
.subtotal-note { font-size: .76rem; color: var(--text-dim); }
.empty-cart { text-align: center; color: var(--text-dim); padding: 3rem 1rem; font-size: .9rem; }

.modal {
  position: fixed; inset: 0; z-index: 95;
  display: grid; place-items: center; padding: var(--gutter);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal-card {
  position: relative; z-index: 2;
  width: min(100%, 760px); max-height: 88vh; overflow-y: auto;
  background: var(--bg); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  transform: translateY(14px) scale(.98); transition: transform .3s var(--ease);
}
.modal.is-open .modal-card { transform: none; }
.modal-media { background: var(--surface); display: grid; place-items: center; padding: 2rem; min-height: 260px; }
.modal-media svg { width: 80%; max-width: 220px; color: var(--brand); }
.modal-body { padding: clamp(1.25rem, 1rem + 1vw, 2rem); display: grid; gap: .8rem; align-content: start; }
.modal-close {
  position: absolute; top: .6rem; right: .6rem; z-index: 3;
  width: 2.2rem; height: 2.2rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg); font-size: 1.1rem; line-height: 1;
}
.spec-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.spec-table th, .spec-table td { text-align: left; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.spec-table th { font: 600 .75rem var(--font-mono); color: var(--text-dim); letter-spacing: .04em; width: 45%; }

/* ==========================================================================
   Configurator
   ========================================================================== */
.cfg-head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-end; margin-bottom: 1.75rem; }
.cfg-tabs { display: inline-flex; gap: .3rem; padding: .3rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.cfg-tab {
  padding: .6rem 1.1rem; border: 0; border-radius: calc(var(--radius) - 4px);
  background: none; font-weight: 700; font-size: .88rem; color: var(--text-dim);
  transition: all .25s var(--ease);
}
.cfg-tab[aria-selected="true"] { background: var(--bg); color: var(--brand); box-shadow: var(--shadow-sm); }

.cfg-layout {
  display: grid; gap: clamp(1rem, .6rem + 1.5vw, 1.75rem);
  grid-template-columns: 220px minmax(0, 1fr) 330px;
  align-items: start;
}
.steps { display: grid; gap: .3rem; position: sticky; top: 6rem; }
.step {
  display: grid; grid-template-columns: 1.85rem minmax(0, 1fr); gap: .7rem; align-items: center;
  padding: .7rem .8rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: none; text-align: left;
  transition: all .25s var(--ease);
}
.step-num {
  width: 1.85rem; height: 1.85rem; border-radius: 999px;
  display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--bg);
  font: 800 .78rem var(--font-mono); color: var(--text-dim);
  transition: all .25s;
}
.step-name { font-weight: 600; font-size: .88rem; color: var(--text-dim); }
.step:hover { background: var(--surface); }
.step[aria-current="true"] { background: var(--surface); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.step[aria-current="true"] .step-num { background: var(--brand); border-color: var(--brand); color: var(--text-inv); }
.step[aria-current="true"] .step-name { color: var(--text); }
.step[data-done="true"] .step-num { background: var(--accent); border-color: var(--accent); color: var(--brand-900); }
.step[data-done="true"] .step-num::after { content: "✓"; }
.step[data-done="true"] .step-num span { display: none; }

.cfg-stage {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
.stage-viz {
  position: relative; padding: clamp(1rem, .5rem + 2vw, 2rem);
  display: grid; place-items: center; min-height: 300px;
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 70%),
    var(--surface);
}
.stage-viz svg { width: min(100%, 560px); color: var(--brand); }
.viz-tag {
  position: absolute; top: .9rem; left: .9rem;
  font: 700 .68rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim);
}
.stage-panel { padding: clamp(1.1rem, .8rem + 1vw, 1.75rem); background: var(--bg); border-top: 1px solid var(--border); }
.stage-panel h3 { font-size: 1.05rem; }
.stage-hint { margin-top: .4rem; font-size: .86rem; color: var(--text-dim); }

.opt-grid { display: grid; gap: .65rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 1.25rem; }
.opt {
  position: relative; text-align: left;
  padding: .85rem .95rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg);
  transition: all .22s var(--ease);
  display: grid; gap: .2rem;
}
.opt b { font-size: .9rem; font-weight: 700; }
.opt small { font: 500 .74rem/1.3 var(--font-mono); color: var(--text-dim); }
.opt:hover:not([disabled]) { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.opt[aria-pressed="true"] {
  border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--bg));
  box-shadow: inset 0 0 0 1px var(--brand);
}
.opt[aria-pressed="true"]::after {
  content: "✓"; position: absolute; top: .5rem; right: .6rem;
  font-size: .72rem; font-weight: 900; color: var(--brand);
}
.opt[disabled] { opacity: .42; cursor: not-allowed; text-decoration: line-through var(--text-dim); }

.notice {
  display: flex; gap: .6rem; align-items: flex-start;
  margin-top: 1.1rem; padding: .8rem .95rem;
  border-radius: var(--radius-sm);
  background: #fff6e0; border: 1px solid #f0c975; color: #6b4708;
  font-size: .84rem;
}
.notice b { display: block; }
.notice[hidden] { display: none; }

.cfg-spec {
  position: sticky; top: 6rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); overflow: hidden;
}
.spec-head { padding: 1rem 1.15rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.spec-head h3 { font-size: .95rem; }
.spec-head p { font: 500 .74rem/1.4 var(--font-mono); color: var(--text-dim); margin-top: .2rem; }
.spec-rows { padding: .4rem 1.15rem; display: grid; }
.spec-row {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: .6rem 0; border-bottom: 1px dashed var(--border);
  font-size: .85rem;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--text-dim); font: 500 .76rem var(--font-mono); letter-spacing: .02em; }
.spec-row dd { margin: 0; font-weight: 700; text-align: right; }
.spec-row dd.is-empty { color: var(--text-dim); font-weight: 500; font-style: italic; }
.progress { height: 4px; background: var(--surface-2); }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .4s var(--ease); }

.price-panel {
  margin: 1.15rem; padding: .95rem 1.1rem;
  border: 1px dashed color-mix(in srgb, var(--brand) 40%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--brand) 5%, transparent);
}
.price-panel .label { display: block; font: 600 .7rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.price-panel .value { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; margin-top: .4rem; color: var(--brand); }
.price-panel .hint { display: block; font-size: .74rem; line-height: 1.5; color: var(--text-dim); margin-top: .45rem; }
.cfg-actions { padding: 0 1.15rem 1.15rem; display: grid; gap: .55rem; }

/* ==========================================================================
   Motion
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-reveal="left"] { transform: translateX(-26px); }
[data-reveal][data-reveal="scale"] { transform: scale(.96); }

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .cfg-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .steps {
    grid-column: 1 / -1; position: static;
    grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr);
    overflow-x: auto; padding-bottom: .4rem;
  }
  .step { grid-template-columns: 1.85rem; justify-items: center; }
  .step .step-name { display: none; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .hamburger { display: grid; }
  .hero-grid, .teaser, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; }
  .cfg-layout { grid-template-columns: minmax(0, 1fr); }
  .cfg-spec { position: static; }
}
@media (max-width: 720px) {
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .modal-card { grid-template-columns: minmax(0, 1fr); }
  .modal-media { min-height: 180px; }
}
@media (max-width: 560px) {
  .grid--2, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 1.25rem 2rem; }
}

/* --- option blocks + toast (used by app.js) ----------------------------- */
.opt-block + .opt-block { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.spec-group-label {
  font: 700 .74rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); margin: 0;
}
.opt-block .stage-hint { margin-top: .35rem; }

.toast {
  position: fixed; z-index: 120;
  left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 140%);
  max-width: min(92vw, 420px);
  display: grid; gap: .15rem;
  padding: .85rem 1.1rem;
  border-radius: var(--radius);
  background: var(--brand-900); color: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform .35s var(--ease), opacity .35s;
  opacity: 0;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast b { font-size: .92rem; }
.toast span { font-size: .82rem; color: rgba(255, 255, 255, .72); }
@media (min-width: 640px) { .toast { left: auto; right: 1.5rem; transform: translate(0, 140%); } .toast.is-on { transform: none; } }

/* --- prototype review bar (review aid, not part of the design) ---------- */
.proto-bar {
  position: relative; z-index: 100;
  background: #0d1b2a; color: #fff;
  font: 600 .74rem/1 var(--font-mono);
  letter-spacing: .04em;
  padding: .55rem 0;
}
.proto-bar .container { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; }
.proto-bar b { color: #7ce8ff; }
.proto-bar nav { display: flex; gap: .9rem; flex-wrap: wrap; }
.proto-bar a { opacity: .72; border-bottom: 1px solid transparent; padding-bottom: 2px; }
.proto-bar a:hover, .proto-bar a[aria-current="page"] { opacity: 1; border-bottom-color: #7ce8ff; }

/* The quick-view scrim lives inside .modal, so it must stay inert until the
   modal opens — otherwise it silently swallows every click on the page. */
.modal .scrim { position: absolute; }
.modal.is-open .scrim { opacity: 1; pointer-events: auto; }

/* Price and action sit side by side when they fit and stack cleanly when they
   do not — "Price on request" plus "Request quote" is wider than a 3-up card. */
.p-foot { flex-wrap: wrap; row-gap: .6rem; }
.p-price, .p-foot .btn { white-space: nowrap; }
.p-price small { white-space: normal; }
