/* =============================================================
   KIANIRO · style.css
   Layout: airy porcelain stage; a quiet three-zone header floats over a
           full-height hero where a live "current field" flows behind the type.

   TABLE OF CONTENTS
     01  Tokens, base & buttons
     02  Loader
     03  Header
     04  Search
     05  Mobile menu
     06  Hero
     07  Sections (shared heading pattern)
     08  Category grid (bento)
     09  B2B / bulk order
     10  Authenticity & certification
     11  Best sellers
     12  Clients & projects
     13  Technical knowledge base
     14  Footer
     15  Responsive
     16  Cart drawer (every page)
     17  Reduced motion

   PERFORMANCE NOTES
     · Animation runs on transform / opacity (compositor-only) wherever
       possible; clip-path reveals are short-lived and cleared afterwards.
     · will-change is kept only on layers that move continuously
       (marquee tracks, louvre slats). One-off reveals don't need it, and
       a permanent hint would keep extra GPU layers alive for nothing.
     · Hover effects sit inside @media (hover: hover), so touch screens
       never get "sticky" hover states.
   ============================================================= */

/* ---------- Local fonts (assets/fonts) ----------
   Vazirmatn: one variable file covers every weight from 100 to 900.
   IBM Plex Mono: Latin only, for codes and numbers.
   font-display: swap shows text in the fallback at once, then swaps in the font. */
@font-face {
  font-family: 'Vazirmatn';
  src: url("../fonts/Vazirmatn-wght.f6d31671339d.woff2") format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url("../fonts/ibm-plex-mono-400.4cc7b4398540.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url("../fonts/ibm-plex-mono-500.bc5ccab82723.woff2") format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color — from the Kianiro mark: the K's blue, the bolt's ember, on porcelain */
  --porcelain: #F5F6F8;
  --pearl:     #FFFFFF;
  --ink:       #0A1B2E;
  --slate:     #3B4C60;
  --mist:      #7C8A9A;
  --hair:      rgba(10, 27, 46, .09);
  --hair-2:    rgba(10, 27, 46, .16);
  --brand:     #1D4F82;
  --ember:     #E5652A;

  /* Type */
  --f-sans: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io:  cubic-bezier(.76, 0, .24, 1);

  --header-h: 84px;
  --gutter: clamp(16px, 4vw, 56px);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--slate);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* fine paper grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 3000; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
[hidden] { display: none !important; }
:focus-visible { outline: 1.5px solid var(--ember); outline-offset: 4px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.latin { font-family: var(--f-mono); font-weight: 500; letter-spacing: .08em; }

.ico {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.ico--sm { width: 17px; height: 17px; }

.wrap {
  width: 100%; max-width: 1360px; margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* intro: hidden until the animation script reveals them */
html.is-intro [data-intro],
html.is-intro .line__in,
html.is-intro [data-cat] { opacity: 0; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 52px; padding-inline: 26px 8px; border-radius: 100px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out);
}
.btn--lg { height: 60px; padding-inline: 30px 8px; font-size: 16px; }
.btn--ink { background: var(--ink); color: var(--pearl); }
@media (hover: hover) { .btn--ink:hover { background: var(--brand); } }
.btn__dot {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--pearl); color: var(--ink); overflow: hidden; position: relative;
}
.btn__dot .ico { transition: transform .6s var(--ease-out); }
@media (hover: hover) { .btn:hover .btn__dot .ico { animation: arrowLoop .7s var(--ease-out); } }
@keyframes arrowLoop {
  0%   { transform: translateX(0); }
  45%  { transform: translateX(-130%); }
  46%  { transform: translateX(130%); }
  100% { transform: translateX(0); }
}

.link-line {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding-block: 6px; font-weight: 600; font-size: 15px; color: var(--ink);
}
.link-line::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(.25); transform-origin: right; transition: transform .7s var(--ease-out);
}
@media (hover: hover) { .link-line:hover::after { transform: scaleX(1); } }

/* text roll on hover (built by main.js) */
.roll { display: inline-flex; flex-direction: column; height: 1.85em; overflow: hidden; vertical-align: top; }
.roll > span { display: block; line-height: 1.85em; transition: transform .6s var(--ease-out); }
.roll > span + span { color: var(--brand); }
:is(a, button)[aria-expanded="true"] > .roll > span { transform: translateY(-100%); }
@media (hover: hover) { :is(a, button):hover > .roll > span { transform: translateY(-100%); } }

/* =============================================================
   LOADER
   ============================================================= */
.loader {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center;
  background: var(--ink);
}
html.no-loader .loader { display: none; }
.loader__mark { display: grid; justify-items: center; gap: 18px; }
.loader__mark img { width: 72px; height: 72px; filter: drop-shadow(0 10px 30px rgba(229, 101, 42, .25)); }
.loader__name { font-family: var(--f-mono); font-size: 12px; letter-spacing: .5em; color: rgba(255, 255, 255, .55); padding-inline-start: .5em; }
.loader__line { width: 140px; height: 1px; background: linear-gradient(90deg, transparent, var(--ember), transparent); transform: scaleX(0); }

/* =============================================================
   HEADER
   ============================================================= */
.header {
  position: fixed; inset-inline: 0; top: 0; z-index: 1000;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform .8s var(--ease-out), background-color .6s var(--ease-out),
              box-shadow .6s var(--ease-out), backdrop-filter .6s var(--ease-out);
}
.header::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--hair);
  transform: scaleX(0); transition: transform 1s var(--ease-out);
}
.header.is-solid,
.header.is-open {
  background: rgba(245, 246, 248, .78);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
          backdrop-filter: saturate(160%) blur(18px);
}
.header.is-solid::after, .header.is-open::after { transform: scaleX(1); }
.header.is-hidden { transform: translateY(-100%); }

.header__in {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.logo img { width: 40px; height: 40px; transition: transform .8s var(--ease-out); }
@media (hover: hover) { .logo:hover img { transform: rotate(-8deg) scale(1.06); } }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__name { font-size: 20px; font-weight: 800; color: var(--ink); }
.logo__sub { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; color: var(--mist); text-transform: uppercase; direction: ltr; text-align: right; }

.nav__list { display: flex; align-items: center; gap: clamp(8px, 2vw, 34px); }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding-block: 8px; font-size: 15px; font-weight: 500; color: var(--ink);
}
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--ember);
  transform: scale(0); transition: transform .5s var(--ease-out);
}
.nav__link[aria-expanded="true"]::after,
.nav__link.is-current::after { transform: scale(1); }   /* open menu, or the page you are on */
@media (hover: hover) { .nav__link:hover::after { transform: scale(1); } }
.nav__chev { color: var(--mist); transition: transform .6s var(--ease-out); }
.nav__link[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }

.tools { display: flex; align-items: center; gap: 2px; justify-self: end; }
.tool {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; color: var(--ink);
  transition: background-color .4s var(--ease-out);
}
@media (hover: hover) { .tool:hover { background: rgba(10, 27, 46, .05); } }
.tool__badge {
  position: absolute; top: 6px; left: 6px;
  min-width: 17px; height: 17px; padding-inline: 4px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--ember); color: #fff; font-size: 10px; font-weight: 700;
}
/* tooltip */
.tool[data-tip]::before {
  content: attr(data-tip); position: absolute; top: calc(100% + 6px); left: 50%;
  padding: 4px 10px; border-radius: 6px; white-space: nowrap;
  background: var(--ink); color: var(--pearl); font-size: 12px; font-weight: 500;
  opacity: 0; transform: translate(-50%, -4px); pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out);
}
@media (hover: hover) { .tool[data-tip]:hover::before { opacity: 1; transform: translate(-50%, 0); transition-delay: .35s; } }

.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span {
  position: absolute; left: 12px; width: 20px; height: 1.5px; border-radius: 2px; background: var(--ink);
  transition: transform .6s var(--ease-out), top .6s var(--ease-out);
}
.burger span:first-child { top: 18px; }
.burger span:last-child  { top: 25px; width: 14px; left: 18px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { top: 21.5px; width: 20px; left: 12px; transform: rotate(-45deg); }

/* ---------- Mega menu ---------- */
.mega {
  position: absolute; inset-inline: 0; top: 100%;
  background: rgba(245, 246, 248, .94);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
          backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--hair);
}
.mega__in {
  display: grid; grid-template-columns: repeat(var(--mega-cols, 5), minmax(0, 1fr)) 1.3fr; gap: 32px;
  padding-block: 40px 48px;
}
.mega__tag {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--mist); direction: ltr; text-align: right;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;   /* Category.code_tag can be long */
}
.mega__col .mega__title { font-size: 16px; color: var(--ink); font-weight: 700; margin: 4px 0 14px; }
.mega__head { transition: color .3s var(--ease-out); }
@media (hover: hover) { .mega__head:hover { color: var(--brand); } }
.mega__col a {
  display: block; width: fit-content; padding-block: 5px; font-size: 14.5px; color: var(--slate);
  transition: color .3s var(--ease-out), transform .5s var(--ease-out);
}
@media (hover: hover) { .mega__col a:hover { color: var(--brand); transform: translateX(-6px); } }

.mega__promo {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 8px;
  padding: 28px; border-radius: 20px; background: var(--ink); color: rgba(255, 255, 255, .72);
}
.mega__promo::before {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 80%; aspect-ratio: 1; z-index: -1;
  border-radius: 50%; background: radial-gradient(circle, rgba(229, 101, 42, .45), transparent 65%);
  transition: transform 1.2s var(--ease-out);
}
@media (hover: hover) { .mega__promo:hover::before { transform: translate(-20%, -20%) scale(1.2); } }
.mega__promo-tag { font-size: 12px; font-weight: 600; color: var(--ember); }
.mega__promo strong { font-size: 19px; font-weight: 700; color: var(--pearl); line-height: 1.5; }
.mega__promo-text { font-size: 13.5px; line-height: 1.9; max-width: 34ch; }
.mega__promo-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--pearl); }
.mega__promo-cta .ico { transition: transform .6s var(--ease-out); }
@media (hover: hover) { .mega__promo:hover .mega__promo-cta .ico { transform: translateX(-6px); } }

