/* ==========================================================================
   SAMSON Â· ADVANCE â€” GUIZHOU TYRE VIETNAM
   Design system: "Precision Industrial Minimalism"
   Single authored stylesheet. No framework, no utility CDN.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Surfaces — cool-neutral paper, tuned to sit beside the navy logo */
  --ink:          #0A0F1E;
  --ink-2:        #111A30;
  --ink-3:        #1D2842;
  --paper:        #FBFBF9;
  --paper-2:      #FFFFFF;
  --paper-3:      #F3F4F1;
  --paper-4:      #EAEBE6;

  /* Lines */
  --line:         #E2E4DF;
  --line-2:       #CFD2CB;
  --line-ink:     rgba(255, 255, 255, 0.12);

  /* Type */
  --text:         #101728;
  --text-2:       #5A6070;
  --text-3:       #868C99;
  --text-inv:     #F6F7F4;
  --text-inv-2:   #9AA1B0;

  /* Brand — lifted straight from the ADVANCE logo.
     Navy carries structure and headings; yellow is the single signal
     accent, reserved for calls to action and live state. */
  --brand:        #183080;
  --brand-deep:   #0F2059;
  --brand-soft:   #E8ECF7;
  --brand-inv:    #6C86DC;

  --accent:       #F8E800;
  --accent-deep:  #D4C600;
  --accent-soft:  #FDFBE0;
  --accent-ink:   #12172A;   /* text that sits on yellow */
  --accent-inv:   #FFEB3B;   /* yellow that sits on ink */

  --ok:           #1F7A4C;
  --ok-soft:      #EAF4EE;
  --warn:         #9C6B10;
  --warn-soft:    #FBF3E2;

  /* Category identity (hairline + tint only) */
  --cat-tbr:      #183080;
  --cat-otr:      #7A3E8F;
  --cat-bias:     #0E6E63;
  --cat-ind:      #A0561A;

  /* Type scale */
  --font-sans: "Archivo", "Inter Tight", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono",
               Consolas, "Liberation Mono", monospace;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 160ms;
  --t: 260ms;
  --t-slow: 480ms;

  /* Geometry â€” tight radii read as precision engineering */
  --r-xs: 2px;
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-full: 999px;

  --shadow-1: 0 1px 2px rgba(11, 12, 14, 0.04);
  --shadow-2: 0 8px 24px -8px rgba(11, 12, 14, 0.10);
  --shadow-3: 0 24px 60px -20px rgba(11, 12, 14, 0.22);

  --gutter: 28px;
  --maxw: 1280px;
  --head-h: 68px;
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 24px);
}

body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
  padding: 0;
}
ul, ol { list-style: none; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}
button { background: none; border: 0; cursor: pointer; }

::selection { background: var(--ink); color: var(--paper); }

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

/* ---------- 3. Typography ------------------------------------------------ */
.display-xl {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 600;
}
.display-l {
  font-size: clamp(2rem, 3.9vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 600;
}
.display-m {
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  line-height: 1.16;
  letter-spacing: -0.026em;
  font-weight: 600;
}
.h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.014em;
  font-weight: 600;
}
.h4 {
  font-size: 0.9375rem;
  line-height: 1.4;
  letter-spacing: -0.008em;
  font-weight: 600;
}

.lede {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-2);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  flex: none;
}
.eyebrow--inv { color: var(--text-inv-2); }
.eyebrow--inv::before { background: var(--accent-inv); }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.muted { color: var(--text-2); }
.accent { color: var(--accent-deep); }

/* ---------- 4. Layout ---------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--wide { max-width: 1440px; }
.shell--narrow { max-width: 860px; }

.section { padding-block: clamp(64px, 8vw, 116px); }
.section--tight { padding-block: clamp(44px, 5vw, 72px); }
.section--flush-top { padding-top: 0; }
.section--ink { background: var(--ink); color: var(--text-inv); }
.section--ink .lede { color: var(--text-inv-2); }
.section--paper3 { background: var(--paper-3); }
.section--paper2 { background: var(--paper-2); }

.rule { height: 1px; background: var(--line); border: 0; }
.rule--ink { background: var(--line-ink); }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.sec-head__text { max-width: 62ch; }
.sec-head .display-l + .lede,
.sec-head .display-m + .lede { margin-top: 14px; }

/* Page header used on inner pages */
.page-head {
  padding-top: calc(var(--head-h) + clamp(48px, 6vw, 88px));
  padding-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}
.page-head__inner { max-width: 76ch; }
.page-head .display-l { margin-top: 18px; }
.page-head .lede { margin-top: 18px; }

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--text-inv);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.006em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-io),
              color var(--t-fast) var(--ease-io),
              border-color var(--t-fast) var(--ease-io),
              transform var(--t-fast) var(--ease-io);
}
.btn:hover { background: var(--ink-3); border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }

.btn--accent {
  --btn-bg: var(--accent);
  --btn-bd: var(--accent);
  --btn-fg: var(--accent-ink);
}
.btn--accent:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--accent-ink);
}

/* Confirmation state after "add to quote": the label swaps for a moment so the
   click has a visible effect without navigating away. */
.btn.is-added,
.btn.is-added:hover {
  background: #15803d;
  border-color: #15803d;
  color: #fff;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-bd: var(--line-2);
  --btn-fg: var(--text);
}
.btn--ghost:hover {
  background: var(--paper-3);
  border-color: var(--ink);
  color: var(--text);
}

/* Solid dark action — the primary card action without spending the accent */
.btn--ink {
  --btn-bg: var(--ink);
  --btn-bd: var(--ink);
  --btn-fg: #fff;
}
.btn--ink:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn--icon {
  --btn-bg: transparent;
  --btn-bd: var(--line-2);
  --btn-fg: var(--text-2);
}
.btn--icon:hover {
  background: var(--paper-3);
  border-color: var(--ink);
  color: var(--text);
}

.btn--quiet {
  --btn-bg: transparent;
  --btn-bd: transparent;
  --btn-fg: var(--text-2);
  padding-inline: 6px;
}
.btn--quiet:hover { background: transparent; color: var(--text); }

.btn--inv {
  --btn-bg: var(--text-inv);
  --btn-bd: var(--text-inv);
  --btn-fg: var(--ink);
}
.btn--inv:hover { background: #FFFFFF; border-color: #FFFFFF; }

.btn--outline-inv {
  --btn-bg: transparent;
  --btn-bd: var(--line-ink);
  --btn-fg: var(--text-inv);
}
.btn--outline-inv:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--sm { padding: 8px 14px; font-size: 0.8125rem; }
.btn--lg { padding: 15px 26px; font-size: 0.9375rem; }
.btn--block { width: 100%; }

/* Text link with animated rule */
.link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 2px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size var(--t) var(--ease), color var(--t-fast);
}
.link:hover { background-size: 100% 1px; color: var(--accent-deep); }
.link svg { transition: transform var(--t) var(--ease); }
.link:hover svg { transform: translateX(3px); }
.link--inv { color: var(--text-inv); }
.link--inv:hover { color: var(--accent-inv); }

