/* ==========================================================================
   Helei Stone — design system
   Light mineral palette, editorial grids, engineered restraint.
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/spacegrotesk-500-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/spacegrotesk-500-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-400-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f5f0;
  --paper-2: #fbfaf7;
  --mineral: #efece4;
  --mineral-2: #e6e2d8;
  --white: #ffffff;

  --ink: #12151a;
  --ink-2: #3a4147;
  --steel: #5d666b;
  --rule: #dcd7cc;
  --rule-strong: #c2bcae;

  --orange: #b23f12;
  --orange-ink: #b23f12;
  --burgundy: #6b2c3b;
  --green: #2f6b4f;
  --error: #a4261c;

  --font-display: "Space Grotesk", "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --shell: 1320px;
  --gutter: clamp(18px, 4vw, 48px);
  --header-h: 72px;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;

  --radius: 2px;
  --t-fast: 160ms ease;
  --t-mid: 240ms ease;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.022em; line-height: 1.06; }
p { margin: 0; }
table { border-collapse: collapse; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  font-size: 12px; transition: top var(--t-fast);
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- type */
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); max-width: 16ch; }
h2 { font-size: clamp(1.85rem, 3.3vw, 3rem); }
h3 { font-size: 1.15rem; }

.mono-label,
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  line-height: 1.4;
}
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow-num {
  color: var(--orange);
  border-inline-end: 1px solid var(--rule-strong);
  padding-inline-end: 10px;
}
.eyebrow-dot {
  width: 7px; height: 7px; background: var(--orange); display: inline-block; flex: none;
}
.eyebrow-light { color: rgba(255, 255, 255, 0.62); }
.eyebrow-light .eyebrow-num { border-color: rgba(255, 255, 255, 0.3); color: rgba(255, 255, 255, 0.8); }

.section-head { display: grid; gap: var(--s4); margin-bottom: clamp(32px, 4vw, 56px); }
.section-title { max-width: 22ch; }
.section-lede { max-width: 62ch; color: var(--ink-2); font-size: 15.5px; }
.section-note { margin-top: var(--s4); max-width: 74ch; font-size: 12.5px; color: var(--steel); }
.section-foot { margin-top: var(--s7); }
.sub-h {
  margin: var(--s7) 0 var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.045em;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 15px; font-size: 11.5px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { background: transparent; border-color: var(--ink); color: var(--orange); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.65); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost-light:hover { background: transparent; border-color: #fff; color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.text-link svg { width: 15px; height: 15px; transition: transform var(--t-fast); }
.text-link:hover { color: var(--orange); border-color: var(--orange); }
.text-link:hover svg { transform: translateX(3px); }

.chip-row { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chip-row li,
.chip-link {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  border: 1px solid var(--rule);
  padding: 4px 8px;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.chip-link:hover { border-color: var(--ink); color: var(--ink); }
.chip-row-lg li { padding: 6px 10px; font-size: 10.5px; }
.chip-links { display: flex; flex-wrap: wrap; gap: 6px; }

.ico { display: inline-flex; width: 18px; height: 18px; color: var(--steel); flex: none; }
.ico svg { width: 100%; height: 100%; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--s6);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-cn {
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 7px 5px;
  line-height: 1;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 500;
}
.brand-latin { display: grid; line-height: 1; }
.brand-latin strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2em;
}
.brand-latin em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: 0.34em;
  color: var(--steel);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); margin-inline-start: auto; }
.nav > a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.nav > a:hover { color: var(--orange); }
.nav > a[aria-current="page"] { color: var(--ink); border-color: var(--orange); }
.nav-quote { display: none; }

.header-actions { display: flex; align-items: center; gap: var(--s3); }
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 9px;
  border: 1px solid var(--rule);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  transition: border-color var(--t-fast);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { border-color: var(--rule-strong); }
.lang-switch summary svg { width: 14px; height: 14px; }
.lang-switch summary svg:last-child { width: 11px; height: 11px; transition: transform var(--t-fast); }
.lang-switch[open] summary svg:last-child { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  width: 216px;
  background: var(--paper-2);
  border: 1px solid var(--rule-strong);
  padding: var(--s3);
  box-shadow: 0 18px 40px rgba(18, 21, 26, 0.10);
  z-index: 120;
}
.lang-menu ul { list-style: none; }
.lang-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 8px;
  font-size: 13px;
  transition: background var(--t-fast);
}
.lang-menu li a:hover { background: var(--mineral); }
.lang-menu li a[aria-current="true"] { color: var(--orange); }
.lang-menu small { font-family: var(--font-mono); font-size: 9.5px; color: var(--steel); letter-spacing: 0.08em; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--rule);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle-close { display: none; }
.site-header.nav-open .nav-toggle-open { display: none; }
.site-header.nav-open .nav-toggle-close { display: block; }

