/* Generated by build.py from FONTS (self-hosted fonts). Edit FONTS in build.py, not here. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap;
  src: url("../fonts/inter-latin-wght400-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700 800; font-stretch: 110%; font-display: swap;
  src: url("../fonts/archivo-latin-wdth110-wght700-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-stretch: 100%; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-stretch: 100%; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-stretch: 100%; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* ==========================================================================
   xHinge — site styles
   BRAND TOKENS: all fonts and colors live in :root below. Fonts are self-hosted:
   the --font-* family values are set at build time from FONTS in build.py
   (which also writes the @font-face rules and preloads). Edit fonts there.
   ========================================================================== */
:root {
  /* Typography (families overwritten at build time from build.py → FONTS) */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Archivo", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display-stretch: 110%;      /* matches font-stretch of the display face in FONTS */
  --display-variation: normal;  /* e.g. "wdth" 110 if the display file keeps a width axis (current file is pinned at 110) */
  --display-weight: 800;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;
  --fs-xs: .75rem; --fs-sm: .875rem; --fs-base: 1rem; --fs-md: 1.125rem; --fs-lg: 1.375rem;
  --fs-xl: 1.75rem; --fs-2xl: clamp(2rem, 3.2vw, 2.75rem); --fs-hero: clamp(2.25rem, 4.6vw, 3.6rem);
  --lh-tight: 1.08; --lh-snug: 1.3; --lh-body: 1.6; --tracking-tight: -0.02em; --tracking-caps: .08em;
  --wordmark-tracking: -0.02em;

  /* Colors — "Eucalyptus" (sage option 3) */
  --color-bg: #FAFAF8;
  --color-surface: #EBECE8;       /* section bands, chips, inputs */
  --color-surface-2: #E0E2DD;     /* hover */
  --color-card: #FFFFFF;          /* cards / panels on the warm background */
  --color-photo: #ECEBE7;         /* behind product photos (photos are composited on F3F2EF→ECEBE7) */
  --color-ink: #161616;           /* headings, primary text */
  --color-ink-2: #2E2E2C;         /* body text */
  --color-muted: #686864;         /* secondary text */
  --color-muted-on-surface: #5C5C58; /* secondary text on --color-surface (5.6:1) */
  --color-line: #DCDED9;          /* borders */
  --color-line-strong: #C3C7C1;
  --color-accent: #5F7A63;        /* sage: buttons and fills (white text on it, 4.7:1) */
  --color-accent-hover: #516A55;
  --color-on-accent: #FFFFFF;
  --color-accent-text: #566F5A;   /* sage TEXT: wordmark x, eyebrows, model numbers, link underline/hover (5.3:1 on bg; avoid on --color-tint) */
  --color-tint: #CFD6CE;          /* light sage panel (use ink text on it) */
  --color-wordmark-x: #566F5A;
  --color-link: #161616;          /* inline links: ink text + sage underline, sage on hover */
  --color-link-underline: #566F5A;
  --color-primary: #5F7A63;       /* primary CTA = sage, white text */
  --color-primary-hover: #516A55;
  --color-on-primary: #FFFFFF;
  --color-dark: #161616;          /* dark bands / secondary solid buttons */
  --color-success: #1F7A4D;
  --color-focus: #161616;

  /* Shape & layout */
  --radius-sm: 4px; --radius: 6px; --radius-lg: 12px; --radius-card: 16px; --radius-img: 12px;
  --shadow-sm: 0 1px 2px rgba(22,22,22,.06);
  --shadow: 0 6px 24px rgba(22,22,22,.08);
  --maxw: 1240px; --gutter: clamp(1rem, 3vw, 2rem);
  --header-h: 68px;
}