/* ---------- Scrim ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(10, 27, 46, .18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* =============================================================
   SEARCH
   ============================================================= */
.search {
  position: fixed; inset-inline: 0; top: 0; z-index: 1100;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--porcelain); border-bottom: 1px solid var(--hair);
  box-shadow: 0 40px 80px -40px rgba(10, 27, 46, .25);
}
.search__in { padding-block: 22px 40px; }
.search__form {
  display: flex; align-items: center; gap: 14px;
  height: 76px; border-bottom: 1px solid var(--hair-2);
}
.search__ico { width: 26px; height: 26px; color: var(--mist); }
.search__input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent;
  font: inherit; font-size: clamp(20px, 2.6vw, 30px); font-weight: 300; color: var(--ink);
}
.search__input::placeholder { color: var(--mist); }
.search__input::-webkit-search-cancel-button { display: none; }
.search__kbd {
  font-family: var(--f-mono); font-size: 11px; color: var(--mist);
  padding: 3px 8px; border: 1px solid var(--hair-2); border-radius: 6px;
}
.search__body { padding-top: 26px; min-height: 120px; }
.search__label { font-size: 12.5px; font-weight: 600; color: var(--mist); margin-bottom: 14px; }
.search__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  height: 40px; padding-inline: 18px; border-radius: 100px;
  border: 1px solid var(--hair-2); font-size: 14px; color: var(--ink);
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out), border-color .4s var(--ease-out);
}
@media (hover: hover) { .chip:hover { background: var(--ink); border-color: var(--ink); color: var(--pearl); } }
.search__results { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 28px; }
.search__results a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--hair);
  color: var(--ink); font-weight: 500;
  transition: color .3s var(--ease-out), padding .5s var(--ease-out);
}
@media (hover: hover) { .search__results a:hover { color: var(--brand); padding-inline-start: 8px; } }
.search__results small { flex: none; font-family: var(--f-mono); font-size: 11px; color: var(--mist); letter-spacing: .06em; direction: ltr; white-space: nowrap; }
.search__results mark { background: none; color: var(--ember); }

/* =============================================================
   MOBILE MENU
   ============================================================= */
.mmenu {
  position: fixed; inset: 0; z-index: 950;
  background: var(--porcelain);
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow-y: auto;
}
.mmenu__in { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 100%; padding-block: 24px 32px; }
.mmenu__nav { display: flex; flex-direction: column; }
.mmenu__link {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 14px; border-bottom: 1px solid var(--hair);
  font-size: 28px; font-weight: 300; color: var(--ink); text-align: start;
}
.mmenu__chev { transition: transform .6s var(--ease-out); }
.mmenu__link[aria-expanded="true"] .mmenu__chev { transform: rotate(180deg); }
.mmenu__sub { display: grid; padding: 8px 0 14px; }
.mmenu__sub a { padding-block: 8px; font-size: 16px; color: var(--slate); }
.mmenu__foot { display: grid; gap: 18px; }
.mmenu__foot .btn { justify-content: center; padding-inline: 26px; }
.mmenu__phone { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mist); }
.mmenu__phone span { font-family: var(--f-mono); color: var(--ink); }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative; overflow: hidden;
  grid-template-columns: minmax(0, 1fr);
  min-height: max(640px, 100svh);
  display: grid; grid-template-rows: 1fr auto;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__in { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 40px; }
.hero__content { max-width: 680px; }

.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; color: var(--slate); }
.eyebrow__rule { width: 44px; height: 1px; background: var(--ink); }
.eyebrow .latin { color: var(--brand); }

.hero__title {
  margin: 26px 0 26px;
  font-size: clamp(42px, 6.4vw, 92px); font-weight: 200; line-height: 1.22;
}
.hero__title b { font-weight: 800; }
.line { display: block; overflow: hidden; padding-block: .06em .18em; margin-block: -.06em -.18em; }
.line__in { display: inline-block; }

.swoosh { position: relative; display: inline-block; }
.swoosh svg {
  position: absolute; inset-inline: -2%; bottom: -.02em; width: 104%; height: .2em; overflow: visible;
}
.swoosh path { fill: none; stroke: var(--ember); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }

.hero__lead { max-width: 46ch; font-size: clamp(16px, 1.3vw, 18px); line-height: 2.05; color: var(--slate); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; margin-top: 40px; }

/* live readout */
.readout {
  position: absolute; left: max(var(--gutter), env(safe-area-inset-left, 0px)); bottom: 28px;
  display: inline-flex; align-items: center; gap: 2px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--mist);
  direction: ltr; font-variant-numeric: tabular-nums;
}
.readout__dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: #2EBD7E; margin-right: 10px; }
/* the breathing halo is a separate layer animated with transform/opacity (compositor-only),
   instead of animating box-shadow, which would repaint every frame */
.readout__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: rgba(46, 189, 126, .14);
  animation: breathe 2.4s ease-in-out infinite;
}
.readout__sep { width: 1px; height: 12px; background: var(--hair-2); margin-inline: 12px; }
@keyframes breathe { 50% { transform: scale(1.45); opacity: 0; } }

/* category row */
.cats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--hair);
  margin-inline: -24px;   /* text aligns with the headline, hover fill bleeds past it */
}
.cats li + li { border-inline-start: 1px solid var(--hair); }
.cat {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 12px;
  padding: 26px 24px 30px;
  transition: color .5s var(--ease-out);
}
.cat::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: translateY(101%); transition: transform .7s var(--ease-out);
}
@media (hover: hover) { .cat:hover::before { transform: translateY(0); } }
.cat__tag { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--mist); direction: ltr; text-align: right; transition: color .5s var(--ease-out); }
.cat__name { font-size: 17px; font-weight: 600; color: var(--ink); transition: color .5s var(--ease-out); }
.cat__arrow { color: var(--mist); transform: rotate(45deg); transition: transform .7s var(--ease-out), color .5s var(--ease-out); }
@media (hover: hover) { .cat:hover .cat__name { color: var(--pearl); } }
@media (hover: hover) { .cat:hover .cat__tag { color: rgba(255, 255, 255, .5); } }
@media (hover: hover) { .cat:hover .cat__arrow { color: var(--ember); transform: rotate(0deg) translateX(-4px); } }

/* =============================================================
   SECTIONS
   ============================================================= */
.section { position: relative; padding-block: clamp(80px, 11vw, 150px); }

.sec-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); align-items: end; gap: 32px 64px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.sec-title {
  margin-top: 22px;
  font-size: clamp(32px, 4.2vw, 58px); font-weight: 200; line-height: 1.3;
}
.sec-title b { font-weight: 800; }
.sec-head__aside { display: grid; gap: 18px; justify-items: start; padding-bottom: 10px; }
.sec-head__aside p { font-size: 15.5px; line-height: 2; color: var(--slate); max-width: 40ch; }

/* =============================================================
   CATEGORY GRID (bento)
   ============================================================= */
.cgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(320px, auto);   /* more categories from the admin simply add rows */
  gap: 20px;
}
.ccard--lead { grid-row: span 2; }

.ccard {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px;
  padding: 24px 26px 26px;
  background: var(--pearl);
  border: 1px solid var(--hair); border-radius: 26px;
  transition: border-color .7s var(--ease-out), box-shadow .9s var(--ease-out);
}
/* rim of light that follows the pointer (fill stays pure white so product photos never show a box) */
.ccard::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(229, 101, 42, .7), rgba(29, 79, 130, .35) 45%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .7s var(--ease-out);
}
@media (hover: hover) { .ccard:hover { border-color: var(--hair-2); box-shadow: 0 50px 90px -60px rgba(10, 27, 46, .45); } }
@media (hover: hover) { .ccard:hover::after { opacity: 1; } }
/* arrived here from a category link */
.ccard.is-target { border-color: rgba(229, 101, 42, .55); box-shadow: 0 0 0 5px rgba(229, 101, 42, .1); }

.ccard { min-width: 0; }
.ccard__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.ccard__tag {
  min-width: 0;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--mist);
  direction: ltr; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ccard__count {
  flex: none; padding: 1px 11px; border-radius: 100px;
  border: 1px solid var(--hair-2); font-size: 12px; font-weight: 500; color: var(--slate);
  transition: background-color .6s var(--ease-out), color .6s var(--ease-out), border-color .6s var(--ease-out);
}
@media (hover: hover) { .ccard:hover .ccard__count { background: var(--ink); border-color: var(--ink); color: var(--pearl); } }

.ccard__media { position: relative; min-height: 170px; }
.ccard__stage { position: absolute; inset: 0; }
.ccard__stage::before {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: -2%; height: 14%;
  background: radial-gradient(closest-side, rgba(10, 27, 46, .14), transparent);
  transition: transform 1.1s var(--ease-out), opacity 1.1s var(--ease-out);
}
.ccard__img {
  position: absolute; mix-blend-mode: multiply; object-fit: contain;
  transition: transform 1.1s var(--ease-out);
}
.ccard__img--main { left: 50%; top: 50%; height: 100%; width: auto; max-width: 70%; translate: -50% -50%; }
.ccard__img--a    { left: 4%;  bottom: 2%; height: 56%; width: auto; }
.ccard__img--b    { right: 4%; bottom: 2%; height: 50%; width: auto; }

@media (hover: hover) { .ccard:hover .ccard__img--main { transform: translateY(-8px) scale(1.05); } }
@media (hover: hover) { .ccard:hover .ccard__stage::before { transform: scaleX(.86); opacity: .7; } }
@media (hover: hover) { .ccard:hover .ccard__img--a { transform: translateX(-10px) rotate(-5deg); } }
@media (hover: hover) { .ccard:hover .ccard__img--b { transform: translateX(10px) rotate(5deg); } }

