:root {
  color-scheme: dark;
  --bg: #050607;
  --bg-soft: #0d1013;
  --panel: #14181c;
  --panel-2: #f4f6f7;
  --text: #f7f8f8;
  --muted: #aeb6bd;
  --ink: #111417;
  --line: rgba(255, 255, 255, 0.13);
  --cyan: #71e4f0;
  --mint: #8ce7c8;
  --amber: #d7a847;
  --steel: #8a98a8;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

body::selection {
  background: rgba(113, 228, 240, 0.35);
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  height: 54px;
  padding: 0 clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(5, 6, 7, 0.72);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-self: start;
  font-size: 14px;
  font-weight: 650;
}

.brand-mark {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff 0 8%, transparent 9%),
    linear-gradient(135deg, var(--cyan), var(--mint) 55%, var(--amber));
  box-shadow: 0 0 18px rgba(113, 228, 240, 0.42);
}

nav {
  display: flex;
  justify-self: center;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.1vw, 14px);
  min-width: 0;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}

.header-right {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: clamp(16px, 2.4vw, 32px);
  min-width: 0;
}

.inventorlab-logo {
  width: clamp(116px, 13vw, 178px);
  height: 30px;
  object-fit: contain;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
}

nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  transition:
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

nav a:hover,
.sources a:hover {
  color: var(--cyan);
}

nav a[aria-current="true"] {
  color: #071013;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  box-shadow: 0 0 20px rgba(113, 228, 240, 0.22);
}

.hero {
  position: relative;
  min-height: 96svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #020303;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.34) 45%, rgba(0, 0, 0, 0.2)),
    linear-gradient(0deg, #050607 0%, rgba(5, 6, 7, 0) 28%);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 48%;
  opacity: 0.95;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 124px 0 24vh;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(62px, 12vw, 164px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.1;
}

.hero-copy > p:not(.eyebrow),
.section-heading > p,
.intro > p,
.takeaway > p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(19px, 2.1vw, 28px);
  line-height: 1.32;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.secondary-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
}

.primary-link {
  color: #021214;
  background: var(--cyan);
}

.secondary-link {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.hero-meta {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

section,
footer {
  padding: clamp(72px, 11vw, 150px) clamp(18px, 5vw, 70px);
}

.section-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(300px, 1fr);
  gap: clamp(28px, 7vw, 86px);
  align-items: start;
}

.feature-band,
.results,
.sources,
.credits,
.standzeit {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 900px;
  margin-bottom: clamp(34px, 5vw, 70px);
}

.section-heading.compact {
  margin-bottom: clamp(26px, 4vw, 46px);
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.answer-card {
  min-height: 310px;
  padding: 28px;
  background: linear-gradient(180deg, #151a1f, #0e1115);
}

.answer-card span {
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
}

.answer-card h3 {
  margin-top: 54px;
  font-size: 24px;
}

.answer-card p,
.flow-step p,
.result-copy p,
.economics p,
footer p,
.sources li,
.standzeit p,
.standzeit-grid p {
  color: var(--muted);
  font-size: 16px;
}

.standzeit {
  padding-top: 0;
}

.standzeit-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.standzeit-grid article {
  min-height: 280px;
  padding: 26px;
  background: #0d1013;
}

.standzeit-grid article span {
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
}

.standzeit-grid article h3 {
  margin-top: 54px;
  font-size: 24px;
}

.standzeit-question {
  margin-top: clamp(54px, 8vw, 96px);
  max-width: 920px;
}

.standzeit-question > p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
}

.application {
  background: #f4f6f7;
  color: var(--ink);
}

.application .section-heading,
.application .flow {
  width: min(var(--max), 100%);
  margin-left: auto;
  margin-right: auto;
}

.application .eyebrow {
  color: #097f8d;
}

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

.flow-step {
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(17, 20, 23, 0.12);
  border-radius: 8px;
  background: #fff;
}

.flow-step span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 54px;
  border-radius: 50%;
  background: #111417;
  color: #fff;
  font-weight: 800;
}

.flow-step h3 {
  font-size: 23px;
}

.flow-step p {
  color: #53606a;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-bottom: clamp(64px, 9vw, 116px);
}

.result-layout.reverse {
  grid-template-columns: minmax(320px, 1.05fr) minmax(300px, 0.78fr);
}

.result-layout.reverse .result-copy {
  order: 2;
}

.result-copy {
  max-width: 540px;
}

.small-note {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.58) !important;
}

.data-figure,
.wide-figure {
  margin: 0;
}

.data-figure img,
.wide-figure img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #fff;
}

