/* ============================================================
   PERFECT MAX — Design System
   Indigo-led palette derived from the brand mark (#302784)
   Author: rebuild 2026
   ============================================================ */

/* ---------- 1. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; 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; scroll-behavior: auto !important;
  }
}
body { min-height: 100svh; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }

/* ---------- 2. TOKENS ---------- */
:root {
  /* brand */
  --brand:        #302784;
  --brand-hi:     #443AA8;
  --brand-deep:   #221B60;
  --brand-soft:   rgba(48, 39, 132, .07);
  --brand-line:   rgba(48, 39, 132, .18);
  --accent:       #00B3C8;
  --accent-text:  #007D8E;
  --accent-soft:  rgba(0, 179, 200, .10);

  /* surfaces */
  --paper:        #FFFFFF;
  --surface:      #F6F6FA;
  --surface-2:    #EDEDF4;
  --ink:          #14141F;
  --ink-2:        #56566E;
  --ink-3:        #8B8BA3;
  --line:         rgba(20, 20, 31, .10);
  --line-2:       rgba(20, 20, 31, .16);

  /* inverted block (dark sections inside light pages) */
  --inv-bg:       #0D0B1F;
  --inv-ink:      #F2F2F8;
  --inv-ink-2:    #A6A4C4;
  --inv-line:     rgba(255, 255, 255, .12);

  --focus:        #00B3C8;
  --ok:           #0E9F6E;
  --warn:         #C2410C;

  /* elevation — soft, tinted with brand rather than flat black */
  --sh-1: 0 1px 2px rgba(20,20,31,.05), 0 2px 8px rgba(48,39,132,.05);
  --sh-2: 0 2px 6px rgba(20,20,31,.05), 0 12px 28px rgba(48,39,132,.09);
  --sh-3: 0 4px 12px rgba(20,20,31,.06), 0 24px 56px rgba(48,39,132,.14);

  /* type */
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --t-xs:   .75rem;
  --t-sm:   .8125rem;
  --t-base: clamp(.9375rem, .9rem + .18vw, 1.0625rem);
  --t-lg:   clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --t-xl:   clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --t-2xl:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --t-3xl:  clamp(1.875rem, 1.5rem + 1.8vw, 2.75rem);
  --t-4xl:  clamp(2.25rem, 1.6rem + 3.2vw, 4rem);
  --t-5xl:  clamp(2.75rem, 1.7rem + 4.6vw, 5.25rem);

  /* space + shape */
  --gut: clamp(1.15rem, 4vw, 2.5rem);
  --wrap: 1240px;
  --wrap-narrow: 820px;
  --sec-y: clamp(3.5rem, 8vw, 7.5rem);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-full: 999px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, .05, .36, 1);

  --hdr-h: 68px;
  color-scheme: light;
}

@media (min-width: 900px) { :root { --hdr-h: 80px; } }

/* dark — system default */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand:      #8C81F0;
    --brand-hi:   #A79EFF;
    --brand-deep: #6A5EDB;
    --brand-soft: rgba(140, 129, 240, .12);
    --brand-line: rgba(140, 129, 240, .26);
    --accent:     #2DD4E6;
    --accent-text:#5BE1EF;
    --accent-soft: rgba(45, 212, 230, .12);

    --paper:      #0A0912;
    --surface:    #11101C;
    --surface-2:  #1A1929;
    --ink:        #ECEBF5;
    --ink-2:      #A3A1BC;
    --ink-3:      #74738C;
    --line:       rgba(255, 255, 255, .10);
    --line-2:     rgba(255, 255, 255, .17);

    --inv-bg:     #14122A;
    --inv-ink:    #F2F2F8;
    --inv-ink-2:  #A6A4C4;
    --inv-line:   rgba(255, 255, 255, .13);

    --sh-1: 0 1px 2px rgba(0,0,0,.4);
    --sh-2: 0 2px 6px rgba(0,0,0,.4), 0 12px 28px rgba(0,0,0,.35);
    --sh-3: 0 4px 12px rgba(0,0,0,.45), 0 24px 56px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