.ccard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.ccard__body { min-width: 0; }
.ccard__title { font-size: clamp(19px, 1.6vw, 23px); font-weight: 700; line-height: 1.5; }
.ccard__spec { margin-top: 4px; font-size: 13.5px; color: var(--mist); line-height: 1.8; }

.ccard__go {
  flex: none; display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--hair-2); color: var(--ink);
  transition: background-color .6s var(--ease-out), border-color .6s var(--ease-out), color .6s var(--ease-out);
}
.ccard__go .ico { transform: rotate(45deg); transition: transform .8s var(--ease-out); }
@media (hover: hover) { .ccard:hover .ccard__go { background: var(--ink); border-color: var(--ink); color: var(--pearl); } }
@media (hover: hover) { .ccard:hover .ccard__go .ico { transform: rotate(0deg); } }

/* lead card */
.ccard--lead { padding: 30px 32px 32px; }
.ccard--lead .ccard__media { min-height: 300px; }
.ccard--lead .ccard__img--main { height: 86%; }
.ccard--lead .ccard__img--a { height: 48%; left: 2%; }
.ccard--lead .ccard__img--b { height: 46%; right: 2%; }
.ccard--lead .ccard__title { font-size: clamp(24px, 2.3vw, 34px); }
.ccard__subs { display: none; }
.ccard--lead .ccard__subs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px;
  margin-top: 18px; border-top: 1px solid var(--hair);
}
.ccard__subs li {
  display: flex; align-items: center; gap: 10px;
  padding-block: 10px; border-bottom: 1px solid var(--hair);
  font-size: 13.5px; color: var(--slate);
}
.ccard__subs li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--ember); flex: none; }

@media (max-width: 1100px) {
  .sec-head { grid-template-columns: 1fr; }
  .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .ccard { min-height: 330px; }
  .ccard--lead {
    grid-row: auto; grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 32px;
  }
  .ccard--lead .ccard__top { grid-column: 1 / -1; }
  .ccard--lead .ccard__media { grid-column: 2; grid-row: 2; min-height: 280px; }
  .ccard--lead .ccard__foot { grid-column: 1; grid-row: 2; align-self: end; }
}

@media (max-width: 640px) {
  .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ccard {
    min-height: 0; grid-template-rows: auto 118px auto; gap: 8px;
    padding: 14px 14px 16px; border-radius: 20px;
  }
  .ccard__top { gap: 6px; }
  .ccard__tag { font-size: 9px; letter-spacing: .1em; }
  .ccard__count { font-size: 11px; padding-inline: 8px; }
  .ccard__media { min-height: 0; }
  .ccard__img--a, .ccard__img--b { display: none; }
  .ccard__img--main { max-width: 88%; height: 92%; }
  .ccard__title { font-size: 15px; line-height: 1.6; }
  .ccard__spec {
    font-size: 11.5px; line-height: 1.75;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .ccard__go { display: none; }

  .ccard--lead {
    grid-column: 1 / -1; grid-row: auto;
    grid-template-columns: none; grid-template-rows: auto 190px auto;
    padding: 18px 18px 20px;
  }
  .ccard--lead .ccard__top, .ccard--lead .ccard__media, .ccard--lead .ccard__foot { grid-column: auto; grid-row: auto; }
  .ccard--lead .ccard__media { min-height: 0; }
  .ccard--lead .ccard__img--a, .ccard--lead .ccard__img--b { display: block; }
  .ccard--lead .ccard__img--main { height: 96%; max-width: 62%; }
  .ccard--lead .ccard__img--a { height: 50%; }
  .ccard--lead .ccard__img--b { height: 46%; }
  .ccard--lead .ccard__title { font-size: 21px; }
  .ccard--lead .ccard__spec { font-size: 12.5px; }
  .ccard--lead .ccard__go { display: grid; width: 44px; height: 44px; }
  .ccard--lead .ccard__subs { display: none; }
}

@media (max-width: 360px) {
  .cgrid { grid-template-columns: 1fr; }
}

/* =============================================================
   B2B / BULK ORDER  — dark industrial band
   ============================================================= */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.b2b { padding-bottom: clamp(80px, 10vw, 140px); }

.b2b__panel {
  --night:   #07121F;
  --t1:      #F2F5F9;              /* headings on night */
  --t2:      #A8B7C7;              /* body on night */
  --t3:      #6C8197;              /* muted on night */
  --line-d:  rgba(255, 255, 255, .09);
  --line-d2: rgba(255, 255, 255, .18);
  --danger:  #F29A88;

  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(80px, 10vw, 140px);
  background: var(--night); color: var(--t2);
}

/* atmosphere */
.b2b__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.b2b__glow { position: absolute; border-radius: 50%; filter: blur(100px); animation: b2bDrift 24s ease-in-out infinite alternate; }
.b2b__glow--a { width: 680px; height: 680px; top: -260px; right: -160px; background: #1D4F82; opacity: .55; }
.b2b__glow--b { width: 480px; height: 480px; bottom: -240px; left: -140px; background: #E5652A; opacity: .22; animation-delay: -9s; }
@keyframes b2bDrift { to { transform: translate3d(-70px, 50px, 0) scale(1.12); } }
.b2b__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 45%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 70% at 70% 45%, #000, transparent 75%);
}

/* a bus bar along the top edge with a travelling pulse */
.b2b__bus { position: absolute; top: 0; inset-inline: 0; height: 1px; background: var(--line-d); overflow: hidden; }
.b2b__bus::after {
  content: ""; position: absolute; top: 0; right: -240px; width: 240px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), rgba(255, 255, 255, .9));
  animation: b2bBus 6.5s cubic-bezier(.45, 0, .2, 1) infinite;
}
@keyframes b2bBus { to { transform: translateX(calc(-100vw - 260px)); } }

.b2b__in {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  gap: clamp(48px, 6vw, 110px); align-items: center;
}

/* ---------- pitch ---------- */
.eyebrow--dark { color: var(--t2); }
.eyebrow--dark .eyebrow__rule { background: var(--ember); }

.b2b__title {
  margin: 24px 0 22px;
  font-size: clamp(36px, 4.6vw, 66px); font-weight: 200; line-height: 1.28; color: var(--t1);
}
.b2b__title b {
  font-weight: 800;
  background: linear-gradient(100deg, #FFFFFF 0%, #FFFFFF 50%, #F2B48F 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.b2b__lead { max-width: 50ch; font-size: 16.5px; line-height: 2.05; color: var(--t2); }

.b2b__perks {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px;
  margin-top: 40px; border-top: 1px solid var(--line-d);
}
.b2b__perks li { display: flex; align-items: flex-start; gap: 14px; padding-block: 20px; border-bottom: 1px solid var(--line-d); }
.b2b__perk-ico { width: 24px; height: 24px; stroke-width: 1.3; color: var(--ember); margin-top: 2px; }
.b2b__perks span { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.8; color: var(--t3); }
.b2b__perks b { font-size: 15px; font-weight: 600; color: var(--t1); }

.b2b__stats { display: flex; flex-wrap: wrap; gap: 20px 52px; margin-top: 40px; }
.b2b__stats dt { font-size: 42px; font-weight: 200; line-height: 1.2; color: var(--t1); font-variant-numeric: tabular-nums; }
.b2b__stats small { font-size: 14px; font-weight: 500; color: var(--ember); margin-inline-start: 4px; }
.b2b__stats dd { font-size: 12.5px; color: var(--t3); }

/* ---------- card ---------- */
.b2b__card-wrap { position: relative; padding: 16px; }
.tick { position: absolute; width: 16px; height: 16px; border-color: rgba(255, 255, 255, .32); border-style: solid; border-width: 0; }
.tick--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.tick--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.tick--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.tick--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }

.b2b-card {
  position: relative; isolation: isolate;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
          backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .08);
}
/* a slow sheen travelling around the border */
.b2b-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0deg 250deg, rgba(229, 101, 42, .9) 300deg, rgba(255, 255, 255, .75) 322deg, transparent 352deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: b2bSheen 8s linear infinite;
}
@keyframes b2bSheen { to { --ang: 360deg; } }
/* soft light following the pointer */
.b2b-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 0%), rgba(255, 255, 255, .06), transparent 60%);
}

.b2b-form { display: grid; gap: 26px; }
.b2b-form__head h3 { font-size: 21px; font-weight: 700; color: var(--t1); }
.b2b-form__head p { margin-top: 2px; font-size: 13px; color: var(--t3); }

.group { border: 0; min-width: 0; }
.group legend { margin-bottom: 12px; font-size: 13px; font-weight: 500; color: var(--t2); }
.group__hint { margin-top: 8px; font-size: 11.5px; color: var(--t3); }

/* chips (native radios / checkboxes) */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input, .seg__opt input, .drop__input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer;
}
.choice span {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding-inline: 15px; border-radius: 100px;
  border: 1px solid var(--line-d2); font-size: 13.5px; color: var(--t2);
  transition: background-color .45s var(--ease-out), border-color .45s var(--ease-out), color .45s var(--ease-out);
}
.choice span .ico { width: 0; height: 15px; stroke-width: 2; opacity: 0; margin-inline-end: -6px; transition: width .45s var(--ease-out), opacity .45s var(--ease-out), margin .45s var(--ease-out); }
.choice input:checked + span { background: var(--t1); border-color: var(--t1); color: var(--ink); font-weight: 600; }
.choice input:checked + span .ico { width: 15px; opacity: 1; margin-inline-end: 0; }
.choice input:focus-visible + span, .seg__opt input:focus-visible + span { outline: 1.5px solid var(--ember); outline-offset: 3px; }
@media (hover: hover) { .choice:hover input:not(:checked) + span { border-color: rgba(255, 255, 255, .4); color: var(--t1); } }

