/* ==========================================================================
   VMPL Electricals — design system
   Palette derives from the VMPL mark: leaf green, teal, lime.
   DOLLFINE's orange→magenta appears only inside DOLLFINE-marked blocks.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --ground:      #FFFFFF;
  --ground-alt:  #F4F7F2;
  --surface:     #FFFFFF;
  --surface-2:   #EDF2EA;
  --ink:         #0F1713;
  --ink-2:       #3C4C43;
  --muted:       #6A7A70;
  --line:        #E3E9DE;
  --line-2:      #CFD9C9;

  --green:       #0E7C43;
  --green-br:    #22B368;
  --green-dk:    #0A5B31;
  --teal:        #0B6F68;
  --lime:        #8A9E11;

  --df-a:        #E4620C;
  --df-b:        #C2005F;

  --hero-bg:     #080D0A;
  --hero-ink:    #F2F7F1;
  --hero-muted:  #93A899;
  --hero-line:   #1E2A22;

  --radius:      12px;
  --radius-sm:   8px;
  --shadow-sm:   0 1px 2px rgba(15,23,19,.05);
  --shadow:      0 2px 4px rgba(15,23,19,.04), 0 12px 28px -18px rgba(15,23,19,.28);
  --shadow-lg:   0 4px 8px rgba(15,23,19,.05), 0 30px 60px -30px rgba(15,23,19,.36);

  --disp: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1200px;
  --gut: 24px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:     #0B120E;
    --ground-alt: #111A15;
    --surface:    #121C16;
    --surface-2:  #18241D;
    --ink:        #E9F1EA;
    --ink-2:      #BDCBC1;
    --muted:      #8B9C91;
    --line:       #223028;
    --line-2:     #32443A;
    --green:      #4FD28B;
    --green-br:   #22B368;
    --green-dk:   #34B473;
    --teal:       #3FB5AC;
    --lime:       #BCD139;
    --df-a:       #FF8B3E;
    --df-b:       #FF4098;
    --shadow-sm:  0 1px 2px rgba(0,0,0,.4);
    --shadow:     0 2px 4px rgba(0,0,0,.35), 0 12px 28px -18px rgba(0,0,0,.9);
    --shadow-lg:  0 4px 8px rgba(0,0,0,.4), 0 30px 60px -30px rgba(0,0,0,1);
  }
}
:root[data-theme="dark"] {
  --ground:     #0B120E;
  --ground-alt: #111A15;
  --surface:    #121C16;
  --surface-2:  #18241D;
  --ink:        #E9F1EA;
  --ink-2:      #BDCBC1;
  --muted:      #8B9C91;
  --line:       #223028;
  --line-2:     #32443A;
  --green:      #4FD28B;
  --green-br:   #22B368;
  --green-dk:   #34B473;
  --teal:       #3FB5AC;
  --lime:       #BCD139;
  --df-a:       #FF8B3E;
  --df-b:       #FF4098;
  --shadow-sm:  0 1px 2px rgba(0,0,0,.4);
  --shadow:     0 2px 4px rgba(0,0,0,.35), 0 12px 28px -18px rgba(0,0,0,.9);
  --shadow-lg:  0 4px 8px rgba(0,0,0,.4), 0 30px 60px -30px rgba(0,0,0,1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Safety net: a long unbreakable string (a URL, a file path, a model code)
     can otherwise widen its container and push the whole page sideways. */
  overflow-wrap: break-word;
}

img, picture, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 {
  font-family: var(--disp);
  font-weight: 800;
  letter-spacing: -.022em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
@media (max-width: 600px) { :root { --gut: 18px; } }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--green-br), var(--teal));
  flex: none;
}

.band { padding: 84px 0; }
.band--alt { background: var(--ground-alt); }
.band--tight { padding: 56px 0; }
@media (max-width: 760px) { .band { padding: 56px 0; } .band--tight { padding: 40px 0; } }

