/* ==========================================================================
   DrySpool - Swiss Industrial Workshop, Polymer Swatch Wall & Hardware Bench
   Palette: Brushed Anodized Aluminum (#eeede8), Studio Cell White (#ffffff),
   Blueprint Gridline (#18181b), Signal Orange (#ff5500), Matte Graphite (#141517).
   Typography: Space Grotesk + IBM Plex Sans + IBM Plex Mono.
   ========================================================================== */

:root {
  --alu: #eeede8;
  --alu-deep: #e3e1da;
  --alu-panel: #f5f4f0;
  --cell: #ffffff;
  --graphite: #141517;
  --graphite-2: #1d1f23;
  --graphite-3: #282b31;
  --grid: #18181b;
  --grid-muted: #c8c6bd;
  --grid-faint: #dcdad2;
  --ink: #141517;
  --ink-soft: #32353b;
  --muted: #575b64;
  --signal: #ff5500;
  --signal-hover: #e04800;
  --signal-tint: #fff1ea;
  --ok: #137347;
  --ok-bg: #e7f6ee;
  --warn: #b85d00;
  --warn-bg: #fff5e5;
  --stop: #c82828;
  --stop-bg: #fdecec;
  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1360px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--alu);
}

body {
  margin: 0;
  background-color: var(--alu);
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(24, 24, 27, 0.014) 0px,
      rgba(24, 24, 27, 0.014) 1px,
      transparent 1px,
      transparent 3px
    );
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

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

.fine {
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.48;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--graphite);
  color: var(--cell);
  border: 1px solid var(--signal);
  font-family: var(--mono);
  font-size: 0.82rem;
}
.skip:focus {
  left: 12px;
}

/* Hide Hunter Thomas feedback floating pill until explicitly triggered */
#htfb-btn {
  display: none !important;
}
body.show-feedback #htfb-btn {
  display: inline-flex !important;
}

/* ==========================================================================
   Swiss Technical Header Bar (1px solid #18181b Architectural Grid)
   ========================================================================== */
.top {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(238, 237, 232, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grid);
}

.top-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 64px;
  gap: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 8px 18px 8px 0;
  border-right: 1px solid var(--grid);
  min-height: 44px;
  flex-shrink: 0;
}

.logo-box {
  width: 38px;
  height: 38px;
  display: inline-flex;
  border: 1px solid var(--grid);
  background: var(--graphite);
  flex-shrink: 0;
}

.logo-mark {
  width: 100%;
  height: 100%;
}

.logo-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--ink);
}
.wordmark b {
  color: var(--signal);
  font-weight: 700;
}

.logo-sub {
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: stretch;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 0.77rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  border-right: 1px solid var(--grid-muted);
  white-space: nowrap;
  position: relative;
  transition: background 0.14s ease, color 0.14s ease;
}

.nav a:hover {
  background: var(--cell);
  color: var(--ink);
}

.nav a.active {
  background: var(--graphite);
  color: var(--cell);
}
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--signal);
}

.nav a.nav-signal {
  color: var(--signal);
  font-weight: 600;
}
.nav a.nav-signal.active {
  background: var(--signal);
  color: var(--cell);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  flex-shrink: 0;
}

.tool-key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  background: var(--cell);
  border: 1px solid var(--grid);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--grid);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.14s ease;
}
.tool-key:hover {
  background: var(--signal-tint);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--grid);
}
.tool-key svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.saved-key em {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--signal);
  color: var(--cell);
  font-size: 0.72rem;
  font-weight: 600;
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  background: var(--graphite);
  color: var(--cell);
  border: 1px solid var(--grid);
  cursor: pointer;
  font-size: 0.76rem;
}

.menu-ico {
  width: 15px;
  height: 11px;
  position: relative;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.menu-ico::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 3px;
  height: 2px;
  background: currentColor;
}

