/* =========================================================
   AETHERMINE — Demo (workbench layout)
   ========================================================= */

:root {
  --bg: #07080a;
  --bg-2: #0c0d10;
  --bg-3: #14110c;
  --ink: #f4ede0;
  --ink-2: #cfc7b6;
  --ink-3: #8a8273;
  --ink-4: #4d473d;
  --line: rgba(244, 237, 224, 0.08);
  --line-2: rgba(244, 237, 224, 0.16);
  --gold: #e6c187;
  --gold-2: #f4d9a3;
  --copper: #c97a4a;
  --aether: #6d8fb8;

  --serif: 'Instrument Serif', serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --container: 1280px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
img, svg { display: block; max-width: 100%; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }

.atmosphere { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.32; mix-blend-mode: screen; }
.orb-1 { width: 800px; height: 800px; top: -300px; left: -200px;
  background: radial-gradient(circle, rgba(230,193,135,0.3), transparent 65%); }
.orb-2 { width: 700px; height: 700px; top: 40%; right: -200px;
  background: radial-gradient(circle, rgba(109,143,184,0.22), transparent 65%); }

main { position: relative; z-index: 1; }

/* NAV */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad); pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav-pill { display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px; border-radius: 100px;
  background: rgba(20, 18, 14, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(244, 237, 224, 0.10);
  font-size: 13px; transition: background 0.2s, border-color 0.2s; }
.nav-pill:hover { background: rgba(20,18,14,0.75); border-color: rgba(244,237,224,0.18); }
.nav-back { color: var(--ink-2); }
.nav-brand { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.nav-mark { width: 28px; height: 28px; display: block; flex-shrink: 0; }
.nav-cta-mobile {
  display: none; color: var(--gold); border-color: rgba(230,193,135,0.5);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 10px 16px;
  align-items: center; gap: 6px;
}

.nav-toggle {
  display: none; background: rgba(20,18,14,0.55); border: 1px solid rgba(244,237,224,0.10);
  border-radius: 100px; padding: 0; width: 44px; height: 44px;
  align-items: center; justify-content: center; cursor: pointer;
  flex-direction: column; gap: 5px;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  transition: background 0.2s, border-color 0.2s;
}
@media (max-width: 820px) {
  .nav { position: relative; }
  .nav-cta-mobile { display: inline-flex; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 600px) {
  .nav-cta-mobile { padding: 10px 14px; font-size: 10.5px; letter-spacing: 0.12em; }
  .nav-toggle { width: 42px; height: 42px; }
}
@media (max-width: 420px) { .nav-cta-mobile { display: none; } }
.nav-toggle:hover { background: rgba(20,18,14,0.75); border-color: rgba(244,237,224,0.18); }
.nav-toggle-bar { display: block; width: 18px; height: 1.5px;
  background: var(--ink); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.nav.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile-panel {
  display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  background: rgba(14,12,10,0.92);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(244,237,224,0.10);
  border-radius: 18px; padding: 14px;
  flex-direction: column; gap: 4px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.9);
}
.nav-mobile-panel a {
  display: block; padding: 14px 18px; color: var(--ink-2);
  font-size: 15px; border-radius: 12px; transition: background 0.15s, color 0.15s;
}
.nav-mobile-panel a:hover { background: rgba(244,237,224,0.05); color: var(--ink); }
.nav-mobile-panel a.active { color: var(--gold); }
.nav-mobile-panel .nav-mobile-cta {
  background: rgba(230,193,135,0.10); color: var(--gold);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; margin-top: 6px; text-align: center;
}
.nav-mobile-panel .nav-mobile-cta:hover { background: var(--gold); color: var(--bg); }
.nav.is-open .nav-mobile-panel { display: flex; }

.nav-links { gap: 22px; padding: 12px 22px; font-size: 13px; color: var(--ink-2); }
.nav-links a { color: var(--ink-2); transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--gold); }
.nav-links .nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; margin: -6px -8px -6px 6px;
  border: 1px solid var(--gold); border-radius: 100px;
  color: var(--gold);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.nav-links .nav-cta:hover { background: var(--gold); color: var(--bg); }
@media (max-width: 820px) { .nav-links { display: none; } }
@media (max-width: 600px) {
  .nav { top: 12px; padding: 0 14px; }
  .nav-brand span { display: none; }
  .nav-brand { padding: 10px; }
}

/* HERO */
.hero { padding: 110px var(--pad) 36px; text-align: center; }
.hero-compact { padding-bottom: 24px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 100px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--ink-2); margin-bottom: 24px; }
.hero-eyebrow .dot { width: 6px; height: 6px; background: var(--gold);
  border-radius: 50%; box-shadow: 0 0 12px var(--gold); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 { font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 5.5vw, 60px); line-height: 1.04;
  letter-spacing: -0.02em; margin-bottom: 18px; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-sub { font-size: 16px; line-height: 1.6; color: var(--ink-2);
  max-width: 620px; margin: 0 auto; }

/* ============= WORKBENCH ============= */
.bench { padding: 24px var(--pad) 80px; max-width: 1440px; margin: 0 auto; }
.bench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 1080px) { .bench-grid { grid-template-columns: 1fr; } }

/* MAP */
.bench-map { display: flex; flex-direction: column; gap: 14px; }
.scene { position: relative; width: 100%; aspect-ratio: 3 / 2;
  border-radius: 8px; overflow: hidden; background: #0c0d10;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7),
              0 0 0 1px var(--line-2),
              0 0 60px -20px rgba(230, 193, 135, 0.12); }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#overlay-canvas { cursor: crosshair; }

.scene-label-tl, .scene-label-tr, .scene-label-br {
  position: absolute; padding: 6px 10px;
  background: rgba(7,8,10,0.7); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 4px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: var(--ink-2); pointer-events: none;
}
.scene-label-tl { top: 14px; left: 14px; }
.scene-label-tr { top: 14px; right: 14px; color: var(--gold); }
.scene-label-br { bottom: 14px; right: 14px; }
.scene-label-tr .dot { display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold); margin-right: 6px;
  box-shadow: 0 0 8px var(--gold); animation: pulse 2.4s infinite; vertical-align: middle; }