/* dark — explicit toggle */
:root[data-theme="dark"] {
  --brand:      #8C81F0;
  --brand-hi:   #A79EFF;
  --brand-deep: #6A5EDB;
  --brand-soft: rgba(140, 129, 240, .12);
  --brand-line: rgba(140, 129, 240, .26);
  --accent:     #2DD4E6;
  --accent-text:#5BE1EF;
  --accent-soft: rgba(45, 212, 230, .12);

  --paper:      #0A0912;
  --surface:    #11101C;
  --surface-2:  #1A1929;
  --ink:        #ECEBF5;
  --ink-2:      #A3A1BC;
  --ink-3:      #74738C;
  --line:       rgba(255, 255, 255, .10);
  --line-2:     rgba(255, 255, 255, .17);

  --inv-bg:     #14122A;
  --inv-ink:    #F2F2F8;
  --inv-ink-2:  #A6A4C4;
  --inv-line:   rgba(255, 255, 255, .13);

  --sh-1: 0 1px 2px rgba(0,0,0,.4);
  --sh-2: 0 2px 6px rgba(0,0,0,.4), 0 12px 28px rgba(0,0,0,.35);
  --sh-3: 0 4px 12px rgba(0,0,0,.45), 0 24px 56px rgba(0,0,0,.5);
  color-scheme: dark;
}

/* ---------- 3. BASE ---------- */
body {
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  transition: background .35s var(--ease), color .35s var(--ease);
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1 { font-size: var(--t-4xl); }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-xl); letter-spacing: -.015em; }
h4 { font-size: var(--t-lg); letter-spacing: -.01em; }
p  { text-wrap: pretty; }
strong { font-weight: 650; color: var(--ink); }

/* ---------- 4. LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--sec-y); }
.section--surface { background: var(--surface); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.stack > * + * { margin-top: var(--stack-gap, 1rem); }

/* ---------- 5. TYPE HELPERS ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before {
  content: ""; width: 20px; height: 1px; background: currentColor; opacity: .6;
}
.lede { font-size: var(--t-lg); color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--ink-2); }
.sec-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sec-head h2 { margin-block: .75rem .9rem; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow::before { display: none; }

/* ---------- 6. ICONS ---------- */
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic--sm { width: 1em; height: 1em; }
.ic--lg { width: 1.6em; height: 1.6em; }

/* ---------- 7. BUTTONS ---------- */
.btn {
  --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.5rem;
  font-family: var(--font-display); font-size: .9375rem; font-weight: 600; letter-spacing: -.01em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bd); border-radius: var(--r-full);
  cursor: pointer; position: relative; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); transition-duration: .06s; }
.btn .ic { transition: transform .3s var(--ease); }
.btn:hover .ic--arrow { transform: translateX(3px); }

.btn--primary { --btn-bg: var(--brand); --btn-fg: #fff; }
:root[data-theme="dark"] .btn--primary { --btn-fg: #0A0912; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--primary { --btn-fg: #0A0912; } }
.btn--primary:hover { --btn-bg: var(--brand-hi); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bd: var(--brand); --btn-fg: var(--brand); }

.btn--accent { --btn-bg: var(--accent); --btn-fg: #04222A; }
.btn--accent:hover { filter: brightness(1.07); }

.btn--on-dark { --btn-bg: #fff; --btn-fg: #14141F; }
.btn--on-dark.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.32); }
.btn--on-dark.btn--ghost:hover { --btn-bd: #fff; --btn-bg: rgba(255,255,255,.08); }

.btn--sm { min-height: 40px; padding: .5rem 1.1rem; font-size: .875rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* text link with animated rule */
.link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--brand);
  padding-bottom: 2px; background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .35s var(--ease);
}
.link:hover { background-size: 100% 1.5px; }
.link .ic { transition: transform .3s var(--ease); }
.link:hover .ic { transform: translateX(3px); }

/* ---------- 8. PILLS / BADGES ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem; border-radius: var(--r-full);
  font-family: var(--font-display); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .04em; background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--line);
}
.pill--brand { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
.pill--accent { background: var(--accent-soft); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.pill--solid { background: var(--brand); color: #fff; border-color: transparent; }
:root[data-theme="dark"] .pill--solid { color: #0A0912; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill--solid { color: #0A0912; } }
.pill--ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.pill--dot::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- 9. CARD ---------- */
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card--pad { padding: clamp(1.35rem, 3vw, 2rem); }
.card--link:hover { border-color: var(--brand-line); transform: translateY(-4px); box-shadow: var(--sh-2); }
.card--flat { background: var(--surface); border-color: transparent; }

/* ---------- 10. HEADER ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
/* The blur lives on a pseudo-element: putting backdrop-filter on .hdr itself
   would make it the containing block for the position:fixed mobile nav. */
.hdr::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}
.hdr.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 24px rgba(20,20,31,.06); }
.hdr__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--hdr-h);
}
.hdr__logo { flex: none; display: flex; align-items: center; }
.hdr__logo img { height: clamp(26px, 3.4vw, 34px); width: auto; transition: opacity .25s var(--ease); }
.hdr__logo:hover img { opacity: .72; }
/* the logo mark is dark indigo — lift it into view on dark backgrounds */
:root[data-theme="dark"] .hdr__logo img,
:root[data-theme="dark"] .logo-invert { filter: invert(1) brightness(1.9) saturate(.25); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hdr__logo img,
  :root:not([data-theme="light"]) .logo-invert { filter: invert(1) brightness(1.9) saturate(.25); }
}