/* Mobile Sheet */
.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(20, 21, 23, 0.65);
}
.menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 92vw);
  background: var(--alu);
  border-left: 1px solid var(--grid);
  display: flex;
  flex-direction: column;
}
.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--grid);
  background: var(--cell);
}
.menu-body {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.menu-body a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid var(--grid-muted);
  font-family: var(--mono);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.menu-body a.active {
  background: var(--graphite);
  color: var(--cell);
}

/* ==========================================================================
   Buttons & Tactile Hardware Controls (Minimum 44px touch targets)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--grid);
  background: var(--cell);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--grid);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.14s ease, color 0.14s ease;
}
.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--grid);
}
.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--grid);
}

.btn.signal,
.btn.amber {
  background: var(--signal);
  color: var(--cell);
  border-color: var(--grid);
}
.btn.signal:hover,
.btn.amber:hover {
  background: var(--signal-hover);
}

.btn.primary {
  background: var(--graphite);
  color: var(--cell);
  border-color: var(--grid);
}
.btn.primary:hover {
  background: var(--graphite-3);
}

.btn.emerald {
  background: var(--ok);
  color: var(--cell);
  border-color: var(--grid);
}

.btn.ghost {
  background: var(--cell);
  color: var(--ink);
}
.btn.ghost:hover {
  background: var(--alu-panel);
}

.btn.sm {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.75rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--signal);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--signal);
  display: inline-block;
}

/* ==========================================================================
   Hero Blueprint Sheet: Polymer Swatch Wall + 4-Cell Studio Spool Showcase
   ========================================================================== */
.hero-sheet {
  border-bottom: 1px solid var(--grid);
  padding: 28px 0 36px;
  background:
    linear-gradient(90deg, rgba(24, 24, 27, 0.03) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(0deg, rgba(24, 24, 27, 0.03) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--alu);
}

.blueprint-frame {
  border: 1px solid var(--grid);
  background: var(--alu-panel);
  box-shadow: 5px 5px 0 var(--grid);
}

.blueprint-datum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--grid);
  background: var(--graphite);
  color: var(--alu);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.blueprint-datum b {
  color: var(--signal);
  font-weight: 600;
}

.hero-blueprint-grid {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
}

.hero-left-bay {
  padding: 28px 28px 24px;
  border-right: 1px solid var(--grid);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.hero-h {
  margin: 10px 0 12px;
  font-family: var(--display);
  font-size: clamp(2.15rem, 3.8vw, 3.35rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-h span {
  color: var(--signal);
}

.hero-lede {
  margin: 0 0 18px;
  max-width: 58ch;
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.52;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Interactive 8-Polymer Swatch Wall inside Hero */
.swatch-wall-box {
  border: 1px solid var(--grid);
  background: var(--cell);
}

.swatch-wall-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--grid);
  background: var(--alu);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.swatch-wall-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.swatch-tile {
  appearance: none;
  background: var(--cell);
  border: 0;
  border-right: 1px solid var(--grid-muted);
  border-bottom: 1px solid var(--grid-muted);
  padding: 10px 11px;
  min-height: 76px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  position: relative;
  transition: background 0.14s ease;
}
.swatch-tile:nth-child(4n) {
  border-right: 0;
}
.swatch-tile:nth-child(n+5) {
  border-bottom: 0;
}
.swatch-tile:hover {
  background: var(--alu-panel);
}
.swatch-tile.active {
  background: var(--graphite);
  color: var(--cell);
}
.swatch-tile.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--signal);
}

.swatch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.swatch-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.swatch-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(20, 21, 23, 0.4);
  flex-shrink: 0;
}
.swatch-tile.active .swatch-dot {
  border-color: rgba(255, 255, 255, 0.7);
}

.swatch-strand {
  height: 5px;
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(20, 21, 23, 0.18);
}

.swatch-meta {
  font-family: var(--mono);
  font-size: 0.69rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.swatch-tile.active .swatch-meta {
  color: #d3d5dc;
}

.swatch-console {
  background: var(--graphite);
  color: var(--alu);
  border-top: 1px solid var(--grid);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.76rem;
}
.swatch-console strong {
  color: var(--signal);
  font-weight: 600;
}
.swatch-console a {
  color: var(--cell);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Right Blueprint Bay: 4 Crisp #ffffff Studio Spool/Hardware Cells */
.hero-right-bay {
  display: flex;
  flex-direction: column;
  background: var(--cell);
}

.hero-right-head {
  padding: 10px 16px;
  border-bottom: 1px solid var(--grid);
  background: var(--alu);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
}

.hero-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 15px;
  background: var(--cell);
  border-right: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
  transition: background 0.15s ease;
}
.hero-cell:nth-child(2n) {
  border-right: 0;
}
.hero-cell:nth-child(n+3) {
  border-bottom: 0;
}
.hero-cell:hover {
  background: var(--signal-tint);
}

.hero-cell-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.hero-cell-code em {
  font-style: normal;
  color: var(--signal);
  font-weight: 600;
}

.hero-cell-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 156px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cell);
  margin: 0 auto 10px;
  padding: 6px;
}
.hero-cell-img img {
  max-height: 144px;
  width: auto;
  object-fit: contain;
}