/* MAP CONTROLS */
.map-controls { display: flex; flex-direction: column; gap: 12px; }
.view-switch {
  display: inline-flex; align-self: flex-start;
  gap: 4px; padding: 4px;
  border-radius: 100px;
  background: rgba(20,18,14,0.6);
  border: 1px solid var(--line);
  flex-wrap: wrap;
}
.view-switch button {
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  transition: background 0.2s, color 0.2s;
}
.view-switch button:hover { color: var(--ink); }
.view-switch button.active { background: var(--gold); color: #1a1408; }

.minerals { display: flex; flex-wrap: wrap; gap: 6px; }
.mineral-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  background: rgba(20,18,14,0.5);
  font-size: 12px;
  color: var(--ink-2);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.mineral-chip:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.mineral-chip.active { background: rgba(230,193,135,0.10); border-color: var(--gold); color: var(--ink); }
.mineral-chip[disabled] { opacity: 0.4; pointer-events: none; }
.mineral-chip .swatch { width: 9px; height: 9px; border-radius: 50%;
  box-shadow: 0 0 6px currentColor; }

/* SIDEBAR */
.bench-side {
  display: flex; flex-direction: column; gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20,18,14,0.5), rgba(20,18,14,0.2));
  min-height: 100%;
}

.side-header { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.spec-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--gold); margin-bottom: 8px; }
.side-title { font-family: var(--serif); font-weight: 400;
  font-size: 32px; line-height: 1.05; letter-spacing: -0.01em;
  margin-bottom: 6px; }
.side-coord { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.05em; }

.side-block { display: flex; flex-direction: column; gap: 10px; }
.block-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--ink-4); }

