:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f8f9fb;
  --stage: #f4f5f7;
  --stage-hover: #eef0f4;
  --obsidian: #111315;
  --obsidian-elev: #191c20;
  --obsidian-line: #2a2f36;
  --ink: #111315;
  --muted: #586069;
  --subtle: #737b86;
  --line: #e4e7ec;
  --line-strong: #cfd4dc;
  --accent: #8f1d14;
  --accent-hover: #70150e;
  --accent-tint: #fdf3f2;
  --brass: #9a7836;
  --ok: #166534;
  --shadow-sm: 0 1px 2px rgba(17, 19, 21, 0.04), 0 4px 12px rgba(17, 19, 21, 0.03);
  --shadow-md: 0 8px 24px rgba(17, 19, 21, 0.07);
  --shadow-lg: 0 24px 56px rgba(17, 19, 21, 0.2);
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --max: 1280px;
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) var(--bg);
}
::selection {
  background: var(--obsidian);
  color: #ffffff;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.mono, .tabular {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: min(var(--max), calc(100% - 64px));
  margin-inline: auto;
}
.section {
  padding-block: 88px;
  scroll-margin-top: 76px;
}
.section-surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.section-dark {
  background: var(--obsidian);
  color: #f4f5f7;
}

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  background: var(--obsidian);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
}

/* Top Technical Bar */
.topbar {
  background: var(--obsidian);
  color: #cfd5dd;
  font-size: 13px;
  border-bottom: 1px solid var(--obsidian-line);
}
.topbar-inner {
  min-height: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 6px;
}
.topbar-specs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-sep {
  color: #4b535e;
  margin-inline: 4px;
}
.topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.topbar-link {
  color: #ffffff;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.16s ease;
}
.topbar-link:hover {
  opacity: 0.82;
  text-decoration: underline;
}

/* Sticky Architectural Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--obsidian);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark svg {
  width: 22px;
  height: 22px;
  display: block;
}
.brand-name {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--ink);
}
.brand-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.25;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.nav a {
  position: relative;
  padding-block: 6px;
  white-space: nowrap;
  transition: color 0.16s ease;
}
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1);
}
.nav a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Unified Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--obsidian);
  color: #ffffff;
  border-color: var(--obsidian);
}
.btn-primary:hover {
  background: #24282d;
  border-color: #24282d;
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--stage);
  border-color: #aeb6c2;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}
.btn-ghost:hover {
  background: var(--stage);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-on-dark {
  background: #ffffff;
  color: var(--obsidian);
  border-color: #ffffff;
}
.btn-on-dark:hover {
  background: #e9ecf0;
  border-color: #e9ecf0;
}

.btn-sm {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 13.5px;
}

.basket-pill {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  min-height: 40px;
  padding: 7px 13px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.basket-pill:hover {
  border-color: var(--ink);
  background: var(--stage);
}
.basket-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--r-xs);
  background: var(--obsidian);
  color: #ffffff;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 500;
  display: inline-grid;
  place-items: center;
}
.basket-badge.has-items {
  background: var(--accent);
}

/* Section Headings (taste-skill run-on hierarchy, zero eyebrows) */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section-dark .section-head {
  border-bottom-color: var(--obsidian-line);
}
.section-head h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.028em;
  color: var(--ink);
  max-width: 820px;
  text-wrap: balance;
}
.section-head h2 .h-sub {
  color: var(--muted);
  font-weight: 400;
}
.section-dark .section-head h2 { color: #ffffff; }
.section-dark .section-head h2 .h-sub { color: #9aa2ae; }

/* Hero */
.hero {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding-top: 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 56px;
}
.hero-meta-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 18px;
}
.hero-meta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(38px, 4.4vw, 58px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.036em;
  color: var(--ink);
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero-lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.65;
  margin-bottom: 28px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.hero-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.hero-jump-label {
  color: var(--subtle);
  font-size: 13px;
}
.hero-jump a {
  color: var(--ink);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}
.hero-jump a:hover {
  color: var(--accent);
}

/* Hero Architectural Specimen Stage (zero double-nesting, zero caption) */
.hero-stage {
  display: grid;
  grid-template-columns: 1.28fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  height: 448px;
}
.stage-cell {
  position: relative;
  background: var(--stage);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage-cell.primary {
  grid-row: span 2;
}
.stage-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1);
}
.stage-cell:hover img {
  transform: scale(1.028);
}
.stage-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: var(--r-xs);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

/* Flush 4-Cell Technical Spec Bar */
.spec-ledger {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.spec-ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ledger-cell {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}
.ledger-cell:first-child { padding-left: 0; }
.ledger-cell:last-child { border-right: none; padding-right: 0; }
.ledger-val {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.ledger-desc {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* Product Catalog Toolbar & Specimen Grid */
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filter-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--stage);
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: var(--r-sm);
}
.filter-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  min-height: 36px;
  padding: 6px 13px;
  border-radius: var(--r-xs);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.filter-tab:hover {
  color: var(--ink);
}
.filter-tab[aria-pressed="true"] {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(17, 19, 21, 0.06);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
}
.count-readout {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}
.search-box {
  position: relative;
  width: min(280px, 100%);
}
.search-box input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.search-box input:focus {
  border-color: var(--ink);
  outline: none;
}
.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--subtle);
  pointer-events: none;
}

