/* ===== Tokens ===== */
:root {
  --bg: #F5EFE2;
  --surface: #FBF8F0;
  --surface-alt: #EFE7D5;
  --ink: #241F1A;
  --muted: #6B6156;
  --line: #D9CBAE;
  --line-strong: #B7A784;
  --accent: #A6421F;
  --accent-ink: #FBF3E9;
  --focus: #1F4D7A;

  --font-display: ui-serif, Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Roboto Mono', 'Courier New', monospace;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Helvetica, Arial, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  --radius: 4px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
dl, dd { margin: 0; }
h1, h2, h3, p { margin: 0; }

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -60px;
  background: var(--ink);
  color: var(--accent-ink);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  z-index: 100;
  transition: top 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.skip-link:focus {
  top: var(--space-3);
}

/* ===== Focus & states ===== */
:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-thickness: 2px; }
}

/* ===== Header ===== */
.site-header {
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== Hero ===== */
.hero {
  padding-block: var(--space-16) var(--space-12);
  background:
    radial-gradient(1200px 480px at 85% -10%, rgba(166, 66, 31, 0.10), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.9fr);
  gap: var(--space-16);
  align-items: start;
}
.hero-copy > * {
  animation: fadeUp 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-copy > *:nth-child(1) { animation-delay: 40ms; }
.hero-copy > *:nth-child(2) { animation-delay: 100ms; }
.hero-copy > *:nth-child(3) { animation-delay: 160ms; }
.hero-copy > *:nth-child(4) { animation-delay: 220ms; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: var(--space-6);
  max-width: 22ch;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 58ch;
  margin-bottom: var(--space-8);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 24px;
  min-height: 44px;
  border-radius: var(--radius);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), background 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #8C371A; transform: translateY(-2px); }
}
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  font-weight: 600;
  padding: 12px 22px;
  min-height: 44px;
  border-radius: var(--radius);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms ease, background 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover { border-color: var(--accent); background: rgba(166, 66, 31, 0.06); }
}
.btn-secondary:active { transform: scale(0.97); }

/* ---- Readout (giant numeral) ---- */
.readout {
  background: var(--ink);
  color: var(--accent-ink);
  border: none;
  border-radius: 6px;
  padding: var(--space-8) var(--space-6);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease;
  animation: fadeUp 640ms cubic-bezier(0.22, 1, 0.36, 1) 280ms both;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}
@media (hover: hover) and (pointer: fine) {
  .readout:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -12px rgba(0,0,0,0.4); }
}
.readout:active { transform: scale(0.98); }
.readout-figure {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(64px, 9vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #E8C7A2;
}
.readout-unit {
  font-family: var(--font-mono);
  font-size: 0.28em;
  letter-spacing: 0.04em;
  margin-left: 6px;
  color: var(--accent-ink);
  vertical-align: middle;
}
.readout-caption {
  font-size: 15px;
  line-height: 1.5;
  color: #D8CBB8;
  max-width: 34ch;
}
.readout-caption strong { color: var(--accent-ink); }

/* ---- Gauge ---- */
.gauge {
  margin-top: var(--space-16);
}
.gauge-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-8);
}
.gauge-caption-sub {
  text-transform: none;
  letter-spacing: normal;
  color: var(--muted);
}
.gauge-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: var(--space-2);
}
.gauge-track {
  position: relative;
  height: 96px;
  min-width: 640px;
  margin-inline: 8px;
}
.gauge-track.small { height: 72px; min-width: 460px; margin-top: var(--space-4); }
.gauge-line {
  position: absolute;
  left: 0; right: 0; top: 32px;
  height: 2px;
  background: var(--line-strong);
  transform-origin: left center;
  animation: lineDraw 760ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}
.gauge-track.small .gauge-line { top: 24px; animation: none; transform: none; }
.gauge-ember {
  position: absolute;
  right: -4px; top: 26px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #FF8A4C 0%, var(--accent) 70%, transparent 100%);
  animation: emberPulse 2.6s ease-in-out infinite;
}
.gauge-ticks {
  position: absolute;
  inset: 0;
}
.gauge-tick {
  position: absolute;
  left: var(--pos);
  top: 28px;
  width: 1px;
  height: 10px;
  background: var(--line-strong);
  transform: translateX(-50%);
}
.gauge-tick-label {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}
.gauge-track.small .gauge-tick-label { top: 12px; font-size: 9px; }
.gauge-track.small .gauge-tick { top: 20px; height: 8px; }