.hero-cell-title {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.hero-cell-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--grid-muted);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ==========================================================================
   Section Headers, Category Strips & Blueprint Dividers
   ========================================================================== */
.zone-band {
  padding: 36px 0;
  border-bottom: 1px solid var(--grid);
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 34px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--grid);
  flex-wrap: wrap;
}
.zone-band .sec-head:first-child {
  margin-top: 0;
}

.sec-head h2 {
  margin: 4px 0 4px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.sec-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 68ch;
}

.page-head {
  padding: 30px 0 22px;
  border-bottom: 1px solid var(--grid);
  margin-bottom: 22px;
}
.page-head h1 {
  margin: 8px 0 10px;
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.lede {
  margin: 0;
  max-width: 72ch;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

.cat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0 4px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 13px;
  background: var(--cell);
  border: 1px solid var(--grid);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}
.cat-chip:hover {
  background: var(--signal-tint);
}
.cat-chip.active {
  background: var(--graphite);
  color: var(--cell);
}
.cat-chip em {
  font-style: normal;
  padding: 1px 6px;
  background: var(--alu);
  color: var(--ink);
  border: 1px solid var(--grid-muted);
  font-size: 0.7rem;
}
.cat-chip.active em {
  background: var(--signal);
  color: var(--cell);
  border-color: var(--signal);
}

/* ==========================================================================
   Polymer Drying Lab, Thermal Readout Console & Compatibility Matrix
   ========================================================================== */
.bench-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  border: 1px solid var(--grid);
  background: var(--cell);
  box-shadow: 4px 4px 0 var(--grid);
}

.bench-panel {
  padding: 22px;
  border-right: 1px solid var(--grid);
  background: var(--alu-panel);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bench-dark {
  padding: 22px;
  background: var(--graphite);
  color: var(--alu);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ctrl-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ctrl-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.ctrl-select,
.ctrl-input {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  background: var(--cell);
  border: 1px solid var(--grid);
  font-size: 0.9rem;
  color: var(--ink);
  border-radius: 0;
}
.ctrl-select:focus,
.ctrl-input:focus {
  outline: 2px solid var(--signal);
  outline-offset: -1px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dial-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 13px;
  background: var(--cell);
  border: 1px solid var(--grid);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}
.dial-pill:hover {
  background: var(--signal-tint);
}
.dial-pill.active {
  background: var(--signal);
  color: var(--cell);
  font-weight: 600;
}

.notice-bar {
  padding: 12px 14px;
  background: var(--cell);
  border: 1px solid var(--grid);
  border-left: 4px solid var(--signal);
  font-size: 0.86rem;
  line-height: 1.48;
  color: var(--ink-soft);
}

.compat-banner {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left-width: 4px;
  font-size: 0.86rem;
  line-height: 1.46;
  background: var(--graphite-2);
}
.compat-banner.ok {
  border-left-color: #22c55e;
}
.compat-banner.warn {
  border-left-color: #f59e0b;
}
.compat-banner.stop {
  border-left-color: #ef4444;
}
.compat-banner strong {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--cell);
  display: block;
}

.readout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.readout-box {
  padding: 13px 14px;
  background: var(--graphite-2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.readout-box small {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a3a8b3;
}
.readout-box strong {
  font-family: var(--mono);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--cell);
}
.readout-box strong em {
  font-style: normal;
  color: var(--signal);
}
.readout-box span {
  font-size: 0.76rem;
  color: #9ba0ab;
}

.spec-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.spec-detail-list li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  line-height: 1.45;
  color: #dcdfe6;
}
.spec-detail-list li b {
  display: inline-block;
  min-width: 195px;
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ba0ab;
}

/* 8-Polymer Technical Matrix Table */
.matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--grid);
  background: var(--cell);
  box-shadow: 3px 3px 0 var(--grid);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.matrix-table th {
  background: var(--graphite);
  color: var(--alu);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 11px 12px;
  border-right: 1px solid var(--graphite-3);
  white-space: nowrap;
}
.matrix-table td {
  padding: 10px 12px;
  border-top: 1px solid var(--grid-muted);
  border-right: 1px solid var(--grid-faint);
  vertical-align: middle;
}
.matrix-table tr.is-active {
  background: var(--signal-tint);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 0.71rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--grid);
  white-space: nowrap;
}
.tag-pill.amber,
.tag-pill.signal {
  background: var(--signal-tint);
  color: #b33800;
  border-color: var(--signal);
}
.tag-pill.emerald {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: var(--ok);
}