.data-figure figcaption,
.wide-figure figcaption {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.metrics div {
  padding: clamp(24px, 4vw, 42px);
  background: #0d1013;
}

.metrics strong {
  display: block;
  margin-bottom: 12px;
  color: var(--mint);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.metrics span {
  color: var(--muted);
}

.economics {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: clamp(36px, 4vw, 48px);
  padding-bottom: clamp(22px, 2.5vw, 32px);
  background:
    linear-gradient(180deg, rgba(19, 22, 25, 0.92) 0%, #050607 100%);
}

.economics-layout {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(330px, 0.88fr) minmax(610px, 1.12fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
}

.economics-copy {
  position: relative;
  display: flex;
  min-height: 560px;
  max-width: none;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(28px, 3.1vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(16, 19, 22, 0.98), rgba(8, 10, 12, 0.98));
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.38);
}

.economics-copy::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(113, 228, 240, 0.78), transparent);
}

.economics-copy h2 {
  max-width: 15ch;
  font-size: clamp(33px, 3.2vw, 45px);
  line-height: 1;
}

.economics .eyebrow {
  color: var(--cyan);
  font-size: 12px;
  line-height: 1;
}

.economics-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.46;
}

.economics-copy .small-note {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.6) !important;
}

.cost-model-notes {
  display: grid;
  gap: 0;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cost-model-notes div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cost-model-notes div:last-child {
  border-bottom: 0;
}

.cost-model-notes strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.cost-model-notes span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.cost-calculator {
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-self: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(24, 28, 32, 0.98), rgba(9, 11, 14, 0.99));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
}

.calculator-summary {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.calculator-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 78% 42%, rgba(113, 228, 240, 0.13), transparent 32%);
}

.calculator-summary > div {
  position: relative;
}

.calculator-summary strong {
  display: block;
  margin-bottom: 2px;
  color: var(--mint);
  font-size: clamp(31px, 3.5vw, 44px);
  line-height: 0.95;
}

.calculator-summary span {
  color: var(--muted);
  font-size: 12px;
}

.pie-wrap {
  display: grid;
  place-items: center;
}

.cost-pie {
  width: 78px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) 0deg 90deg, var(--steel) 90deg 120deg, var(--amber) 120deg 300deg, var(--mint) 300deg 360deg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.34);
  position: relative;
}

.cost-pie::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: #0b0d10;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cost-presets {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
  padding: 8px 10px 0;
}