.sec-head { max-width: 620px; margin: 0 0 40px; }
.sec-head h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 12px; }
.sec-head p { color: var(--ink-2); font-size: 17px; }

.sec-head--split {
  max-width: none; display: flex; gap: 28px;
  align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
}
.sec-head--split > div { max-width: 620px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none !important;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dk); transform: translateY(-1px); }
:root[data-theme="dark"] .btn--primary,
:root:not([data-theme="light"]) .btn--primary { color: #08120C; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .btn--primary { color: #fff; } }

.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }

.btn--onDark { border-color: rgba(255,255,255,.28); color: var(--hero-ink); background: transparent; }
.btn--onDark:hover { border-color: var(--green-br); color: var(--green-br); }

.btn--sm { padding: 9px 17px; font-size: 14px; }

.arrow { transition: transform .18s ease; }
.btn:hover .arrow, .lnk:hover .arrow { transform: translateX(3px); }

.lnk {
  font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 7px;
  color: var(--green); text-decoration: none;
}
.lnk:hover { text-decoration: none; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut);
  height: 74px; display: flex; align-items: center; gap: 20px;
}
/* The supplied logo is a JPEG with black text on white, so it needs a light
   plate to stay legible on a dark ground. In light themes the plate is
   invisible against the header; in dark it reads as a deliberate badge. */
.brand { display: flex; align-items: center; flex: none; }
.brand-plate {
  display: inline-flex; align-items: center;
  background: #fff; border-radius: 8px; padding: 6px 11px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05);
}
.brand img { height: 30px; width: auto; }
@media (max-width: 420px) { .brand img { height: 25px; } .brand-plate { padding: 5px 9px; } }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  padding: 8px 13px; border-radius: 7px; text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.on { color: var(--green); font-weight: 600; }

.hdr-side { display: flex; align-items: center; gap: 10px; flex: none; }

.lang {
  position: relative;
}
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em;
  color: var(--ink-2); background: transparent; border: 1px solid var(--line-2);
  padding: 8px 11px; border-radius: 7px; cursor: pointer;
}
.lang-btn:hover { border-color: var(--green); color: var(--green); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 6px; display: none; z-index: 120;
}
.lang.open .lang-menu { display: block; }
.lang-menu button {
  display: flex; width: 100%; align-items: baseline; gap: 9px; text-align: left;
  background: none; border: 0; padding: 9px 11px; border-radius: 7px;
  font-family: var(--sans); font-size: 14.5px; color: var(--ink); cursor: pointer;
}
.lang-menu button:hover { background: var(--surface-2); }
.lang-menu .code { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.lang-menu .soon { margin-left: auto; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }

.burger {
  display: none; background: none; border: 1px solid var(--line-2);
  border-radius: 7px; width: 40px; height: 40px; cursor: pointer;
  align-items: center; justify-content: center; color: var(--ink);
}
.burger svg { width: 19px; height: 19px; }

@media (max-width: 980px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--ground); border-bottom: 1px solid var(--line);
    padding: 12px var(--gut) 22px; gap: 2px; display: none; max-height: calc(100dvh - 74px);
    overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 12px; font-size: 16px; border-radius: 8px; }
  .burger { display: inline-flex; }
  .hdr-side { margin-left: auto; }
  .hdr-side .btn { display: none; }
}

/* ==========================================================================
   HERO  — deliberately dark in both themes
   ========================================================================== */
.hero {
  position: relative;
  background: var(--hero-bg);
  color: var(--hero-ink);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 780px; height: 780px; left: -220px; top: -320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,179,104,.20), transparent 66%);
}
.hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 620px; height: 620px; right: -180px; bottom: -300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(11,111,104,.20), transparent 66%);
}
.hero-in {
  position: relative; z-index: 1;
  max-width: var(--wrap); margin: 0 auto; padding: 74px var(--gut) 0;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.02fr);
  gap: 48px; align-items: center;
}
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; gap: 36px; padding-top: 54px; }
}