.gauge-markers {
  position: absolute;
  inset: 0;
}
.gauge-marker {
  position: absolute;
  left: var(--pos);
  top: 32px;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  animation: fadeUp 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.gauge-markers .gauge-marker:nth-of-type(1) { animation-delay: 260ms; }
.gauge-markers .gauge-marker:nth-of-type(2) { animation-delay: 340ms; }
.gauge-markers .gauge-marker:nth-of-type(3) { animation-delay: 420ms; }
.gauge-markers .gauge-marker:nth-of-type(4) { animation-delay: 500ms; }
button.gauge-marker { cursor: pointer; min-height: 44px; min-width: 44px; justify-content: center; }
.gauge-marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line-strong);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.gauge-track.small .gauge-marker { top: 24px; }
.gauge-track.small .gauge-marker-dot { width: 11px; height: 11px; }
.gauge-marker-flag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
}
.gauge-track.small .gauge-marker-flag { font-size: 9px; padding: 2px 6px; }
button.gauge-marker:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 6px;
}
@media (hover: hover) and (pointer: fine) {
  button.gauge-marker:hover .gauge-marker-dot { transform: scale(1.3); }
  button.gauge-marker:hover .gauge-marker-flag { border-color: var(--color); border-width: 2px; color: var(--ink); }
}
button.gauge-marker:active .gauge-marker-dot { transform: scale(0.9); }
.gauge-marker.is-active .gauge-marker-flag,
.gauge-marker.is-current .gauge-marker-flag {
  background: var(--ink);
  color: var(--accent-ink);
  border-color: var(--ink);
}
.gauge-marker.is-active .gauge-marker-dot,
.gauge-marker.is-current .gauge-marker-dot {
  transform: scale(1.35);
}

/* ===== Index / controls ===== */
.index {
  padding-block: var(--space-24) var(--space-16);
  border-top: 1px solid var(--line);
}
.index-head { margin-bottom: var(--space-8); }
.index h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}
.index-sub {
  color: var(--muted);
  max-width: 60ch;
  font-size: 16px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: end;
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-block: var(--space-8) var(--space-4);
}
.control { display: flex; flex-direction: column; gap: var(--space-2); }
.control-search { flex: 1 1 240px; }
.control-filter { flex: 0 1 200px; }
.control label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.control input,
.control select {
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 11px 12px;
  min-height: 44px;
}
@media (hover: hover) and (pointer: fine) {
  .control input:hover, .control select:hover { border-color: var(--accent); }
}
.control input:focus, .control select:focus {
  border-color: var(--focus);
}

.saved-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
  padding: 11px 18px;
  min-height: 44px;
  border-radius: var(--radius);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), background 180ms ease, border-color 180ms ease;
}
.pin-icon { width: 16px; height: 16px; fill: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .saved-toggle:hover { border-color: var(--accent); }
}
.saved-toggle:active { transform: scale(0.97); }
.saved-toggle.is-active,
.saved-toggle[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.result-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: var(--space-4);
}

/* ===== Ledger list ===== */
.ledger {
  border-top: 1px solid var(--line);
}
.row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  padding: var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--cat-color, var(--line));
  background: var(--surface);
  transition: background 180ms ease;
}
.row:nth-child(even) { background: var(--surface-alt); }
@media (hover: hover) and (pointer: fine) {
  .row:hover { background: #FFF9EE; }
}

.row-fig {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  flex: 0 0 24px;
}
.row-media {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.row-media img { width: 100%; height: 100%; object-fit: cover; }

.row-main {
  flex: 1 1 220px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.row-title-line {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.row-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.row-saved {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.row-meta {
  font-size: 14px;
  color: var(--muted);
}

.row-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 0 0 auto;
}
.field-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field-value {
  font-size: 14px;
  font-family: var(--font-mono);
}
.row-when { width: 140px; }
.row-lifespan { width: 150px; }
.row-price { width: 130px; }

.mini-gauge-track {
  position: relative;
  width: 96px;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin-block: 2px;
}
.mini-gauge-dot {
  position: absolute;
  top: 50%;
  left: var(--pos);
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color);
  box-shadow: 0 0 0 2px var(--surface);
}

.row-open {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: var(--radius);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), background 180ms ease, border-color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .row-open:hover { background: var(--ink); color: var(--accent-ink); border-color: var(--ink); }
}
.row-open:active { transform: scale(0.97); }
.row-open:focus-visible { outline-offset: 2px; }

/* ===== Empty state ===== */
.empty-state {
  padding: var(--space-16) var(--space-6);
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}
.empty-title {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: var(--space-2);
}
.empty-sub {
  color: var(--muted);
  margin-bottom: var(--space-6);
}

/* ===== Notes section ===== */
.notes {
  padding-block: var(--space-16);
  background: var(--ink);
  color: #EDE3D2;
}
.notes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr);
  gap: var(--space-16);
}
.notes h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: var(--space-4);
  color: #FBF3E9;
}
.notes p {
  color: #CBBFA8;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: var(--space-4);
  max-width: 60ch;
}
.notes-key {
  border-top: 1px solid #45392A;
}
.notes-key > div {
  padding-block: var(--space-3);
  border-bottom: 1px solid #45392A;
}
.notes-key dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #E7A26B;
  margin-bottom: 4px;
}
.notes-key dd {
  color: #EDE3D2;
  font-size: 15px;
}