.family-context {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--muted);
}
.family-context strong {
  color: var(--ink);
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1), border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--stage);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform 0.32s cubic-bezier(0.2, 0, 0, 1);
}
.card:hover .card-media img {
  transform: scale(1.028);
}
.card-family-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--r-xs);
}
.card-views-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(17, 19, 21, 0.78);
  color: #ffffff;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--r-xs);
}

.card-body {
  padding: 20px 20px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-use {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 6px;
}
.card-body h3 {
  font-size: 18.5px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 8px;
}
.card-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 14px;
}
.card-finish {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  padding: 7px 10px;
}
.card-actions {
  padding: 0 20px 20px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 8px;
}
.card-actions .btn[aria-pressed="true"] {
  background: var(--ok);
  border-color: var(--ok);
  color: #ffffff;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--muted);
}

/* Sample Kit — Dark Obsidian Industrial Band */
.kit-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: stretch;
}
.kit-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--obsidian-line);
  border: 1px solid var(--obsidian-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.kit-tile {
  background: var(--obsidian-elev);
  display: flex;
  flex-direction: column;
}
.kit-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--stage);
  padding: 12px;
}
.kit-tile span {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #e5e8ee;
  border-top: 1px solid var(--obsidian-line);
}

.dark-spec-panel {
  background: var(--obsidian-elev);
  border: 1px solid var(--obsidian-line);
  border-radius: var(--r-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}
.moq-spec-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--obsidian-line);
  border-radius: var(--r-sm);
  padding: 18px 20px;
}
.moq-spec-box strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}
.moq-spec-box p {
  font-size: 14px;
  color: #b4bcc7;
  line-height: 1.6;
}
.moq-spec-box p b {
  color: #ffffff;
  font-weight: 500;
}
.dark-checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 14px;
  color: #b4bcc7;
}
.dark-checklist li {
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.dark-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 2px;
  background: #ffffff;
}
.dark-checklist strong {
  color: #ffffff;
  font-weight: 500;
}