/* floating-label fields */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.field { position: relative; padding-top: 16px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field input {
  display: block; width: 100%; height: 46px; padding: 0 2px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-d2); border-radius: 0; outline: none;
  font: inherit; font-size: 15.5px; color: var(--t1); caret-color: var(--ember);
  transition: border-color .4s var(--ease-out);
}
.field input[dir="ltr"] { text-align: right; font-family: var(--f-mono); letter-spacing: .06em; }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--t1); transition: background-color 99999s; }
.field label {
  position: absolute; inset-inline-start: 2px; top: 27px; pointer-events: none;
  font-size: 14.5px; color: var(--t3); transform-origin: right center;
  transition: transform .5s var(--ease-out), color .5s var(--ease-out);
}
.field label em { font-style: normal; font-size: .85em; opacity: .75; }
.field input:focus + label,
.field input:not(:placeholder-shown) + label { transform: translateY(-25px) scale(.82); color: var(--t2); }
.field__line {
  position: absolute; inset-inline: 0; top: 61px; height: 1px; background: var(--ember);
  transform: scaleX(0); transition: transform .7s var(--ease-out);
}
.field input:focus ~ .field__line { transform: scaleX(1); }
.field.is-invalid input { border-bottom-color: var(--danger); }
.err { display: block; margin-top: 7px; font-size: 12px; color: var(--danger); }
.err:empty { display: none; }

/* segmented control with a sliding thumb; --n (number of options) is set by the template, up to 6 */
.seg {
  position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  padding: 4px; border-radius: 100px;
  border: 1px solid var(--line-d2); background: rgba(255, 255, 255, .03);
}
.seg__thumb {
  position: absolute; top: 4px; bottom: 4px; right: 4px; width: calc((100% - 8px) / var(--n, 3));
  border-radius: 100px; background: var(--t1);
  transition: transform .7s var(--ease-out);
}
.seg:has(.seg__opt:nth-of-type(2) input:checked) .seg__thumb { transform: translateX(-100%); }
.seg:has(.seg__opt:nth-of-type(3) input:checked) .seg__thumb { transform: translateX(-200%); }
.seg:has(.seg__opt:nth-of-type(4) input:checked) .seg__thumb { transform: translateX(-300%); }
.seg:has(.seg__opt:nth-of-type(5) input:checked) .seg__thumb { transform: translateX(-400%); }
.seg:has(.seg__opt:nth-of-type(6) input:checked) .seg__thumb { transform: translateX(-500%); }
.seg__opt { position: relative; z-index: 1; min-width: 0; }
.seg__opt span {
  display: grid; place-items: center; height: 40px; padding-inline: 6px;
  font-size: 13px; color: var(--t2); text-align: center; white-space: nowrap;
  transition: color .5s var(--ease-out);
}
.seg__opt input:checked + span { color: var(--ink); font-weight: 600; }

/* file attach */
.drop { position: relative; }
.drop__label {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; border: 1px dashed var(--line-d2); border-radius: 16px;
  cursor: pointer; transition: border-color .4s var(--ease-out), background-color .4s var(--ease-out);
}
.drop__input { z-index: 1; }
.drop__label .ico { color: var(--ember); flex: none; }
.drop__label span { font-size: 14px; color: var(--t1); line-height: 1.6; }
.drop__label em { font-style: normal; font-size: 12.5px; color: var(--t3); }
.drop__label small { display: block; font-size: 12px; color: var(--t3); }
.drop.is-over .drop__label { border-color: var(--ember); background: rgba(229, 101, 42, .07); }
.drop__input:focus-visible ~ .drop__label { outline: 1.5px solid var(--ember); outline-offset: 3px; }
@media (hover: hover) { .drop:hover .drop__label { border-color: rgba(255, 255, 255, .38); } }
.drop.has-file .drop__label, .drop.has-file .drop__input { display: none; }
.drop__file {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); color: var(--t1);
}
.drop__file .ico { color: var(--ember); flex: none; }
.drop__name { flex: 1; min-width: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; }
.drop__remove { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--t2); transition: background-color .3s var(--ease-out); }
@media (hover: hover) { .drop__remove:hover { background: rgba(255, 255, 255, .1); color: var(--t1); } }

/* submit */
.b2b-submit {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; height: 62px; padding-inline: 28px 8px; border-radius: 100px;
  background: var(--t1); color: var(--ink); font-weight: 700; font-size: 16px;
  transition: color .6s var(--ease-out), transform .3s var(--ease-out);
}
.b2b-submit::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(100deg, #E5652A, #F08F57);
  transform: translateY(101%); transition: transform .75s var(--ease-out);
}
@media (hover: hover) {
  .b2b-submit:hover { color: #fff; }
  .b2b-submit:hover::before { transform: translateY(0); }
  .b2b-submit:hover .b2b-submit__arrow { animation: arrowLoop .7s var(--ease-out); }
}
.b2b-submit:active { transform: scale(.985); }
.b2b-submit__dot { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; overflow: hidden; }
.b2b-submit__spin {
  position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .25); border-top-color: #fff;
  opacity: 0; animation: b2bSpin .8s linear infinite;
}
@keyframes b2bSpin { to { transform: rotate(360deg); } }
.b2b-submit.is-loading { pointer-events: none; }
.b2b-submit.is-loading .b2b-submit__arrow { opacity: 0; }
.b2b-submit.is-loading .b2b-submit__spin { opacity: 1; }
.b2b-form__note { margin-top: -12px; font-size: 12px; color: var(--t3); text-align: center; }

/* success */
.b2b-done { display: grid; justify-items: center; gap: 10px; padding-block: 48px; text-align: center; }
.b2b-done__mark { width: 84px; height: 84px; margin-bottom: 10px; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.b2b-done__mark circle { stroke: var(--ember); stroke-dasharray: 1; stroke-dashoffset: 1; }
.b2b-done__mark path { stroke: var(--t1); stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.b2b-done.is-shown .b2b-done__mark circle { animation: b2bDraw 1.1s var(--ease-out) forwards; }
.b2b-done.is-shown .b2b-done__mark path { animation: b2bDraw .8s var(--ease-out) .55s forwards; }
@keyframes b2bDraw { to { stroke-dashoffset: 0; } }
.b2b-done h3 { font-size: 24px; font-weight: 700; color: var(--t1); }
.b2b-done p { max-width: 36ch; font-size: 15px; line-height: 2; color: var(--t2); }
.b2b-done__code { font-size: 13px; color: var(--t3); }
.b2b-done__code span { font-family: var(--f-mono); color: var(--t1); letter-spacing: .1em; margin-inline-start: 6px; }
.link-line--light { color: var(--t1); margin-top: 8px; }

@media (max-width: 1100px) {
  .b2b__in { grid-template-columns: 1fr; }
  .b2b__card-wrap { max-width: 640px; }
}

@media (max-width: 640px) {
  .b2b__panel { padding-block: 72px 64px; }
  .b2b__perks { grid-template-columns: 1fr; margin-top: 32px; }
  .b2b__stats { gap: 18px 32px; margin-top: 32px; }
  .b2b__stats dt { font-size: 32px; }
  .b2b__card-wrap { padding: 0; }
  .tick { display: none; }
  .b2b-card { padding: 24px 18px 22px; border-radius: 22px; }
  .fields { grid-template-columns: 1fr; }
  .seg__opt span { font-size: 12px; }
  .b2b-submit { height: 58px; padding-inline-start: 22px; }
}

/* =============================================================
   AUTHENTICITY & CERTIFICATION — documents, company record, seal
   ============================================================= */
.creds { padding-top: clamp(40px, 6vw, 90px); }
.creds__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: clamp(56px, 8vw, 120px); align-items: center;
}
.creds__lead { max-width: 50ch; margin-top: 22px; font-size: 16px; line-height: 2.05; color: var(--slate); }
.creds .link-line { margin-top: 28px; }

/* ---------- company record ---------- */
/* the number column sizes itself to the widest figure, shared by all rows */
.facts {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 36px;
  margin-top: 36px; border-top: 1px solid var(--hair); list-style: none;
}
.fact {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: center;
  grid-template-columns: subgrid;
  padding-block: 22px; border-bottom: 1px solid var(--hair);
}
.fact__num { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.fact__num b { font-size: clamp(38px, 3.6vw, 52px); font-weight: 200; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.fact__num small { font-size: 13px; font-weight: 500; color: var(--ember); }
.fact__txt h3 { font-size: 16px; font-weight: 700; }
.fact__txt p { max-width: 46ch; margin-top: 3px; font-size: 13.5px; line-height: 1.9; color: var(--mist); }

/* ---------- document deck ---------- */
.creds__visual { display: grid; justify-items: center; }
.deck-tilt { width: min(100%, 480px); perspective: 1600px; }
.deck { position: relative; width: 100%; aspect-ratio: 1 / 1.1; transform-style: preserve-3d; }

.frame {
  --x: 0%; --y: 0%; --r: 0deg; --s: 1; --lift: 0px;
  position: absolute; left: 14%; top: 2%; width: 72%; aspect-ratio: 3 / 4;
  padding: 12px; border-radius: 6px;
  background: var(--pearl); border: 1px solid var(--hair);
  box-shadow: 0 30px 50px -40px rgba(10, 27, 46, .45);
  transform: translate(var(--x), calc(var(--y) - var(--lift))) rotate(var(--r)) scale(var(--s));
  transition: transform 1.1s var(--ease-out), box-shadow .9s var(--ease-out);
  cursor: pointer; text-align: center;
}
.frame::after {   /* documents in the back sit slightly in shadow */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: rgba(238, 241, 245, .55); opacity: 0; transition: opacity .8s var(--ease-out);
}
.frame[data-slot="0"] { z-index: 3; box-shadow: 0 70px 90px -60px rgba(10, 27, 46, .55), 0 20px 40px -30px rgba(10, 27, 46, .25); }
.frame[data-slot="1"] { z-index: 2; --x: -30%; --y: 6%; --r: -8deg; --s: .86; }
.frame[data-slot="2"] { z-index: 1; --x: 30%;  --y: 8%; --r: 7deg;  --s: .82; }
.frame:not([data-slot="0"])::after { opacity: 1; }
.deck.is-stacked .frame { --x: 0%; --y: 0%; --r: 0deg; --s: 1; }

.frame__paper {
  position: relative; height: 100%; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-items: center;
  padding: 22px 16px 20px;
  background:
    repeating-radial-gradient(circle at 0% 0%, transparent 0 9px, rgba(29, 79, 130, .05) 9px 10px),
    repeating-radial-gradient(circle at 100% 100%, transparent 0 9px, rgba(229, 101, 42, .04) 9px 10px),
    #FBFCFD;
  box-shadow: inset 0 0 0 1px rgba(29, 79, 130, .22), inset 0 0 0 5px #FBFCFD, inset 0 0 0 6px rgba(29, 79, 130, .12);
}
.frame__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame__kicker { font-family: var(--f-mono); font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--brand); direction: ltr; }
.frame__ph {
  display: grid; justify-items: center; gap: 5px;
  padding: 20px 16px; border: 1px dashed rgba(29, 79, 130, .3); border-radius: 12px;
  background: rgba(255, 255, 255, .72);
}
.frame__ph .ico { width: 28px; height: 28px; stroke-width: 1.2; color: var(--brand); margin-bottom: 2px; }
.frame__ph strong { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.6; }
.frame__ph small { font-size: 11.5px; color: var(--mist); }
.frame__sign { display: flex; justify-content: center; gap: 24px; width: 100%; }
.frame__sign i { width: 34%; height: 1px; background: rgba(29, 79, 130, .3); }

@media (hover: hover) {
  .frame:not([data-slot="0"]):hover { --lift: 14px; }
  .frame:not([data-slot="0"]):hover::after { opacity: .15; }
  .frame[data-slot="0"]:hover { --lift: 6px; }
}

/* rotating seal on the deck */
.seal {
  position: absolute; left: 0; bottom: 4%; z-index: 4;
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 24px 40px -18px rgba(10, 27, 46, .6), inset 0 0 0 1px rgba(255, 255, 255, .08);
  display: grid; place-items: center;
}
.seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: sealSpin 28s linear infinite; }
.seal__ring text { direction: ltr; unicode-bidi: isolate; font-family: var(--f-mono); font-size: 9.2px; fill: rgba(255, 255, 255, .78); }
@keyframes sealSpin { to { transform: rotate(-360deg); } }
.seal__core {
  display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%;
  background: var(--pearl); box-shadow: 0 0 0 1px rgba(229, 101, 42, .55), 0 0 0 5px var(--ink), 0 0 0 6px rgba(255, 255, 255, .14);
}
.seal__core img { width: 42px; height: 42px; }

/* caption + controls */
.deck__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap;
  width: min(100%, 480px); margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--hair);
}
.deck__caption { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.deck__idx { font-family: var(--f-mono); font-size: 12px; color: var(--mist); white-space: nowrap; }
.deck__caption strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.deck__ctrl { display: flex; align-items: center; gap: 8px; }
.deck__btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--hair-2); color: var(--ink);
  transition: background-color .45s var(--ease-out), color .45s var(--ease-out), border-color .45s var(--ease-out);
}
#deckPrev .ico, #lbPrev .ico { transform: rotate(180deg); }
.deck__zoom {
  height: 40px; padding-inline: 16px; border-radius: 100px;
  border: 1px solid var(--hair-2); font-size: 13px; font-weight: 500; color: var(--ink);
  transition: background-color .45s var(--ease-out), color .45s var(--ease-out), border-color .45s var(--ease-out);
}
@media (hover: hover) {
  .deck__btn:hover, .deck__zoom:hover { background: var(--ink); border-color: var(--ink); color: var(--pearl); }
}

