/* ─────────────────────────────────────────────────────────────────────
   American Stator — design system
   matte black + brushed steel + restrained copper
   ───────────────────────────────────────────────────────────────────── */

:root {
  /* surfaces */
  --bg:        #0A0B0C;
  --bg-2:      #111418;
  --surface:   #16191D;
  --surface-2: #1C2025;
  --line:      rgba(255,255,255,0.07);
  --line-2:    rgba(255,255,255,0.12);
  --line-3:    rgba(255,255,255,0.20);

  /* type */
  --fg:        #E8E9EA;
  --fg-2:      #A4A8AD;
  --fg-3:      #71757B;
  --fg-4:      #4B4F55;

  /* accent — electric copper */
  --accent:    #B87333;
  --accent-2:  #C98545;
  --accent-3:  #8C5524;
  --accent-tint: rgba(184,115,51,0.10);
  --accent-line: rgba(184,115,51,0.42);

  /* type stacks */
  --font-display: 'Inter Display', 'Inter', ui-sans-serif, -apple-system, system-ui, sans-serif;
  --font-body:    'Inter', ui-sans-serif, -apple-system, system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* layout */
  --container: 1240px;
  --container-narrow: 720px;
  --container-mid: 960px;
  --gutter: 32px;
  --section: 144px;   /* default section vertical rhythm */
  --section-tight: 96px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #0a0b0c; }

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* CAD grid texture — applied to body when [data-grid="on"] */
body[data-grid="on"]::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 100%);
}

/* ── Layout primitives ─────────────────────────────────────────── */

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.container-mid { max-width: var(--container-mid); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }

section { padding: var(--section) 0; position: relative; }
section.tight { padding: var(--section-tight) 0; }

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

/* ── Typography ─────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.018em;
  line-height: 1.05;
  color: var(--fg);
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 6.4vw, 88px);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.0;
}

h2 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.08;
}

h3 {
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 500;
  letter-spacing: -0.012em;
}

h4 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

p { margin: 0; color: var(--fg-2); text-wrap: pretty; }
p.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 56ch;
}

p.body, .body-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-2);
  max-width: 64ch;
}

/* small all-caps section label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow.accent { color: var(--accent); }
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow.no-tick::before { display: none; }

/* inline link with copper underline */
.link {
  color: var(--fg);
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}
.link:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 0;
  border-bottom: 1px solid var(--accent-line);
  transition: gap .18s ease, color .15s ease;
}
.link-arrow:hover { gap: 12px; color: var(--accent-2); }

/* ── Buttons ───────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  cursor: pointer;
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #0F0A05;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-3);
}
.btn-ghost:hover { border-color: var(--fg-2); background: rgba(255,255,255,0.02); }

.btn .arrow {
  width: 13px; height: 9px; flex-shrink: 0;
}

/* ── Top nav ───────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,11,12,0.78);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg);
}
.brand .mark {
  width: 28px; height: 28px;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 13.5px;
  color: var(--fg-2);
}
.nav-links a {
  color: var(--fg-2);
  transition: color .15s ease;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--fg); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 1px;
  background: var(--accent);
}
.nav-cta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 10px 16px;
  border: 1px solid var(--accent-line);
  border-radius: 3px;
  transition: background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-tint); border-color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: transparent;
  color: var(--fg-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent-line); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ── Footer ────────────────────────────────────────────────────── */

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  margin-top: 64px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer-col .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 18px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-addr {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-2);
  line-height: 1.7;
}
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a {
  color: var(--fg-2);
  font-size: 14px;
  transition: color .15s ease;
}
.footer-nav a:hover { color: var(--accent); }