/* Factory Production Videos */
.video-grid {
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.video-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.video-frame {
  background: #0d0f11;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-body {
  padding: 20px 22px 22px;
  border-top: 1px solid var(--line);
  flex: 1;
}
.video-body h3 {
  font-size: 18.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 6px;
}
.video-body p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* Sizing Guide & Calculator */
.calc-grid {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 28px;
  align-items: start;
}
.panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
}
.diagram-tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--stage);
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: var(--r-sm);
  margin-bottom: 18px;
}
.diagram-box {
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 16px;
  margin-bottom: 18px;
}
.diagram-box svg {
  width: 100%;
  height: auto;
  display: block;
}
.measure-tips {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.measure-tips li {
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.measure-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 1.5px;
  background: var(--accent);
}
.measure-tips strong {
  color: var(--ink);
  font-weight: 600;
}

.form-grid { display: grid; gap: 16px; }
.form-row-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}
label small {
  font-weight: 400;
  color: var(--subtle);
}
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%;
  margin-top: 6px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 19, 21, 0.06);
  outline: none;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 16px;
  margin: 0;
  background: var(--surface);
}
legend {
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* Calculator Output Matrix (1px hairline grid, zero side-stripe) */
.result-panel {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 18px;
}
.result-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  overflow: hidden;
  margin-bottom: 14px;
}
.metric-box {
  background: var(--bg);
  padding: 12px 14px;
}
.metric-box span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.metric-box strong {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 3px;
}
.metric-box strong.status-text {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--accent);
}
.result-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* Customization Architectural Matrix & Specification Sheet */
.cap-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 28px;
}
.cap-cell {
  background: var(--bg);
  padding: 24px;
}
.cap-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 10px;
}
.cap-cell h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.cap-cell p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

.spec-sheet {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.spec-sheet-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.spec-sheet-head h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.spec-sheet-head span {
  font-size: 13px;
  color: var(--muted);
}
.spec-table-wrap { overflow-x: auto; }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
  font-size: 14px;
}
.spec-table th, .spec-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}
.spec-table thead th {
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.spec-table tbody th {
  color: var(--ink);
  font-weight: 600;
  width: 23%;
}
.spec-table tbody td {
  color: var(--muted);
  line-height: 1.5;
}

/* 4-Stage Connected Production Rail */
.workflow-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
}
.workflow-step {
  padding: 24px 24px 8px 0;
  border-right: 1px solid var(--line);
}
.workflow-step:not(:first-child) {
  padding-left: 24px;
}
.workflow-step:last-child {
  border-right: none;
  padding-right: 0;
}
.step-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 10px;
}
.workflow-step h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 8px;
}
.workflow-step p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* Quote Basket & RFQ Desk */
.rfq-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 32px;
  align-items: start;
}
.basket-col-title {
  font-size: 18.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.basket-col-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
.basket-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.basket-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 98px 32px;
  gap: 12px;
  align-items: center;
}
.basket-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--r-xs);
  background: var(--stage);
  border: 1px solid var(--line);
  object-fit: contain;
  padding: 4px;
}
.basket-meta span {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
}
.basket-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.basket-item input {
  margin: 0;
  min-height: 38px;
  padding: 6px 8px;
  font-size: 13.5px;
}
.basket-remove {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-xs);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  height: 32px;
  display: grid;
  place-items: center;
}
.basket-remove:hover {
  color: var(--accent);
  background: var(--stage);
}

.attached-banner {
  background: var(--accent-tint);
  border: 1px solid #eccaca;
  border-radius: var(--r-sm);
  padding: 11px 14px;
  font-size: 13px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.attached-banner button {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: underline;
}

.catalog-cta-box {
  margin-top: 20px;
  background: var(--obsidian);
  color: #f4f5f7;
  border: 1px solid var(--obsidian-line);
  border-radius: var(--r-md);
  padding: 24px;
}
.catalog-cta-box h3 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}
.catalog-cta-box p {
  font-size: 14px;
  color: #b4bcc7;
  line-height: 1.55;
  margin-bottom: 16px;
}

.form-head {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

/* Architectural Footer */
.footer {
  background: var(--obsidian);
  color: #cfd5dd;
  padding: 56px 0 36px;
  border-top: 1px solid var(--obsidian-line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--obsidian-line);
}
.footer h3 {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.footer p, .footer li {
  font-size: 14px;
  color: #9ea6b2;
  line-height: 1.6;
}
.footer ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 9px;
}
.footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 13px;
  color: #7d8694;
}