.nav__list { display: flex; align-items: center; gap: .35rem; }
.nav__link {
  position: relative; display: flex; align-items: center; gap: .3rem;
  padding: .55rem .85rem; border-radius: var(--r-full);
  font-size: .9375rem; font-weight: 520; color: var(--ink-2);
  transition: color .22s var(--ease), background .22s var(--ease);
  white-space: nowrap;
}
.nav__link:hover { color: var(--ink); background: var(--brand-soft); }
.nav__link[aria-current="page"] { color: var(--brand); font-weight: 620; }
.nav__link .ic { width: .85em; height: .85em; stroke-width: 2.4; transition: transform .25s var(--ease); }

/* desktop dropdown */
.nav__item--has-menu { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + .5rem); left: 0; min-width: 260px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-3); padding: .4rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98);
  transform-origin: top left;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav__item--has-menu:hover .nav__menu,
.nav__item--has-menu:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.nav__item--has-menu:hover .nav__link .ic { transform: rotate(180deg); }
.nav__menu a {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem .8rem; border-radius: var(--r-sm);
  font-size: .9375rem; color: var(--ink-2);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav__menu a:hover { background: var(--surface); color: var(--brand); }
.nav__menu a .ic { color: var(--brand); opacity: .8; }
.nav__menu .nav__menu-desc { display: block; font-size: var(--t-xs); color: var(--ink-3); margin-top: 1px; }

.hdr__actions { display: flex; align-items: center; gap: .35rem; flex: none; }
.icon-btn {
  display: grid; place-items: center; position: relative;
  width: 44px; height: 44px; border-radius: var(--r-full);
  color: var(--ink-2); transition: background .22s var(--ease), color .22s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: var(--brand-soft); color: var(--brand); }
.icon-btn .ic { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: 4px; right: 3px;
  min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center;
  background: var(--accent); color: #04222A;
  font-family: var(--font-display); font-size: 11px; font-weight: 700; line-height: 1;
  border-radius: var(--r-full);
  border: 2px solid var(--paper);
  transform: scale(0); transition: transform .3s var(--ease);
}
.cart-count.is-visible { transform: scale(1); }
.cart-count.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 0%,100% { transform: scale(1); } 40% { transform: scale(1.35); } }

/* theme toggle icon swap */
[data-theme-toggle] .ic--moon { display: none; }
:root[data-theme="dark"] [data-theme-toggle] .ic--sun { display: none; }
:root[data-theme="dark"] [data-theme-toggle] .ic--moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-theme-toggle] .ic--sun { display: none; }
  :root:not([data-theme="light"]) [data-theme-toggle] .ic--moon { display: block; }
}

/* burger */
/* flex (not grid) so the rows stay content-sized — grid rows stretch to fill
   the 44px box, which throws off the translate used to form the X. */
.burger {
  display: none; width: 44px; height: 44px; border-radius: var(--r-full); color: var(--ink);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 19px; height: 1.8px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), opacity .2s var(--ease); }