/* ---------------------------------------------------------------- hero */
.hero { border-bottom: 1px solid var(--rule); background: var(--paper); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 88px);
}
.hero-copy h1 { max-width: 13ch; }
.hero-lede {
  margin-top: var(--s5);
  max-width: 47ch;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.62;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  margin-top: clamp(40px, 6vw, 76px);
  padding-top: var(--s5);
  border-top: 1px solid var(--rule-strong);
}
.metric { display: grid; gap: 6px; }
.metric-value { font-family: var(--font-display); font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1; letter-spacing: -0.02em; }
.metric-label { font-size: 11px; line-height: 1.35; color: var(--steel); max-width: 16ch; }

.hero-media { margin: 0; border: 1px solid var(--rule-strong); background: var(--white); position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 4.8; object-fit: cover; }
.hero-media figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: 11px 14px;
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  font-size: 11px;
  color: var(--ink-2);
}
.hero-media figcaption .mono-label { color: var(--orange); }

/* ---------------------------------------------------------------- strip */
.strip { background: var(--mineral); border-bottom: 1px solid var(--rule); }
.strip-grid {
  display: grid;
  grid-template-columns: 190px repeat(4, 1fr);
  align-items: stretch;
}
.strip-title {
  display: flex;
  align-items: center;
  padding: var(--s6) var(--s5) var(--s6) 0;
  border-inline-end: 1px solid var(--rule-strong);
}
.strip-title .mono-label { max-width: 18ch; color: var(--ink-2); }
.assurance {
  padding: var(--s6) var(--s5);
  border-inline-end: 1px solid var(--rule);
}
.assurance:last-child { border-inline-end: none; padding-inline-end: 0; }
.assurance-num { color: var(--orange); }
.assurance h3 { margin: 10px 0 6px; font-size: 14px; letter-spacing: -0.01em; }
.assurance p { font-size: 12.5px; color: var(--ink-2); }

/* ---------------------------------------------------------------- sections */
.section { padding-block: clamp(56px, 8vw, 112px); border-bottom: 1px solid var(--rule); }
.section-tight { padding-block: clamp(40px, 5vw, 72px); }
.materials { background: var(--paper-2); }
.products-home { background: var(--paper); }
.guide { background: var(--mineral); }
.applications-home { background: var(--paper-2); }
.projects-home { background: var(--paper); }
.workflow { background: var(--mineral); }
.faq-home { background: var(--paper-2); }
.related { background: var(--paper-2); }