/* ---------- full-size viewer ---------- */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop {
  background: rgba(7, 18, 31, .74);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: lbFade .5s var(--ease-out);
}
@keyframes lbFade { from { opacity: 0; } }
.lightbox__in { display: grid; justify-items: center; gap: 18px; padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
.lightbox__stage { height: min(76vh, 760px); aspect-ratio: 3 / 4; max-width: calc(100vw - 32px); }
.lightbox__stage .frame--big {
  height: 100%; padding: 16px; border-radius: 8px; background: var(--pearl);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .7);
}
.lightbox__stage .frame__paper { padding: 30px 24px; }
.lightbox__stage .frame__ph strong { font-size: 17px; }
.lightbox__bar { display: flex; align-items: center; gap: 18px; }
.lightbox__cap { min-width: 180px; text-align: center; font-size: 15px; font-weight: 500; }
.deck__btn--light { border-color: rgba(255, 255, 255, .3); color: #fff; }
@media (hover: hover) { .deck__btn--light:hover { background: #fff; border-color: #fff; color: var(--ink); } }
.lightbox__close {
  position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); left: 16px;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff;
  transition: background-color .4s var(--ease-out);
}
@media (hover: hover) { .lightbox__close:hover { background: rgba(255, 255, 255, .22); } }

@media (max-width: 1100px) {
  .creds__grid { grid-template-columns: 1fr; }
  .creds__visual { padding-top: 12px; }
}

@media (max-width: 640px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-block: 18px; }
  .seal { width: 96px; height: 96px; }
  .seal__core { width: 50px; height: 50px; }
  .seal__core img { width: 32px; height: 32px; }
  .frame { padding: 8px; }
  .frame[data-slot="1"] { --x: -18%; }
  .frame[data-slot="2"] { --x: 18%; }
  .frame__paper { padding: 16px 10px 14px; }
  .frame__ph { padding: 14px 10px; }
  .frame__ph strong { font-size: 12.5px; }
  .frame__kicker { font-size: 7.5px; }
  .deck__zoom { display: none; }
}

/* =============================================================
   BEST SELLERS — ranked two-column list
   ============================================================= */
.catgrid { padding-bottom: clamp(72px, 8vw, 120px); }
.best { padding-top: 0; }

.best__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap;
  margin-bottom: clamp(26px, 3vw, 38px);
}
.best__title { margin-top: 18px; font-size: clamp(28px, 3vw, 42px); font-weight: 200; line-height: 1.35; }
.best__title b { font-weight: 800; }
.best__sub { margin-top: 6px; font-size: 14.5px; color: var(--mist); }
.best__head .link-line { margin-bottom: 6px; }

.best__list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 4), auto);   /* --rows: half the items, set by the template */
  column-gap: clamp(32px, 4.5vw, 72px);
  list-style: none;
}

.bs {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 24px 72px minmax(0, 1fr) auto 40px; align-items: center; gap: 18px;
  padding: 14px 10px;
  border-bottom: 1px solid var(--hair);
}
.bs[data-col-start] { border-top: 1px solid var(--hair); }   /* first row of each column */
/* hover: the row lifts onto a pearl plate */
.bs::before {
  content: ""; position: absolute; inset: 5px -6px; z-index: -1; border-radius: 18px;
  background: var(--pearl); box-shadow: 0 20px 44px -32px rgba(10, 27, 46, .4);
  opacity: 0; transform: scale(.97);
  transition: opacity .5s var(--ease-out), transform .7s var(--ease-out);
}

.bs__rank { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; color: var(--mist); transition: color .4s var(--ease-out); }

.bs__img {
  display: grid; place-items: center; width: 72px; height: 72px; overflow: hidden;
  border-radius: 16px; background: var(--pearl); border: 1px solid var(--hair);
  transition: background-color .5s var(--ease-out), border-color .5s var(--ease-out);
}
/* No transform transition or hover scale here: GSAP owns this image's transform (entrance and hover zoom,
   see hoverZoom in main.js). A CSS transition on it made GSAP read a half-way value and stop at scale(.6). */
.bs__img img { width: 94%; height: 94%; object-fit: contain; }

.bs__info { min-width: 0; }
.bs__name { font-size: 15.5px; font-weight: 600; line-height: 1.6; }
.bs__name a { transition: color .35s var(--ease-out); }
.bs__name a::after { content: ""; position: absolute; inset: 0; }   /* whole row is the link */
.bs__meta {
  display: flex; align-items: center; gap: 8px; margin-top: 2px;
  font-size: 12.5px; color: var(--mist); white-space: nowrap; overflow: hidden;
}
.bs__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--hair-2); flex: none; }
.bs__model { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; }

.bs__price { text-align: left; white-space: nowrap; }
.bs__price strong { font-size: 16px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.bs__price span { margin-inline-start: 4px; font-size: 11.5px; color: var(--mist); }

.bs__add {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--hair-2); color: var(--ink);
  transition: background-color .45s var(--ease-out), color .45s var(--ease-out), border-color .45s var(--ease-out), transform .3s var(--ease-out);
}
.bs__add .ico { grid-area: 1 / 1; transition: transform .5s var(--ease-out), opacity .4s var(--ease-out); }
.bs__ok { transform: scale(0); opacity: 0; stroke-width: 2; }
.bs__add.is-added { background: var(--ink); border-color: var(--ink); color: var(--pearl); }
.bs__add.is-added .bs__plus { transform: scale(0) rotate(90deg); opacity: 0; }
.bs__add.is-added .bs__ok { transform: scale(1); opacity: 1; }
.bs__add:active { transform: scale(.92); }

@media (hover: hover) {
  .bs:hover::before { opacity: 1; transform: scale(1); }
  .bs:hover .bs__rank { color: var(--ember); }
  .bs:hover .bs__img { background: var(--porcelain); border-color: transparent; }
  .bs:hover .bs__name a { color: var(--brand); }
  .bs__add:hover { background: var(--ink); border-color: var(--ink); color: var(--pearl); }
}

