/* Zemanium — Reservoir Explorer. Palette follows company/brand/brand.css. */
:root {
  --ink: #1C1917;
  --muted: #57534E;
  --subtle: #78716C;
  --ember: #DA7756;
  --ember-deep: #B4502F;
  --soft: #F3DACE;
  --paper: #F8F5F1;
  --night: #14110F;
  --night-2: #1F1A17;
  --line: rgba(28, 25, 23, 0.14);
  --sans: 'Instrument Sans', Helvetica, Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}

a { color: var(--soft); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.05em 0.35em;
  border-radius: 4px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 22px;
  background: rgba(20, 17, 15, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--paper);
}
.topbar-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.topbar-title strong { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.topbar-links { margin-left: auto; display: flex; gap: 16px; font-size: 13.5px; }

.chip {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2.5px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.chip-label { background: rgba(218, 119, 86, 0.16); color: var(--soft); border-color: rgba(218, 119, 86, 0.5); }
.chip-model { background: rgba(255, 255, 255, 0.10); color: #EFE7E1; border-color: rgba(255, 255, 255, 0.25); }
.chip-audited { background: rgba(110, 168, 120, 0.16); color: #CFE8D2; border-color: rgba(110, 168, 120, 0.5); }
.chip-spec { background: rgba(218, 186, 119, 0.16); color: #F0E4C6; border-color: rgba(218, 186, 119, 0.5); }

.stage {
  position: relative;
  height: calc(100vh - 57px);
  min-height: 620px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 10%, #241D18 0%, var(--night) 70%);
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.fallback {
  position: absolute;
  inset: 30% 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--soft);
}
.fallback[hidden] { display: none; }

.panel {
  position: absolute;
  top: 18px;
  width: 292px;
  max-height: calc(100% - 130px);
  overflow-y: auto;
  background: rgba(23, 19, 17, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 16px 18px 18px;
  backdrop-filter: blur(8px);
}
.panel-left { left: 18px; }
.panel-right { right: 18px; width: 320px; }

.panel h2 {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  margin: 14px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel h2:first-child { margin-top: 0; }

.slider-row { margin-bottom: 13px; }
.slider-row .slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  color: var(--soft);
}
.slider-row .slider-head strong { color: var(--paper); font-size: 13.5px; }
input[type='range'] {
  width: 100%;
  accent-color: var(--ember);
  margin-top: 5px;
  cursor: pointer;
}

.btn {
  font: inherit;
  font-size: 12.5px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  padding: 7px 12px;
  cursor: pointer;
  width: 100%;
}
.btn:hover { background: rgba(255, 255, 255, 0.18); }
.btn-icon { width: 42px; flex: 0 0 auto; font-size: 15px; }

.readouts { margin: 4px 0 0; }
.readouts > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5.5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.readouts dt { color: var(--soft); font-size: 12.5px; }
.readouts dd { margin: 0; font-size: 14.5px; font-weight: 620; font-variant-numeric: tabular-nums; }

.note { color: var(--subtle); font-size: 11.8px; line-height: 1.5; margin: 8px 0 0; }
#anchor-note {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(110, 168, 120, 0.14);
  border: 1px solid rgba(110, 168, 120, 0.4);
  color: #D8EBDA;
}

.compare { margin-top: 10px; }
.compare-row { margin-bottom: 14px; }
.compare-row .compare-label {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--soft);
  margin-bottom: 5px;
}
.compare-row .compare-vals {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}
.compare-row .v-base { color: var(--subtle); font-size: 16px; }
.compare-row .arrow { color: var(--ember); font-size: 13px; }
.compare-row .v-design { color: var(--paper); font-size: 23px; font-weight: 680; }
.compare-row .delta {
  font-size: 11.5px;
  padding: 1.5px 7px;
  border-radius: 999px;
  background: rgba(218, 119, 86, 0.18);
  color: var(--soft);
}
.bar {
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
  margin-top: 6px;
}
.bar span { display: block; height: 100%; border-radius: 4px; }
.bar .bar-base { background: rgba(255, 255, 255, 0.28); }
.bar .bar-design { background: var(--ember); }

.ambition {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.ambition p { margin: 7px 0 0; font-size: 12.5px; color: var(--soft); }
.ambition strong { color: var(--paper); }

.timeline {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 40px));
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(23, 19, 17, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 13px;
  padding: 11px 16px;
  backdrop-filter: blur(8px);
}
.timeline label { font-size: 12.5px; color: var(--soft); white-space: nowrap; }
.timeline label strong { color: var(--paper); font-size: 15px; }
.timeline input[type='range'] { flex: 1; }
.year-bars { display: flex; gap: 2px; height: 18px; align-items: flex-end; }
.year-bars span {
  width: 5px;
  border-radius: 2px 2px 0 0;
  background: rgba(218, 119, 86, 0.7);
}

.science {
  background: var(--paper);
  color: var(--ink);
  padding: 58px 22px 66px;
}
.science-inner { max-width: 1080px; margin: 0 auto; }
.science h2 { font-family: var(--serif); font-size: 30px; margin: 0 0 26px; }
.science h3 { font-family: var(--serif); font-size: 17px; margin: 0 0 8px; }
.science-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.science p { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.cinematic { margin: 0 0 34px; }
.cinematic video {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
}
.cinematic figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  max-width: 760px;
}
.cinematic .chip { vertical-align: middle; }
.science code { background: rgba(28, 25, 23, 0.07); }
.science-figs { display: flex; gap: 10px; flex-wrap: wrap; }
.science-figs img {
  width: 168px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
}

.footer {
  background: var(--night-2);
  padding: 30px 22px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer p { max-width: 1080px; margin: 0 auto 8px; font-size: 13px; color: var(--soft); }
.footer .note { color: var(--subtle); }

@media (max-width: 1180px) {
  .panel-left, .panel-right {
    position: static;
    width: auto;
    max-height: none;
    margin: 14px;
  }
  .stage { height: auto; min-height: 0; padding-bottom: 90px; }
  #scene { position: relative; height: 54vh; min-height: 380px; }
  .timeline { position: static; transform: none; margin: 14px; width: auto; }
}