/* material swatches */
.swatch-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--rule-strong);
  background: var(--white);
}
.swatch {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-inline-end: 1px solid var(--rule);
  transition: background var(--t-fast);
}
.swatch:last-child { border-inline-end: none; }
.swatch:hover { background: var(--paper); }
.swatch-img { display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.swatch-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms ease; }
.swatch:hover .swatch-img img { transform: scale(1.05); }
.swatch-name { padding: 12px 12px 2px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.swatch-count { padding: 2px 12px 14px; color: var(--steel); }

/* product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 44px) clamp(20px, 2.6vw, 32px);
}
.pcard { border-top: 1px solid var(--rule-strong); padding-top: var(--s4); display: flex; flex-direction: column; }
.pcard-media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mineral);
  margin-bottom: var(--s4);
}
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 460ms ease; }
.pcard:hover .pcard-media img { transform: scale(1.035); }
.pcard-code {
  position: absolute;
  inset-inline-start: 10px;
  top: 10px;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}
.pcard-cat { color: var(--steel); margin-bottom: 7px; }
.pcard h3 { font-size: 1.2rem; line-height: 1.18; max-width: 22ch; }
.pcard h3 a:hover { color: var(--orange); }
.pcard p { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); max-width: 38ch; }
.pcard .chip-row { margin-top: auto; padding-top: var(--s4); }
.pcard .text-link { margin-top: var(--s4); align-self: flex-start; }

/* selection guide */
.guide-grid { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.guide-copy .section-head { margin-bottom: var(--s5); }
.guide-note { color: var(--steel); }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; min-width: 460px; font-size: 13px; }
.data-table thead th {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  text-align: start;
  padding: 10px 12px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.data-table tbody th,
.data-table tbody td { padding: 14px 12px; border-bottom: 1px solid var(--rule); text-align: start; vertical-align: top; }
.data-table tbody th { font-weight: 600; font-size: 13px; white-space: nowrap; }
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: 1px solid var(--ink); }
.data-table-2 tbody th { width: 34%; }
.data-table-2 { min-width: 0; }

/* application grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-inline-start: 1px solid var(--rule);
}
.app-card {
  position: relative;
  padding: var(--s6) var(--s5) var(--s7);
  border-inline-end: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background var(--t-fast);
}
.app-card:hover { background: var(--white); }
.app-card .mono-label { color: var(--orange); }
.app-card h3 { margin: 12px 0 8px; font-size: 1.1rem; }
.app-card p { font-size: 13px; color: var(--ink-2); max-width: 36ch; }
.app-more {
  position: absolute;
  inset-inline-end: var(--s5);
  bottom: var(--s5);
  color: var(--orange);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.app-more svg { width: 18px; height: 18px; }
.app-card:hover .app-more { opacity: 1; transform: none; }

/* project cards */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 36px); }
.project-card { border-top: 1px solid var(--rule-strong); padding-top: var(--s4); }
.project-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--mineral); margin-bottom: var(--s4); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.project-card:hover .project-media img { transform: scale(1.03); }
.project-card .mono-label { color: var(--steel); }
.project-card h3 { margin: 8px 0 4px; font-size: 1.1rem; }
.project-meta { font-size: 12px; color: var(--ink-2); }
.project-note { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--rule); font-size: 10.5px; color: var(--steel); }

/* workflow */
.step-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
}
.step { padding: var(--s5) var(--s5) 0 0; border-inline-end: 1px solid var(--rule-strong); }
.step:last-child { border-inline-end: none; padding-inline-end: 0; }
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: 12.5px; color: var(--ink-2); max-width: 32ch; }

/* faq */
.faq-grid { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-intro .section-head { margin-bottom: var(--s5); }
.faq-intro .btn { margin-top: var(--s4); }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: 17px 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 14px; height: 14px; flex: none; color: var(--steel); transition: transform var(--t-fast); }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item[open] summary { color: var(--orange); }
.faq-a { padding: 0 0 18px; max-width: 66ch; }
.faq-a p { font-size: 13.5px; color: var(--ink-2); }