/* ---------- 6. Badges & tags -------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
  line-height: 1.5;
}
.badge--ink { background: var(--ink); border-color: var(--ink); color: var(--text-inv); }
.badge--accent { background: var(--accent-soft); border-color: #E4DA8A; color: #6B5F00; }
.badge--ok { background: var(--ok-soft); border-color: #CBE3D6; color: var(--ok); }
.badge--plain { background: transparent; }

.badge--tbr  { color: var(--cat-tbr);  border-color: #C3CDE8; background: #EFF2FB; }
.badge--otr  { color: var(--cat-otr);  border-color: #DCC8E6; background: #F7F0FB; }
.badge--bias { color: var(--cat-bias); border-color: #BFDCD7; background: #EDF7F5; }
.badge--ind  { color: var(--cat-ind);  border-color: #E8D3BC; background: #FBF3E9; }

/* ---------- 7. Masthead -------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(252, 251, 249, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease-io),
              background var(--t) var(--ease-io);
}
.masthead.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(252, 251, 249, 0.94);
}
.masthead--inv {
  background: rgba(11, 12, 14, 0.7);
  color: var(--text-inv);
}
.masthead--inv.is-stuck {
  background: rgba(11, 12, 14, 0.92);
  border-bottom-color: var(--line-ink);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--head-h);
}

/* Brand lockup */
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
/* Two partner logos of equal width: ADVANCE and SAMSON. */
.brand__logos { display: flex; align-items: center; gap: 14px; }
.brand__logo {
  display: block;
  width: 116px;
  height: auto;
  max-width: none;
  flex: none;
}
.brand__sep { width: 1px; height: 26px; background: var(--line); flex: none; }
.masthead--inv .brand__sep { background: var(--line-ink); }

/* Navigation */
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--r-xs);
  font-size: 0.84375rem;
  font-weight: 500;
  letter-spacing: -0.004em;
  color: var(--text-2);
  transition: color var(--t-fast) var(--ease-io);
  white-space: nowrap;
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); font-weight: 600; }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 1.5px;
  background: var(--accent);
}
.masthead--inv .nav__link { color: var(--text-inv-2); }
.masthead--inv .nav__link:hover,
.masthead--inv .nav__link.is-active { color: var(--text-inv); }

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

/* Language switch: three compact tiles, no dropdown */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper-3);
}
.lang__btn {
  min-width: 28px;
  height: 26px;
  padding: 0 6px;
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-3);
  transition: background var(--t-fast) var(--ease-io), color var(--t-fast) var(--ease-io);
}
.lang__btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.8); }
.lang__btn.is-active {
  background: var(--ink);
  color: #fff;
}

/* RFQ counter button */
.rfq-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 8px 0 14px;
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--text-inv);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background var(--t-fast) var(--ease-io);
}
.rfq-btn:hover { background: var(--ink-3); }
.rfq-btn__count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 5px;
  border-radius: var(--r-xs);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background var(--t-fast);
}
.rfq-btn.is-empty .rfq-btn__count {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-inv-2);
}
.masthead--inv .rfq-btn { border-color: var(--accent); background: var(--accent); }
.masthead--inv .rfq-btn:hover { background: var(--accent-deep); }

/* Burger */
.burger {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  place-items: center;
  transition: border-color var(--t-fast);
}
.burger:hover { border-color: var(--ink); }
.burger__bars { position: relative; width: 16px; height: 10px; }
.burger__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--t) var(--ease), opacity var(--t-fast);
}
.burger__bars span:nth-child(1) { top: 0; }
.burger__bars span:nth-child(2) { top: 4.25px; }
.burger__bars span:nth-child(3) { top: 8.5px; }
.burger[aria-expanded="true"] .burger__bars span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bars span:nth-child(3) { transform: translateY(-4.25px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 890;
  display: flex;
  flex-direction: column;
  padding: calc(var(--head-h) + 32px) var(--gutter) 40px;
  background: var(--paper);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t) var(--ease-io),
              transform var(--t) var(--ease-io),
              visibility var(--t);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.028em;
}
.mobile-menu__link span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.mobile-menu__foot {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- 8. Hero ------------------------------------------------------ */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--text-inv);
  overflow: hidden;
  padding-top: calc(var(--head-h) + clamp(40px, 6vw, 84px));
  padding-bottom: clamp(48px, 6vw, 88px);
  isolation: isolate;
}
/* Fine engineering grid, barely visible */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
}
/* Warm bloom behind the tyre */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -12%;
  right: -6%;
  width: min(760px, 62vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(24, 48, 128, 0.55) 0%,
    rgba(108, 134, 220, 0.10) 40%,
    transparent 68%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line-ink);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-inv-2);
}
.hero__eyebrow i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-inv);
  box-shadow: 0 0 0 3px rgba(255, 122, 69, 0.18);
}

.hero__title {
  margin-top: 26px;
  font-size: clamp(2.4rem, 4.9vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  font-weight: 600;
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  color: var(--accent-inv);
}
.hero__lede {
  margin-top: 24px;
  max-width: 46ch;
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.72;
  color: var(--text-inv-2);
}
.hero__lede strong { color: var(--text-inv); font-weight: 600; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Search */
.hero__search {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 16px;
  max-width: 520px;
  border: 1px solid var(--line-ink);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.045);
  transition: border-color var(--t) var(--ease-io),
              background var(--t) var(--ease-io);
}
.hero__search:focus-within {
  border-color: rgba(255, 122, 69, 0.6);
  background: rgba(255, 255, 255, 0.07);
}
.hero__search svg { color: var(--text-inv-2); flex: none; }
.hero__search input {
  flex: 1;
  min-width: 0;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--text-inv);
  font-size: 0.875rem;
  outline: none;
}
.hero__search input::placeholder { color: #75756F; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line-ink);
  font-size: 0.8125rem;
  color: var(--text-inv-2);
}
.hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust svg { color: var(--accent-inv); flex: none; }

/* Hero showcase panel */
.stage {
  position: relative;
  border: 1px solid var(--line-ink);
  border-radius: var(--r-md);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  padding: 22px;
  overflow: hidden;
}
.stage__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-ink);
}
.stage__tab {
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-inv-2);
  transition: all var(--t-fast) var(--ease-io);
}
.stage__tab:hover { color: var(--text-inv); background: rgba(255, 255, 255, 0.06); }
.stage__tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.stage__body {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding-top: 22px;
}
.stage__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.08;
  border-radius: var(--r-sm);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.09) 0%, transparent 62%);
}
.stage__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.62));
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.stage__media.is-swapping img { opacity: 0; transform: scale(0.94); }

.stage__info { min-width: 0; }
.stage__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-inv);
}
.stage__brand span {
  padding: 2px 6px;
  border: 1px solid rgba(255, 122, 69, 0.4);
  border-radius: var(--r-xs);
}
.stage__title {
  margin-top: 10px;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.25;
  color: var(--text-inv);
}
.stage__cat {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-inv-2);
}
.stage__specs {
  margin-top: 16px;
  border-top: 1px solid var(--line-ink);
}
.stage__specs div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
}
.stage__specs dt { color: var(--text-inv-2); white-space: nowrap; }
.stage__specs dd {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-inv);
  text-align: right;
}
.stage__actions { display: flex; gap: 8px; margin-top: 16px; }