/* Dialogs / Lightbox */
dialog {
  width: min(780px, calc(100% - 28px));
  max-height: calc(100vh - 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
dialog::backdrop {
  background: rgba(17, 19, 21, 0.68);
  backdrop-filter: blur(4px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.modal-family-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 2px;
}
.modal-head h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.modal-body {
  padding: 20px 22px 24px;
  overflow-y: auto;
  max-height: calc(100vh - 110px);
}
.lightbox-stage {
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: 12px;
}
.lightbox-stage img {
  width: 100%;
  height: clamp(240px, 44vh, 420px);
  object-fit: contain;
  padding: 16px;
}
.lightbox-caption {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 9px 14px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.thumb-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
}
.thumb-btn {
  width: 76px;
  height: 58px;
  padding: 4px;
  background: var(--stage);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xs);
  flex-shrink: 0;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.thumb-btn[aria-pressed="true"] {
  border-color: var(--ink);
}
.modal-meta {
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 16px;
}
.modal-meta strong { color: var(--ink); }
.modal-hint-box {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 11px 14px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
}
.modal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.rfq-output {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  background: var(--surface);
  margin-bottom: 14px;
}
.status-msg {
  font-size: 13px;
  color: var(--ok);
  font-weight: 500;
  margin-top: 8px;
  min-height: 18px;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .hero-grid, .video-grid, .kit-layout, .calc-grid, .rfq-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-stage { height: 380px; }
  .spec-ledger-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ledger-cell {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
  }
  .ledger-cell:first-child { padding-left: 20px; }
  .ledger-cell:nth-child(2n) { border-right: none; }
  .ledger-cell:nth-last-child(-n+2) { border-bottom: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-matrix { grid-template-columns: repeat(2, 1fr); }
  .workflow-rail {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 0;
  }
  .workflow-step:nth-child(2) { border-right: none; }
  .workflow-step:nth-child(3) { padding-left: 0; }
}

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    padding-block: 10px;
    gap: 10px 12px;
  }
  .nav {
    order: 3;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 18px;
    font-size: 13.5px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
}

@media (max-width: 720px) {
  html, body { overflow-x: clip; }
  .wrap { width: calc(100% - 32px); }
  .topbar { font-size: 12px; }
  .topbar-specs { display: none; }
  .topbar-inner { justify-content: space-between; min-height: 34px; gap: 8px; }
  .topbar-links { width: 100%; justify-content: space-between; gap: 8px; }
  .brand { min-width: 0; gap: 10px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 14px; }
  .brand-sub { display: none; }
  .basket-pill { min-height: 36px; padding: 5px 10px; font-size: 12.5px; gap: 6px; }
  .section { padding-block: 56px; }
  .hero { padding-top: 28px; }
  .hero-grid { padding-bottom: 32px; gap: 28px; }
  .hero h1 { font-size: 34px; }
  .hero-lead { font-size: 15.5px; }
  .hero-stage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 156px;
    height: auto;
  }
  .stage-cell.primary {
    grid-column: span 2;
    grid-row: span 1;
  }
  .spec-ledger-grid { grid-template-columns: 1fr; }
  .ledger-cell {
    padding: 14px 0 !important;
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .ledger-cell:last-child { border-bottom: none !important; }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 18px;
  }
  .section-head h2 { font-size: 25px; }
  .toolbar-right { width: 100%; justify-content: space-between; }
  .search-box { flex: 1; width: auto; }
  .product-grid, .cap-matrix, .workflow-rail, .footer-grid, .kit-mosaic {
    grid-template-columns: 1fr;
  }
  .workflow-step {
    padding: 18px 0 !important;
    border-right: none !important;
    border-bottom: 1px solid var(--line);
  }
  .workflow-step:last-child { border-bottom: none; }
  .panel { padding: 20px; }
  .form-row-2, .form-row-3, .result-metrics {
    grid-template-columns: 1fr;
  }
  .hero-cta .btn { width: 100%; }
  .basket-item {
    grid-template-columns: 48px minmax(0, 1fr) 82px 28px;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