/* image that flies to the cart */
.fly { position: fixed; z-index: 1200; pointer-events: none; object-fit: contain; }

@media (max-width: 1000px) {
  .best__list { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
  .bs[data-col-start]:not(:first-child) { border-top: 0; }   /* one column: only the first row keeps its top line */
}

@media (max-width: 640px) {
  .bs {
    grid-template-columns: 62px minmax(0, 1fr) 40px;
    grid-template-areas: "img info add" "img price add";
    column-gap: 14px; row-gap: 2px; padding: 12px 2px;
  }
  .bs::before { inset: 4px -8px; }
  .bs__rank { display: none; }
  .bs:nth-child(n+7) { display: none; }   /* top six on phones */
  .bs__img { grid-area: img; width: 62px; height: 62px; border-radius: 14px; }
  .bs__info { grid-area: info; align-self: end; }
  .bs__name { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bs__meta { font-size: 11.5px; }
  .bs__price { grid-area: price; align-self: start; text-align: right; }
  .bs__price strong { font-size: 15px; }
  .bs__add { grid-area: add; }
}

/* =============================================================
   CLIENTS & PROJECTS — live project map + industry logo marquee
   ============================================================= */
.clients__panel {
  --t1: #F2F5F9; --t2: #A8B7C7; --t3: #6C8197;
  --line-d: rgba(255, 255, 255, .09); --line-d2: rgba(255, 255, 255, .18);

  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(90px, 11vw, 150px) clamp(70px, 8vw, 110px);
  background: #07121F; color: var(--t2);
}
.clients__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* entrance louvres (built by main.js) */
.louvres { position: absolute; inset: 0; z-index: 5; display: flex; pointer-events: none; }
.louvres span { flex: 1 1 0; margin-inline-end: -1px; background: var(--porcelain); will-change: transform; }
.clients__bg span {
  position: absolute; width: 1100px; height: 1100px; left: -320px; top: 0;
  background: radial-gradient(closest-side, rgba(29, 79, 130, .42), transparent);
}

/* ---------- head ---------- */
.clients__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px 56px; flex-wrap: wrap; }
.clients__title { margin-top: 24px; font-size: clamp(34px, 4.4vw, 62px); font-weight: 200; line-height: 1.3; color: var(--t1); }
.clients__title b {
  font-weight: 800;
  background: linear-gradient(100deg, #FFFFFF 0%, #FFFFFF 45%, #9CC3EA 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.clients__stats { display: flex; gap: 20px 48px; flex-wrap: wrap; padding-bottom: 10px; }
.clients__stats dt { font-size: 40px; font-weight: 200; line-height: 1.15; color: var(--t1); font-variant-numeric: tabular-nums; }
.clients__stats small { font-size: 18px; color: var(--ember); margin-inline-start: 2px; }
.clients__stats dd { font-size: 12.5px; color: var(--t3); }

.clients__grid {
  display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
  margin-top: clamp(44px, 5vw, 70px);
}

/* ---------- project list ---------- */
.projects { list-style: none; border-top: 1px solid var(--line-d); }
.proj {
  position: relative; width: 100%;
  display: grid; grid-template-columns: 86px minmax(0, 1fr);
  grid-template-areas: "city name" "city meta"; column-gap: 18px; row-gap: 1px;
  padding: 18px 10px; text-align: start;
  border-bottom: 1px solid var(--line-d);
  transition: background-color .6s var(--ease-out);
}
.proj::before {
  content: ""; position: absolute; top: 50%; right: -2px; width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 50%; background: var(--ember); transform: scale(0); transition: transform .5s var(--ease-out);
}
.proj__city { grid-area: city; align-self: center; font-size: 13px; font-weight: 500; color: var(--t3); transition: color .5s var(--ease-out); }
.proj__name { grid-area: name; font-size: 16px; font-weight: 600; line-height: 1.6; color: var(--t2); transition: color .5s var(--ease-out); }
.proj__meta { grid-area: meta; font-size: 12.5px; color: var(--t3); }
.proj__bar { position: absolute; inset-inline: 0; bottom: -1px; height: 1px; overflow: hidden; }
.proj__bar i { display: block; height: 100%; background: linear-gradient(270deg, var(--ember), rgba(255, 255, 255, .85)); transform: scaleX(0); transform-origin: right; }

.proj[aria-pressed="true"] { background: linear-gradient(270deg, rgba(255, 255, 255, .045), transparent); }
.proj[aria-pressed="true"]::before { transform: scale(1); }
.proj[aria-pressed="true"] .proj__city { color: var(--ember); }
.proj[aria-pressed="true"] .proj__name { color: var(--t1); }
.proj[aria-pressed="true"] .proj__bar i { animation: projBar var(--cycle, 5s) linear forwards; }
.projects.is-paused .proj__bar i { animation-play-state: paused; }
@keyframes projBar { to { transform: scaleX(1); } }
@media (hover: hover) { .proj:hover .proj__name { color: var(--t1); } }
.proj:focus-visible { outline-offset: -2px; }

/* ---------- map ---------- */
.map { position: relative; width: 100%; aspect-ratio: 1.12; max-width: 100%; }
.map__canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: default; }
.map__canvas.is-pointer { cursor: pointer; }
.map__hub {
  position: absolute; left: 0; top: 0; transform: translate(-50%, 16px);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; pointer-events: none;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-d);
  font-size: 11.5px; color: var(--t2);
}
.map__hub span { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }

.map-card {
  position: absolute; left: 0; top: 0; width: 264px;
  padding: 18px 20px; border-radius: 18px;
  background: rgba(10, 24, 40, .74); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  transition: left .9s var(--ease-out), top .9s var(--ease-out);
}
.map-card__sector { font-size: 11.5px; font-weight: 600; color: var(--ember); }
.map-card__name { margin-top: 2px; font-size: 16.5px; font-weight: 700; line-height: 1.6; color: var(--t1); }
.map-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: 12px; color: var(--t3); }
.map-card__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-d2); }
.map-card__parts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; list-style: none; }
.map-card__parts li { padding: 2px 10px; border-radius: 100px; border: 1px solid var(--line-d2); font-size: 11.5px; color: var(--t2); }

/* ---------- logo marquee ---------- */
.marquee { display: grid; gap: 14px; margin-top: clamp(64px, 8vw, 110px); }
.marquee__label { margin-bottom: 8px; font-size: 13px; color: var(--t3); }
.marquee__row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track { display: flex; gap: 14px; width: max-content; padding-block: 4px; list-style: none; will-change: transform; }

.logo-tile {
  flex: none; display: flex; align-items: center; gap: 14px;
  height: 84px; padding-inline: 22px 28px; border-radius: 20px;
  border: 1px solid var(--line-d); background: rgba(255, 255, 255, .025); color: var(--t2);
  transition: background-color .5s var(--ease-out), border-color .5s var(--ease-out), color .5s var(--ease-out);
}
.logo-tile img { height: 40px; width: auto; filter: grayscale(1) brightness(1.8); opacity: .8; transition: filter .5s var(--ease-out), opacity .5s var(--ease-out); }
.logo-tile__mark {
  width: 34px; height: 34px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  transition: color .5s var(--ease-out), transform .7s var(--ease-out);
}
.logo-tile__txt { display: flex; flex-direction: column; line-height: 1.4; }
.logo-tile__txt b { font-size: 15px; font-weight: 600; color: var(--t1); }
.logo-tile__txt small { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .16em; color: var(--t3); direction: ltr; text-align: right; }
@media (hover: hover) {
  .logo-tile:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); }
  .logo-tile:hover .logo-tile__mark { color: var(--ember); transform: rotate(-10deg) scale(1.1); }
  .logo-tile:hover img { filter: none; opacity: 1; }
}

@media (max-width: 1100px) {
  .clients__grid { grid-template-columns: 1fr; }
  .map { order: -1; }
}

@media (max-width: 640px) {
  .clients__stats { gap: 18px 30px; }
  .clients__stats dt { font-size: 30px; }
  /* the card sits under the map instead of over it */
  .map { aspect-ratio: auto; }
  .map__canvas { position: relative; display: block; aspect-ratio: 1.12; height: auto; }
  .map-card { position: relative; left: auto !important; top: auto !important; width: auto; margin-top: 12px; padding: 14px 16px; }
  .map-card__name { font-size: 15px; }
  .proj { grid-template-columns: 70px minmax(0, 1fr); padding: 14px 6px; }
  .proj__name { font-size: 15px; }
  .logo-tile { height: 68px; padding-inline: 16px 20px; gap: 12px; border-radius: 16px; }
  .logo-tile__mark { width: 28px; height: 28px; }
  .logo-tile__txt b { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__row { overflow-x: auto; }
}

/* =============================================================
   TECHNICAL KNOWLEDGE BASE — three latest articles
   ============================================================= */
.kb__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.kb__head .link-line { margin-bottom: 8px; }

.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.post__link {
  display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 12px; height: 100%;
  padding: 12px 12px 22px; border-radius: 24px;
  background: var(--pearl); border: 1px solid var(--hair);
  transition: transform .9s var(--ease-out), box-shadow .9s var(--ease-out), border-color .6s var(--ease-out);
}
.post__meta, .post__title, .post__excerpt, .post__foot { padding-inline: 10px; }

/* cover photo frame: any 16:10 image is cropped to fill it */
.post__media {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 0 0 6px; aspect-ratio: 16 / 10; max-width: 100%;
  border-radius: 16px; background: var(--porcelain);
}
.post__img {
  position: absolute; left: 0; top: -6%; width: 100%; height: 112%;   /* headroom for the scroll drift */
  object-fit: cover;
  transition: filter 1s var(--ease-out);   /* scale (reveal, drift, hover zoom) is driven by GSAP in main.js */
}
.post__media::after {   /* gentle shade so the label reads on any photo */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 27, 46, .38), rgba(10, 27, 46, 0) 55%);
  opacity: 0; transition: opacity .8s var(--ease-out);
}
.post__chip {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  padding: 4px 12px; border-radius: 100px;
  background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 12px; font-weight: 600; color: var(--ink);
}
.post__cta {
  position: absolute; left: 50%; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 16px; border-radius: 100px;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 13px; font-weight: 600; color: var(--ink);
  opacity: 0; translate: -50% 14px;
  transition: opacity .5s var(--ease-out), translate .8s var(--ease-out);
}