/* ---------- 9. Marquee ticker ------------------------------------------- */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
  padding-block: 14px;
}
.ticker__track {
  display: flex;
  width: max-content;
  gap: 56px;
  animation: ticker 42s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.ticker__item::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- 10. Stats ---------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.stat {
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 32px);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat__value small {
  font-size: 0.44em;
  letter-spacing: 0;
  color: var(--text-3);
  margin-left: 3px;
}
.stat__label {
  margin-top: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.006em;
}
.stat__note {
  margin-top: 4px;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--text-3);
}

/* ---------- 11. Category cards ------------------------------------------ */
.cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.hub-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.hub-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  background: var(--paper-2);
  color: var(--text);
  font-size: .75rem;
  line-height: 1.35;
  text-decoration: none;
}
.hub-links a:hover { background: var(--paper); color: var(--accent-deep); }
.cat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 26px 24px 24px;
  background: var(--paper-2);
  overflow: hidden;
  transition: background var(--t) var(--ease-io);
}
.cat:hover { background: var(--paper); }
.cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cat__index {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.cat__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 168px;
  margin: 18px 0 20px;
  overflow: hidden;
}
.cat__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(11, 12, 14, 0.10));
  transition: transform var(--t-slow) var(--ease);
}
.cat:hover .cat__media img { transform: scale(1.05) translateY(-3px); }
.cat__title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.32;
}
.cat__text {
  margin-top: 8px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-2);
  flex: 1;
}
.cat__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.cat__count {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
}

/* ---------- 12. Feature grid (dark) ------------------------------------- */
.feats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-ink);
  border: 1px solid var(--line-ink);
  border-radius: var(--r-md);
  overflow: hidden;
}
.feat {
  padding: 28px 24px 30px;
  background: var(--ink-2);
  transition: background var(--t) var(--ease-io);
}
.feat:hover { background: var(--ink-3); }
.feat__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--accent-inv);
}
.feat__title {
  margin-top: 18px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--text-inv);
}
.feat__text {
  margin-top: 9px;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--text-inv-2);
}

/* ---------- 13. Toolbar / filters --------------------------------------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-block: 1px solid var(--line);
}
.toolbar__group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--r-xs);
  font-size: 0.84375rem;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
}
.tab:hover { color: var(--text); background: var(--paper-3); }
.tab.is-active { color: var(--text); font-weight: 600; background: var(--paper-4); }
.tab__n {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-3);
  margin-left: 5px;
}
.tab.is-active .tab__n { color: var(--accent-deep); }

/* Inputs */
.field { position: relative; display: inline-flex; align-items: center; }
.field svg {
  position: absolute;
  left: 11px;
  color: var(--text-3);
  pointer-events: none;
}
.input, .select, .control {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--paper-2);
  color: var(--text);
  font-size: 0.84375rem;
  outline: none;
  transition: border-color var(--t-fast) var(--ease-io),
              box-shadow var(--t-fast) var(--ease-io);
}
.input::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .control:hover { border-color: var(--text-3); }
.input:focus, .select:focus, .control:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(11, 12, 14, 0.06);
}
.field .input { padding-left: 34px; }
.input--search { width: 100%; min-width: 240px; }
.field--grow { flex: 1; min-width: 220px; }

.select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A8B85' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  cursor: pointer;
}

textarea.control { height: auto; padding: 11px 12px; line-height: 1.6; resize: vertical; }

.seg {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--paper-2);
}
.seg button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--text-3);
  transition: background var(--t-fast), color var(--t-fast);
}
.seg button:hover { background: var(--paper-3); color: var(--text); }
.seg button.is-active { background: var(--ink); color: var(--text-inv); }

.result-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  white-space: nowrap;
}
.result-count b { color: var(--text); font-weight: 600; }

/* ---------- 14. Product grid -------------------------------------------- */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid-products--tight { grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  transition: background var(--t) var(--ease-io);
}
.card:hover { background: var(--paper); }

/* Image plate stays white: a tinted plate reads as a different product shot. */
.card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 210px;
  padding: 26px 22px 18px;
  overflow: hidden;
  background: #fff;
}
.card__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(11, 12, 14, 0.12));
  transition: transform var(--t-slow) var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }

/* Pattern code chip, top-left of the image plate */
.card__pattern {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 3px 7px;
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
}
.card__kicker {
  font-family: var(--font-mono);
  font-size: 0.59375rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card__title {
  margin-top: 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.016em;
  line-height: 1.34;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.68em;
}
.card__title a:hover { color: var(--brand); }

/* Two-column spec grid, matching the reference card */
.card__specs {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  font-size: 0.75rem;
}
.card__specs div { min-width: 0; }
.card__specs dt {
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  color: var(--text-3);
  margin-bottom: 2px;
}
.card__specs dd {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
  overflow-wrap: anywhere;
}

.card__origin {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 0.6875rem;
  color: var(--text-3);
  min-width: 0;
}
.card__origin-label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.59375rem;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.card__origin-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card__origin-tag {
  flex: none;
  padding: 1px 5px;
  border-radius: 2px;
  background: var(--accent-soft);
  color: #6B5F00;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Packaging chooser inside a card */
.pkg-toggle {
  display: flex;
  gap: 3px;
  margin-top: 12px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper-3);
}
.pkg-toggle button {
  flex: 1;
  padding: 5px 6px;
  border-radius: var(--r-xs);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all var(--t-fast) var(--ease-io);
}
.pkg-toggle button:hover { color: var(--text); background: rgba(255, 255, 255, 0.75); }
.pkg-toggle button.is-active {
  background: var(--paper-2);
  color: var(--text);
  box-shadow: var(--shadow-1);
}
.pkg-single {
  display: flex;
  align-items: center;
  gap: 6px;
  /* Same box height as .pkg-toggle so card action rows line up across the grid */
  min-height: 34px;
  margin-top: 12px;
  padding: 0 3px;
  font-size: 0.6875rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pkg-single svg { color: var(--ok); flex: none; }

.card__actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
}
.card__actions .btn {
  flex: 1;
  padding-inline: 10px;
  white-space: nowrap;
}
.card__actions .btn--ghost { flex: 0 0 auto; }
.card__actions .btn--icon {
  flex: none;
  width: 34px;
  padding-inline: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Table view */
.table-wrap {
  border: 1px solid var(--line);
  background: var(--paper-2);
  overflow-x: auto;
}
.dtable { width: 100%; border-collapse: collapse; font-size: 0.84375rem; }
.dtable th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-3);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: left;
  white-space: nowrap;
}
.dtable td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable tbody tr { transition: background var(--t-fast); }
.dtable tbody tr:hover { background: var(--paper); }
.dtable .t-num { font-family: var(--font-mono); color: var(--text-2); white-space: nowrap; }
.dtable .t-strong { font-weight: 600; color: var(--text); }
.dtable__thumb {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--r-xs);
  background: var(--paper-3);
}

/* Pagination */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pager button {
  min-width: 34px;
  height: 34px;
  padding-inline: 9px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-2);
  transition: all var(--t-fast) var(--ease-io);
}
.pager button:hover:not(:disabled) { border-color: var(--line-2); color: var(--text); }
.pager button.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--text-inv);
}
.pager button:disabled { opacity: 0.35; cursor: not-allowed; }
.pager .gap { padding-inline: 4px; color: var(--text-3); font-family: var(--font-mono); }