body.nav-open .burger span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
body.nav-open .burger span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* ---------- 11. MOBILE NAV ---------- */
@media (max-width: 899px) {
  .burger { display: flex; }
  .nav {
    position: fixed; top: var(--hdr-h); left: 0; right: 0;
    height: calc(100dvh - var(--hdr-h)); z-index: 99;
    background: var(--paper);
    padding: 1.5rem var(--gut) calc(2rem + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link {
    padding: 1.15rem .25rem; border-radius: 0; font-size: 1.2rem;
    font-family: var(--font-display); font-weight: 600; color: var(--ink);
    justify-content: space-between;
  }
  .nav__link:hover { background: none; }
  .nav__link .ic { width: 1.1em; height: 1.1em; color: var(--ink-3); }
  /* staggered entrance */
  body.nav-open .nav__item {
    animation: navIn .5s var(--ease) backwards;
    animation-delay: calc(var(--i, 0) * 55ms + 60ms);
  }
  @keyframes navIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

  .nav__menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: none; padding: 0 0 .5rem;
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows .38s var(--ease);
  }
  .nav__menu > * { overflow: hidden; }
  .nav__item--has-menu.is-open .nav__menu { grid-template-rows: 1fr; }
  .nav__item--has-menu.is-open > .nav__link .ic { transform: rotate(180deg); }
  .nav__menu a { padding: .85rem .25rem .85rem 1.1rem; border-left: 2px solid var(--line); border-radius: 0; }
  .nav__menu a:hover { background: none; }

  .nav__foot { margin-top: 2rem; display: grid; gap: .75rem; }
  .nav__contact { display: flex; flex-direction: column; gap: .6rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
  .nav__contact a { display: flex; align-items: center; gap: .7rem; color: var(--ink-2); font-size: .9375rem; }
  .nav__contact .ic { color: var(--brand); }
}
@media (min-width: 900px) {
  .nav__foot, .nav__contact { display: none; }
}
body.nav-open { overflow: hidden; }

/* ---------- 12. HERO ---------- */
.hero {
  position: relative; isolation: isolate;
  background: var(--inv-bg); color: var(--inv-ink);
  padding-top: calc(var(--hdr-h) + clamp(2.5rem, 7vw, 5.5rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
/* engineered grid + indigo bloom */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, #000 30%, transparent 100%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: min(120vw, 1100px); aspect-ratio: 1; border-radius: 50%;
  top: -45%; left: 50%; translate: -50% 0;
  background: radial-gradient(circle, rgba(88,72,220,.42) 0%, rgba(48,39,132,.18) 42%, transparent 68%);
  filter: blur(20px); pointer-events: none;
}
.hero__grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 940px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; } }
.hero .eyebrow { color: var(--accent); }
.hero h1 { font-size: var(--t-5xl); margin-block: 1.1rem 1.25rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lede { font-size: var(--t-lg); color: var(--inv-ink-2); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: clamp(1.25rem, 4vw, 2.75rem);
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--inv-line);
}
.hero__meta div { min-width: 84px; }
@media (max-width: 560px) {
  .hero__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .hero__meta div { min-width: 0; }
  .hero__meta dd { letter-spacing: .04em; }
}
.hero__meta dt { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.hero__meta dd { font-size: var(--t-xs); color: var(--inv-ink-2); letter-spacing: .07em; text-transform: uppercase; margin-top: .45rem; }

/* hero product stage */
.stage { position: relative; aspect-ratio: 1 / 1; max-width: 520px; margin-inline: auto; width: 100%; }
.stage__slide {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 6%;
  opacity: 0; transform: scale(.94) translateY(10px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
}
.stage__slide.is-active { opacity: 1; transform: none; }
.stage__slide img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); }
.stage__ring {
  position: absolute; inset: 4%; border-radius: 50%; z-index: -1;
  border: 1px solid var(--inv-line);
  background: radial-gradient(circle at 50% 45%, rgba(140,129,240,.16), transparent 62%);
}
.stage__ring::after {
  content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.08);
  animation: spin 44s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.stage__label {
  position: absolute; left: 50%; bottom: -.5rem; translate: -50% 0;
  display: flex; gap: .5rem; z-index: 2;
}
.stage__dot {
  width: 30px; height: 4px; border-radius: var(--r-full);
  background: rgba(255,255,255,.22); cursor: pointer; border: none; padding: 0;
  transition: background .3s var(--ease), width .3s var(--ease);
}
.stage__dot.is-active { background: var(--accent); width: 46px; }
.stage__dot::after { content: ""; position: absolute; inset: -12px -4px; }

/* ---------- 13. FEATURE GRID ---------- */
.feat-grid {
  display: grid; gap: clamp(.75rem, 2vw, 1.25rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
/* keep a 6-up set as a clean 3x2 rather than an orphaned 4+2 */
@media (min-width: 1000px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 620px) and (max-width: 999px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
.feat {
  padding: clamp(1.35rem, 3vw, 1.9rem);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feat:hover { border-color: var(--brand-line); transform: translateY(-3px); box-shadow: var(--sh-1); }
.feat__ic {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 1.1rem;
  border-radius: 13px; background: var(--brand-soft); color: var(--brand);
  border: 1px solid var(--brand-line);
}
.feat__ic .ic { width: 22px; height: 22px; }
.feat h3 { font-size: 1.0625rem; margin-bottom: .45rem; }
.feat p { font-size: .9375rem; color: var(--ink-2); line-height: 1.6; }

/* numbered / editorial variant */
.feat--num { position: relative; }
.feat--num .feat__n {
  font-family: var(--font-display); font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; color: var(--ink-3); margin-bottom: .9rem; display: block;
}

/* ---------- 14. PRODUCT CARDS ---------- */
.prod-grid {
  display: grid; gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}
.prod {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; position: relative;
  transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.prod:hover { border-color: var(--brand-line); transform: translateY(-5px); box-shadow: var(--sh-2); }
.prod__media {
  /* square, not landscape: most of the range (razors, pouches) is portrait and
     was being letterboxed into a thin strip inside a 4:3 frame */
  position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center;
  padding: clamp(1rem, 3vw, 1.75rem);
  background: var(--surface); overflow: hidden;
}
.prod__media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 115%, var(--brand-soft), transparent 65%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.prod:hover .prod__media::after { opacity: 1; }
.prod__media img {
  width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1;
  transition: transform .55s var(--ease);
}
.prod:hover .prod__media img { transform: scale(1.06) rotate(-1.5deg); }
.prod__tag { position: absolute; top: .85rem; left: .85rem; z-index: 2; }
.prod__body { padding: clamp(1.1rem, 3vw, 1.6rem); display: flex; flex-direction: column; flex: 1; gap: .6rem; }
.prod__body h3 { font-size: 1.1875rem; }
.prod__body p { font-size: .9375rem; color: var(--ink-2); line-height: 1.6; }
.prod__foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.prod__ref { font-family: var(--font-display); font-size: var(--t-xs); letter-spacing: .08em; color: var(--ink-3); }
.prod__specs { display: flex; flex-wrap: wrap; gap: .4rem; }
.prod--soon .prod__media img { opacity: .38; filter: grayscale(1); }
.prod--soon { pointer-events: none; }
.prod--soon .prod__body { opacity: .72; }

/* full-card link overlay (keeps semantics, no onclick) */
.prod__link::after { content: ""; position: absolute; inset: 0; z-index: 3; }

/* ---------- 15. SPLIT / EDITORIAL ---------- */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } }
.split--reverse > :first-child { order: 2; }
@media (max-width: 879px) { .split--reverse > :first-child { order: 0; } }
.split__media {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: var(--surface); aspect-ratio: 4 / 3; display: grid; place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line);
}
.split__media img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- 16. INVERTED / CTA BAND ---------- */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--inv-bg); color: var(--inv-ink);
  border-radius: var(--r-xl);
  padding: clamp(2.25rem, 6vw, 4.5rem);
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 90% at 12% 0%, rgba(140,129,240,.30), transparent 60%),
    radial-gradient(ellipse 60% 80% at 92% 100%, rgba(0,179,200,.20), transparent 60%);
}
.band h2 { max-width: 18ch; }
.band p { color: var(--inv-ink-2); max-width: 52ch; margin-top: .9rem; }
.band__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; }
.band__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* page header (interior pages) */
.phead {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--inv-bg); color: var(--inv-ink);
  padding-top: calc(var(--hdr-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(2.25rem, 5vw, 4rem);
}
.phead::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 80% 120% at 20% -20%, rgba(140,129,240,.34), transparent 62%),
    radial-gradient(ellipse 70% 100% at 95% 120%, rgba(0,179,200,.16), transparent 60%);
}
.phead--slim { padding-top: calc(var(--hdr-h) + .5rem); padding-bottom: .5rem; }
.phead h1 { max-width: 20ch; margin-block: .9rem .9rem; }
.phead p { color: var(--inv-ink-2); max-width: 58ch; font-size: var(--t-lg); }
.phead .eyebrow { color: var(--accent); }