.footer-email-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 12px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  transition: border-color .18s ease;
}
.footer-email-form:focus-within { border-color: var(--accent-line); }
.footer-email-form input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 14px 16px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14px;
}
.footer-email-form input::placeholder { color: var(--fg-3); }
.footer-email-form button {
  background: transparent;
  color: var(--accent);
  border: 0;
  border-left: 1px solid var(--line-2);
  padding: 0 20px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background .18s ease, color .18s ease;
  white-space: nowrap;
}
.footer-email-form button:hover { background: var(--accent); color: #0F0A05; }
.footer-email-note { font-size: 12px; color: var(--fg-3); margin-top: 10px; }

.footer-socials {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-2);
  transition: color .15s ease, border-color .15s ease;
}
.footer-socials a:hover { color: var(--accent); border-color: var(--accent-line); }
.footer-socials svg { width: 15px; height: 15px; }

.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  gap: 24px;
}
.footer-base, .footer-base a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}
.footer-base a:hover { color: var(--fg-2); }
.footer-base .legal { display: flex; gap: 18px; }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ── Status pill ──────────────────────────────────────────────── */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
}
.pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(184,115,51,0.18);
}

/* ── Cards ─────────────────────────────────────────────────────── */

.card {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color .25s ease, background .25s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--accent-line);
  background: rgba(184,115,51,0.025);
}
.card .card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-3);
}
.card .card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.card .card-sub {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-2);
  flex: 1;
}
.card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.card .card-meta .status { color: var(--accent); }
.card .card-arrow {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-2);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.card:hover .card-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #0F0A05;
  transform: translateX(2px);
}

/* ── Product hero placeholder (CAD-render style) ────────────── */

.cad-frame {
  position: relative;
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(184,115,51,0.06), transparent 70%),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.cad-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.cad-frame .cad-corner {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cad-frame .cad-tl { top: 14px; left: 16px; }
.cad-frame .cad-tr { top: 14px; right: 16px; color: var(--accent); }
.cad-frame .cad-bl { bottom: 14px; left: 16px; }
.cad-frame .cad-br { bottom: 14px; right: 16px; }

/* dimension tick — small copper L corners */
.cad-frame .cad-tick {
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--accent-line);
  border-style: solid;
}

/* ── Spec table ────────────────────────────────────────────────── */

.spec-table {
  font-family: var(--font-mono);
  font-size: 13px;
  width: 100%;
}
.spec-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.spec-row:last-child { border-bottom: 0; }
.spec-row dt {
  color: var(--fg-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11.5px;
  padding-top: 2px;
}
.spec-row dd {
  color: var(--fg);
  margin: 0;
  line-height: 1.5;
}

/* ── Forms ─────────────────────────────────────────────────────── */

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.field > label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: flex;
  justify-content: space-between;
}
.field > label .opt { color: var(--fg-4); text-transform: none; letter-spacing: 0; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea,
.field select {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 16px 18px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  outline: 0;
  transition: border-color .15s ease, background .15s ease;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-4); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  background: rgba(184,115,51,0.04);
}
.field textarea { min-height: 120px; resize: vertical; font-family: var(--font-body); }
.field.error input, .field.error textarea { border-color: #C25247; background: rgba(194,82,71,0.04); }
.field .err-msg {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #DA6A5F;
  letter-spacing: 0.04em;
  margin-top: -4px;
  display: none;
}
.field.error .err-msg { display: block; }

.checkbox-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.checkbox-row:hover { border-color: var(--line-3); }
.checkbox-row.checked { border-color: var(--accent-line); background: var(--accent-tint); }
.checkbox-row input { display: none; }
.checkbox-row .box {
  width: 18px; height: 18px;
  border: 1px solid var(--line-3);
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}
.checkbox-row.checked .box {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox-row.checked .box::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid #0F0A05;
  border-bottom: 2px solid #0F0A05;
  transform: rotate(-45deg) translate(1px, -1px);
}
.checkbox-row .check-body { display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.checkbox-row .check-title { font-size: 14.5px; color: var(--fg); font-weight: 500; }
.checkbox-row .check-sub { font-size: 13px; color: var(--fg-3); }

/* ── Catalog grid (SKU cards) ──────────────────────────────── */

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 920px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .catalog-grid { grid-template-columns: 1fr; } }

.catalog-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  transition: border-color .25s ease;
  text-decoration: none;
  color: inherit;
}
.catalog-card:hover { border-color: var(--accent-line); }