/* Empty state */
.empty {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 72px 24px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  text-align: center;
}
.empty svg { color: var(--text-3); }
.empty h3 { font-size: 1.0625rem; font-weight: 600; }
.empty p { font-size: 0.875rem; color: var(--text-2); max-width: 42ch; }

/* ---------- 15. Product detail ------------------------------------------ */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.detail__media {
  position: sticky;
  top: calc(var(--head-h) + 24px);
}
.detail__stage {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.05;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    radial-gradient(circle at 50% 44%, rgba(11, 12, 14, 0.05) 0%, transparent 64%),
    var(--paper-2);
}
.detail__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(11, 12, 14, 0.16));
}
.detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.detail__origin {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--text-2);
}
.detail__origin i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 0.8125rem;
  color: var(--text-3);
}
.breadcrumb a { transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb i { opacity: 0.5; font-style: normal; }

.detail__title {
  margin-top: 16px;
  font-size: clamp(1.6rem, 2.7vw, 2.25rem);
  line-height: 1.13;
  letter-spacing: -0.032em;
  font-weight: 600;
}
.detail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.detail__desc {
  margin-top: 20px;
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--text-2);
}

.spec-list {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.spec-list__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.84375rem;
}
.spec-list__row dt { color: var(--text-2); }
.spec-list__row dd {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text);
  text-align: right;
}
.spec-list__row dd.is-key { color: var(--accent-deep); }

/* Semantic specification table — used on generated product and category pages.
   Kept visually close to .spec-list so both patterns read the same. */
.spec-table {
  width: 100%;
  margin-top: 26px;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
  font-size: 0.84375rem;
}
.spec-table caption {
  caption-side: top;
  padding-bottom: 12px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.spec-table th,
.spec-table td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.spec-table thead th {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--line-2);
}
.spec-table tbody th {
  font-weight: 400;
  color: var(--text-2);
  padding-right: 18px;
}
.spec-table tbody td {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text);
}
.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table a { color: var(--accent-deep); font-weight: 600; }
.spec-table a:hover { text-decoration: underline; }

.panel {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper-2);
}
.panel--flat { background: var(--paper-3); border-color: var(--paper-4); }
.panel__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Packaging radio cards */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.pkg-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--paper-2);
  text-align: left;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-io);
}
.pkg-card:hover { border-color: var(--text-3); }
.pkg-card.is-active {
  border-color: var(--ink);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.pkg-card__dot {
  position: relative;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  flex: none;
  transition: border-color var(--t-fast);
}
.pkg-card.is-active .pkg-card__dot { border-color: var(--ink); }
.pkg-card.is-active .pkg-card__dot::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background: var(--accent);
}
.pkg-card__name { display: block; font-size: 0.8125rem; font-weight: 600; line-height: 1.35; }
.pkg-card__desc { display: block; margin-top: 2px; font-size: 0.6875rem; line-height: 1.45; color: var(--text-3); }

/* Quantity stepper */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--paper-2);
  overflow: hidden;
  height: 44px;
}
.qty button {
  width: 40px;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-2);
  font-size: 1rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.qty button:hover { background: var(--paper-3); color: var(--text); }
.qty input {
  width: 46px;
  height: 100%;
  border: 0;
  border-inline: 1px solid var(--line);
  background: transparent;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.buy-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.buy-row .btn--accent { flex: 1; min-width: 200px; }

.note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-3);
}
.note svg { flex: none; margin-top: 1px; }

/* Feature bullets */
.bullets { display: grid; gap: 10px; margin-top: 14px; }
.bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-2);
}
.bullets svg { flex: none; margin-top: 3px; color: var(--accent); }

/* Application callout */
.callout {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 2px solid var(--accent);
  background: var(--paper-3);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.callout__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.callout__text { margin-top: 5px; font-size: 0.875rem; line-height: 1.6; color: var(--text); }

/* ---------- 16. Calculator ---------------------------------------------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}
.calc__form {
  position: sticky;
  top: calc(var(--head-h) + 24px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper-2);
}
.calc__step { margin-bottom: 20px; }
.calc__step:last-of-type { margin-bottom: 24px; }
.calc__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.calc__label b {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-2);
  font-weight: 500;
}
.calc__form .select,
.calc__form .control { width: 100%; }

/* RFQ layout: cart on the left, contact form on the right */
.calc--rfq { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); }

.radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.radio-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--paper-2);
  font-size: 0.78125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-io);
}
.radio-grid label:hover { border-color: var(--text-3); }
.radio-grid input { accent-color: var(--accent); flex: none; }
.radio-grid label:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  background: var(--paper);
}

input[type="range"] {
  width: 100%;
  height: 2px;
  appearance: none;
  background: var(--line-2);
  border-radius: 2px;
  cursor: pointer;
  margin-block: 10px;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ink);
  border: 2.5px solid var(--paper-2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  transition: transform var(--t-fast);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ink);
  border: 2.5px solid var(--paper-2);
  cursor: pointer;
}
.range-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-3);
}

/* Results */
.calc__result {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper-2);
}
.calc__result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 24px;
  background: var(--ink);
  color: var(--text-inv);
}
.calc__result-head h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.calc__result-head p {
  margin-top: 5px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-inv-2);
  max-width: 52ch;
}
.calc__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.calc__metric {
  padding: 18px 18px 20px;
  border-right: 1px solid var(--line);
}
.calc__metric:last-child { border-right: 0; }
.calc__metric dt {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.calc__metric dd {
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: clamp(1.125rem, 1.9vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text);
}
.calc__metric dd small {
  font-size: 0.5em;
  letter-spacing: 0;
  color: var(--text-3);
  margin-left: 3px;
}
.calc__metric dd.is-accent { color: var(--accent-deep); }

.calc__advice {
  display: flex;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.8125rem;
  line-height: 1.68;
  color: var(--text-2);
}
.calc__advice svg { flex: none; margin-top: 2px; color: var(--accent); }
.calc__advice strong { color: var(--text); font-weight: 600; }

.calc__picks { padding: 22px 24px 26px; }
.calc__picks-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.calc__picks-head h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.calc__picks-head span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
}
.picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pick {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--paper-2);
  transition: background var(--t) var(--ease-io);
}
.pick:hover { background: var(--paper); }
.pick.is-top { box-shadow: inset 0 2px 0 var(--accent); }
.pick__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pick__rank {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.pick.is-top .pick__rank { color: var(--accent-deep); }
.pick__score {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--ok);
  background: var(--ok-soft);
  border: 1px solid #CBE3D6;
  border-radius: var(--r-xs);
  padding: 2px 6px;
}
.pick__media {
  /* Flex (not grid) centring: a grid row is content-sized, so an img with
     max-height:100% resolves circularly and overflows the fixed height. */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 108px;
  margin: 12px 0;
  overflow: hidden;
}
.pick__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(11, 12, 14, 0.14));
}
.pick__name {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pick__meta {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 3px;
  font-size: 0.6875rem;
}
.pick__meta div { display: flex; justify-content: space-between; gap: 8px; }
.pick__meta dt { color: var(--text-3); }
.pick__meta dd {
  font-family: var(--font-mono);
  color: var(--text-2);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pick__actions { display: flex; gap: 6px; margin-top: 12px; }
.pick__actions .btn { flex: 1; padding-inline: 8px; }

.calc__placeholder {
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 64px 32px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  background: var(--paper-2);
  text-align: center;
}
.calc__placeholder h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; }
.calc__placeholder p { font-size: 0.875rem; line-height: 1.65; color: var(--text-2); max-width: 46ch; }
.calc__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 8px;
  width: 100%;
}
.calc__steps div { padding: 16px; background: var(--paper-2); text-align: left; }
.calc__steps b {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  margin-bottom: 6px;
}
.calc__steps span { font-size: 0.75rem; line-height: 1.55; color: var(--text-2); }