/* Spool Meter */
.spool-meter {
  padding: 13px 14px;
  background: var(--graphite-2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spool-meter-track {
  height: 10px;
  background: #0d0e10;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}
.spool-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--signal), #ff884d);
}

/* ==========================================================================
   Vitamin Hardware Callout Strip (M3 Heat-Set Inserts, 608/Shaft Bearings, PTFE)
   ========================================================================== */
.vitamin-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--grid);
  background: var(--cell);
  margin-bottom: 22px;
  box-shadow: 3px 3px 0 var(--grid);
}

.vitamin-cell {
  padding: 16px 18px;
  border-right: 1px solid var(--grid);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vitamin-cell:last-child {
  border-right: 0;
}
.vitamin-cell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--signal);
  font-weight: 600;
}
.vitamin-cell h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.06rem;
}
.vitamin-cell p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ==========================================================================
   Printable Creator Model Hardware BOMs (#models & Home Preview)
   ========================================================================== */
.eco-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.eco-card {
  border: 1px solid var(--grid);
  background: var(--cell);
  box-shadow: 4px 4px 0 var(--grid);
}

.eco-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--grid);
  background: var(--alu-panel);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.eco-head h2,
.eco-head h3 {
  margin: 6px 0 8px;
  font-family: var(--display);
  font-size: 1.38rem;
  letter-spacing: -0.02em;
}
.eco-head p {
  margin: 0;
  max-width: 68ch;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.eco-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.bom-panel {
  padding: 18px 22px;
  border-right: 1px solid var(--grid);
}
.bom-panel:last-child {
  border-right: 0;
}
.bom-panel h3,
.bom-panel h4 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--grid-muted);
}

.bom-list {
  display: flex;
  flex-direction: column;
}

.bom-row {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--grid-muted);
}
.bom-row:last-child {
  border-bottom: 0;
}
.bom-row img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border: 1px solid var(--grid-muted);
  background: var(--cell);
  padding: 2px;
}
.bom-row-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bom-row-info small {
  font-family: var(--mono);
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--signal);
}
.bom-row-info a {
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bom-row-info a:hover {
  text-decoration: underline;
}
.bom-row-price {
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 600;
}

/* ==========================================================================
   Product Cards (#ffffff Studio Hardware Cells on Architectural Grid)
   ========================================================================== */
.prod-grid,
.stream-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pcard {
  display: flex;
  flex-direction: column;
  background: var(--cell);
  border: 1px solid var(--grid);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.pcard:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--grid);
}

.pcard-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--cell);
  border-bottom: 1px solid var(--grid);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcard-stage a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcard-stage img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.badge-deal {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  background: var(--signal);
  color: var(--cell);
  border: 1px solid var(--grid);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-date {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 2px 7px;
  background: var(--alu);
  border: 1px solid var(--grid);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.save-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cell);
  border: 1px solid var(--grid);
  cursor: pointer;
  color: var(--ink);
  transition: background 0.14s ease, color 0.14s ease;
}
.save-btn:hover {
  background: var(--alu);
}
.save-btn.saved {
  background: var(--signal);
  color: var(--cell);
}
.save-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.save-btn.saved svg {
  fill: currentColor;
}

.pcard-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.pcard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.pcard-brand {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--signal);
}
.pcard-brand:hover {
  text-decoration: underline;
}

.pcard-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.34;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard-title a:hover {
  color: var(--signal);
}

.pcard-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.size-pill {
  padding: 2px 6px;
  background: var(--alu-panel);
  border: 1px solid var(--grid-muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-soft);
}
.size-pill.deal {
  border-color: var(--signal);
  background: var(--signal-tint);
  color: #a83200;
}