/* text */
.post__meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mist); }
.post__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--hair-2); }
.post__title { font-size: 18px; font-weight: 700; line-height: 1.75; color: var(--ink); }
.post__title span {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: right bottom; background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size .9s var(--ease-out);
}
.post__excerpt {
  font-size: 13.5px; line-height: 1.95; color: var(--mist);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--hair);
}
.post__author { font-size: 12.5px; color: var(--mist); }
.post__go .ico {
  box-sizing: content-box; padding: 9px; border-radius: 50%; border: 1px solid var(--hair-2); color: var(--ink);
  transform: rotate(45deg);
  transition: transform .8s var(--ease-out), background-color .5s var(--ease-out), color .5s var(--ease-out), border-color .5s var(--ease-out);
}

@media (hover: hover) {
  .post__link:hover { transform: translateY(-6px); border-color: var(--hair-2); box-shadow: 0 44px 80px -56px rgba(10, 27, 46, .5); }
  .post:hover .post__media::after { opacity: 1; }
  .post:hover .post__cta { opacity: 1; translate: -50% 0; }
  .post:hover .post__title span { background-size: 100% 1px; }
  .post:hover .post__go .ico { transform: rotate(0); background: var(--ink); border-color: var(--ink); color: var(--pearl); }
}

/* tablets & phones: a swipeable row */
@media (max-width: 900px) {
  .posts {
    display: flex; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    padding-bottom: 6px;
  }
  .posts::-webkit-scrollbar { display: none; }
  .post { flex: 0 0 min(82%, 360px); scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .post__title { font-size: 16.5px; }
}

/* =============================================================
   FOOTER — closing statement, links, store map, legal badges, wordmark
   ============================================================= */
.footer {
  --t1: #F2F5F9; --t2: #A8B7C7; --t3: #6C8197;
  --line-d: rgba(255, 255, 255, .08); --line-d2: rgba(255, 255, 255, .16);

  position: relative; overflow: hidden; isolation: isolate;
  padding-top: clamp(90px, 10vw, 140px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #050E19; color: var(--t2);
}
.footer__glow {
  position: absolute; z-index: -1; pointer-events: none;
  width: 1200px; height: 700px; top: -360px; left: 50%; translate: -50% 0;
  background:
    radial-gradient(closest-side at 35% 50%, rgba(29, 79, 130, .45), transparent),
    radial-gradient(closest-side at 70% 60%, rgba(229, 101, 42, .14), transparent);
}

/* ---------- closing statement ---------- */
.fcta {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 64px;
  padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line-d);
}
.fcta__title { font-size: clamp(40px, 6.2vw, 96px); font-weight: 200; line-height: 1.2; color: var(--t1); }
.fcta__title b {
  font-weight: 800;
  background: linear-gradient(100deg, #FFFFFF 0%, #FFFFFF 45%, #F2B48F 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fcta__side { display: grid; justify-items: start; gap: 14px; padding-bottom: 10px; }
.fcta__label { font-size: 13px; color: var(--t3); }
.fcta__phone { font-family: var(--f-mono); font-size: clamp(24px, 2.4vw, 32px); letter-spacing: .04em; color: var(--t1); transition: color .4s var(--ease-out); }
.btn--light { background: var(--t1); color: var(--ink); }
.btn--light .btn__dot { background: var(--ink); color: #fff; }
@media (hover: hover) {
  .fcta__phone:hover { color: var(--ember); }
  .btn--light:hover { background: var(--ember); color: #fff; }
}

/* ---------- columns ---------- */
.fcols {
  display: grid; grid-template-columns: 1.45fr 1fr 1fr 1.25fr; gap: 48px;
  padding-block: clamp(56px, 6vw, 84px); border-bottom: 1px solid var(--line-d);
}
.logo--light .logo__name { color: var(--t1); }
.logo--light .logo__sub { color: var(--t3); }
.fcol__about { max-width: 40ch; margin: 18px 0 24px; font-size: 13.5px; line-height: 2; color: var(--t3); }
.socials { display: flex; gap: 8px; list-style: none; }
.socials a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-d2); color: var(--t2);
  transition: background-color .45s var(--ease-out), color .45s var(--ease-out), border-color .45s var(--ease-out), transform .5s var(--ease-out);
}
.socials .ico { width: 19px; height: 19px; stroke-width: 1.4; }
@media (hover: hover) { .socials a:hover { background: var(--t1); border-color: var(--t1); color: var(--ink); transform: translateY(-3px); } }

.fcol__title { margin-bottom: 14px; font-size: 13px; font-weight: 500; color: var(--t3); }
.flinks { list-style: none; }
.flinks a {
  display: inline-block; padding-block: 6px; font-size: 14.5px; color: var(--t2);
  background-image: linear-gradient(var(--ember), var(--ember));
  background-size: 0 1px; background-position: right 85%; background-repeat: no-repeat;
  transition: color .4s var(--ease-out), background-size .6s var(--ease-out), translate .6s var(--ease-out);
}
@media (hover: hover) { .flinks a:hover { color: var(--t1); background-size: 100% 1px; translate: -4px 0; } }

.fcontact { list-style: none; display: grid; gap: 14px; }
.fcontact small { display: block; font-size: 12px; color: var(--t3); }
.fcontact__row { display: flex; width: fit-content; align-items: center; gap: 8px; }   /* one number per line */
.fcontact__row a { font-family: var(--f-mono); font-size: 17px; letter-spacing: .03em; color: var(--t1); transition: color .4s var(--ease-out); }
.fcontact__row a[href^="mailto"] { font-size: 15px; }
.copy {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--t3);
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out);
}
.copy.is-done { color: #3DDC97; }
@media (hover: hover) {
  .fcontact__row a:hover { color: var(--ember); }
  .copy:hover { background: rgba(255, 255, 255, .08); color: var(--t1); }
}
.fcontact__hours { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12.5px; color: var(--t3); }

/* ---------- locations ---------- */
.locs {
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: center;
  padding-block: clamp(56px, 6vw, 84px); border-bottom: 1px solid var(--line-d);
}
.locs__title { font-size: 22px; font-weight: 700; color: var(--t1); }
.locs__sub { max-width: 34ch; margin-top: 8px; margin-bottom: 22px; font-size: 13.5px; line-height: 1.9; color: var(--t3); }
.loc__addr { display: flex; gap: 10px; font-size: 15.5px; line-height: 1.95; color: var(--t1); }
.loc__addr .ico { color: var(--ember); margin-top: 5px; }
.loc__meta { margin-top: 6px; padding-inline-start: 32px; font-size: 13px; color: var(--t3); }
.loc__nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-inline-start: 32px; }
.loc__nav a {
  display: inline-flex; align-items: center; height: 38px; padding-inline: 16px; border-radius: 100px;
  border: 1px solid var(--line-d2); font-size: 13px; color: var(--t2);
  transition: background-color .45s var(--ease-out), color .45s var(--ease-out), border-color .45s var(--ease-out);
}
@media (hover: hover) { .loc__nav a:hover { background: var(--t1); border-color: var(--t1); color: var(--ink); } }

.citymap {
  position: relative; height: clamp(300px, 32vw, 420px); overflow: hidden;
  border-radius: 24px; border: 1px solid var(--line-d); background: #081726;
}
.citymap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- legal badges ---------- */
.trust {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  padding-block: 36px; border-bottom: 1px solid var(--line-d);
}
.trust__label { font-size: 13px; color: var(--t3); }
.trust__list { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
.badge {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 18px 8px 8px; border-radius: 18px;
  border: 1px solid var(--line-d); background: rgba(255, 255, 255, .025);
  transition: border-color .5s var(--ease-out), background-color .5s var(--ease-out);
}
.badge__slot {
  display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden;
  border-radius: 14px; background: #fff; color: var(--brand);
  transition: transform .7s var(--ease-out);
}
.badge__slot .ico { width: 28px; height: 28px; stroke-width: 1.3; }
.badge__txt { display: flex; flex-direction: column; line-height: 1.6; }
.badge__txt b { font-size: 13.5px; font-weight: 600; color: var(--t1); }
.badge__txt small { font-size: 11.5px; color: var(--t3); }
@media (hover: hover) {
  .badge:hover { border-color: var(--line-d2); background: rgba(255, 255, 255, .05); }
  .badge:hover .badge__slot { transform: rotate(-4deg) scale(1.05); }
}

/* ---------- bottom bar ---------- */
.fbar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; padding-block: 26px; font-size: 12.5px; color: var(--t3); }
.fbar__links { display: flex; gap: 18px; margin-inline-start: auto; list-style: none; }
.fbar__links a { transition: color .4s var(--ease-out); }
@media (hover: hover) { .fbar__links a:hover { color: var(--t1); } }
.totop {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--t1);
  transition: background-color .4s var(--ease-out);
}
.totop__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 1.5; }
.totop__ring circle { stroke: var(--line-d2); }
.totop__ring .totop__bar { stroke: var(--ember); stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; }
@media (hover: hover) { .totop:hover { background: rgba(255, 255, 255, .07); } }

/* ---------- brand signature ---------- */
/* KIANIRO drawn in points of light (main.js); the lower edge dissolves into the page */
.wordmark {
  position: relative; height: clamp(100px, 12vw, 230px);
  width: min(100% - 32px, 1360px); margin: clamp(16px, 3vw, 44px) auto 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.wordmark canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }

/* designer credit: the last line of the page */
.credit {
  display: flex; justify-content: center; align-items: center; gap: 16px; direction: ltr;
  padding: 10px 16px calc(30px + env(safe-area-inset-bottom, 0px));
}
.credit::before, .credit::after { content: ""; width: 28px; height: 1px; background: var(--line-d2); transition: width .7s var(--ease-out); }
.credit__link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--t3);
  transition: color .5s var(--ease-out);
}
.credit__name { font-weight: 500; color: var(--t1); letter-spacing: .3em; }
.credit .roll > span + span { color: var(--ember); }
.credit__arrow { transform: rotate(135deg); color: var(--t3); transition: transform .7s var(--ease-out), color .5s var(--ease-out); }
@media (hover: hover) {
  .credit:hover::before, .credit:hover::after { width: 56px; }
  .credit__link:hover { color: var(--t2); }
  .credit__link:hover .credit__arrow { color: var(--ember); transform: rotate(135deg) translateX(-4px); }
}
@media (max-width: 640px) {
  .credit { gap: 10px; }
  .credit::before, .credit::after { width: 16px; }
  .credit__link { font-size: 10px; letter-spacing: .14em; gap: 8px; }
  .credit__name { letter-spacing: .22em; }
}

/* copy confirmation */
.ftoast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 1200;
  translate: -50% 20px; opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 100px; background: var(--t1); color: var(--ink);
  font-size: 13px; font-weight: 600; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5);
  transition: opacity .4s var(--ease-out), translate .6s var(--ease-out);
}
.ftoast.is-on { opacity: 1; translate: -50% 0; }

@media (max-width: 1100px) {
  .fcta { grid-template-columns: 1fr; }
  .fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .locs { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .fcols { grid-template-columns: 1fr; gap: 36px; }
  .fcta__side { width: 100%; }
  .fcta__side .btn { width: 100%; justify-content: space-between; }
  .citymap { height: 280px; border-radius: 20px; }
  .loc__meta, .loc__nav { padding-inline-start: 0; }
  .badge { width: 100%; }
  .trust__list { width: 100%; }
  .fbar__links { margin-inline-start: 0; }
  .totop { margin-inline-start: auto; }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1100px) {
  .mega__in { grid-template-columns: repeat(var(--mega-cols, 5), minmax(0, 1fr)); gap: 24px; }
  .mega__promo { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .nav, .tool--hide-sm { display: none; }
  .burger { display: block; }
  .header__in { grid-template-columns: 1fr auto; }
  .hero__in { justify-content: flex-start; padding-top: 48px; }
  .cats {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .cats::-webkit-scrollbar { display: none; }
  .cats li { flex: 0 0 40%; scroll-snap-align: start; }
  .cats {
    -webkit-mask-image: linear-gradient(to left, #000 80%, transparent);
            mask-image: linear-gradient(to left, #000 80%, transparent);
  }
  .readout { bottom: auto; top: calc(var(--header-h) + 16px); }
}

@media (max-width: 560px) {
  .logo__sub { display: none; }
  .hero__title { margin-block: 20px; }
  .hero__cta { margin-top: 32px; }
  .hero__cta .btn { width: 100%; justify-content: space-between; }
  .cats { margin-inline: -16px; }
  .cats li { flex-basis: 56%; }
  .cat { padding: 20px 16px 22px; }
  .cat__name { font-size: 16px; }
  .search__kbd { display: none; }
  .readout { display: none; }
}

.ccard, .cat, .btn, .chip, .tool { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .ccard { transition: transform .35s var(--ease-out); }
  .ccard:active { transform: scale(.975); }
  .cat:active::before { transform: translateY(0); }
  .cat:active .cat__name { color: var(--pearl); }
  .btn:active { transform: scale(.97); }
}

/* =============================================================
   CART DRAWER — built by main.js; slides in from the left
   (from the bottom on phones)
   ============================================================= */
.cart {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden;
}
.cart::backdrop { background: rgba(7, 18, 31, .38); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cart[open]::backdrop { animation: cartFade .6s var(--ease-out); }
.cart.is-closing::backdrop { animation: cartFade .45s var(--ease-out) reverse forwards; }
@keyframes cartFade { from { opacity: 0; } }

.cart__panel {
  position: absolute; top: 12px; bottom: 12px; left: 12px; width: min(460px, calc(100% - 24px));
  display: flex; flex-direction: column;
  background: var(--porcelain); border-radius: 28px; overflow: hidden;
  box-shadow: 0 60px 120px -40px rgba(7, 18, 31, .55);
}
.cart__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 14px; }
.cart__head h2 { font-size: 22px; font-weight: 800; }
.cart__n { font-family: var(--f-mono); font-size: 15px; font-weight: 500; color: var(--mist); }
.cart__x {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--pearl); border: 1px solid var(--hair); color: var(--ink);
  transition: transform .6s var(--ease-out);
}
@media (hover: hover) { .cart__x:hover { transform: rotate(90deg); } }

/* free shipping progress */
.cart__ship {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px;
  margin: 0 16px 6px; padding: 12px 16px 16px; border-radius: 18px; background: var(--pearl); border: 1px solid var(--hair);
  font-size: 13px; color: var(--slate);
}
.cart__ship .ico { color: var(--ember); flex: none; }
.cart__ship b { color: var(--ink); font-variant-numeric: tabular-nums; }
.cart__shipbar { position: absolute; inset-inline: 16px; bottom: 8px; height: 3px; border-radius: 3px; background: var(--hair); overflow: hidden; }
.cart__shipbar::after { content: ""; position: absolute; inset: 0; transform-origin: right; transform: scaleX(var(--p, 0)); background: linear-gradient(270deg, var(--ember), #FFB27A); transition: transform .9s var(--ease-out); }

.cart__list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 16px 12px; list-style: none; }

.cline {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px;
  padding: 14px; margin-bottom: 8px; border-radius: 20px; background: var(--pearl); border: 1px solid var(--hair); overflow: hidden;
}
.cline__img { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 16px; background: var(--porcelain); }
.cline__img img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.cline__info { min-width: 0; display: grid; align-content: start; gap: 2px; padding-inline-end: 34px; }
.cline__name { font-size: 14px; font-weight: 700; line-height: 1.7; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cline__code { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--mist); text-align: right; }
.cline__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.cline__price { font-size: 14.5px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cline__price small { margin-inline-start: 4px; font-size: 11px; font-weight: 400; color: var(--mist); }
.cline__rm {
  position: absolute; top: 10px; left: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  color: var(--mist); transition: background-color .4s, color .4s;
}
@media (hover: hover) { .cline__rm:hover { background: rgba(217, 68, 58, .08); color: #C2412E; } }

.cqty { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 100px; background: var(--porcelain); }
.cqty button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--ink); transition: background-color .35s; }
.cqty button:disabled { color: var(--hair-2); cursor: default; }
@media (hover: hover) { .cqty button:not(:disabled):hover { background: var(--pearl); } }
.cqty output { min-width: 26px; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

.cart__empty { display: grid; justify-items: center; gap: 16px; padding: 60px 12px; text-align: center; }
.cart__emptyico { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--pearl); border: 1px solid var(--hair); color: var(--mist); }
.cart__emptyico .ico { width: 34px; height: 34px; }
.cart__done .cart__emptyico { background: rgba(46, 170, 94, .1); border-color: transparent; color: #1F7A52; }
.cart__empty p { display: grid; gap: 4px; max-width: 32ch; font-size: 14px; line-height: 1.9; color: var(--mist); }
.cart__empty b { font-size: 17px; color: var(--ink); }
.cart__empty [dir="ltr"] { font-family: var(--f-mono); color: var(--ink); }

.cart__foot { padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--hair); background: var(--pearl); }
.cart__foot[hidden] { display: none; }
.cart__sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; font-size: 13.5px; color: var(--slate); }
.cart__sum dd { text-align: left; font-variant-numeric: tabular-nums; }
.cart__sum .is-total { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--hair-2); font-size: 17px; font-weight: 800; color: var(--ink); }
.cart__sum .is-total small { font-size: 12px; font-weight: 400; color: var(--mist); }
.cart__go {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between;
  width: 100%; height: 58px; margin-top: 14px; padding-inline: 24px 7px; border-radius: 100px;
  background: var(--ink); color: var(--pearl); font-size: 15.5px; font-weight: 600;
  transition: background-color .5s var(--ease-out), transform .3s var(--ease-out);
}
.cart__godot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ember); color: #fff; transition: transform .6s var(--ease-out); }
@media (hover: hover) { .cart__go:hover { background: var(--brand); } .cart__go:hover .cart__godot { transform: translateX(-4px); } }
.cart__go:active { transform: scale(.985); }
.cart__go.is-loading { pointer-events: none; opacity: .75; }
.cart__go.is-loading .cart__godot svg { animation: cartSpin .8s linear infinite; }
@keyframes cartSpin { to { transform: rotate(360deg); } }
.cart__note { margin-top: 12px; font-size: 12px; line-height: 1.9; color: var(--mist); text-align: center; }
.cart__note a { color: var(--brand); font-weight: 600; }

@media (max-width: 640px) {
  .cart__panel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 92dvh; border-radius: 26px 26px 0 0; }
  .cart__head { padding: 18px 18px 10px; }
  .cart__ship { margin-inline: 12px; }
  .cart__list { padding-inline: 12px; }
  .cline__img { width: 62px; height: 62px; }
}

/* Endless decorative loops (glows, sheen, spinning seal, readout halo) pause while their
   section is off screen; main.js toggles .is-offscreen on [data-offscreen-pause]. */
.is-offscreen, .is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }

/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html.is-intro [data-intro], html.is-intro .line__in, html.is-intro [data-cat] { opacity: 1; }
  .loader { display: none; }
}