/* ---------- 17. Long-form content (technical / about) ------------------- */
.prose { max-width: 74ch; }
.prose h2 {
  font-size: clamp(1.375rem, 2.1vw, 1.75rem);
  letter-spacing: -0.026em;
  font-weight: 600;
  line-height: 1.2;
}
.prose h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.014em;
  margin-top: 32px;
}
.prose p {
  margin-top: 14px;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-2);
}
.prose p strong { color: var(--text); font-weight: 600; }

.anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 28px;
}
.anchors a {
  padding: 7px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-full);
  font-size: 0.78125rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--t-fast) var(--ease-io);
}
.anchors a:hover { border-color: var(--ink); color: var(--text); background: var(--paper-2); }

/* minmax(0,1fr) keeps wide tables from stretching the grid column past
   the viewport on small screens. */
.blocks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.block {
  padding: clamp(26px, 3vw, 40px);
  background: var(--paper-2);
  min-width: 0;
}
.block__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}
.block__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  flex: none;
}

/* Pressure condition cards */
.cond {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 22px;
}
.cond__card { padding: 20px 22px; background: var(--paper-2); }
.cond__card--bad { box-shadow: inset 0 2px 0 #B33A2B; }
.cond__card--warn { box-shadow: inset 0 2px 0 var(--warn); }
.cond__card--ok { box-shadow: inset 0 2px 0 var(--ok); }
.cond__title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.cond__card--bad .cond__title { color: #B33A2B; }
.cond__card--warn .cond__title { color: var(--warn); }
.cond__card--ok .cond__title { color: var(--ok); }
.cond ul { display: grid; gap: 7px; }
.cond li {
  position: relative;
  padding-left: 14px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-2);
}
.cond li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 1px;
  background: var(--text-3);
}

/* Data table */
.dtable--spec th, .dtable--spec td { padding: 9px 14px; font-size: 0.8125rem; }
.dtable--spec td:last-child { text-align: right; font-family: var(--font-mono); }

/* ---------- 18. Contact -------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.contact-card {
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper-2);
}
.contact-card + .contact-card { margin-top: 12px; }
.contact-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.contact-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.35;
}
.contact-rows { display: grid; gap: 12px; margin-top: 16px; }
.contact-row { display: flex; gap: 12px; font-size: 0.875rem; line-height: 1.6; color: var(--text-2); }
.contact-row svg { flex: none; margin-top: 2px; color: var(--text-3); }
.contact-row b { display: block; color: var(--text); font-weight: 600; margin-bottom: 1px; }
.contact-row a { color: var(--accent-deep); font-weight: 600; }
.contact-row a:hover { text-decoration: underline; }

.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 18px;
}
.hub { padding: 15px 16px; background: var(--paper-2); }
.hub b { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 3px; }
.hub span { font-size: 0.75rem; line-height: 1.5; color: var(--text-3); }

/* ---------- Regional coverage map ---------- */
.map {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.map__canvas {
  position: relative;
  padding: 18px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.map__svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  overflow: visible;
}
.map__land {
  fill: #E7EAF3;
  stroke: var(--brand);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.map__pin { cursor: pointer; }
.map__pin-halo {
  fill: var(--brand);
  opacity: 0;
  transition: opacity var(--t) var(--ease-io);
}
.map__pin-dot {
  fill: var(--paper);
  stroke: var(--brand);
  stroke-width: 2.4;
  transition: fill var(--t-fast) var(--ease-io);
}
.map__pin-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  fill: var(--text-2);
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: none;
  transition: fill var(--t-fast) var(--ease-io);
}
.map__pin:hover .map__pin-dot { fill: var(--accent); }
.map__pin:hover .map__pin-label { fill: var(--text); }
.map__pin.is-active .map__pin-halo { opacity: 0.16; }
.map__pin.is-active .map__pin-dot { fill: var(--brand); }
.map__pin.is-active .map__pin-label { fill: var(--text); font-weight: 700; }
.map__pin:focus { outline: none; }
.map__pin:focus-visible .map__pin-dot { stroke: var(--accent-deep); stroke-width: 3.5; }

.map-panel {
  padding-top: 6px;
  min-width: 0;
}
.map-panel.is-swapping { animation: mapSwap 0.32s var(--ease) both; }
@keyframes mapSwap {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.map-panel__title {
  margin-top: 8px;
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.022em;
}
.map-panel__city {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--brand);
}
.map-panel__facts {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.map-panel__facts dt {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.map-panel__facts dd {
  margin-top: 2px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text);
}
.map-panel__provinces {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.map-panel__provinces span {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper-2);
  font-size: 0.6875rem;
  color: var(--text-2);
}
.map-panel__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}

@media (max-width: 860px) {
  .map { grid-template-columns: 1fr; }
  .map__svg { max-height: 420px; margin-inline: auto; }
}

.contact-form {
  position: sticky;
  top: calc(var(--head-h) + 24px);
  padding: clamp(24px, 2.8vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper-2);
  box-shadow: var(--shadow-2);
}
.form-row { margin-bottom: 16px; }
.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: -0.004em;
}
.form-label i { color: var(--accent); font-style: normal; }
.contact-form .control { width: 100%; }

/* ---------- Long-form intro block (AI Overview / snippet target) ---------- */
.prose-block {
  max-width: 72ch;
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line);
}
.prose-block h2 { margin-bottom: 14px; }
.prose-block p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-2);
}

/* ---------- Legal / ownership block -------------------------------------- */
.legal {
  padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 40px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-md);
  background: var(--paper-2);
}
.legal__name {
  margin-top: 10px;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--brand);
  text-transform: uppercase;
}
.legal__system {
  margin-top: 6px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-2);
}
.legal__list {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.legal__item {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  gap: 4px 18px;
  font-size: 0.875rem;
  line-height: 1.62;
}
.legal__item dt {
  font-weight: 600;
  color: var(--text);
}
.legal__item dt::after { content: ':'; }
.legal__item dd {
  margin: 0;
  min-width: 0;
  color: var(--text-2);
  overflow-wrap: break-word;
}

@media (max-width: 620px) {
  .legal__item { grid-template-columns: 1fr; gap: 1px; }
  .legal__item dt::after { content: ''; }
}

/* ---------- 19. About ---------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.figure {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper-3);
}
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--wide img { aspect-ratio: 21 / 9; }
.figure--tall img { aspect-ratio: 4 / 5; }
/* Landscape source photos: a 4/3 crop keeps the subject without a tall
   empty column next to the copy. */
.figure--photo img { aspect-ratio: 4 / 3; }
.split--top { align-items: start; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pillar { padding: 28px 26px 32px; background: var(--paper-2); }
.pillar__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  color: var(--accent-deep);
}
.pillar h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.016em; line-height: 1.35; }
.pillar p { margin-top: 9px; font-size: 0.8125rem; line-height: 1.65; color: var(--text-2); }