/* cta band */
.cta-band { background: var(--burgundy); color: #fff; padding-block: clamp(48px, 7vw, 88px); }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { margin-top: var(--s4); max-width: 54ch; color: rgba(255, 255, 255, 0.76); font-size: 14.5px; }
.cta-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: var(--s7); align-items: end; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: flex-end; }
.cta-band-slim { padding-block: clamp(40px, 5vw, 64px); }
.cta-band-slim h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--mineral); border-top: 1px solid var(--rule-strong); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.35fr;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(48px, 6vw, 72px);
}
.footer-brand p { margin-top: var(--s4); font-size: 12.5px; color: var(--ink-2); max-width: 38ch; }
.footer-legal { margin-top: var(--s4); font-size: 9.5px; color: var(--steel); }
.footer-h { font-family: var(--font-mono); font-size: 10px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); margin-bottom: var(--s4); }
.footer-grid ul { list-style: none; display: grid; gap: 7px; }
.footer-grid ul a { font-size: 12.5px; color: var(--ink-2); }
.footer-grid ul a:hover { color: var(--orange); }
.footer-contact ul li { display: grid; grid-template-columns: 18px 1fr; gap: 9px; font-size: 12.5px; color: var(--ink-2); align-items: start; }
.footer-base {
  border-top: 1px solid var(--rule-strong);
  padding-block: var(--s5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--steel);
}
.footer-legal-links { display: flex; gap: var(--s4); }
.footer-legal-links a:hover { color: var(--ink); }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.footer-langs a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- page hero */
.page-hero { padding-block: clamp(44px, 6vw, 88px); border-bottom: 1px solid var(--rule); }
.page-hero h1 { max-width: 18ch; }
.page-lede { margin-top: var(--s5); max-width: 64ch; color: var(--ink-2); font-size: clamp(1rem, 1.2vw, 1.1rem); }
.page-note { margin-top: var(--s5); }
.page-hero-split .shell { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(32px, 5vw, 64px); align-items: end; }
.about-media { margin: 0; border: 1px solid var(--rule-strong); background: var(--white); }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-media figcaption { padding: 9px 12px; border-top: 1px solid var(--rule); font-size: 9.5px; color: var(--steel); }

/* ---------------------------------------------------------------- catalog */
.catalog { padding-block: clamp(24px, 3vw, 40px) clamp(64px, 8vw, 112px); }
.catalog-bar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--s4) var(--s5);
  align-items: center;
  padding-block: var(--s4);
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: clamp(32px, 4vw, 52px);
}
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  background: transparent;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.filter:hover { border-color: var(--rule-strong); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter-count { font-family: var(--font-mono); font-size: 9.5px; opacity: 0.65; }
.catalog-search { position: relative; }
.catalog-search input {
  min-height: 44px;
  width: min(320px, 42vw);
  border: 1px solid var(--rule-strong);
  background: var(--white);
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 13px;
  border-radius: 0;
}
.catalog-search input::placeholder { color: var(--steel); }
.search-reset {
  position: absolute;
  inset-inline-end: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--steel);
  cursor: pointer;
  padding: 8px;
}
.search-reset:hover { color: var(--ink); }
.result-count { font-family: var(--font-mono); font-size: 11px; color: var(--steel); white-space: nowrap; }
.result-count span:first-child { color: var(--ink); }
.catalog-empty { border: 1px dashed var(--rule-strong); padding: clamp(32px, 6vw, 64px); text-align: center; }
.catalog-empty h2 { font-size: 1.4rem; }
.catalog-empty p { margin: 12px auto 24px; max-width: 46ch; color: var(--ink-2); font-size: 13.5px; }
.catalog-custom {
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(24px, 3vw, 36px);
  background: var(--mineral);
  border-top: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  flex-wrap: wrap;
}
.catalog-custom h2 { font-size: 1.35rem; }
.catalog-custom p { margin-top: 8px; max-width: 54ch; font-size: 13px; color: var(--ink-2); }