/* COMPOSITION BARS */
.composition { display: flex; flex-direction: column; gap: 8px; }
.comp-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.comp-row.comp-low { opacity: 0.55; }
.comp-name {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink); }
.comp-name .swatch { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 6px currentColor; }
.comp-pct { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.comp-bar { grid-column: 1 / -1; height: 4px; border-radius: 2px;
  background: rgba(244,237,224,0.05); overflow: hidden; }
.comp-bar-fill { height: 100%; border-radius: 2px;
  transition: width 0.5s cubic-bezier(.2,.8,.2,1); }

.spec-plot-mini { width: 100%; height: 150px; }

.side-interp { font-size: 14px; line-height: 1.55; color: var(--ink-2); }

.side-foot {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.foot-cell { padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px;
  background: rgba(244,237,224,0.02); }
.foot-cell span { display: block; font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.18em; color: var(--ink-4); margin-bottom: 4px; }
.foot-cell b { font-family: var(--serif); font-weight: 400; font-size: 18px;
  line-height: 1.2; color: var(--ink); }
.foot-cell.high b { color: var(--gold); }

/* LEGEND */
.legend {
  margin-top: 24px;
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(20,18,14,0.3);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: var(--ink-3);
  align-items: center;
  justify-content: center;
}
.legend-label { color: var(--ink-4); margin-right: 8px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.legend-item .swatch { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 6px currentColor; }

/* Targets view — richer descriptive legend */
.legend.legend-targets {
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 14px 18px;
  gap: 12px;
}
.legend-targets .legend-head {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.legend-targets .legend-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 22px;
}
.legend-targets .legend-row {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 3px 10px;
  align-items: start;
}
.legend-targets .legend-row .swatch {
  grid-row: 1 / span 3;
  margin-top: 5px;
  width: 11px; height: 11px;
}
.legend-targets .legend-name {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-1);
  letter-spacing: 0;
}
.legend-targets .legend-label-x {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.legend-targets .legend-why {
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-3);
  letter-spacing: 0;
  margin-top: 2px;
}

/* VALUE */
.value { padding: 80px 0; border-top: 1px solid var(--line); }
.section-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  color: var(--gold); margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px;
}
.section-eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--gold); }
.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 4.5vw, 46px); line-height: 1.05;
  letter-spacing: -0.02em; margin-bottom: 40px;
  text-wrap: pretty; max-width: 720px;
}
.section-title em { color: var(--gold); font-style: italic; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .value-grid { grid-template-columns: 1fr; } }
.value-card {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(244,237,224,0.02), transparent);
  display: flex; flex-direction: column; gap: 12px;
}
.value-num { font-family: var(--mono); font-size: 11px; color: var(--ink-4); letter-spacing: 0.1em; }
.value-card h3 { font-family: var(--serif); font-weight: 400; font-size: 24px;
  line-height: 1.15; color: var(--ink); }
.value-card p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* TECHNICALS */
.tech { padding: 80px 0 60px; border-top: 1px solid var(--line); background: rgba(20,18,14,0.3); }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
@media (max-width: 880px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tech-grid { grid-template-columns: 1fr; } }
.tech-cell { padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; }
.tech-cell .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--ink-4); margin-bottom: 6px; }
.tech-cell .v { font-family: var(--mono); font-size: 13px; color: var(--ink); }

.cites { font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
.cites b { color: var(--ink-2); font-weight: 500; }
.cites code { color: var(--gold); }

/* CTA */
.cta-strip { padding: 70px 0; text-align: center; border-top: 1px solid var(--line); }
.cta-strip h2 { font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin-bottom: 22px; }
.cta-strip h2 em { color: var(--gold); font-style: italic; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 100px;
  background: var(--gold); color: #1a1408;
  font-size: 14px; font-weight: 500;
  box-shadow: 0 0 0 1px var(--gold), 0 8px 30px -8px rgba(230,193,135,0.5);
  transition: background 0.2s, transform 0.2s;
}
.cta-btn:hover { background: var(--gold-2); transform: translateY(-1px); }

.foot { padding: 28px var(--pad); text-align: center;
  border-top: 1px solid var(--line); font-family: var(--mono);
  font-size: 11px; color: var(--ink-4); letter-spacing: 0.08em; }

/* =========================================================
   TARGET REPORT (sidebar takeover when an exploration target is selected)
   ========================================================= */
.bench-side.is-report { padding: 0; }
#report-mode { --accent: #ffd98a;
  display: flex; flex-direction: column; gap: 18px;
  padding: 18px 18px 22px; }