/* ---------- Base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font-sans); font-size: var(--fs-base); line-height: var(--lh-body);
  color: var(--color-ink-2); background: var(--color-bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-ink); }
p a, .prose a, .inline-link { color: var(--color-link); text-decoration: underline; text-decoration-color: var(--color-link-underline); text-decoration-thickness: 2px; text-underline-offset: 3px; }
p a:hover, .prose a:hover, .inline-link:hover { color: var(--color-accent-text); text-decoration-thickness: 3px; text-decoration-color: var(--color-accent-text); }
h1,h2,h3,h4 { font-family: var(--font-display); color: var(--color-ink); line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight); margin: 0 0 .5em; font-weight: var(--fw-bold);
  font-stretch: var(--display-stretch); font-variation-settings: var(--display-variation); }
h1 { font-weight: var(--display-weight); }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); letter-spacing: -0.01em; line-height: var(--lh-snug); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.mono { font-family: var(--font-mono); letter-spacing: 0; }
.muted { color: var(--color-muted); }
.small { font-size: var(--fs-sm); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--band { background: var(--color-surface); }
.eyebrow { font-size: var(--fs-xs); font-weight: var(--fw-semibold); text-transform: uppercase;
  letter-spacing: var(--tracking-caps); color: var(--color-accent-text); margin: 0 0 .75rem; font-weight: var(--fw-bold); }
.lead { font-size: var(--fs-md); color: var(--color-ink-2); max-width: 46rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--color-ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: .5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit;
  font-weight: var(--fw-semibold); font-size: var(--fs-sm); line-height: 1; padding: .9rem 1.25rem;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn--primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn--primary:hover { background: var(--color-primary-hover); color: var(--color-on-primary); }
.btn--accent { background: var(--color-accent); color: var(--color-on-accent); }
.btn--accent:hover { background: var(--color-accent-hover); color: var(--color-on-accent); }
.btn--dark { background: var(--color-dark); color: #fff; }
.btn--dark:hover { background: #333; color: #fff; }
.btn--ghost { background: transparent; color: var(--color-ink); border-color: var(--color-line-strong); }
.btn--ghost:hover { border-color: var(--color-ink); color: var(--color-ink); }
.btn--sm { padding: .55rem .8rem; font-size: var(--fs-xs); }
.btn--lg { padding: 1.05rem 1.5rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.link-arrow { font-weight: var(--fw-semibold); color: var(--color-ink); font-size: var(--fs-sm); }
.link-arrow::after { content: " →"; color: var(--color-accent-text); }
.link-arrow:hover { color: var(--color-accent-text); text-decoration: underline; text-decoration-color: var(--color-link-underline); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--color-bg) 94%, transparent); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--color-line); }
.site-header .container { display: flex; align-items: center; height: var(--header-h); gap: 2rem; }
.brand { display: inline-flex; align-items: center; color: var(--color-ink); flex-shrink: 0; line-height: 0; }
.brand:hover { color: var(--color-ink); }
/* outlined wordmark (logo option 1, no icon); height sets the size */
.brand-word { display: block; height: 24px; width: auto; }
.brand-word .x { fill: var(--color-wordmark-x); }
.brand-word .h { fill: var(--color-ink); }
.site-footer .brand-word { height: 22px; }
/* fallback when the build had no font tools: live text */
.brand-text { height: auto; font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 1.5rem; letter-spacing: var(--wordmark-tracking); line-height: 1; }
.brand-text .x { color: var(--color-wordmark-x); }
.nav { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.nav a { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--color-ink-2); padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--color-ink); border-bottom-color: var(--color-ink); }
.header-cta { display: flex; align-items: center; gap: .5rem; }
.quote-btn .count { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 999px;
  background: #FFFFFF; color: var(--color-accent-text); font-size: .7rem; font-weight: var(--fw-bold); }
.quote-btn .count[hidden] { display: none; }
.menu-toggle { display: none; background: none; border: 1px solid var(--color-line-strong); border-radius: var(--radius); width: 42px; height: 42px; cursor: pointer; color: var(--color-ink); }
.menu-toggle svg { width: 20px; height: 20px; margin: auto; display: block; }
@media (max-width: 860px) {
  .site-header .container { gap: .75rem; }
  .menu-toggle { display: block; order: 3; }
  .header-cta { margin-left: auto; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--color-bg); flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem var(--gutter) 1rem; border-bottom: 1px solid var(--color-line); box-shadow: var(--shadow); display: none; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--color-line); font-size: var(--fs-base); }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--color-line); }
  .quote-btn .label-long { display: none; }
}
@media (min-width: 861px) { .quote-btn .label-short { display: none; } .nav .nav-quote { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: var(--fs-hero); margin-bottom: 1.25rem; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-search { display: flex; max-width: 28rem; border: 1px solid var(--color-line-strong); border-radius: var(--radius); overflow: hidden; background: var(--color-bg); }
.hero-search input { flex: 1; border: 0; padding: .85rem 1rem; font: inherit; font-size: var(--fs-sm); min-width: 0; background: transparent; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { border-color: var(--color-ink); }
.hero-search button { border: 0; border-left: 1px solid var(--color-line); background: var(--color-surface); padding: 0 1rem; cursor: pointer; font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--color-ink); }
.hero-media { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.hero-media figure { margin: 0; position: relative; border-radius: var(--radius-card); overflow: hidden; background: var(--color-photo); aspect-ratio: 1; }
.hero-media figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { position: absolute; left: .6rem; bottom: .6rem; background: rgba(255,255,255,.92); color: var(--color-ink);
  font-size: .7rem; font-weight: var(--fw-semibold); padding: .3rem .5rem; border-radius: var(--radius-sm); font-family: var(--font-mono); }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } .hero-media { max-width: 560px; } }

/* ---------- Value props / generic grids ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.prop { padding-top: 1.25rem; border-top: 2px solid var(--color-ink); }
.prop h3 { margin-bottom: .5rem; }
.prop p { font-size: var(--fs-sm); color: var(--color-muted); margin: 0; }
.prop .num { font-family: var(--font-mono); font-weight: var(--fw-bold); font-size: var(--fs-sm); color: var(--color-accent-text); display: block; margin-bottom: .75rem; }

/* Material tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { display: block; border-radius: var(--radius-card); overflow: hidden; background: var(--color-card); border: 1px solid var(--color-line); padding: .5rem; transition: border-color .15s, box-shadow .15s; }
.tile:hover { border-color: var(--color-ink); color: inherit; box-shadow: var(--shadow); }
.tile .ph { aspect-ratio: 4/3; background: var(--color-photo); overflow: hidden; border-radius: var(--radius-img); }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover .ph img { transform: scale(1.03); }
.tile .tb { padding: .85rem .6rem .5rem; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.tile h3 { margin: 0; font-size: var(--fs-base); }
.tile .ct { font-size: var(--fs-xs); color: var(--color-muted); font-family: var(--font-mono); }

/* Audience */
.aud { background: var(--color-card); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: 1.6rem; }
.aud h3 { margin-bottom: .6rem; }
.aud ul { margin: 0; padding: 0; list-style: none; font-size: var(--fs-sm); }
.aud li { padding: .45rem 0; border-top: 1px solid var(--color-line); }
.aud li:first-child { border-top: 0; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; padding: 1.5rem; background: var(--color-card); border-radius: var(--radius-lg); border: 1px solid var(--color-line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-mono); font-weight: var(--fw-bold); color: var(--color-accent-text); font-size: var(--fs-sm); display: block; margin-bottom: .75rem; }
.steps h3 { margin-bottom: .35rem; }
.steps p { margin: 0; font-size: var(--fs-sm); color: var(--color-muted); }

/* CTA band */
.cta-band { background: var(--color-tint); color: var(--color-ink-2); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: var(--color-ink); margin-bottom: .4rem; }
.cta-band p { margin: 0; }
.cta-band .btn--ghost { background: transparent; color: var(--color-ink); border-color: rgba(22,22,22,.4); }
.cta-band .btn--ghost:hover { border-color: var(--color-ink); background: rgba(255,255,255,.35); }

/* ---------- Product cards ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.1rem; }
.pgrid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .pgrid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pgrid { grid-template-columns: 1fr 1fr; gap: .75rem; } }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--color-card); border: 1px solid var(--color-line); border-radius: var(--radius-card); padding: .5rem; transition: border-color .15s, box-shadow .15s; }
.pcard:hover { border-color: var(--color-line-strong); box-shadow: var(--shadow); }
.pcard[hidden] { display: none; }
.pcard .ph { aspect-ratio: 1; background: var(--color-photo); overflow: hidden; border-radius: var(--radius-img); }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.pcard .pb { padding: .75rem .5rem .4rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.pcard .code { font-family: var(--font-mono); font-weight: var(--fw-semibold); font-size: var(--fs-sm); color: var(--color-ink); }
.pcard .nm { font-size: var(--fs-sm); color: var(--color-ink-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .meta { font-size: var(--fs-xs); color: var(--color-muted); margin-top: auto; padding-top: .4rem; }
.pcard .stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard .add { position: absolute; top: 1rem; right: 1rem; z-index: 2; background: rgba(255,255,255,.94); border: 1px solid var(--color-line); color: var(--color-ink);
  border-radius: 999px; font: inherit; font-size: .72rem; font-weight: var(--fw-semibold); padding: .4rem .65rem; cursor: pointer; opacity: .96; }
.pcard .add:hover { border-color: var(--color-ink); }
.pcard .add.added { background: var(--color-accent); color: var(--color-on-accent); border-color: var(--color-accent); }
.badge { display: inline-block; font-size: .68rem; font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: .06em; padding: .2rem .45rem; border-radius: var(--radius-sm); background: var(--color-surface-2); color: var(--color-ink-2); }
.pcard .badge { position: absolute; left: 1rem; top: 1rem; z-index: 2; background: rgba(255,255,255,.94); }

/* ---------- Catalog ---------- */
.page-head { padding: clamp(2rem, 4vw, 3rem) 0 1.5rem; border-bottom: 1px solid var(--color-line); }
.page-head h1 { margin-bottom: .4rem; }
.page-head p { margin: 0; color: var(--color-muted); max-width: 48rem; }
.crumbs { font-size: var(--fs-xs); color: var(--color-muted); margin-bottom: .9rem; }
.crumbs a:hover { color: var(--color-ink); }
.crumbs span { margin: 0 .35rem; }
.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 2.5rem; padding: 2rem 0 4rem; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 1.25rem); max-height: calc(100vh - var(--header-h) - 2.5rem); overflow: auto; padding-right: .25rem; }
.fgroup { padding: 1rem 0; border-bottom: 1px solid var(--color-line); }
.fgroup:first-child { padding-top: 0; }
.fgroup h2 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--color-ink); margin: 0 0 .7rem; font-weight: var(--fw-semibold); }
.search { position: relative; }
.search input { width: 100%; font: inherit; font-size: var(--fs-sm); padding: .75rem .9rem .75rem 2.3rem; border: 1px solid var(--color-line-strong); border-radius: var(--radius); background: var(--color-bg); }
.search input:focus { outline: none; border-color: var(--color-ink); }
.search svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--color-muted); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font: inherit; font-size: var(--fs-xs); font-weight: var(--fw-medium); padding: .45rem .7rem; border-radius: 999px; border: 1px solid var(--color-line-strong); background: var(--color-bg); color: var(--color-ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.chip:hover { border-color: var(--color-ink); }
.chip[aria-pressed="true"] { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }
.chip .sw { width: 14px; height: 14px; border-radius: 50%; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.chip .n { color: var(--color-muted); font-family: var(--font-mono); font-size: .68rem; }
.chip[aria-pressed="true"] .n { color: #c6cbd0; }
.checks { display: flex; flex-direction: column; gap: .15rem; }
.check { display: flex; align-items: center; gap: .55rem; font-size: var(--fs-sm); cursor: pointer; padding: .25rem 0; color: var(--color-ink-2); }
.check input { width: 16px; height: 16px; accent-color: var(--color-ink); margin: 0; }
.check .n { margin-left: auto; color: var(--color-muted); font-size: var(--fs-xs); font-family: var(--font-mono); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.results-bar .count { font-size: var(--fs-sm); color: var(--color-muted); }
.results-bar .count strong { color: var(--color-ink); }
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.linkbtn { background: none; border: 0; font: inherit; font-size: var(--fs-xs); color: var(--color-ink); text-decoration: underline; cursor: pointer; padding: 0; }
.empty { text-align: center; padding: 4rem 1rem; color: var(--color-muted); border: 1px dashed var(--color-line-strong); border-radius: var(--radius-lg); }
.filters-toggle { display: none; }
.help-card { margin-top: 1.25rem; padding: 1rem; border-radius: var(--radius); background: var(--color-surface); font-size: var(--fs-sm); color: var(--color-ink-2); }
.help-card p { margin: 0 0 .5rem; }
@media (max-width: 900px) {
  .catalog { grid-template-columns: 1fr; gap: 1rem; padding-top: 1.25rem; }
  .filters { position: static; max-height: none; display: none; padding: 1rem; border: 1px solid var(--color-line); border-radius: var(--radius-lg); }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
}

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding: 1.5rem 0 3rem; align-items: start; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } }
.gallery { position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 900px) { .gallery { position: static; } }
.gallery .main { border-radius: var(--radius-card); overflow: hidden; background: var(--color-photo); aspect-ratio: 1; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .cap { font-size: var(--fs-xs); color: var(--color-muted); margin-top: .6rem; }
.pinfo .code { font-family: var(--font-mono); font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--color-accent-text); margin: 0 0 .5rem; }
.pinfo h1 { font-size: clamp(1.5rem, 2.3vw, 1.9rem); margin-bottom: 1rem; line-height: 1.15; }
.keyfacts { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.75rem; }
.keyfacts span { font-size: var(--fs-xs); padding: .35rem .6rem; border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-ink-2); font-weight: var(--fw-medium); font-family: var(--font-mono); }
.buybox { border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 2rem; }
.buybox label, .field label { display: block; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--color-ink); margin-bottom: .4rem; text-transform: uppercase; letter-spacing: .06em; }
.swatches { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--color-bg); box-shadow: 0 0 0 1px var(--color-line-strong); background-size: cover; background-position: center; cursor: pointer; padding: 0; position: relative; }
.swatch:hover { box-shadow: 0 0 0 1px var(--color-ink); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--color-ink); }
.swatch.txt { width: auto; height: 38px; border-radius: 999px; padding: 0 .8rem; font: inherit; font-size: var(--fs-xs); font-weight: var(--fw-semibold); background: var(--color-bg); color: var(--color-ink); }
.finish-name { font-size: var(--fs-sm); color: var(--color-muted); margin: -.4rem 0 1rem; min-height: 1.4em; }
.buy-row { display: grid; grid-template-columns: 120px 1fr; gap: .6rem; align-items: end; }
.buy-row .btn { height: 48px; }
.qty { width: 100%; height: 48px; font: inherit; font-size: var(--fs-base); padding: 0 .8rem; border: 1px solid var(--color-line-strong); border-radius: var(--radius); }
.buy-alt { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .9rem; font-size: var(--fs-sm); }
.added-msg { color: var(--color-success); font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.spec { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec th, .spec td { text-align: left; vertical-align: top; padding: .75rem 0; border-bottom: 1px solid var(--color-line); }
.spec th { width: 38%; color: var(--color-muted); font-weight: var(--fw-medium); padding-right: 1rem; }
.spec td { color: var(--color-ink); }
.spec ul { margin: 0; padding: 0; list-style: none; }
.spec li { padding: .1rem 0; font-family: var(--font-mono); font-size: .82rem; }
.spec .fin { display: inline-flex; align-items: center; gap: .35rem; margin: 0 .6rem .3rem 0; white-space: nowrap; }
.spec .fin i { width: 12px; height: 12px; border-radius: 50%; background-size: cover; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); display: inline-block; }
.spec-note { font-size: var(--fs-xs); color: var(--color-muted); margin-top: 1rem; }
.h-sub { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--color-ink); margin: 0 0 .5rem; font-weight: var(--fw-semibold); }