/* ---------------------------------------------------------------- product detail */
.product-top { border-bottom: 1px solid var(--rule); padding-bottom: clamp(32px, 4vw, 56px); }
.breadcrumb { padding-block: var(--s4); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em; color: var(--steel); }
.breadcrumb li { display: flex; gap: 8px; align-items: center; }
.breadcrumb li + li::before { content: "/"; color: var(--rule-strong); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb li[aria-current] { color: var(--ink); }

.product-layout { display: grid; grid-template-columns: 1.22fr 0.78fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.gallery-frame { position: relative; border: 1px solid var(--rule-strong); aspect-ratio: 4 / 3; overflow: hidden; background: var(--mineral); }
.gallery-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms ease; transform-origin: center; }
.gallery[data-state="surface"] .gallery-frame img { transform: scale(1.9); }
.gallery[data-state="detail"] .gallery-frame img { transform: scale(3.1); transform-origin: 62% 42%; }
.gallery-code { position: absolute; inset-inline-start: 12px; top: 12px; background: var(--paper); border: 1px solid var(--rule); padding: 4px 8px; }
.gallery-tools { display: flex; border: 1px solid var(--rule-strong); border-top: 0; background: var(--paper-2); }
.gallery-tools button {
  flex: 1;
  min-height: 42px;
  padding: 6px 8px;
  border: 0;
  border-inline-end: 1px solid var(--rule);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.gallery-tools button:last-child { border-inline-end: 0; }
.gallery-tools button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.gallery-tools button:hover { color: var(--ink); }
.gallery-tools button[aria-pressed="true"]:hover { color: var(--paper); }

.buy-panel { padding-top: var(--s2); }
.buy-panel .mono-label { color: var(--orange); }
.buy-panel h1 { font-size: clamp(1.9rem, 3vw, 2.7rem); margin: 10px 0 14px; max-width: 18ch; }
.buy-summary { color: var(--ink-2); font-size: 15px; max-width: 46ch; }
.buy-facts { margin-top: var(--s6); border-top: 1px solid var(--ink-2); }
.buy-facts > div { display: grid; grid-template-columns: 132px 1fr; gap: var(--s3); padding: 11px 0; border-bottom: 1px solid var(--rule); }
.buy-facts dt { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--steel); }
.buy-facts dd { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.buy-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s5); }
.buy-finishes-label { margin-top: var(--s6); color: var(--steel); }
.buy-panel .chip-row { margin-top: var(--s3); }
.trust-list { list-style: none; margin-top: var(--s5); display: grid; gap: 8px; font-size: 12px; color: var(--ink-2); }
.trust-list svg { width: 14px; height: 14px; color: var(--green); vertical-align: -2px; margin-inline-end: 8px; }

.product-body-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.product-article h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin: 10px 0 16px; }
.lede-p { font-size: 15.5px; color: var(--ink-2); max-width: 68ch; }
.spec-rail { position: sticky; top: calc(var(--header-h) + 20px); background: var(--paper-2); border: 1px solid var(--rule-strong); padding: var(--s5); }
.spec-rail h2 { font-size: 1.25rem; margin: 8px 0 16px; }
.spec-table { width: 100%; font-size: 12px; }
.spec-table th { text-align: start; font-family: var(--font-mono); font-size: 9.5px; font-weight: 400; letter-spacing: 0.05em; text-transform: uppercase; color: var(--steel); padding: 9px 0; border-bottom: 1px solid var(--rule); width: 46%; vertical-align: top; }
.spec-table td { padding: 9px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); vertical-align: top; }
.spec-table tr:first-child th, .spec-table tr:first-child td { padding-top: 0; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.doc-list { border-top: 1px solid var(--ink-2); margin-top: var(--s3); }
.doc-row { display: grid; grid-template-columns: 22px 1fr auto; gap: var(--s3); align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.doc-main strong { display: block; font-size: 13px; font-weight: 600; }
.doc-main small { display: block; font-size: 11px; color: var(--steel); margin-top: 2px; }
.doc-action { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.doc-action svg { width: 13px; height: 13px; }
.doc-row:hover .doc-action { color: var(--orange); }
.doc-row:hover .doc-main strong { color: var(--orange); }

/* ---------------------------------------------------------------- applications page */
.app-blocks { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); border-inline-start: 1px solid var(--rule); }
.app-block { padding: clamp(24px, 3vw, 36px); border-inline-end: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.app-block-head { display: flex; justify-content: space-between; gap: var(--s4); color: var(--steel); }
.app-block-head .mono-label:first-child { color: var(--orange); }
.app-block h2 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); margin: 24px 0 10px; }
.app-block p { font-size: 13.5px; color: var(--ink-2); max-width: 52ch; }
.app-block .chip-links { margin-top: var(--s4); }

/* ---------------------------------------------------------------- quality */
.qsteps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.qstep { padding: var(--s5) var(--s5) var(--s6) 0; border-inline-end: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.qstep:nth-child(3n) { border-inline-end: none; padding-inline-end: 0; }
.qstep .step-num { margin-bottom: var(--s5); }
.qstep h3 { font-size: 1rem; margin-bottom: 8px; }
.qstep p { font-size: 12.5px; color: var(--ink-2); max-width: 34ch; }
.quality-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s7); }
.quality-fig { margin: 0; border: 1px solid var(--rule); background: var(--white); }
.quality-fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.quality-fig figcaption { padding: 8px 10px; border-top: 1px solid var(--rule); font-size: 9px; color: var(--steel); }
.gates-section { background: var(--mineral); }
.gate-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-inline-start: 1px solid var(--rule-strong); }
.gate { padding: var(--s6) var(--s5); border-inline-end: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.gate-num { color: var(--orange); }
.gate h3 { font-size: 1.05rem; margin: 14px 0 8px; }
.gate p { font-size: 12.5px; color: var(--ink-2); max-width: 36ch; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.check-list { list-style: none; display: grid; gap: 10px; margin-top: var(--s2); }
.check-list li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: 13px; color: var(--ink-2); }
.check-list svg { width: 14px; height: 14px; color: var(--green); margin-top: 3px; }

/* ---------------------------------------------------------------- projects page */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.profile-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--mineral); }
.profile-media img { width: 100%; height: 100%; object-fit: cover; }
.profile-meta { display: flex; justify-content: space-between; gap: var(--s3); border-top: 1px solid var(--ink); padding-top: 10px; margin-top: var(--s4); }
.profile-body h2 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); margin: 10px 0 4px; }
.profile-material { color: var(--orange); margin-bottom: 10px; }
.profile-body p { font-size: 13px; color: var(--ink-2); max-width: 58ch; }