.pcard-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--grid-faint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price-block {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.price-now {
  font-family: var(--mono);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}
.price-now.sale {
  color: var(--signal);
}
.price-was {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: line-through;
}

.shop-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 11px;
  background: var(--alu);
  border: 1px solid var(--grid);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}
.shop-link:hover {
  background: var(--graphite);
  color: var(--cell);
}

/* ==========================================================================
   Kits, Printers, Videos, Brands & Search Toolbars
   ========================================================================== */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--alu-panel);
  border: 1px solid var(--grid);
  margin-bottom: 18px;
}
.toolbar input[type="search"] {
  flex: 1 1 240px;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--cell);
  border: 1px solid var(--grid);
  font-family: var(--mono);
  font-size: 0.83rem;
}
.toolbar select {
  min-height: 44px;
  padding: 8px 12px;
  background: var(--cell);
  border: 1px solid var(--grid);
  font-family: var(--mono);
  font-size: 0.78rem;
}
.toolbar-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.kit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.kcard {
  background: var(--cell);
  border: 1px solid var(--grid);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 3px 3px 0 var(--grid);
}

.kcard-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--grid);
  background: var(--cell);
}
.kcard-slot {
  aspect-ratio: 1 / 1;
  padding: 8px;
  border-right: 1px solid var(--grid-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.kcard-slot:last-child {
  border-right: 0;
}
.kcard-slot img {
  max-height: 100%;
  object-fit: contain;
}

.kcard-title {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 1.22rem;
}
.kcard-sum {
  margin: 0;
  font-size: 0.89rem;
  color: var(--ink-soft);
}
.kcard-items {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--grid-muted);
}
.kcard-items li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--grid-faint);
  font-size: 0.83rem;
}
.kcard-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--grid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Printer Spec Cards */
.printer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.prcard {
  background: var(--cell);
  border: 1px solid var(--grid);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 3px 3px 0 var(--grid);
}
.prcard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--grid);
}
.prcard-title {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 1.18rem;
}
.prcard-kin {
  padding: 3px 8px;
  background: var(--graphite);
  color: var(--cell);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}
.prcard-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.prcard-specs small {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--muted);
}
.prcard-specs strong {
  font-family: var(--mono);
  font-size: 0.84rem;
}
.spec-source-pill {
  display: inline-block;
  padding: 4px 9px;
  background: var(--alu);
  border: 1px solid var(--grid);
  font-family: var(--mono);
  font-size: 0.7rem;
}
.prcard-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Video Cards */
.vid-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.vcard {
  background: var(--cell);
  border: 1px solid var(--grid);
  display: flex;
  flex-direction: column;
}
.vcard-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--graphite);
  border-bottom: 1px solid var(--grid);
  overflow: hidden;
}
.vcard-stage img,
.vcard-stage iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.vid-dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  background: rgba(20, 21, 23, 0.9);
  color: var(--cell);
  font-family: var(--mono);
  font-size: 0.72rem;
}
.vcard-play {
  position: absolute;
  inset: 0;
  background: rgba(20, 21, 23, 0.18);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.play-pill {
  width: 52px;
  height: 52px;
  background: var(--signal);
  color: var(--cell);
  border: 1px solid var(--grid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0 var(--grid);
}
.play-pill svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.vcard-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.vcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
}
.vcard-ch {
  font-weight: 600;
  color: var(--signal);
}
.vcard-lane {
  padding: 2px 6px;
  background: var(--alu);
  border: 1px solid var(--grid-muted);
  font-family: var(--mono);
  font-size: 0.68rem;
}
.vcard-title {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.36;
}
.vcard-stats {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--grid-faint);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
}