.cost-presets span {
  padding: 0 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cost-presets button {
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.cost-presets button:hover,
.cost-presets button[aria-pressed="true"] {
  color: #051014;
  border-color: rgba(113, 228, 240, 0.75);
  background: linear-gradient(135deg, var(--cyan), var(--mint));
}

.calculator-form {
  display: grid;
  gap: 4px;
  padding: 8px 10px 7px;
}

.calculator-row-head {
  display: grid;
  grid-template-columns: minmax(165px, 0.92fr) minmax(96px, 0.4fr) minmax(185px, 1fr);
  gap: 14px;
  padding: 0 8px 1px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calculator-row-head span:nth-child(2) {
  text-align: right;
}

.calculator-form label {
  display: grid;
  grid-template-columns: minmax(165px, 0.92fr) minmax(96px, 0.4fr) minmax(185px, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.control-copy {
  display: grid;
  gap: 1px;
}

.control-copy span {
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}

.control-copy small {
  color: var(--muted);
  font-size: 9px;
}

.calculator-form output {
  color: var(--cyan);
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.calculator-form input[type="range"] {
  appearance: none;
  width: 100%;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.calculator-form input[type="range"]:focus {
  outline: 2px solid rgba(113, 228, 240, 0.7);
  outline-offset: 6px;
}

.calculator-form input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(113, 228, 240, 0.95) 0 var(--range, 50%),
    rgba(255, 255, 255, 0.18) var(--range, 50%) 100%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.calculator-form input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5.5px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #f7f8f8;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 22px rgba(113, 228, 240, 0.32);
}

.calculator-form input[type="range"]::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(113, 228, 240, 0.95) 0 var(--range, 50%),
    rgba(255, 255, 255, 0.18) var(--range, 50%) 100%
  );
}

.calculator-form input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #f7f8f8;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 22px rgba(113, 228, 240, 0.32);
}

.cost-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 8px 12px 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cost-legend div {
  display: grid;
  gap: 3px;
}

.cost-legend dt,
.cost-legend dd {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.cost-legend dt {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.cost-legend dd {
  color: var(--text);
  text-align: left;
  white-space: nowrap;
}

.legend-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
}

.legend-dot.concentrate {
  background: var(--cyan);
}

.legend-dot.water {
  background: var(--steel);
}

.legend-dot.downtime {
  background: var(--amber);
}

.legend-dot.disposal {
  background: var(--mint);
}

.simulator {
  min-height: calc(100svh - 54px);
  display: grid;
  align-content: center;
  gap: clamp(10px, 1.4svh, 16px);
  padding-top: clamp(20px, 3svh, 32px);
  padding-bottom: clamp(18px, 2.4svh, 28px);
  background:
    radial-gradient(circle at 48% 40%, rgba(113, 228, 240, 0.1), transparent 28%),
    linear-gradient(180deg, #050607 0%, #0b0d10 100%);
}

.simulator .section-heading {
  width: min(var(--max), 100%);
  margin-inline: auto;
  margin-bottom: clamp(14px, 2svh, 22px);
}

.simulator .section-heading .eyebrow {
  margin-bottom: 8px;
  font-size: 10px;
}

.simulator .section-heading h2 {
  max-width: 900px;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.02;
}

.simulator-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(190px, 0.64fr) minmax(360px, 1.72fr) minmax(190px, 0.64fr);
  gap: clamp(10px, 1.4vw, 18px);
  align-items: stretch;
  min-width: 0;
}

.simulator-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 22, 26, 0.96), rgba(8, 10, 12, 0.98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.sim-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sim-panel-head .eyebrow {
  margin-bottom: 0;
  font-size: 8.5px;
}

.sim-panel-head strong {
  color: var(--text);
  font-size: 12.5px;
}

.simulator-controls {
  display: grid;
  align-content: start;
}

.simulator-controls label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  min-height: 38px;
  padding: 5px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.simulator-controls label > span {
  color: var(--text);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.12;
}

.simulator-controls output {
  color: var(--cyan);
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.simulator-controls input[type="range"] {
  grid-column: 1 / -1;
  appearance: none;
  width: 100%;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.simulator-controls input[type="range"]:focus {
  outline: 2px solid rgba(113, 228, 240, 0.65);
  outline-offset: 4px;
}

.simulator-controls input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(113, 228, 240, 0.95) 0 var(--range, 50%),
    rgba(255, 255, 255, 0.16) var(--range, 50%) 100%
  );
}

.simulator-controls input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -4.5px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #f7f8f8;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.45);
}

.simulator-controls input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(113, 228, 240, 0.95) 0 var(--range, 50%),
    rgba(255, 255, 255, 0.16) var(--range, 50%) 100%
  );
}

.simulator-controls input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #f7f8f8;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.45);
}

.sim-switch-row {
  grid-template-columns: minmax(0, 1fr) auto auto !important;
}

.sim-switch-row input[type="checkbox"] {
  appearance: none;
  width: 38px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  position: relative;
}