/* ===== Footer ===== */
.site-footer {
  padding-block: var(--space-8);
  border-top: 1px solid var(--line);
}
.footer-inner { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-address { font-size: 14px; }
.footer-note { font-size: 13px; color: var(--muted); }

/* ===== Dialog ===== */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(36, 31, 26, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
  overflow-y: auto;
  z-index: 50;
  animation: fadeIn 200ms ease both;
}
.dialog-backdrop[hidden] {
  display: none;
}
.dialog {
  background: var(--surface);
  border-radius: 8px;
  max-width: 640px;
  width: 100%;
  padding: var(--space-8);
  margin-block: var(--space-8);
  box-shadow: 0 24px 64px -24px rgba(0,0,0,0.5);
  animation: dialogIn 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.dialog:focus,
.dialog:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.dialog-fig {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.dialog-cat { color: var(--accent); }
.dialog-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), background 180ms ease;
}
.dialog-close svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .dialog-close:hover { background: var(--ink); color: var(--accent-ink); border-color: var(--ink); }
}
.dialog-close:active { transform: scale(0.93); }

.dialog-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.dialog-instructor {
  color: var(--muted);
  margin-bottom: var(--space-4);
}
.dialog-media {
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: var(--space-4);
  border: 1px solid var(--line);
}
.dialog-media img { width: 100%; height: 220px; object-fit: cover; }

.dialog-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface-alt);
  border-radius: 6px;
  margin-bottom: var(--space-6);
}
.dialog-specs dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.dialog-specs dd {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
}

.dialog-body {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: var(--space-6);
}

.dialog-gauge {
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: var(--space-6);
}
.gauge-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.dialog-reading {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: var(--space-2);
}

.save-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  justify-content: center;
  background: var(--ink);
  color: var(--accent-ink);
  border: none;
  padding: 14px 20px;
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), background 180ms ease;
}
.save-icon::before { content: '◇'; }
.save-toggle.is-saved .save-icon::before { content: '◆'; }
.save-toggle.is-saved { background: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .save-toggle:hover { background: #3A322A; }
  .save-toggle.is-saved:hover { background: #8C371A; }
}
.save-toggle:active { transform: scale(0.97); }

body.dialog-open { overflow: hidden; }

/* ===== Motion ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes dialogIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes lineDraw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes emberPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .gauge-line { transform: scaleX(1) !important; }
  .gauge-ember { animation: none !important; opacity: 0.8; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .readout { max-width: 420px; }
  .notes-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wrap { padding-inline: var(--space-4); }
  .hero { padding-block: var(--space-12) var(--space-8); }
  .gauge-track { margin-inline: 4px; }

  .dialog-specs { grid-template-columns: repeat(2, 1fr); }

  .row { flex-direction: column; align-items: stretch; }
  .row-fig { order: -2; }
  .row-media { order: -1; width: 100%; height: 160px; flex: 1 1 auto; }
  .row-main { width: 100%; }
  .row-when, .row-lifespan, .row-price { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
  .row-when .field-label, .row-lifespan .field-label, .row-price .field-label { width: 72px; flex: 0 0 72px; }
  .row-when .field-value, .row-lifespan .field-value, .row-price .field-value { flex: 1 1 auto; min-width: 0; }
  .row-open { width: 100%; justify-content: center; margin-left: 0; }

  .dialog { padding: var(--space-6); }
}