/* ---------------------------------------------------------------- about */
.about-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-sections article { border-top: 1px solid var(--rule); padding: 20px 0 24px; }
.about-sections article:first-child { border-top: 1px solid var(--ink); }
.about-sections h2 { font-size: 1.2rem; margin-bottom: 8px; }
.about-sections p { font-size: 14px; color: var(--ink-2); max-width: 64ch; }
.about-facts { background: var(--paper-2); border: 1px solid var(--rule-strong); padding: var(--s5); }
.about-facts .data-table { margin-top: var(--s4); }

/* ---------------------------------------------------------------- faq page */
.faq-page-grid { display: grid; grid-template-columns: 1fr 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-group { margin-bottom: var(--s7); }
.faq-group .eyebrow { margin-bottom: var(--s4); padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.faq-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card { background: var(--mineral); border: 1px solid var(--rule-strong); padding: var(--s5); }
.aside-card h2 { font-size: 1.35rem; margin: 10px 0 12px; }
.aside-card p { font-size: 13px; color: var(--ink-2); }
.aside-card .text-link { margin-top: var(--s4); }
.aside-actions { margin-top: var(--s5); }

/* ---------------------------------------------------------------- contact */
.contact-section { padding-block: clamp(40px, 5vw, 72px) clamp(56px, 8vw, 112px); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.form-note { margin: var(--s3) 0 var(--s5); padding-inline-start: 10px; border-inline-start: 2px solid var(--orange); font-size: 11.5px; color: var(--steel); max-width: 70ch; }
.field { display: grid; gap: 6px; margin-bottom: var(--s4); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.field label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; }
.req { font-family: var(--font-mono); font-size: 8.5px; font-weight: 400; letter-spacing: 0.08em; color: var(--steel); text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--rule-strong);
  background: var(--white);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 13.5px;
  border-radius: 0;
  transition: border-color var(--t-fast);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--steel); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: 11px; color: var(--error); }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--ink-2); margin: var(--s3) 0 var(--s5); cursor: pointer; }