/* ---------- 17. BREADCRUMB ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: var(--t-sm); color: var(--ink-3); padding-block: 1.1rem; }
.crumbs a { color: var(--ink-2); transition: color .2s var(--ease); }
.crumbs a:hover { color: var(--brand); }
.crumbs .ic { width: .85em; height: .85em; opacity: .5; }
.crumbs [aria-current] { color: var(--ink); font-weight: 550; }
.phead .crumbs { color: var(--inv-ink-2); padding-top: 0; }
.phead .crumbs a { color: var(--inv-ink-2); }
.phead .crumbs a:hover { color: #fff; }
.phead .crumbs [aria-current] { color: #fff; }

/* ---------- 18. STATS ---------- */
.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(50%, 150px), 1fr)); }
.stats > div { background: var(--paper); padding: clamp(1.25rem, 3vw, 1.9rem); }
.stats dt { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--brand); }
.stats dd { font-size: var(--t-sm); color: var(--ink-2); margin-top: .5rem; }

/* ---------- 19. FOOTER ---------- */
.ftr { background: var(--surface); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 0; }
.ftr__grid {
  display: grid; gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 680px) { .ftr__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .ftr__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.ftr__brand img { height: 30px; width: auto; margin-bottom: 1.1rem; }
.ftr__brand p { font-size: .9375rem; color: var(--ink-2); max-width: 34ch; }
.ftr h4 { font-size: var(--t-xs); font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.1rem; }
.ftr ul { display: grid; gap: .7rem; }
.ftr li a, .ftr li span { font-size: .9375rem; color: var(--ink-2); display: inline-flex; align-items: flex-start; gap: .6rem; transition: color .2s var(--ease); }
.ftr li a:hover { color: var(--brand); }
.ftr li .ic { color: var(--ink-3); margin-top: .28em; flex: none; }
.ftr__legal {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: center; justify-content: space-between;
  font-size: var(--t-sm); color: var(--ink-3);
}
.ftr__legal a { color: var(--ink-2); }
.ftr__legal a:hover { color: var(--brand); }
.ftr__ids { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.socials { display: flex; gap: .5rem; margin-top: 1.25rem; }
.socials a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-full);
  border: 1px solid var(--line); color: var(--ink-2);
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.socials a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); transform: translateY(-2px); }