.timeline { border-top: 1px solid var(--line); margin-top: 8px; }
.tl-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.tl-row dt {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-deep);
  letter-spacing: -0.02em;
}
.tl-row dd { font-size: 0.875rem; line-height: 1.65; color: var(--text-2); }
.tl-row dd b { color: var(--text); font-weight: 600; }

/* ---------- 20. CTA band ------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--text-inv);
  border-radius: var(--r-md);
  padding: clamp(32px, 4.5vw, 64px);
}
.cta::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -40%;
  width: 460px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 48, 128, 0.55) 0%, transparent 66%);
  pointer-events: none;
}
.cta__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  letter-spacing: -0.032em;
  font-weight: 600;
  line-height: 1.16;
  max-width: 30ch;
}
.cta p {
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.68;
  color: var(--text-inv-2);
  max-width: 52ch;
}
.cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 21. Footer --------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--text-inv-2);
  padding-top: clamp(48px, 6vw, 80px);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.5vw, 56px);
  padding-bottom: clamp(36px, 4vw, 56px);
}
.footer .brand__name { color: var(--text-inv); }
.footer .brand__sub { color: var(--text-inv-2); }
.footer .brand__logos { padding: 12px 16px; background: #fff; border-radius: var(--r-sm); }
.footer .brand__logo { width: 120px; }
.footer__about {
  margin-top: 18px;
  font-size: 0.8125rem;
  line-height: 1.7;
  max-width: 42ch;
}
.footer__meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-ink);
  display: grid;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-inv-2);
}
.footer__title {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-inv);
  margin-bottom: 16px;
}
.footer__links { display: grid; gap: 9px; }
.footer__links a {
  font-size: 0.8125rem;
  color: var(--text-inv-2);
  transition: color var(--t-fast);
  line-height: 1.5;
}
.footer__links a:hover { color: var(--accent-inv); }
.footer__contact { display: grid; gap: 10px; font-size: 0.8125rem; }
.footer__contact a { color: var(--text-inv); font-weight: 600; }
.footer__contact a:hover { color: var(--accent-inv); }
.footer__bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 22px;
  border-top: 1px solid var(--line-ink);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-inv-2);
}
.footer__legal {
  display: grid;
  gap: 6px;
  max-width: 96ch;
  min-width: 0;
}
.footer__legal span:first-child {
  color: var(--text-inv);
  font-weight: 500;
}
.footer__since {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex: none;
}

/* ---------- 22. RFQ drawer ----------------------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 12, 14, 0.52);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) var(--ease-io), visibility var(--t);
}
.overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  background: var(--paper);
  box-shadow: var(--shadow-3);
  transform: translateX(101%);
  transition: transform var(--t-slow) var(--ease);
}
.drawer.is-open { transform: none; }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.drawer__title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.016em;
}
.drawer__title span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-3);
  margin-left: 6px;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-xs);
  color: var(--text-2);
  transition: background var(--t-fast), color var(--t-fast);
}
.icon-btn:hover { background: var(--paper-3); color: var(--text); }
.drawer__body { flex: 1; overflow-y: auto; padding: 4px 22px 22px; }
.drawer__foot {
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  display: grid;
  gap: 8px;
}

.line-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.line-item__img {
  width: 52px;
  height: 52px;
  flex: none;
  object-fit: contain;
  border-radius: var(--r-xs);
  background: var(--paper-3);
}
.line-item__body { flex: 1; min-width: 0; }
.line-item__name {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.line-item__meta {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.line-item__opt {
  margin-top: 2px;
  font-size: 0.6875rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.line-item .qty { height: 30px; }
.line-item .qty button { width: 26px; }
.line-item .qty input { width: 32px; font-size: 0.75rem; }
.line-item__del {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--text-3);
  border-radius: var(--r-xs);
  transition: color var(--t-fast), background var(--t-fast);
}
.line-item__del:hover { color: #B33A2B; background: #FBEDEB; }

/* ---------- 23. Toast ---------------------------------------------------- */
.toasts {
  position: fixed;
  /* Bottom-right keeps toasts clear of the masthead. It sits above the quick
     tools cluster, which owns the very corner of the viewport. */
  bottom: 20px;
  right: 20px;
  z-index: 1100;
  display: grid;
  gap: 8px;
  pointer-events: none;
  transition: bottom var(--t) var(--ease-io);
}
body.has-quicktools .toasts { bottom: 184px; }
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  padding: 11px 16px;
  border: 1px solid var(--ink-3);
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--text-inv);
  font-size: 0.8125rem;
  line-height: 1.45;
  box-shadow: var(--shadow-3);
  transform: translateX(16px);
  opacity: 0;
  transition: all var(--t) var(--ease);
  pointer-events: auto;
}
.toast.is-in { transform: none; opacity: 1; }
.toast svg { flex: none; color: var(--accent-inv); }

/* The RFQ drawer's footer sits bottom-right too; lift toasts clear of it. */
.drawer.is-open ~ .toasts,
body.has-drawer .toasts { bottom: 128px; }

/* ---------- 24. Modal ---------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 12, 14, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) var(--ease-io), visibility var(--t);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--r-md);
  background: var(--paper-2);
  box-shadow: var(--shadow-3);
  transform: scale(0.98) translateY(8px);
  transition: transform var(--t) var(--ease);
}
.modal.is-open .modal__panel { transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--paper-2); }

/* ---------- 25. Quotation document -------------------------------------- */
.quote { padding: clamp(24px, 3vw, 44px); }
.quote__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}
.quote__brand { display: flex; align-items: center; gap: 14px; }
.quote__brand .brand__logo { width: 104px; }
.quote__brand .brand__logos { gap: 12px; }
.quote__org { font-size: 1rem; font-weight: 700; letter-spacing: -0.016em; text-transform: uppercase; }
.quote__org-sub {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
}
.quote__doc { text-align: right; }
.quote__doc-type {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.quote__doc-id {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-deep);
}
.quote__doc-date {
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--text-3);
}
.quote__cust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin-block: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-size: 0.8125rem;
}
.quote__cust div {
  display: flex;
  gap: 8px;
  min-width: 0;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}
.quote__cust dt { color: var(--text-3); flex: none; min-width: 96px; }
.quote__cust dd {
  font-weight: 500;
  color: var(--text);
  min-width: 0;
  overflow-wrap: anywhere;
}
.quote__terms {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--text-2);
}
.quote__terms b { color: var(--text); font-weight: 600; display: block; margin-bottom: 5px; }
.quote__terms ol { display: grid; gap: 4px; padding-left: 16px; list-style: decimal; }
.quote__sign { text-align: center; }
.quote__sign-space { height: 64px; }
.quote__sign-role { font-weight: 600; color: var(--text); }