/* Brand, Platform, Detail & Legal Cards */
.brand-grid,
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bcard,
.platform-card {
  background: var(--cell);
  border: 1px solid var(--grid);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 3px 3px 0 var(--grid);
}
.bcard-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--grid);
  padding-bottom: 8px;
}
.bcard-top h3,
.platform-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
}
.bcard-facts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: var(--alu-panel);
  border: 1px solid var(--grid-muted);
  font-size: 0.84rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  padding: 20px 0 32px;
}
.detail-photo {
  background: var(--cell);
  border: 1px solid var(--grid);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0 var(--grid);
}
.detail-info h1 {
  margin: 8px 0 12px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  line-height: 1.12;
}
.detail-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.detail-price .price-now {
  font-size: 1.55rem;
}
.detail-box {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--cell);
  border: 1px solid var(--grid);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 32px;
}
.legal-card,
.remove-box {
  background: var(--cell);
  border: 1px solid var(--grid);
  padding: 20px;
  box-shadow: 3px 3px 0 var(--grid);
}
.legal-card h2,
.remove-box h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.18rem;
}
.partners-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  padding-bottom: 32px;
  align-items: start;
}
.faq-list details {
  background: var(--cell);
  border: 1px solid var(--grid);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.faq-list summary {
  font-family: var(--display);
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.empty-box {
  padding: 32px;
  background: var(--cell);
  border: 1px solid var(--grid);
  text-align: center;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 26px 0 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  padding: 11px 18px;
  background: var(--graphite);
  color: var(--cell);
  border: 1px solid var(--signal);
  font-family: var(--mono);
  font-size: 0.8rem;
  box-shadow: 3px 3px 0 var(--grid);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Footer (Matte Graphite Blueprint Block)
   ========================================================================== */
.foot {
  margin-top: 48px;
  background: var(--graphite);
  color: var(--alu);
  border-top: 2px solid var(--grid);
  padding: 40px 0 48px;
}

.foot-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
}

.foot-id {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.foot .wordmark {
  color: var(--cell);
}
.foot-spec {
  font-size: 0.7rem;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #b2b6c0;
}
.foot-tag {
  margin: 0 0 10px;
  color: #cfd2da;
  font-size: 0.92rem;
  max-width: 48ch;
}
.foot-fine,
.foot-fee {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: #969ba7;
  max-width: 54ch;
}

.foot-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 14px;
  align-content: start;
}
.foot-nav a,
.foot-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 0.77rem;
  color: #dcdfe6;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.foot-nav a:hover,
.foot-link:hover {
  color: var(--signal);
}
.foot-fb-dot {
  min-height: 44px;
  min-width: 44px;
  background: none;
  border: 0;
  color: #6b707c;
  cursor: pointer;
  text-align: left;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1120px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .hero-blueprint-grid,
  .bench-grid,
  .eco-columns,
  .detail-grid,
  .partners-wrap,
  .foot-inner {
    grid-template-columns: 1fr;
  }
  .hero-left-bay,
  .bench-panel,
  .bom-panel {
    border-right: 0;
    border-bottom: 1px solid var(--grid);
  }
  .prod-grid,
  .stream-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .printer-grid,
  .vid-grid,
  .brand-grid,
  .platform-grid,
  .vitamin-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vitamin-cell {
    border-bottom: 1px solid var(--grid);
  }
}

@media (max-width: 760px) {
  .wrap {
    padding: 0 16px;
  }
  .hide-sm {
    display: none;
  }
  .swatch-wall-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .swatch-tile:nth-child(2n) {
    border-right: 0;
  }
  .swatch-tile:nth-child(n+5) {
    border-bottom: 1px solid var(--grid-muted);
  }
  .swatch-tile:nth-child(n+7) {
    border-bottom: 0;
  }
  .prod-grid,
  .stream-grid,
  .kit-grid,
  .printer-grid,
  .vid-grid,
  .brand-grid,
  .platform-grid,
  .legal-grid,
  .vitamin-strip {
    grid-template-columns: 1fr;
  }
  .readout-grid,
  .foot-nav {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 374px) {
  .wrap {
    padding: 0 12px;
  }
  .hero-left-bay {
    padding: 18px 14px;
  }
  .hero-quad,
  .readout-grid,
  .foot-nav {
    grid-template-columns: 1fr;
  }
  .hero-cell {
    border-right: 0;
    border-bottom: 1px solid var(--grid);
  }
}


/* ==========================================================================
   V4 Modernized Header, Full-Bleed Photo-Wall Hero & Creators Roster
   ========================================================================== */
body {
  background-image: none;
  overflow-x: clip;
}

.top {
  background: rgba(16, 18, 22, 0.97);
  border-bottom: 1px solid #272a33;
  color: #f3f4f6;
}

.top-inner {
  align-items: center;
  min-height: 68px;
  gap: 16px;
}

.logo {
  border-right: none;
  padding: 6px 8px 6px 0;
  gap: 11px;
}

.logo-box {
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
}

.wordmark {
  color: #ffffff;
  font-size: 1.24rem;
}
.foot .wordmark,
.menu-top .wordmark {
  color: inherit;
}

.logo-sub {
  color: #9ca3af;
}

.nav {
  align-items: center;
  gap: 4px;
}

.nav a {
  border-right: none;
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.85rem;
  font-weight: 500;
  color: #cbd5e1;
  border-radius: 6px;
  padding: 0 12px;
  min-height: 40px;
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.nav a.active::after {
  left: 10px;
  right: 10px;
  height: 2px;
}

.nav a.nav-shop-pill {
  background: var(--signal);
  color: #ffffff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 18px;
  min-height: 38px;
  margin-right: 4px;
}
.nav a.nav-shop-pill:hover,
.nav a.nav-shop-pill.active {
  background: #ff6a1a;
  color: #ffffff;
}
.nav a.nav-shop-pill.active::after {
  display: none;
}

.nav a.nav-signal {
  color: #ff8547;
}

.top .tool-key,
.top .menu-btn {
  background: #1d2028;
  border-color: #323643;
  color: #f3f4f6;
  border-radius: 6px;
}
.top .tool-key:hover,
.top .menu-btn:hover {
  background: #272b36;
  border-color: #4b5265;
}

.hero2 {
  position: relative;
  overflow: hidden;
  background: #0d0f13;
  color: #f5f5f4;
  min-height: 540px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #232630;
}

.hero2 .wall {
  position: absolute;
  inset: -12% -6% -12% 24%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  transform: rotate(-7deg) scale(1.08);
  transform-origin: center center;
  opacity: 0.94;
}

.hero2 .wall-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero2 .wall-col-1,
.hero2 .wall-col-3 {
  transform: translateY(-34px);
}
.hero2 .wall-col-2 {
  transform: translateY(18px);
}
.hero2 .wall-col-4 {
  transform: translateY(-16px);
}

.hero2 .wall-cell {
  display: block;
  background: #ffffff;
  border-radius: 10px;
  padding: 8px;
  aspect-ratio: 1 / 1;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.54);
  overflow: hidden;
  transition: transform 0.2s ease;
}
.hero2 .wall-cell:hover {
  transform: scale(1.04);
}
.hero2 .wall-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero2-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 45%, rgba(255, 85, 0, 0.18), transparent 46%),
    linear-gradient(90deg, #0d0f13 0%, #0d0f13 38%, rgba(13, 15, 19, 0.89) 56%, rgba(13, 15, 19, 0.34) 80%, rgba(13, 15, 19, 0.18) 100%),
    linear-gradient(180deg, rgba(13, 15, 19, 0.38) 0%, rgba(13, 15, 19, 0) 26%, rgba(13, 15, 19, 0.65) 100%);
  pointer-events: none;
}

.hero2-inner {
  position: relative;
  z-index: 2;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero2-body {
  max-width: 615px;
}

.hero2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(255, 85, 0, 0.22);
}

.hero2-h {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.65rem, 5.1vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #ffffff;
}
.hero2-h span {
  color: #ff7a33;
}

.hero2-sub {
  margin: 0 0 24px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #d1d5db;
  max-width: 570px;
}

.hero2-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero2-shop-btn {
  padding-left: 28px;
  padding-right: 28px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 6px;
}

.hero2-vid-btn,
.hero2-ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
}
.hero2-vid-btn:hover,
.hero2-ghost-btn:hover {
  background: rgba(255, 255, 255, 0.19);
}

.play-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(255, 85, 0, 0.24);
}