/* ---------- 20. PRODUCT DETAIL (PDP) ---------- */
.pdp { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 940px) { .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2.5rem, 5vw, 5rem); } }
@media (min-width: 940px) { .pdp__info { position: sticky; top: calc(var(--hdr-h) + 1.5rem); } }

/* gallery */
.gal__main {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-xl); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; padding: clamp(1.5rem, 5vw, 3.5rem);
}
.gal__main::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 120%, var(--brand-soft), transparent 60%);
}
.gal__img {
  width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1;
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.gal__img.is-swapping { opacity: 0; transform: scale(.96); }
.gal__nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  width: 42px; height: 42px; border-radius: var(--r-full);
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); color: var(--ink);
  transition: background .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.gal__nav:hover { border-color: var(--brand); color: var(--brand); }
.gal__nav--prev { left: .75rem; }
.gal__nav--next { right: .75rem; }
.gal__badge { position: absolute; top: 1rem; right: 1rem; z-index: 2; }

.gal__thumbs {
  display: flex; gap: .65rem; margin-top: .75rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-bottom: .25rem;
}
.gal__thumbs::-webkit-scrollbar { display: none; }
.gal__thumb {
  flex: 0 0 76px; aspect-ratio: 1; scroll-snap-align: start;
  border-radius: var(--r); overflow: hidden; padding: 8px;
  background: var(--surface); border: 1.5px solid var(--line);
  display: grid; place-items: center; cursor: pointer;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.gal__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gal__thumb[aria-selected="true"] { border-color: var(--brand); }
.gal__thumb:hover { transform: translateY(-2px); }

/* info column */
.pdp__ref { font-family: var(--font-display); font-size: var(--t-sm); letter-spacing: .12em; color: var(--ink-3); }
.pdp__title { margin-block: .55rem .85rem; font-size: var(--t-3xl); }
.pdp__lede { color: var(--ink-2); font-size: var(--t-lg); line-height: 1.6; }
.pdp__row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }

.opt { margin-top: 1.75rem; }
.opt__label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display); font-size: var(--t-sm); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .75rem;
}
.opt__value { text-transform: none; letter-spacing: 0; font-weight: 550; color: var(--ink); font-size: .9375rem; }

/* colour swatches */
.swatches { display: flex; flex-wrap: wrap; gap: .6rem; }
.swatch {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem .9rem .5rem .55rem; min-height: 46px;
  border: 1.5px solid var(--line); border-radius: var(--r-full);
  background: var(--paper); cursor: pointer;
  transition: border-color .22s var(--ease), background .22s var(--ease), transform .22s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.swatch:hover { border-color: var(--line-2); transform: translateY(-1px); }
.swatch[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.swatch__chip {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), inset 0 -3px 6px rgba(0,0,0,.14);
}
.swatch__name { font-size: .875rem; font-weight: 550; }
.swatch__ref { font-size: var(--t-xs); color: var(--ink-3); display: block; line-height: 1.2; }

/* segmented control (packaging) */
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-2); border-radius: var(--r-full); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button {
  min-height: 40px; padding: .45rem 1.05rem; border-radius: var(--r-full);
  font-size: .875rem; font-weight: 550; color: var(--ink-2);
  transition: background .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--sh-1); }

/* select */
.field select, .field input, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem 1rem;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--r);
  font-size: 1rem; transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none; padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B8BA3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px;
}
.field select:focus, .field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.field label { display: block; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); margin-bottom: .5rem; }
.field + .field { margin-top: 1.1rem; }
.field ::placeholder { color: var(--ink-3); }