.quote__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ---------- 26. Utilities ------------------------------------------------ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.stack-sm > * + * { margin-top: 8px; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }
.mt-0 { margin-top: 0 !important; }
.mt-sm { margin-top: 10px; }
.mt { margin-top: 20px; }
.mt-lg { margin-top: 32px; }
.mt-xl { margin-top: 48px; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }

/* Reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 27. Responsive ---------------------------------------------- */
@media (max-width: 1180px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: grid; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero::after { right: -20%; top: -8%; width: 78vw; }
  .detail { grid-template-columns: 1fr; }
  .detail__media { position: static; }
  .calc { grid-template-columns: 1fr; }
  .calc__form { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { position: static; }
  .split { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --gutter: 20px; --head-h: 60px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Three stats: the second keeps its right border, the third spans full width. */
  .stat:nth-child(2) { border-right: 1px solid var(--line); }
  .stat:last-child { grid-column: 1 / -1; border-right: 0; }
  .calc__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc__metric:nth-child(2) { border-right: 0; }
  .calc__metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .calc__steps { grid-template-columns: 1fr; }
  .cond { grid-template-columns: 1fr; }
  .stage__body { grid-template-columns: 1fr; }
  .stage__media { aspect-ratio: 16 / 11; }
  .quote__terms { grid-template-columns: 1fr; }
  .quote__cust { grid-template-columns: 1fr; }
  .sec-head { align-items: flex-start; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }

  /* Masthead must fit: brand lockup shrinks, RFQ button drops its label */
  .masthead__inner { gap: 10px; }
  .brand { gap: 7px; min-width: 0; }
  /* Header: the two logos stay on ONE row. Footer keeps its own layout. */
  .masthead .brand__logos { flex-direction: row; align-items: center; gap: 8px; }
  .masthead .brand__logo { width: 74px; }
  .masthead .brand__sep { display: block; height: 20px; }
  .brand__name { font-size: 0.75rem; }
  .brand__sub { display: none; }
  .masthead__actions { gap: 6px; }
  .brand__text { display: none; }

  /* Language: the three tiles live inside the globe icon. Tapping the globe
     opens a small dropdown (JS toggles .is-open — hover does not exist on touch). */
  .masthead__actions .lang { position: relative; display: inline-flex; align-items: center; padding: 0; border: 0; background: transparent; }
  .masthead__actions .lang::before {
    content: "";
    flex: none;
    display: inline-block;
    width: 36px; height: 36px;
    border: 1px solid var(--line); border-radius: var(--r-sm);
    background: var(--paper-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 3 2.5 15 0 18M12 3c-2.5 3-2.5 15 0 18'/%3E%3C/svg%3E") center / 18px no-repeat;
    cursor: pointer;
  }
  .masthead__actions .lang__btn { display: none; }
  /* Dropdown panel (backdrop) + the three tiles stacked below the globe.
     Each tile gets its own offset so the flat markup needs no wrapper. */
  .masthead__actions .lang.is-open::after {
    content: "";
    position: absolute; right: -18px; top: 36px; z-index: 79;
    width: 72px; height: 118px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
  }
  .masthead__actions .lang.is-open .lang__btn {
    display: flex; align-items: center; justify-content: center;
    position: absolute; right: -12px; z-index: 80;
    width: 60px; height: 30px; padding: 0 8px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-xs);
    font-size: 0.75rem; cursor: pointer;
  }
  .masthead__actions .lang.is-open .lang__btn:nth-child(1) { top: 42px; }
  .masthead__actions .lang.is-open .lang__btn:nth-child(2) { top: 78px; }
  .masthead__actions .lang.is-open .lang__btn:nth-child(3) { top: 114px; }
  /* The current language stays dark-on-light so it is readable inside the panel. */
  .masthead__actions .lang.is-open .lang__btn.is-active {
    background: var(--ink); color: #fff; border-color: var(--ink);
  }
  .rfq-btn { padding-inline: 10px; }
  .rfq-btn__label { display: none; }

  .cats { grid-template-columns: 1fr; }
  .hub-links { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .grid-products { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .card__media { height: 150px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar__group { justify-content: flex-start; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .hub-grid { grid-template-columns: 1fr; }
  .buy-row .btn--accent { min-width: 100%; }
  .hero__actions .btn { flex: 1; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .pkg-grid { grid-template-columns: 1fr; }
  .drawer { width: 100%; }
  .radio-grid { grid-template-columns: 1fr; }
  /* Mobile: the product showcase (.stage) is hidden; the hero text and search stay. */
  .hero .stage { display: none; }

  /* RFQ page: single column; the cart table scrolls inside its own box, never the page. */
  .calc--rfq, .calc { grid-template-columns: minmax(0, 1fr); }
  .calc > * { min-width: 0; }
  .calc__form { position: static; padding: 18px; }
  .table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrap .dtable { width: max-content; min-width: 100%; }
  .quote { max-width: 100%; overflow-x: auto; }

  /* Category spec table (7 columns): keep columns readable on phones. The table
     keeps a minimum width and scrolls inside its own wrapper; the page never does. */
  div[style*="overflow-x:auto"] > .spec-table { min-width: 580px; }
  div[style*="overflow-x:auto"] > .spec-table th,
  div[style*="overflow-x:auto"] > .spec-table td { padding: 9px 10px; white-space: nowrap; }
  .toasts { left: 16px; right: 16px; }
  .toast { max-width: none; }
  .spec-list__row { grid-template-columns: 1fr; gap: 2px; }
  .spec-list__row dd { text-align: left; }
}

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

/* ---------- 24. Floating quick tools ------------------------------------- */
.quicktools {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--t) var(--ease-io), transform var(--t) var(--ease-io);
}
.quicktools.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Zalo keeps its round brand shape and sits above the square tiles */
.quicktools__zalo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #0088FF;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 136, 255, 0.32);
  transition: transform var(--t-fast) var(--ease-io), box-shadow var(--t-fast) var(--ease-io);
}
.quicktools__zalo:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 136, 255, 0.42);
}

.quicktools__stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quicktools__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  color: var(--text-2);
  box-shadow: var(--shadow-1);
  transition: background var(--t-fast) var(--ease-io), color var(--t-fast) var(--ease-io),
              border-color var(--t-fast) var(--ease-io);
}
.quicktools__btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.quicktools__btn--top {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.quicktools__btn--top:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

@media (max-width: 620px) {
  .quicktools { right: 14px; bottom: 14px; gap: 8px; }
  .quicktools__zalo { width: 42px; height: 42px; }
  .quicktools__btn { width: 38px; height: 38px; }
  body.has-quicktools .toasts { bottom: 172px; }
}

@media print {
  .masthead, .footer, .drawer, .overlay, .toasts, .no-print,
  .modal__close, .cta, .quicktools, .lang { display: none !important; }
  body { background: #fff; }
  .modal {
    position: static;
    display: block;
    padding: 0;
    background: none;
    opacity: 1;
    visibility: visible;
    backdrop-filter: none;
  }
  .modal__panel {
    max-width: none;
    max-height: none;
    box-shadow: none;
    transform: none;
  }
  .quote { padding: 0; }

  /* When printing from the RFQ page, hide the page behind the quotation
     so the printout is only the document itself. */
  body.printing-quote main,
  body.printing-quote #site-masthead,
  body.printing-quote #site-footer { display: none !important; }
  body.printing-quote .modal { display: block !important; }
}

/* RFQ mail status line */
.quote__mail-status{margin:12px 0 0;font-size:.85rem;color:var(--text-3,#666)}
.quote__mail-status.is-ok{color:#1a7f37}
.quote__mail-status.is-err{color:#b42318}

/* ---- 404 page ---------------------------------------------------------- */
.nf { padding-top: calc(var(--head-h) + clamp(32px, 6vw, 72px)); }
.nf__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.nf__code {
  margin: 18px 0 6px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(4.5rem, 14vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--ink);
  -webkit-text-stroke: 0;
  background: linear-gradient(transparent 62%, var(--accent) 62%);
  display: inline-block;
}
.nf .lede { margin-top: 18px; max-width: 540px; }
.nf__search {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 16px;
  max-width: 520px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  transition: border-color var(--t) var(--ease-io), box-shadow var(--t) var(--ease-io);
}
.nf__search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(248, 232, 0, 0.45); }
.nf__search svg { color: var(--text-3); flex: none; }
.nf__search input {
  flex: 1;
  min-width: 0;
  padding: 8px 4px;
  border: 0;
  background: none;
  font-size: 0.9375rem;
  outline: none;
}
.nf__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.nf__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper-3);
}
.nf__links-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.nf__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  transition: border-color var(--t) var(--ease-io), transform var(--t) var(--ease-io);
}
.nf__link:hover { border-color: var(--ink); transform: translateX(3px); }
.nf__link b { display: block; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; }
.nf__link small { display: block; margin-top: 2px; font-size: 0.75rem; color: var(--text-3); }
.nf__link svg { flex: none; }
.nf__help {
  margin-top: 6px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--text-inv);
}
.nf__help b { display: block; font-size: 0.9375rem; }
.nf__help small { display: block; margin-top: 2px; font-size: 0.75rem; color: var(--text-inv-2); }
@media (max-width: 860px) {
  .nf__grid { grid-template-columns: 1fr; }
  .nf__links { padding: 18px; }
}
.nf .eyebrow { display: flex; }
.nf__code { display: block; width: fit-content; }

/* ---- Home hero slide on phones: compact, swipeable tabs ------------------ */
@media (max-width: 860px) {
  .stage { padding: 14px; }
  .stage__tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .stage__tabs::-webkit-scrollbar { display: none; }
  .stage__tab { flex: none; white-space: nowrap; }
  .stage__body { gap: 10px; padding-top: 14px; }
  .stage__media { aspect-ratio: auto; height: 180px; }
  .stage__title { margin-top: 6px; font-size: 1rem; }
  .stage__specs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; margin-top: 10px; }
  .stage__actions { margin-top: 12px; }
}

/* ---- Stat boxes: home = 3 across (stacked on phones); factory = 4 across, 2x2 on phones ---- */
.stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 1px solid var(--line); }
  .stat:last-child { grid-column: auto; border-right: 0; }
  .stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats--4 .stat { border-right: 0; }
  .stats--4 .stat:nth-child(odd) { border-right: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .stats:not(.stats--4):not(.stats--5) { grid-template-columns: 1fr; }
  .stats:not(.stats--4):not(.stats--5) .stat { border-right: 0; }
}

/* ---- Home: TBR vs OTR explainer, text left + comparison table right --------- */
.compare { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.compare .prose-block { max-width: none; }
.compare__table { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; padding: 6px 18px 14px; overflow-x: auto; }
.compare__table table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.compare__table th, .compare__table td { padding: 12px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.45; }
.compare__table thead th { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.compare__table tbody th { font-weight: 600; white-space: nowrap; color: var(--text); }
.compare__table tbody tr:last-child th, .compare__table tbody tr:last-child td { border-bottom: 0; }
.compare__note { margin: 6px 10px 0; font-size: 0.6875rem; color: var(--text-3); }
@media (max-width: 960px) { .compare { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .compare__table tbody th { white-space: normal; } .compare__table { padding: 4px 10px 10px; } }

/* ---- Product detail: smaller preview so low-resolution tyre images stay sharp ---- */
.detail__stage { aspect-ratio: 1 / 0.9; padding: 24px; }
.detail__stage img { max-height: 340px; width: auto; }
@media (max-width: 620px) {
  .detail__stage { aspect-ratio: auto; min-height: 260px; padding: 18px; }
  .detail__stage img { max-height: 230px; }
}
/* Five slide tabs fit on one row on desktop */
.stage__tab { padding: 7px 8px; font-size: 0.625rem; }

/* Hero slide tabs: always one row, swipe/scroll if the stage is narrow */
.stage__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.stage__tabs::-webkit-scrollbar { display: none; }
.stage__tab { flex: none; white-space: nowrap; padding: 7px 10px; font-size: 0.6875rem; }

/* Factory page: five stat boxes (one row on desktop; 2 per row + 1 full-width on phones) */
.stats--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1080px) { .stats--5 .stat { padding-inline: 14px; } }
@media (max-width: 860px) {
  .stats--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats--5 .stat { border-right: 0; }
  .stats--5 .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stats--5 .stat:last-child { grid-column: 1 / -1; border-right: 0; }
}

/* Home stat boxes: 4 across on desktop, 2x2 on tablets, one per row on phones */
@media (max-width: 620px) {
  .stats--4.stats--rows { grid-template-columns: 1fr; }
  .stats--4.stats--rows .stat:nth-child(n) { border-right: 0; }
}

/* ---- technical page: short answers, sources, byline ------------------------ */
.byline { margin-top: 10px; font-size: 0.8125rem; color: var(--text-3); max-width: 80ch; }
.answer { margin: 4px 0 18px; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--paper-3); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 1rem; line-height: 1.6; color: var(--text); }
.src { margin-top: 14px; font-size: 0.75rem; color: var(--text-3); }

/* product guidance block */
.guide-table{margin:var(--sp-3,1rem) 0}
.guide-table caption{text-align:left;font-weight:600;padding-bottom:.5rem}
.guide-table td,.guide-table th{vertical-align:top}
.faq{margin:1rem 0}
.faq dt{font-weight:600;margin-top:1rem}
.faq dd{margin:.25rem 0 0;color:var(--ink-soft,#555);line-height:1.6}

/* Language switch on static /en/ and /zh/ pages uses links, not buttons */
a.lang__btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; line-height: 1; }

/* Home hero slide on phones: the tyre image must stay inside its box (it used to overflow and cover the specs) */
@media (max-width: 860px) {
  .stage__media { height: 200px; overflow: hidden; }
  .stage__media img { max-height: 200px; max-width: 100%; height: auto; width: auto; }
}

/* Home H1 now carries the target keywords (longer): keep it compact on phones */
@media (max-width: 560px) {
  .hero__title { font-size: clamp(1.75rem, 8vw, 2.1rem); }
}