.hero2-ftc {
  margin: 18px 0 0;
  font-size: 0.78rem;
  color: #9ca3af;
}
.hero2-ftc a {
  text-decoration: underline;
  color: #e5e7eb;
}

.cat-ribbon-ds {
  background: var(--cell);
  border-bottom: 1px solid var(--grid-muted);
  padding: 14px 0;
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.ccard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: var(--cell);
  border: 1px solid var(--grid-muted);
  border-radius: 8px;
}

.ccard-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ccard-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--graphite);
  color: #ff8547;
  border: 2px solid var(--signal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.ccard-meta h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}
.ccard-meta span {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 2px;
}

.ccard-bio {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.52;
  color: var(--ink-soft);
}

.ccard-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 960px) {
  .hero2 .wall {
    inset: -8% -18% -8% 12%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    opacity: 0.42;
  }
  .hero2-shade {
    background: linear-gradient(180deg, rgba(13, 15, 19, 0.82) 0%, rgba(13, 15, 19, 0.92) 100%);
  }
}

@media (max-width: 640px) {
  .hero2 {
    min-height: 460px;
  }
  .hero2-inner {
    padding-top: 42px;
    padding-bottom: 42px;
  }
}

/* ==========================================================================
   V5 Editorial 3-Photo Brand Mosaic & Illustrated Vitamin Strip
   ========================================================================== */