.hero .eyebrow { color: var(--green-br); }
.hero h1 {
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.02;
  letter-spacing: -.032em;
  margin: 0 0 22px;
}
.hero h1 .hl {
  background: linear-gradient(96deg, var(--green-br), #5ED89A 42%, var(--lime));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede {
  font-size: clamp(16px, 1.6vw, 18.5px);
  color: var(--hero-muted); max-width: 50ch; margin: 0 0 32px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 42px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: 14px 34px;
  justify-content: start; padding: 24px 0 62px;
  border-top: 1px solid var(--hero-line);
}
@media (max-width: 560px) { .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; padding-bottom: 44px; } }
.hero-stat b {
  display: block; font-family: var(--disp); font-weight: 800;
  font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; color: var(--hero-ink);
  font-variant-numeric: tabular-nums;
}
.hero-stat span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--hero-muted);
}

/* poster wall */
.hero-wall {
  position: relative;
  height: 660px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 84%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 84%, transparent);
}
@media (max-width: 1000px) { .hero-wall { height: 420px; margin-bottom: 30px; } }
@media (max-width: 560px)  { .hero-wall { grid-template-columns: repeat(2, 1fr); height: 360px; } }

.wall-col { display: flex; flex-direction: column; gap: 14px; will-change: transform; }
.wall-col--a { animation: wallUp 58s linear infinite; }
.wall-col--b { animation: wallDown 66s linear infinite; }
.wall-col--c { animation: wallUp 74s linear infinite; }
@media (max-width: 560px) { .wall-col--c { display: none; } }

@keyframes wallUp   { from { transform: translateY(0); }     to { transform: translateY(-50%); } }
@keyframes wallDown { from { transform: translateY(-50%); }  to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .wall-col--a, .wall-col--b, .wall-col--c { animation: none; }
}

.wall-item {
  border-radius: 10px; overflow: hidden; flex: none;
  border: 1px solid rgba(255,255,255,.09);
  background: #0F1712;
}
.wall-item img { width: 100%; height: auto; display: block; }

/* ==========================================================================
   TRUST STRIP
   ========================================================================== */
.trust {
  border-bottom: 1px solid var(--line);
  background: var(--ground);
}
.trust-in {
  max-width: var(--wrap); margin: 0 auto; padding: 22px var(--gut);
  display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: space-between;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--ink-2); font-weight: 500;
}
.trust-item svg { width: 17px; height: 17px; color: var(--green); flex: none; }

/* ==========================================================================
   CATEGORY GRID
   ========================================================================== */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1020px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .cats { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.cat {
  position: relative; display: block; border-radius: var(--radius);
  overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none !important; box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cat:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.cat:hover .cat-img img { transform: scale(1.045); }
.cat-body { padding: 15px 16px 17px; }
.cat-body h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); margin: 0 0 4px; }
.cat-n { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }

/* ==========================================================================
   PRODUCT CARDS
   ========================================================================== */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1020px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 400px)  { .grid { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none !important; box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-3px); }
.card-img {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.card:hover .card-img img { transform: scale(1.04); }

.tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 5px;
  background: rgba(255,255,255,.94); color: var(--green-dk);
  box-shadow: 0 1px 3px rgba(0,0,0,.16);
}
.tag--df { background: linear-gradient(96deg, var(--df-a), var(--df-b)); color: #fff; }

.card-body { padding: 15px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -.008em; color: var(--ink); line-height: 1.3; }
.card-model { font-family: var(--mono); font-size: 11px; letter-spacing: .09em; color: var(--muted); text-transform: uppercase; }
.card-spec {
  margin-top: auto; padding-top: 11px; border-top: 1px dashed var(--line);
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-2);
  display: flex; flex-wrap: wrap; gap: 4px 12px;
}