.consent input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.form-actions { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; }
.form-privacy { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.04em; color: var(--steel); max-width: 34ch; line-height: 1.6; }
.form-status { margin-top: var(--s5); padding: 14px 16px; border: 1px solid var(--rule-strong); font-size: 13px; }
.form-status.is-error { border-color: var(--error); color: var(--error); }
.form-status.is-ok { border-color: var(--green); color: var(--green); }
.form-success { margin-top: var(--s6); padding: var(--s5); border: 1px solid var(--green); background: var(--paper-2); }
.form-success h2 { font-size: 1.4rem; color: var(--green); }
.form-success p { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.summary-box {
  margin-top: var(--s4);
  background: var(--mineral);
  border: 1px solid var(--rule);
  padding: var(--s4);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 320px;
  overflow: auto;
}
.contact-aside { display: grid; gap: var(--s5); }
.contact-list { list-style: none; display: grid; gap: 12px; margin-top: var(--s5); }
.contact-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 12.5px; color: var(--ink-2); align-items: start; }
.contact-list a:hover { color: var(--orange); }
.aside-note { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--rule); font-size: 11px; color: var(--steel); }
.aside-block { border-top: 1px solid var(--ink); padding-top: var(--s5); }
.contact-steps { list-style: none; border-top: 1px solid var(--rule); margin-top: var(--s4); }
.contact-steps li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.contact-steps h3 { font-size: 13.5px; margin-bottom: 6px; }
.contact-steps p { font-size: 12px; color: var(--ink-2); }

/* ---------------------------------------------------------------- legal */
.legal-body { max-width: 72ch; }
.legal-body p { margin-bottom: var(--s4); font-size: 14.5px; color: var(--ink-2); }

/* ---------------------------------------------------------------- reveal */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 500ms ease, transform 500ms ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------- rtl */
html[dir="rtl"] body { font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Naskh Arabic", var(--font-body); }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", var(--font-display); letter-spacing: 0; }
html[dir="rtl"] .mono-label, html[dir="rtl"] .eyebrow { letter-spacing: 0; }
html[dir="rtl"] .brand-latin { direction: ltr; }
html[dir="rtl"] .text-link svg, html[dir="rtl"] .doc-action svg, html[dir="rtl"] .app-more svg { transform: scaleX(-1); }
html[dir="rtl"] .data-table thead th, html[dir="rtl"] .data-table tbody th, html[dir="rtl"] .data-table tbody td { text-align: right; }
html[dir="rtl"] .spec-table th, html[dir="rtl"] .spec-table td { text-align: right; }
html[dir="rtl"] .metric-value { direction: ltr; }
html[dir="rtl"] .footer-langs { direction: rtl; }
html[dir="rtl"] .breadcrumb li { flex-direction: row; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .strip-grid { grid-template-columns: 150px repeat(4, 1fr); }
  .assurance { padding-inline: var(--s4); }
  .faq-page-grid { grid-template-columns: 1fr 300px; }
  .nav { gap: 14px; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 15ch; }
  .hero-media img { aspect-ratio: 16 / 9; }
  .guide-grid, .faq-grid, .product-body-grid, .about-grid, .contact-grid,
  .faq-page-grid, .two-col, .page-hero-split .shell { grid-template-columns: 1fr; }
  .spec-rail, .faq-aside { position: static; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-title { display: none; }
  .assurance { border-bottom: 1px solid var(--rule); }
  .assurance:nth-child(2n) { border-inline-end: none; }
  .assurance:nth-last-child(-n+2) { border-bottom: 0; }
  .swatch-row { grid-template-columns: repeat(3, 1fr); }
  .swatch:nth-child(3n) { border-inline-end: none; }
  .swatch:nth-child(-n+3) { border-bottom: 1px solid var(--rule); }
  .app-grid { grid-template-columns: 1fr 1fr; }
  .app-card:nth-child(2n) { border-inline-end: none; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .step-grid { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2n) { border-inline-end: none; }
  .step { padding-bottom: var(--s6); border-bottom: 1px solid var(--rule); }
  .qsteps { grid-template-columns: 1fr 1fr; }
  .qstep:nth-child(3n) { border-inline-end: 1px solid var(--rule); padding-inline-end: var(--s5); }
  .qstep:nth-child(2n) { border-inline-end: none; padding-inline-end: 0; }
  .gate-grid { grid-template-columns: 1fr; }
  .gate { border-inline-end: 1px solid var(--rule-strong); }
  .app-blocks { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .buy-panel { max-width: 640px; }
  .catalog-bar { grid-template-columns: 1fr auto; }
  .result-count { grid-column: 1 / -1; }
  .cta-grid { grid-template-columns: 1fr; align-items: start; }
  .cta-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-quote { display: none; }
  .nav {
    position: fixed;
    inset-inline: 0;
    top: var(--header-h);
    bottom: 0;
    z-index: 90;
    margin: 0;
    padding: var(--s5) var(--gutter) var(--s8);
    background: var(--paper);
    border-top: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--t-mid), transform var(--t-mid), visibility var(--t-mid);
  }
  .nav > a {
    padding: 16px 0;
    font-size: 18px;
    font-family: var(--font-display);
    border-bottom: 1px solid var(--rule);
    border-inline-start: 0;
  }
  .nav > a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--orange); }
  .nav-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--s5);
    min-height: 48px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    border: 0;
  }
  .site-header.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  body.nav-locked { overflow: hidden; }
  .metric-value { font-size: 1.4rem; }
  .hero-metrics { grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s4); }
}