.rep-strip { display: flex; flex-direction: column; gap: 10px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rep-back { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  color: var(--ink-3); text-align: left; padding: 4px 0;
  transition: color 0.15s; }
.rep-back:hover { color: var(--ink); }
.rep-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.target-pill { --pill-c: #ffd98a;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em;
  padding: 5px 8px; border-radius: 3px;
  border: 1px solid color-mix(in srgb, var(--pill-c) 35%, transparent);
  background: color-mix(in srgb, var(--pill-c) 8%, transparent);
  color: var(--pill-c);
  transition: background 0.15s, border-color 0.15s; }
.target-pill:hover { background: color-mix(in srgb, var(--pill-c) 18%, transparent); }
.target-pill.active { background: color-mix(in srgb, var(--pill-c) 22%, transparent);
  border-color: var(--pill-c); }

.rep-head { display: flex; flex-direction: column; gap: 6px; }
.rep-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--accent); }
.rep-title { font-family: var(--mono); font-weight: 600; font-size: 16px;
  letter-spacing: 0.04em; color: var(--ink); line-height: 1.25;
  text-transform: uppercase; }
.rep-sub { font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.04em; }

.rep-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rep-stat { padding: 12px 10px; border: 1px solid var(--line); border-radius: 4px;
  display: flex; flex-direction: column; gap: 4px;
  background: color-mix(in srgb, var(--accent) 5%, transparent); }
.rep-stat span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em;
  color: var(--ink-4); }
.rep-stat b { font-family: var(--serif); font-weight: 400; font-size: 26px;
  color: var(--accent); line-height: 1; display: flex; align-items: baseline; gap: 3px; }
.rep-stat b i { font-family: var(--mono); font-style: normal; font-size: 10px;
  color: var(--ink-3); letter-spacing: 0.05em; }

.rep-summary { font-family: var(--serif); font-size: 18px; line-height: 1.45;
  color: var(--ink-1); letter-spacing: -0.005em; padding: 4px 0;
  border-left: 2px solid var(--accent); padding-left: 14px; }

.rep-why { display: flex; flex-direction: column; gap: 10px;
  list-style: none; padding: 0; margin: 0; }
.rep-why li { font-family: var(--sans); font-size: 13px; line-height: 1.55;
  color: var(--ink-2); padding-left: 14px; position: relative; }
.rep-why li::before { content: '·'; position: absolute; left: 2px; top: -2px;
  color: var(--accent); font-weight: 700; font-size: 18px; }
.rep-why li b { color: var(--ink-1); font-weight: 600;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  text-transform: uppercase; margin-right: 4px; }
/* End of report styles */

.rep-block { display: flex; flex-direction: column; gap: 10px; }
.rep-body { font-family: var(--sans); font-size: 12.5px; line-height: 1.55;
  color: var(--ink-2); text-wrap: pretty; }

.rep-minerals { display: flex; flex-direction: column; gap: 12px; }
.rep-mineral { display: grid; grid-template-columns: 1fr auto;
  gap: 4px 12px; align-items: center; }
.rep-min-name { font-family: var(--mono); font-size: 11.5px; color: var(--ink);
  display: flex; align-items: center; gap: 8px; }
.rep-min-pct { font-family: var(--mono); font-size: 11.5px; color: var(--accent); }
.rep-min-bar { grid-column: 1 / -1; height: 3px; background: rgba(244,237,224,0.06);
  border-radius: 2px; overflow: hidden; }
.rep-min-fill { height: 100%; transition: width 0.6s cubic-bezier(.2,.7,.2,1); }
.rep-min-role { grid-column: 1 / -1; font-family: var(--mono); font-size: 10px;
  color: var(--ink-4); letter-spacing: 0.04em; }

.rep-analogs { display: flex; flex-direction: column; gap: 5px;
  list-style: none; padding: 0; margin: 0; }