/* ==========================================================================
   BRAND BLOCKS
   ========================================================================== */
.brandblk {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
}
.brandblk--v { background: linear-gradient(150deg, #08130C 0%, #0D2418 52%, #0A1A11 100%); border-color: #16301F; }
.brandblk-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; align-items: stretch; }
@media (max-width: 900px) { .brandblk-in { grid-template-columns: 1fr; } }

.brandblk-copy { padding: 48px 44px; }
@media (max-width: 600px) { .brandblk-copy { padding: 32px 24px; } }

.brandblk--v .brandblk-copy { color: #EAF3EC; }
.brandblk--v h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 14px; }
.brandblk--v p { color: #A6BCAE; font-size: 16.5px; }
.brandblk--v .eyebrow { color: var(--green-br); }

.brand-logo-plate {
  display: inline-block; background: #fff; border-radius: 10px;
  padding: 12px 18px; margin-bottom: 22px;
}
.brand-logo-plate img { height: 40px; width: auto; }

.brandblk-media { position: relative; min-height: 320px; overflow: hidden; background: #0A150E; }
.brandblk-media .mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; }
.brandblk-media .mosaic > div { border-radius: 8px; overflow: hidden; background: #101B14; }
.brandblk-media .mosaic img { width: 100%; height: 100%; object-fit: cover; }

/* DOLLFINE — its own colour, but a quieter block than VMPL's */
.brandblk--d { border-color: var(--line); background: var(--surface); }
.brandblk--d .brandblk-copy { padding: 40px 38px; }
@media (max-width: 600px) { .brandblk--d .brandblk-copy { padding: 30px 22px; } }
.brandblk--d .eyebrow { color: var(--df-b); }
.brandblk--d .eyebrow::before { background: linear-gradient(90deg, var(--df-a), var(--df-b)); }
.brandblk--d h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 12px; color: var(--ink); }
.brandblk--d p { color: var(--ink-2); font-size: 16px; }
.brandblk--d .brandblk-media { background: var(--surface-2); min-height: 260px; }

.df-rule { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--df-a), var(--df-b)); width: 58px; margin: 0 0 20px; }

/* ==========================================================================
   FEATURE LIST / WHY
   ========================================================================== */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }

.why-item {
  padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.why-icon {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--green-br) 14%, transparent);
  color: var(--green); margin-bottom: 16px;
}
.why-icon svg { width: 19px; height: 19px; }
.why-item h3 { font-size: 17px; font-weight: 700; margin: 0 0 7px; color: var(--ink); }
.why-item p { color: var(--ink-2); font-size: 14.8px; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta {
  position: relative; overflow: hidden; border-radius: 18px;
  background: linear-gradient(140deg, #08130C, #0E2B1B 55%, #0A1A11);
  border: 1px solid #17321F; padding: 56px 48px; color: #EAF3EC;
}
@media (max-width: 640px) { .cta { padding: 36px 24px; } }
.cta::after {
  content: ""; position: absolute; right: -140px; top: -140px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(circle, rgba(34,179,104,.22), transparent 68%);
  pointer-events: none;
}
.cta-in { position: relative; z-index: 1; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(24px, 3.2vw, 34px); margin: 0 0 10px; }
.cta p { color: #A6BCAE; max-width: 52ch; font-size: 16.5px; }
.cta .eyebrow { color: var(--green-br); }

/* ==========================================================================
   MASONRY (products page)
   ========================================================================== */
.masonry { columns: 4; column-gap: 18px; }
@media (max-width: 1100px) { .masonry { columns: 3; } }
@media (max-width: 760px)  { .masonry { columns: 2; column-gap: 12px; } }
@media (max-width: 420px)  { .masonry { columns: 1; } }

.mitem {
  break-inside: avoid; margin: 0 0 18px; display: block;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); text-decoration: none !important; box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
@media (max-width: 760px) { .mitem { margin-bottom: 12px; } }
.mitem:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.mitem-img { position: relative; background: var(--surface-2); }
.mitem-img img { width: 100%; height: auto; display: block; }
.mitem-body { padding: 13px 15px 15px; border-top: 1px solid var(--line); }
.mitem-body h3 { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.32; margin: 0 0 3px; }
.mitem-meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- filters ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px;
  padding: 0 0 22px; border-bottom: 1px solid var(--line);
}
.chip {
  font-size: 13.5px; font-weight: 500; padding: 8px 15px; border-radius: 100px;
  border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface);
  text-decoration: none !important; white-space: nowrap;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
:root[data-theme="dark"] .chip.on { color: #08120C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.on { color: #08120C; } }

.searchbar { display: flex; gap: 10px; margin: 0 0 22px; flex-wrap: wrap; }
.searchbar input[type="search"] {
  flex: 1 1 260px; min-width: 0; font-family: var(--sans); font-size: 15px;
  padding: 12px 16px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink);
}
.searchbar input[type="search"]::placeholder { color: var(--muted); }

/* ==========================================================================
   PRODUCT DETAIL
   ========================================================================== */
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: start; }
@media (max-width: 900px) { .pd { grid-template-columns: 1fr; gap: 30px; } }

.pd-media { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.pd-media img { width: 100%; height: auto; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

.pd h1 { font-size: clamp(27px, 3.6vw, 38px); margin: 0 0 12px; }
.pd-summary { font-size: 17px; color: var(--ink-2); margin: 0 0 28px; }

.spectable { width: 100%; border-collapse: collapse; margin: 0 0 28px; }
.spectable th, .spectable td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spectable th {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; width: 40%; padding-right: 18px;
}
.spectable td { font-size: 14.8px; color: var(--ink); }

.feats { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 9px; }
.feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.8px; color: var(--ink-2); }
.feats svg { width: 16px; height: 16px; color: var(--green); flex: none; margin-top: 3px; }

.crumbs { font-family: var(--mono); font-size: 11.5px; letter-spacing: .07em; color: var(--muted); margin: 0 0 24px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.crumbs span { margin: 0 7px; opacity: .55; }

/* ==========================================================================
   FORMS
   ========================================================================== */
/* Two-column page layouts.
   Tracks use minmax(0,1fr) so a wide child can never push the column past
   the viewport — the classic grid overflow trap. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
}
.split > * { min-width: 0; }
.split--media { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.split--form  { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
@media (max-width: 900px) {
  .split, .split--media, .split--form { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

.panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; background: var(--surface);
}
@media (max-width: 480px) { .panel { padding: 22px 18px; } }

.label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 10px;
}

.form { display: grid; gap: 16px; }
.form > * { min-width: 0; }
.field-row > * { min-width: 0; }
.feats span { min-width: 0; overflow-wrap: anywhere; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field .req { color: var(--df-b); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 15px; padding: 12px 14px;
  border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.note {
  border-left: 3px solid var(--green); background: var(--surface-2);
  padding: 14px 18px; border-radius: 0 8px 8px 0; font-size: 14.5px; color: var(--ink-2);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.ftr { background: var(--ground-alt); border-top: 1px solid var(--line); padding: 62px 0 0; }
.ftr-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
@media (max-width: 900px) { .ftr-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .ftr-top { grid-template-columns: 1fr; } }

.ftr-plate {
  display: inline-flex; background: #fff; border-radius: 9px;
  padding: 9px 14px; margin-bottom: 16px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05);
}
.ftr-logo { height: 34px; width: auto; display: block; }
.ftr-about { font-size: 14.5px; color: var(--ink-2); max-width: 34ch; }
.ftr h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin: 0 0 14px;
}
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ftr ul a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.ftr ul a:hover { color: var(--green); }
.ftr address { font-style: normal; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }

.ftr-bar {
  border-top: 1px solid var(--line); padding: 20px 0 26px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: 13px; color: var(--muted);
}
.ftr-bar a { color: var(--muted); }
.ftr-bar a:hover { color: var(--green); }

/* ==========================================================================
   REVEAL — from a visible resting state, never hidden on load
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s cubic-bezier(.2,.7,.3,1) both; }
  .rise-2 { animation-delay: .08s; }
  .rise-3 { animation-delay: .16s; }
  .rise-4 { animation-delay: .24s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- scroll reveal ----------
   Everything is visible by default. The hidden start state is only applied
   once JS confirms IntersectionObserver support and that the visitor has not
   asked for reduced motion — so no-JS and reduced-motion users see a normal,
   fully readable page rather than a blank one. */
html.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .62s cubic-bezier(.2,.7,.3,1), transform .62s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
html.reveal-on [data-reveal].shown {
  opacity: 1;
  transform: none;
  will-change: auto;
}
html.reveal-on [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s cubic-bezier(.2,.7,.3,1), transform .55s cubic-bezier(.2,.7,.3,1);
}
html.reveal-on [data-reveal-stagger].shown > * { opacity: 1; transform: none; }
html.reveal-on [data-reveal-stagger].shown > *:nth-child(1)  { transition-delay: 0s; }
html.reveal-on [data-reveal-stagger].shown > *:nth-child(2)  { transition-delay: .05s; }
html.reveal-on [data-reveal-stagger].shown > *:nth-child(3)  { transition-delay: .10s; }
html.reveal-on [data-reveal-stagger].shown > *:nth-child(4)  { transition-delay: .15s; }
html.reveal-on [data-reveal-stagger].shown > *:nth-child(5)  { transition-delay: .20s; }
html.reveal-on [data-reveal-stagger].shown > *:nth-child(6)  { transition-delay: .25s; }
html.reveal-on [data-reveal-stagger].shown > *:nth-child(7)  { transition-delay: .30s; }
html.reveal-on [data-reveal-stagger].shown > *:nth-child(8)  { transition-delay: .35s; }
html.reveal-on [data-reveal-stagger].shown > *:nth-child(n+9) { transition-delay: .38s; }

@media (prefers-reduced-motion: reduce) {
  html.reveal-on [data-reveal],
  html.reveal-on [data-reveal-stagger] > * { opacity: 1; transform: none; transition: none; }
}

/* ---------- header lifts once the page scrolls ---------- */
.hdr { transition: box-shadow .25s ease, border-color .25s ease; }
.hdr.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -20px rgba(15,23,19,.5); }

/* ---------- underline that draws on hover ---------- */
.lnk { position: relative; }
.lnk::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1.5px;
  background: currentColor; border-radius: 2px; transition: right .28s cubic-bezier(.2,.7,.3,1);
}
.lnk:hover::after, .lnk:focus-visible::after { right: 0; }

/* ---------- counting stats keep their width so nothing jumps ---------- */
.hero-stat b { font-variant-numeric: tabular-nums; }

/* ---------- footer socials ---------- */
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink-2); background: var(--surface);
  transition: border-color .16s ease, color .16s ease;
}
.socials a:hover { border-color: var(--green); color: var(--green); }
.socials svg { width: 16px; height: 16px; }

/* ---------- floating WhatsApp ---------- */
.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.16), 0 14px 34px -14px rgba(0,0,0,.5);
  transition: transform .18s ease;
}
.wa:hover { transform: translateY(-2px) scale(1.04); }
.wa svg { width: 30px; height: 30px; }
@media (max-width: 600px) { .wa { right: 14px; bottom: 14px; width: 50px; height: 50px; } .wa svg { width: 27px; height: 27px; } }

/* ---------- placeholder when no image is set ---------- */
.img-none {
  width: 100%; height: 100%; min-height: 120px;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--line-2);
}
.img-none svg { width: 34px; height: 34px; }