@media (max-width: 640px) {
  h1 { font-size: clamp(2rem, 8.6vw, 2.9rem); }
  .hero-copy h1 { max-width: none; }
  .product-grid, .project-grid { grid-template-columns: 1fr; }
  .app-grid, .swatch-row { grid-template-columns: 1fr 1fr; }
  .app-grid { border-inline-start: 0; }
  .app-card { border-inline-end: 0; }
  .app-card:nth-child(2n) { border-inline-end: 0; }
  .swatch:nth-child(3n) { border-inline-end: 1px solid var(--rule); }
  .swatch:nth-child(2n) { border-inline-end: 0; }
  .swatch:nth-child(-n+4) { border-bottom: 1px solid var(--rule); }
  .step-grid, .qsteps { grid-template-columns: 1fr; }
  .step, .qstep, .qstep:nth-child(3n) { border-inline-end: 0; padding-inline-end: 0; }
  .quality-figs { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .catalog-bar { grid-template-columns: 1fr; }
  .catalog-search input { width: 100%; }
  .filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .filter { flex: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .buy-actions .btn { flex: 1 1 100%; }
  .gallery-tools button { font-size: 8.5px; }
  .about-facts { padding: var(--s4); }
  .brand-latin strong { font-size: 14px; }
  .brand-cn { font-size: 12px; }
  .site-header .lang-switch summary span { display: none; }
  .site-header .lang-switch summary { padding: 0 8px; }
}

@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .header-actions { gap: 6px; }
  .brand-latin em { display: none; }
}

/* ---------------------------------------------------------------- utilities */
[hidden] { display: none !important; }
.was-validated :invalid { border-color: var(--error); }
input[type="date"] { min-height: 46px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(135deg, var(--steel) 50%, transparent 50%); background-position: calc(100% - 16px) 20px, calc(100% - 11px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-inline-end: 34px; }
html[dir="rtl"] select { background-position: 16px 20px, 21px 20px; }

/* QA fixes */
.nav .nav-quote { color: var(--paper); }
.nav .nav-quote:hover { color: var(--paper); background: var(--orange); }
.data-table td:nth-child(2), .data-table td:nth-child(3) { white-space: nowrap; }
@media (max-width: 640px) {
  .site-header .lang-switch summary span { display: inline; }
  .site-header .lang-switch summary { padding: 0 8px; }
  .lang-switch summary svg:first-child { display: none; }
}

/* catalogue toolbar: filters on their own row, search + count beneath */
.catalog-bar { grid-template-columns: minmax(0, 1fr) auto; }
.filters { grid-column: 1 / -1; }
.catalog-search { grid-column: 1; }
.result-count { grid-column: 2; justify-self: end; }
html[dir="rtl"] .lang-switch summary { direction: ltr; }
@media (max-width: 640px) {
  .catalog-bar { grid-template-columns: 1fr; }
  .result-count { grid-column: 1; justify-self: start; }
}