.sim-switch-row input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 180ms ease;
}

.sim-switch-row input[type="checkbox"]:checked {
  border-color: rgba(113, 228, 240, 0.78);
  background: rgba(113, 228, 240, 0.42);
}

.sim-switch-row input[type="checkbox"]:checked::after {
  transform: translateX(16px);
}

.simulator-visual {
  display: grid;
  place-items: center;
  min-height: clamp(400px, calc(100svh - 300px), 520px);
  padding: clamp(8px, 1.4vw, 16px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 24%),
    #080a0d;
}

.simulator-visual svg {
  width: 100%;
  min-width: 0;
  max-height: clamp(390px, calc(100svh - 320px), 520px);
}

.simulator-visual svg text {
  font-size: 12px;
}

[data-sim-diagram="on"] [data-sim-coolant-loop],
[data-sim-diagram="on"] [data-sim-coolant-return],
[data-sim-chip-flow],
[data-sim-chip-fall],
[data-sim-kss-drip] {
  animation: sim-flow 1.1s linear infinite;
}

[data-sim-diagram="off"] [data-sim-coolant-loop],
[data-sim-diagram="off"] [data-sim-coolant-return] {
  opacity: 0.22;
}

[data-sim-running] {
  transform-box: fill-box;
  transform-origin: center;
}

[data-sim-running="on"] {
  animation: sim-spin 1.6s linear infinite;
}

[data-sim-running="off"] {
  opacity: 0.22;
}

[data-sim-vapor] path {
  animation: sim-vapor 2.8s ease-in-out infinite;
}

[data-sim-vapor] path:nth-child(2) {
  animation-delay: 0.45s;
}

[data-sim-vapor] path:nth-child(3) {
  animation-delay: 0.9s;
}

@keyframes sim-flow {
  to {
    stroke-dashoffset: -34;
  }
}

@keyframes sim-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sim-vapor {
  50% {
    transform: translateY(-8px);
  }
}

.simulator-results {
  display: grid;
  grid-template-rows: auto 1fr;
}