.catalog-card .viz {
  aspect-ratio: 1;
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-2);
}
.catalog-card .viz::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 24px 24px;
}
.catalog-card .viz > img,
.catalog-card .viz > svg {
  position: relative;
  z-index: 1;
  width: 78%;
  height: 78%;
  display: block;
}
.catalog-card .viz > img.invert {
  filter: invert(1);
  opacity: 0.88;
}
.catalog-card .viz .corner {
  position: absolute; width: 10px; height: 10px;
  border: 1px solid var(--accent-line); z-index: 2;
}
.catalog-card .viz .corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.catalog-card .viz .corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.catalog-card .viz .corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.catalog-card .viz .corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.catalog-card .viz .top-tag,
.catalog-card .viz .bot-tag {
  position: absolute;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; color: var(--fg-3);
  z-index: 2; text-transform: uppercase;
  white-space: nowrap;
}
.catalog-card .viz .top-tag { top: 12px; left: 22px; }
.catalog-card .viz .top-tag.accent { color: var(--accent); }
.catalog-card .viz .top-tag.right { left: auto; right: 22px; }
.catalog-card .viz .bot-tag { bottom: 12px; left: 22px; }
.catalog-card .viz .bot-tag.right { left: auto; right: 22px; }
.catalog-card .viz .placeholder-tag {
  position: absolute;
  bottom: 12px; left: 0; right: 0; text-align: center;
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.14em; color: var(--fg-4);
  z-index: 2; text-transform: uppercase;
}

.catalog-card .body {
  padding: 22px 24px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.catalog-card .pn {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; color: var(--fg-3); text-transform: uppercase;
}
.catalog-card .title {
  font-family: var(--font-display); font-size: 24px;
  letter-spacing: -0.018em; font-weight: 500; color: var(--fg);
  line-height: 1.1;
}
.catalog-card .sub {
  font-size: 13px; color: var(--fg-3); line-height: 1.5; margin-top: 2px;
}
.catalog-card .spec-mini {
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--fg-2); letter-spacing: 0.03em;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
}
.catalog-card .spec-mini .k { color: var(--fg-4); text-transform: uppercase; font-size: 10px; letter-spacing: 0.12em; }
.catalog-card .spec-mini .v { color: var(--fg); }

.catalog-card .footer {
  padding: 12px 24px 14px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3);
  gap: 12px;
  margin-top: auto;
}
.catalog-card .footer .status {
  color: var(--accent); display: inline-flex; gap: 8px; align-items: center;
}
.catalog-card .footer .status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.catalog-card .footer .pair { color: var(--fg-3); }
.catalog-card .footer .pair a {
  color: var(--fg-2); border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px; transition: color .15s ease, border-color .15s ease;
}
.catalog-card .footer .pair a:hover { color: var(--accent); border-color: var(--accent-line); }

/* spec-mini sits inside body — flex order separate from main padding */
.catalog-card .body + .spec-mini { padding-top: 14px; margin-top: 4px; }

/* ── Product detail page patterns ──────────────────────────── */

.breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-3); padding: 28px 0 0;
  flex-wrap: wrap;
}
.breadcrumb > * { white-space: nowrap; }
.breadcrumb a { color: var(--fg-3); transition: color .15s ease; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--fg-4); }
.breadcrumb .current { color: var(--fg-2); }

.pdp-hero { padding: 56px 0 96px; border-bottom: 1px solid var(--line); }
.pdp-hero-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px;
  align-items: center;
}
@media (max-width: 980px) { .pdp-hero-grid { grid-template-columns: 1fr; gap: 56px; } }