/* qty stepper */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-full); overflow: hidden; background: var(--paper); }
.qty button {
  width: 48px; height: 48px; display: grid; place-items: center; color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.qty button:hover { background: var(--surface); color: var(--brand); }
.qty input {
  width: 48px; text-align: center; border: none; background: none; padding: 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.buy-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; align-items: center; }
.buy-row .btn { flex: 1 1 190px; }

/* reassurance strip */
.assure { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.assure > div { background: var(--paper); padding: 1rem; display: flex; gap: .7rem; align-items: flex-start; }
.assure .ic { color: var(--brand); margin-top: .15em; }
.assure strong { display: block; font-size: .875rem; font-weight: 600; }
.assure span { font-size: var(--t-xs); color: var(--ink-3); }

/* ---------- 21. SPEC TABLES ---------- */
.specs { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.specs__head {
  display: flex; align-items: center; gap: .7rem;
  padding: .95rem 1.15rem; background: var(--surface);
  font-family: var(--font-display); font-size: .9375rem; font-weight: 650;
  border-bottom: 1px solid var(--line);
}
.specs__head .ic { color: var(--brand); }
.specs dl { display: grid; }
.specs dl > div {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem;
  padding: .8rem 1.15rem; align-items: baseline;
}
.specs dl > div + div { border-top: 1px solid var(--line); }
.specs dt { font-size: .875rem; color: var(--ink-2); }
.specs dd { font-size: .9375rem; font-weight: 550; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 22. TABS ---------- */
.tabs__list {
  display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line); margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__list button {
  position: relative; padding: .9rem 1.1rem; white-space: nowrap;
  font-family: var(--font-display); font-size: .9375rem; font-weight: 600; color: var(--ink-3);
  transition: color .22s var(--ease);
}
.tabs__list button::after {
  content: ""; position: absolute; left: 1.1rem; right: 1.1rem; bottom: -1px; height: 2px;
  background: var(--brand); border-radius: 2px; transform: scaleX(0); transform-origin: center;
  transition: transform .3s var(--ease);
}
.tabs__list button:hover { color: var(--ink); }
.tabs__list button[aria-selected="true"] { color: var(--brand); }
.tabs__list button[aria-selected="true"]::after { transform: scaleX(1); }
.tabs__panel[hidden] { display: none; }
.tabs__panel { animation: fadeUp .45s var(--ease); }
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.1rem; }
.prose p { color: var(--ink-2); line-height: 1.75; }
.prose h3 { margin-top: 2rem; }
.prose ul { display: grid; gap: .7rem; }
.prose ul li { display: flex; gap: .7rem; color: var(--ink-2); }
.prose ul li .ic { color: var(--accent-text); margin-top: .3em; flex: none; }

/* ordered steps */
.steps { counter-reset: s; display: grid; gap: 1rem; }
.steps li { counter-increment: s; display: flex; gap: 1rem; align-items: flex-start; }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-display); font-size: .8125rem; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  width: 34px; height: 34px; border-radius: var(--r-full);
  display: grid; place-items: center; flex: none;
}
.steps strong { display: block; margin-bottom: .15rem; }
.steps p { font-size: .9375rem; color: var(--ink-2); }

/* ---------- 23. STICKY MOBILE BUY BAR ---------- */
.buybar {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  display: none; align-items: center; gap: .85rem;
  padding: .75rem var(--gut) calc(.75rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .4s var(--ease);
}
.buybar.is-visible { transform: none; }
.buybar__info { min-width: 0; flex: 1; }
.buybar__info strong { display: block; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__info span { font-size: var(--t-xs); color: var(--ink-3); }
.buybar .btn { flex: none; }
@media (max-width: 939px) { .buybar { display: flex; } body.has-buybar { padding-bottom: 76px; } }

/* ---------- 24. TOAST ---------- */
.toast-zone {
  position: fixed; z-index: 200; left: 50%; translate: -50% 0;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  display: grid; gap: .5rem; width: min(420px, calc(100vw - 2rem));
  pointer-events: none;
}
@media (min-width: 900px) { .toast-zone { left: auto; right: 1.5rem; translate: none; bottom: 1.5rem; } }
.toast {
  display: flex; align-items: center; gap: .85rem;
  padding: .9rem 1.1rem; border-radius: var(--r);
  background: var(--inv-bg); color: var(--inv-ink);
  border: 1px solid var(--inv-line); box-shadow: var(--sh-3);
  font-size: .9375rem; pointer-events: auto;
  animation: toastIn .45s var(--ease);
}
.toast.is-out { animation: toastOut .3s var(--ease) forwards; }
.toast .ic { color: var(--accent); flex: none; }
.toast a { margin-left: auto; color: var(--accent); font-weight: 600; white-space: nowrap; }
@keyframes toastIn { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.97); } }

/* ---------- 25. CART / ORDER PAGE ---------- */
.cart-layout { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 940px) { .cart-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
@media (min-width: 940px) { .cart-aside { position: sticky; top: calc(var(--hdr-h) + 1.5rem); } }
.line {
  display: grid; grid-template-columns: 84px 1fr; gap: 1rem; align-items: center;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.line__media { aspect-ratio: 1; border-radius: var(--r); background: var(--surface); display: grid; place-items: center; padding: 8px; border: 1px solid var(--line); }
.line__media img { width: 100%; height: 100%; object-fit: contain; }
.line__name { font-family: var(--font-display); font-weight: 600; font-size: .9375rem; line-height: 1.35; }
.line__ref { font-size: var(--t-xs); color: var(--ink-3); letter-spacing: .06em; margin-top: .2rem; }
.line__ctl { display: flex; align-items: center; gap: .75rem; margin-top: .7rem; flex-wrap: wrap; }
.line__ctl .qty button { width: 38px; height: 38px; }
.line__ctl .qty input { width: 38px; font-size: .9375rem; }
.line__rm { font-size: var(--t-sm); color: var(--ink-3); display: inline-flex; align-items: center; gap: .35rem; transition: color .2s var(--ease); }
.line__rm:hover { color: var(--warn); }
.empty { text-align: center; padding: clamp(2.5rem, 8vw, 5rem) 1rem; }
.empty__ic { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 1.5rem; border-radius: var(--r-full); background: var(--surface-2); color: var(--ink-3); }
.empty__ic .ic { width: 30px; height: 30px; }

/* ---------- 26. MAP / EMBED ---------- */
.embed { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.embed iframe { display: block; width: 100%; height: clamp(280px, 45vw, 420px); border: 0; }

/* ---------- 27. CONTACT TILES ---------- */
.tiles { display: grid; gap: clamp(.75rem, 2vw, 1.25rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.tile {
  display: flex; flex-direction: column; gap: .35rem;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
a.tile:hover { border-color: var(--brand-line); transform: translateY(-3px); box-shadow: var(--sh-1); }
.tile__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-line); margin-bottom: .85rem; }
.tile h3 { font-size: 1rem; }
.tile strong { font-size: 1.0625rem; font-family: var(--font-display); letter-spacing: -.01em; word-break: break-word; }
.tile span { font-size: var(--t-sm); color: var(--ink-3); }

/* ---------- 28. LEGAL / DEFINITION LIST ---------- */
.legal-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.legal-grid > div { background: var(--paper); padding: clamp(1.15rem, 3vw, 1.6rem); }
.legal-grid dt { font-size: var(--t-xs); font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .45rem; }
.legal-grid dd { font-size: .9375rem; font-weight: 550; line-height: 1.5; word-break: break-word; }

/* ---------- 29. SCROLL REVEAL + ANIMATION ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; height: 2px; z-index: 101; background: linear-gradient(90deg, var(--brand), var(--accent)); width: 0; transition: width .1s linear; }

/* back to top */
.to-top {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 89;
  width: 46px; height: 46px; border-radius: var(--r-full); display: grid; place-items: center;
  background: var(--inv-bg); color: #fff; box-shadow: var(--sh-2);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
body.has-buybar .to-top { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 940px) { .to-top { right: 1.5rem; bottom: 1.5rem; } }

/* ---------- 29b. LETTERBOXED PRODUCT IMAGERY ----------
   Grid items default to min-height:auto, so an intrinsically tall product shot
   pushes its row past the container and percentage heights stop resolving.
   minmax(0,1fr) gives the row a definite size and lets object-fit do its job. */
.prod__media, .gal__main, .split__media, .line__media, .gal__thumb, .stage__slide {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}
.prod__media > img, .gal__main > .gal__img, .split__media > img,
.line__media > img, .gal__thumb > img, .stage__slide > img {
  min-width: 0; min-height: 0;
}

/* ---------- 30. UTILITIES ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; top: -100px; left: 1rem; z-index: 300;
  padding: .75rem 1.25rem; background: var(--brand); color: #fff; border-radius: var(--r-sm);
  transition: top .25s var(--ease);
}
.skip:focus { top: 1rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.flow > * + * { margin-top: 1.25rem; }
.divider { height: 1px; background: var(--line); border: 0; }
.nowrap { white-space: nowrap; }

/* horizontal snap rail — used instead of cramped grids on small screens */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px);
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: .5rem;
  margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut);
  scroll-padding-inline: var(--gut);
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 760px) {
  .rail {
    grid-auto-flow: row; grid-auto-columns: auto;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    overflow: visible; margin-inline: 0; padding-inline: 0;
  }
}

/* ---------- 31. PRINT ---------- */
@media print {
  .hdr, .buybar, .to-top, .toast-zone, .progress, .band, .ftr__legal { display: none !important; }
  body { color: #000; background: #fff; }
  .hero, .phead { background: #fff; color: #000; padding-top: 1rem; }
}