.rep-analogs li { font-family: var(--mono); font-size: 11px; color: var(--ink-2);
  padding-left: 14px; position: relative; }
.rep-analogs li::before { content: '·'; position: absolute; left: 4px;
  color: var(--accent); font-weight: 700; }

.rep-steps { display: flex; flex-direction: column; gap: 8px;
  list-style: none; padding: 0; margin: 0; counter-reset: step; }
.rep-steps li { display: flex; gap: 10px;
  font-family: var(--sans); font-size: 12px; line-height: 1.5;
  color: var(--ink-2); }
.rep-steps .step-n { flex: 0 0 18px; height: 18px; border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }

/* =========================================================
   MOBILE TIGHTENING (≤600px) — desktop layout unchanged
   ========================================================= */
@media (max-width: 600px) {
  /* Hero: reclaim the top space above the title */
  .hero { padding: 78px var(--pad) 18px; }
  .hero-eyebrow { margin-bottom: 16px; padding: 6px 12px; font-size: 10px; }
  .hero h1 { font-size: 32px; margin-bottom: 14px; }
  .hero-sub { font-size: 14.5px; line-height: 1.55; }

  /* Workbench: less vertical pad, tighter side gap */
  .bench { padding: 14px var(--pad) 56px; }
  .bench-grid { gap: 16px; }
  .bench-map { gap: 10px; }

  /* Map labels — the floating chrome was colliding with on-canvas
     markers (CU-XX/AU-XX) and the painted region names (STONEWALL PLAYA,
     CUPRITE HILLS). The scene id and coords already appear in the
     Technicals section below, so we drop them on mobile and keep only
     the small DEMO badge centred at the top of the scene. */
  .scene-label-tl,
  .scene-label-br { display: none; }
  .scene-label-tr {
    top: 10px; right: auto; left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px; font-size: 9.5px;
    white-space: nowrap;
  }

  /* View switch: keep the pill rail full-width and let the buttons
     fill it evenly so they wrap on two clean rows */
  .view-switch { align-self: stretch; justify-content: center;
    gap: 3px; padding: 4px; }
  .view-switch button {
    flex: 1 1 calc(50% - 6px);
    padding: 9px 10px; font-size: 10.5px; letter-spacing: 0.08em;
    text-align: center;
  }

  /* Sidebar: less internal padding, smaller title so it doesn't
     dwarf the rest of the card on a 375px screen */
  .bench-side { padding: 18px 16px; gap: 16px; }
  .side-title { font-size: 24px; line-height: 1.1; }
  .side-coord { font-size: 10.5px; }
  .side-interp { font-size: 13.5px; }
  .spec-plot-mini { height: 130px; }
  .foot-cell { padding: 9px 10px; }
  .foot-cell b { font-size: 16px; }

  /* Legend: tighter on narrow viewports */
  .legend { padding: 10px 12px; gap: 5px 10px; font-size: 9.5px;
    margin-top: 16px; }
  .legend-targets .legend-rows { grid-template-columns: 1fr; gap: 12px; }

  /* Value / tech / cta strip: reclaim vertical space */
  .value, .tech { padding: 56px 0; }
  .cta-strip { padding: 48px 0; }
  .section-title { margin-bottom: 28px; }
  .value-grid { gap: 14px; }
  .value-card { padding: 22px 18px; }
  .value-card h3 { font-size: 21px; }

  /* Target report sidebar: stack stats on very narrow screens
     so the numbers don't crush against the unit labels */
  #report-mode { padding: 16px 14px 20px; }
  .rep-title { font-size: 14.5px; }
  .rep-summary { font-size: 16px; padding-left: 12px; }
  .rep-stat { padding: 10px 8px; }
  .rep-stat b { font-size: 22px; }
}

@media (max-width: 380px) {
  /* iPhone SE-class — the 3-up stat row is the last thing to break */
  .rep-stats { grid-template-columns: 1fr 1fr; }
  .rep-stat:nth-child(3) { grid-column: 1 / -1; }
}