.pdp-hero-visual {
  position: relative; aspect-ratio: 1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(184,155,106,0.10), transparent 70%),
    var(--bg-2);
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-2);
}
.pdp-hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.pdp-hero-visual > img.invert,
.pdp-hero-visual > svg {
  position: relative; z-index: 1;
  width: 78%; height: 78%; display: block;
}
.pdp-hero-visual > img.invert { filter: invert(1); opacity: 0.92; }
.pdp-hero-visual .corner {
  position: absolute; width: 12px; height: 12px;
  border: 1px solid var(--accent-line); z-index: 3;
}
.pdp-hero-visual .corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.pdp-hero-visual .corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.pdp-hero-visual .corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.pdp-hero-visual .corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.pdp-hero-visual .meta {
  position: absolute; font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3); z-index: 2; white-space: nowrap;
}
.pdp-hero-visual .meta.tl { top: 18px; left: 22px; }
.pdp-hero-visual .meta.tr { top: 18px; right: 22px; color: var(--accent); }
.pdp-hero-visual .meta.bl { bottom: 18px; left: 22px; }
.pdp-hero-visual .meta.br { bottom: 18px; right: 22px; }

.pdp-hero-body h1 {
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.0; letter-spacing: -0.03em; margin: 18px 0 22px;
}
.pdp-hero-body .lede {
  font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55;
  color: var(--fg-2); max-width: 44ch; margin-bottom: 32px;
}
.pdp-hero-body .quick-spec {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin: 32px 0; padding: 24px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.pdp-hero-body .quick-spec .qs { border-right: 1px solid var(--line); padding-right: 16px; }
.pdp-hero-body .quick-spec .qs:last-child { border-right: 0; padding-right: 0; }
.pdp-hero-body .quick-spec .qs-key {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 6px;
}
.pdp-hero-body .quick-spec .qs-val {
  font-family: var(--font-display); font-size: 24px;
  letter-spacing: -0.018em; font-weight: 500; color: var(--fg);
}
.pdp-hero-body .quick-spec .qs-val .u {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent); margin-left: 4px; letter-spacing: 0.04em;
}
.pdp-hero-meta-row {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin: 20px 0 28px;
}

.pdp-section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.pdp-section:last-of-type { border-bottom: 0; }
.pdp-section-head {
  display: grid; grid-template-columns: 240px 1fr; gap: 56px;
  align-items: start; margin-bottom: 48px;
}
@media (max-width: 800px) { .pdp-section-head { grid-template-columns: 1fr; gap: 16px; } }
.pdp-section-head h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  max-width: 22ch; letter-spacing: -0.02em;
}