.eyebrow::before {
  border-radius: 50%;
}

.nav a {
  padding: 0 9px;
  font-size: 0.83rem;
  white-space: nowrap;
}

.vitamin-media {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vitamin-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  background: var(--cell);
  border: 1px solid var(--grid);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vitamin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vitamin-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bgrid-v5 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bcard-v5 {
  background: var(--cell);
  border: 1px solid var(--grid);
  box-shadow: 3px 3px 0 var(--grid);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.bcard-v5:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--grid);
}

.bmosaic {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px;
  aspect-ratio: 16 / 9.5;
  background: var(--alu-deep);
  border-bottom: 1px solid var(--grid);
  overflow: hidden;
  padding: 4px;
}

.bmosaic-cell {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--grid-muted);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bmosaic-cell.hero {
  grid-row: 1 / span 2;
  padding: 10px;
}

.bmosaic-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bmosaic-deal {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  background: var(--signal);
  color: #ffffff;
  border: 1px solid var(--grid);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bcard-v5-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.bcard-v5-pills {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.bpill-domain {
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--alu-panel);
  border: 1px solid var(--grid-muted);
  padding: 2px 8px;
}

.bpill-skus {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--signal-tint);
  border: 1px solid var(--signal);
  padding: 2px 8px;
}

.bcard-v5-title {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.2;
}
.bcard-v5-title a:hover {
  color: var(--signal);
}

.bcard-v5-focus {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.48;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bcard-v5-ship {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.73rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bcard-v5-actions {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 1120px) {
  .bgrid-v5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .bgrid-v5 {
    grid-template-columns: 1fr;
  }
}

/* ---------------- V6 Mobile fit: no side-to-side scroll at 320-480px ---------------- */
@media (max-width: 640px) {
  .hero-blueprint-grid,
  .bench-grid,
  .eco-columns,
  .detail-grid,
  .partners-wrap,
  .foot-inner,
  .bgrid-v5,
  .creator-grid,
  .legal-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  select,
  input:not([type="checkbox"]):not([type="radio"]) {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .filter-bar,
  .toolbar,
  .ctrl-group,
  .filter-bar > *,
  .toolbar > * {
    min-width: 0;
    max-width: 100%;
  }
  .sec-head,
  .section-head,
  .bcard-v5-actions {
    flex-wrap: wrap;
  }
  .toast {
    left: 12px;
    right: 12px;
    max-width: calc(100vw - 24px);
  }
  .vmodal,
  .vmodal-box {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .top-inner {
    gap: 8px;
  }
  .top-inner > .logo {
    min-width: 0;
    flex-shrink: 1;
    gap: 7px;
  }
  .logo > * {
    min-width: 0;
  }
  .logo .logo-mark {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  .logo .logo-box {
    flex-shrink: 0;
  }
  .logo .wordmark,
  .logo .wordmark-main {
    font-size: clamp(0.92rem, 4.6vw, 1.3rem);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .logo .wordmark-sub,
  .logo .logo-sub {
    display: none;
  }
  .top-actions {
    gap: 6px;
    flex-shrink: 0;
    min-width: 0;
  }
  .top-actions .hide-sm {
    display: none;
  }
  .top-actions > a {
    min-width: 42px;
    min-height: 42px;
    padding: 0 9px;
    gap: 5px;
    justify-content: center;
  }
  .top-actions .menu-btn {
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    justify-content: center;
  }
  .top-actions .menu-btn > span:not(.menu-ico) {
    display: none;
  }
}
@media (max-width: 374px) {
  .top-actions {
    gap: 4px;
  }
  .top-actions > a {
    min-width: 40px;
    min-height: 40px;
    padding: 0 7px;
    gap: 4px;
  }
  .top-actions .menu-btn {
    min-width: 40px;
    min-height: 40px;
    padding: 0 11px;
  }
  .logo .logo-mark {
    width: 28px;
    height: 28px;
  }
}