/* ---------- Finishes page ---------- */
.fin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .fin-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .fin-grid { grid-template-columns: 1fr; } }
.fin-card { border: 1px solid var(--color-line); border-radius: var(--radius-card); overflow: hidden; background: var(--color-card); padding: .5rem; }
.fin-card .sw { border-radius: var(--radius-img); }
.fin-card .sw { aspect-ratio: 2/1; background-size: cover; background-position: center; }
.fin-card .fb { padding: .8rem .6rem .5rem; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.fin-card h3 { margin: 0; font-size: var(--fs-base); }
.fin-card .cd { font-family: var(--font-mono); font-weight: var(--fw-bold); color: var(--color-accent-text); }
.fin-card a { font-size: var(--fs-xs); }
.fin-board { border-radius: var(--radius-card); overflow: hidden; background: #d7d7d7; max-width: 420px; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { text-align: left; padding: .7rem .75rem; border-bottom: 1px solid var(--color-line); vertical-align: top; }
.table thead th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); font-weight: var(--fw-semibold); background: var(--color-surface); }
.table td.mono { font-weight: var(--fw-semibold); color: var(--color-ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--color-line); border-radius: var(--radius-lg); }
.table-wrap .table tr:last-child td { border-bottom: 0; }

/* ---------- Quote page ---------- */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: 2rem 0 4rem; align-items: start; }
.quote-layout { grid-template-areas: "cart form" "email form"; grid-template-rows: auto 1fr; row-gap: 1.25rem; }
.q-cart { grid-area: cart; } .q-form { grid-area: form; } .q-email { grid-area: email; }
@media (max-width: 980px) { .quote-layout { grid-template-columns: 1fr; grid-template-areas: "cart" "form" "email"; grid-template-rows: auto; } }
.panel { border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: clamp(1.1rem, 2.5vw, 1.75rem); background: var(--color-card); }
.panel h2 { font-size: var(--fs-lg); margin-bottom: .35rem; }
.panel > p.muted { font-size: var(--fs-sm); }
.cart-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 64px minmax(0,1fr) 150px 96px 32px; gap: .75rem; align-items: center; padding: .85rem 0; border-top: 1px solid var(--color-line); }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--color-photo); }
.cart-item .ci-code { font-family: var(--font-mono); font-weight: var(--fw-semibold); font-size: var(--fs-sm); color: var(--color-ink); }
.cart-item .ci-name { font-size: var(--fs-xs); color: var(--color-muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item select, .cart-item input { width: 100%; font: inherit; font-size: var(--fs-sm); padding: .5rem .5rem; border: 1px solid var(--color-line-strong); border-radius: var(--radius); background: var(--color-bg); }
.cart-item .rm { background: none; border: 0; cursor: pointer; color: var(--color-muted); font-size: 1.25rem; line-height: 1; padding: .25rem; }
.cart-item .rm:hover { color: var(--color-ink); }
.ci-label { display: none; }
@media (max-width: 640px) {
  .cart-item { grid-template-columns: 56px 1fr 32px; grid-template-areas: "img info rm" "fin fin qty"; }
  .cart-item img { grid-area: img; width: 56px; height: 56px; }
  .cart-item .ci-info { grid-area: info; } .cart-item .rm { grid-area: rm; }
  .cart-item .ci-fin { grid-area: fin; } .cart-item .ci-qty { grid-area: qty; }
  .cart-item { grid-template-columns: 56px 1fr 96px; grid-template-areas: "img info rm" "fin fin qty"; }
  .ci-label { display: block; font-size: .68rem; color: var(--color-muted); margin-bottom: .2rem; }
}
.cart-empty { padding: 1.5rem; text-align: center; color: var(--color-muted); border: 1px dashed var(--color-line-strong); border-radius: var(--radius); margin-top: 1rem; font-size: var(--fs-sm); }
.cart-add { display: grid; grid-template-columns: 1fr 110px auto; gap: .5rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--color-line); }
.cart-add input { font: inherit; font-size: var(--fs-sm); padding: .7rem .8rem; border: 1px solid var(--color-line-strong); border-radius: var(--radius); min-width: 0; }
@media (max-width: 520px) { .cart-add { grid-template-columns: 1fr 90px; } .cart-add .btn { grid-column: 1 / -1; } }
.cart-total { display: flex; justify-content: space-between; font-size: var(--fs-sm); padding-top: .85rem; border-top: 1px solid var(--color-line); color: var(--color-muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: var(--fs-base); padding: .75rem .85rem; border: 1px solid var(--color-line-strong); border-radius: var(--radius); background: var(--color-bg); color: var(--color-ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-ink); box-shadow: 0 0 0 3px rgba(17,20,23,.08); }
.field .hint { font-size: var(--fs-xs); color: var(--color-muted); margin-top: .35rem; }
.field .req { color: var(--color-accent-text); }
.form-foot { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.25rem; }
.form-status { font-size: var(--fs-sm); padding: .85rem 1rem; border-radius: var(--radius); background: var(--color-surface); display: none; }
.form-status.show { display: block; }
.hp { position: absolute; left: -5000px; }
.contact-list { list-style: none; padding: 0; margin: 1rem 0 0; font-size: var(--fs-sm); }
.contact-list li { padding: .55rem 0; border-top: 1px solid var(--color-line); display: flex; gap: .75rem; }
.contact-list li span:first-child { color: var(--color-muted); min-width: 5.5rem; }

/* ---------- Prose pages ---------- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--color-line); border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } }
.facts div { background: var(--color-bg); padding: 1.4rem; }
.facts dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); margin-bottom: .35rem; }
.facts dd { margin: 0; font-weight: var(--fw-semibold); color: var(--color-ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--color-line); padding: 3.5rem 0 2rem; font-size: var(--fs-sm); background: var(--color-surface); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h2 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-caps); margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: var(--color-ink-2); }
.site-footer a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-link-underline); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.foot-legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--color-line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--color-muted-on-surface); font-size: var(--fs-xs); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 150%); background: var(--color-dark); color: #fff; padding: .8rem 1rem .8rem 1.1rem; border-radius: var(--radius);
  box-shadow: var(--shadow); font-size: var(--fs-sm); display: flex; gap: 1rem; align-items: center; z-index: 80; transition: transform .25s ease; max-width: calc(100% - 2rem); }
.toast.show { transform: translate(-50%, 0); }
.toast a { color: #fff; font-weight: var(--fw-semibold); text-decoration: underline; text-decoration-color: var(--color-tint); white-space: nowrap; }

/* Mobile sticky quote bar */
.mobile-bar { display: none; }
@media (max-width: 860px) {
  .has-mobile-bar .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--color-bg); border-top: 1px solid var(--color-line); padding: .6rem var(--gutter); gap: .6rem; box-shadow: 0 -4px 16px rgba(0,0,0,.05); }
  .has-mobile-bar .mobile-bar .btn { flex: 1; }
  .has-mobile-bar { padding-bottom: 72px; }
  .has-mobile-bar .toast { bottom: 84px; }
}
@media print { .site-header, .site-footer, .mobile-bar, .buybox, .toast { display: none !important; } }

/* Grid variants */
.pgrid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .pgrid--3 { grid-template-columns: repeat(2, 1fr); } }
.fin-grid--6 { grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.fin-grid--6 .fb { padding: .75rem .85rem; }
.fin-grid--6 h3 { font-size: var(--fs-sm); }
.fin-grid--6 .fin-card:hover { border-color: var(--color-ink); color: inherit; }
@media (max-width: 980px) { .fin-grid--6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .fin-grid--6 { grid-template-columns: repeat(2, 1fr); } }