.variants-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (max-width: 720px) { .variants-grid { grid-template-columns: 1fr; } }
.variant-card {
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  background: var(--bg-2);
  display: grid; grid-template-columns: 200px 1fr;
}
@media (max-width: 560px) { .variant-card { grid-template-columns: 1fr; } }
.variant-card .viz {
  aspect-ratio: 1; background: var(--bg); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-2); border-right: 1px solid var(--line);
}
@media (max-width: 560px) {
  .variant-card .viz { border-right: 0; border-bottom: 1px solid var(--line); }
}
.variant-card .viz::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 20px 20px;
}
.variant-card .viz > img.invert,
.variant-card .viz > svg {
  position: relative; z-index: 1;
  width: 80%; height: 80%; display: block;
}
.variant-card .viz > img.invert { filter: invert(1); opacity: 0.88; }
.variant-card .body {
  padding: 24px 24px 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.variant-card .body .pn {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; color: var(--fg-3); text-transform: uppercase;
}
.variant-card .body .ttl {
  font-family: var(--font-display); font-size: 22px;
  letter-spacing: -0.018em; font-weight: 500; color: var(--fg);
}
.variant-card .body .ucase {
  font-size: 13.5px; color: var(--fg-3); line-height: 1.5; margin-top: 2px;
}
.variant-card .body .pair {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.10em; text-transform: uppercase; color: var(--accent);
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
.variant-card .body .pair a {
  color: var(--accent); border-bottom: 1px solid var(--accent-line);
  padding-bottom: 1px;
}

.pairs-with {
  display: grid; grid-template-columns: 200px 1fr auto;
  gap: 28px; align-items: center;
  padding: 24px;
  border: 1px solid var(--accent-line); border-radius: 6px;
  background: linear-gradient(180deg, rgba(184,155,106,0.05), transparent 100%);
}
@media (max-width: 720px) { .pairs-with { grid-template-columns: 1fr; gap: 20px; } }
.pairs-with .pw-viz {
  aspect-ratio: 1; background: var(--bg); border: 1px solid var(--line);
  border-radius: 4px;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-2);
}
.pairs-with .pw-viz::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 18px 18px;
}
.pairs-with .pw-viz > svg { position: relative; z-index: 1; width: 80%; height: 80%; }
.pairs-with .pw-eyebrow {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase;
  margin-bottom: 8px;
}
.pairs-with .pw-title {
  font-family: var(--font-display); font-size: 24px;
  letter-spacing: -0.018em; color: var(--fg); margin-bottom: 6px;
}
.pairs-with .pw-sub { font-size: 14px; color: var(--fg-2); line-height: 1.5; }
.pairs-with .pw-pn {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; color: var(--fg-3); text-transform: uppercase;
  margin-top: 8px;
}

.related-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
@media (max-width: 900px) { .related-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .related-strip { grid-template-columns: 1fr; } }
.related-card {
  border: 1px solid var(--line); border-radius: 6px;
  padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
  transition: border-color .2s ease, background .2s ease;
}
.related-card:hover { border-color: var(--accent-line); background: rgba(184,155,106,0.03); }
.related-card.current {
  border-color: var(--accent-line); background: rgba(184,155,106,0.05);
}
.related-card .rc-num {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.10em; color: var(--accent); width: 40px; flex-shrink: 0;
}
.related-card .rc-body { flex: 1; min-width: 0; }
.related-card .rc-title {
  font-family: var(--font-display); font-size: 16px;
  color: var(--fg); font-weight: 500; letter-spacing: -0.01em;
}
.related-card .rc-sub {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.10em; color: var(--fg-3); text-transform: uppercase;
  margin-top: 4px;
}

.use-cases {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 800px) { .use-cases { grid-template-columns: 1fr; } }
.use-case {
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.use-case:last-child { border-right: 0; }
@media (max-width: 800px) { .use-case { border-right: 0; } }
.use-case .uc-num {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; color: var(--accent); margin-bottom: 12px;
}
.use-case .uc-title {
  font-family: var(--font-display); font-size: 18px;
  letter-spacing: -0.01em; font-weight: 500; color: var(--fg); margin-bottom: 6px;
}
.use-case .uc-sub { font-size: 13px; color: var(--fg-3); line-height: 1.55; }

body[data-surface="charcoal"] { --bg: #111418; --bg-2: #181C21; }
body[data-surface="bluenight"] { --bg: #0A0E14; --bg-2: #121823; }

body[data-accent="brass"] {
  --accent: #B89B6A;
  --accent-2: #CFB07F;
  --accent-3: #8C7549;
  --accent-tint: rgba(184,155,106,0.10);
  --accent-line: rgba(184,155,106,0.42);
}
body[data-accent="brick"] {
  --accent: #B85F3C;
  --accent-2: #CC7551;
  --accent-3: #8C462D;
  --accent-tint: rgba(184,95,60,0.10);
  --accent-line: rgba(184,95,60,0.42);
}

/* ── Utility ───────────────────────────────────────────────────── */

.hairline-top { border-top: 1px solid var(--line); padding-top: 32px; }
.kbd-mono { font-family: var(--font-mono); color: var(--fg-3); }
.flex-row { display: flex; align-items: center; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-12 { margin-top: 12px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.muted { color: var(--fg-3); }