.simulator-results dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.simulator-results dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  min-height: 38px;
  padding: 5px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.traffic-light {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  display: grid;
  gap: 3px;
  width: 18px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: linear-gradient(180deg, #1b2228, #080b0e);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.traffic-light span {
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.simulator-results dl div.ok .traffic-light .green {
  background: var(--mint);
  box-shadow: 0 0 14px rgba(140, 231, 200, 0.72);
}

.simulator-results dl div.warn .traffic-light .yellow {
  background: var(--amber);
  box-shadow: 0 0 14px rgba(215, 168, 71, 0.72);
}

.simulator-results dl div.critical .traffic-light .red {
  background: #ff6b5f;
  box-shadow: 0 0 14px rgba(255, 107, 95, 0.72);
}

.simulator-results dt,
.simulator-results dd {
  margin: 0;
}

.simulator-results dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.12;
}

.simulator-results dd {
  color: var(--text);
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.sim-service-life {
  background: rgba(140, 231, 200, 0.055);
}

.sim-service-life dd {
  color: var(--mint);
}

.sim-refill-result {
  background: rgba(113, 228, 240, 0.045);
}

.sim-refill-result dd {
  color: var(--cyan);
}

.takeaway {
  min-height: 72svh;
  display: grid;
  align-content: center;
  width: min(1000px, 100%);
  margin: 0 auto;
  text-align: center;
}

.takeaway .eyebrow,
.takeaway p {
  margin-left: auto;
  margin-right: auto;
}

.sources {
  padding-top: 34px;
}

.sources ul {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sources li {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.credits {
  padding-top: 34px;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.credits article {
  min-height: 150px;
  padding: 24px;
  background: #0d1013;
}

.credits article:first-child {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #151a1f, #0d1013);
}

.credits h3 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 20px;
}

.credits p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(300px, 1fr) minmax(220px, 0.52fr);
  gap: 32px;
  align-items: start;
  background: #f4f6f7;
  color: var(--ink);
}

footer .eyebrow {
  color: #097f8d;
}

footer h2 {
  font-size: clamp(36px, 6vw, 82px);
}

footer p {
  color: #53606a;
  max-width: 720px;
}

.legal-links {
  display: grid;
  gap: 12px;
}

.legal-links p {
  margin-bottom: 0;
  color: #6a747d;
  font-size: 13px;
  line-height: 1.45;
}

.legal-links a {
  width: fit-content;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(17, 20, 23, 0.14);
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.65);
}

.legal-links a:hover {
  border-color: rgba(9, 127, 141, 0.42);
  color: #097f8d;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .answer-grid,
  .flow,
  .metrics,
  .credits-grid,
  .standzeit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-grid,
  .result-layout,
  .result-layout.reverse,
  .economics-layout,
  footer {
    grid-template-columns: 1fr;
  }

  .economics {
    min-height: auto;
  }

  .simulator {
    min-height: auto;
  }

  .economics-copy {
    min-height: auto;
    max-width: 760px;
  }

  .cost-calculator {
    align-self: auto;
  }

  .result-layout.reverse .result-copy {
    order: 0;
  }

  .hero-copy {
    padding-bottom: 20vh;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: minmax(132px, 1fr) auto minmax(132px, 1fr);
    padding-inline: 18px;
  }

  nav {
    gap: 4px;
    font-size: 10px;
  }

  nav a {
    min-height: 24px;
    padding: 0 7px;
  }

  .inventorlab-logo {
    width: 126px;
  }
}

@media (max-width: 860px) {
  [id] {
    scroll-margin-top: 112px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand logo"
      "nav nav";
    gap: 10px 14px;
    height: auto;
    min-height: 92px;
    align-items: center;
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .brand {
    grid-area: brand;
  }

  .header-right {
    grid-area: logo;
    justify-self: end;
  }

  nav {
    grid-area: nav;
    justify-self: center;
    width: min(100%, 580px);
    max-width: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
  }

  nav a {
    min-height: 24px;
    padding: 0 8px;
  }
}

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

@media (max-width: 680px) {
  .site-header {
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .inventorlab-logo {
    width: 116px;
    height: 24px;
    padding: 3px 6px;
  }

  nav {
    width: min(100%, 420px);
  }

  nav a {
    min-height: 24px;
    padding: 0 8px;
  }

  .hero {
    min-height: 94svh;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.25)),
      linear-gradient(0deg, #050607 0%, rgba(5, 6, 7, 0) 34%);
  }

  .hero img {
    object-position: 62% 50%;
  }

  .hero-copy {
    padding-top: 108px;
    padding-bottom: 18vh;
  }

  .answer-grid,
  .flow,
  .metrics,
  .credits-grid,
  .standzeit-grid {
    grid-template-columns: 1fr;
  }

  .economics {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .simulator {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .simulator-controls label {
    min-height: auto;
    padding: 9px 12px;
  }

  .simulator-visual {
    min-height: 300px;
    padding: 10px;
  }

  .simulator-results dl {
    grid-template-columns: 1fr;
  }

  .calculator-summary,
  .cost-model-notes div {
    grid-template-columns: 1fr;
  }

  .calculator-row-head {
    display: none;
  }

  .calculator-summary {
    gap: 18px;
  }

  .cost-presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cost-presets span {
    grid-column: 1 / -1;
    padding: 0;
  }

  .cost-presets button {
    font-size: 10px;
  }

  .calculator-form label {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    min-height: auto;
    padding: 12px;
  }

  .calculator-form input[type="range"] {
    grid-column: 1 / -1;
  }

  .calculator-form output {
    text-align: right;
  }

  .cost-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .credits article:first-child {
    grid-column: auto;
  }

  .answer-card,
  .flow-step {
    min-height: auto;
  }

  .answer-card h3,
  .standzeit-grid article h3,
  .flow-step span {
    margin-top: 34px;
    margin-bottom: 28px;
  }

  .takeaway h2 {
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
