:root {
  --bg: #0b0c0e;
  --surface: #141618;
  --line: #2a2e33;
  --text: #f2f1ec;
  --muted: #b0b2ac;
  --accent: #e3ff3d;
  --max: 1120px;
  --pad: 80px;
  --nav-height: 64px;
  --font: "IBM Plex Sans Condensed", "Geist", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

.wrap {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.section { padding-block: var(--pad); border-top: 1px solid var(--line); }

section { scroll-margin-top: calc(var(--nav-height) + 16px); }

.section-head { display: grid; gap: 12px; margin-bottom: 32px; }

.section-head h2,
.cell-copy h2,
.close-grid h2 { font-size: clamp(32px, 4vw, 48px); }

.section-head p, .lede { color: var(--muted); max-width: 62ch; }

.lede { font-size: 20px; line-height: 1.55; max-width: 44ch; }

.label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 24px;
  background: var(--accent);
  color: #0b0c0e;
  font: inherit;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}

.button:hover { background: #edff80; }

.text-link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--nav-height);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.nav-inner { display: flex; align-items: center; gap: 24px; min-height: var(--nav-height); }
.wordmark { font-weight: 600; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 16px; }
.nav-links a:not(.button) { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.nav-links a:not(.button)::after { content: ""; position: absolute; bottom: 4px; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .15s ease; }
.nav-links a:not(.button):hover, .nav-links a[aria-current="location"] { color: var(--text); }
.nav-links a:not(.button)[aria-current="location"]::after { transform: scaleX(1); }
.nav-links .button, .nav-links .button:hover, .nav-links .button[aria-current="location"] { color: var(--bg); }
.nav-toggle { display: none; min-height: 44px; background: transparent; border: 1px solid var(--line); color: var(--text); font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; padding-inline: 12px; cursor: pointer; margin-left: auto; }

/* Hero: copy follows the main column; the drawing can extend to the right. */
.hero { min-height: calc(100svh - var(--nav-height)); padding-block: clamp(48px, 5vw, 80px); border-top: 0; display: grid; align-items: center; }
.hero-grid { width: auto; margin-left: max(24px, calc((100% - var(--max)) / 2)); margin-right: max(24px, calc((100% - 1380px) / 2)); display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 32px; align-items: center; }
.hero-copy { min-width: 0; display: grid; gap: 24px; align-content: center; }
.hero h1 { font-size: clamp(48px, 4.8vw, 72px); max-width: 14ch; }
.actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }

/* The SVG is inline for keyboard-accessible pause control and offline use. */
.hero-media { margin: 0; min-width: 0; position: relative; }
.hero-media svg { display: block; width: 100%; height: auto; overflow: hidden; }
.cell-drawing-header, .cell-caption { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.cell-drawing-header { padding-block: 14px; border-top: 1px solid var(--line); }
.cell-drawing-header span:first-child { color: var(--text); }
.cell-caption { border-top: 1px solid var(--line); min-height: 52px; }
.cell-sequence { display: flex; flex-wrap: wrap; gap: 20px; font-size: 9px; }
.cell-sequence span { white-space: nowrap; }
.cell-phase { opacity: .42; }
.cell-phase-machine { animation: cell-phase-machine 24s steps(1, end) infinite; }
.cell-phase-unload { animation: cell-phase-unload 24s steps(1, end) infinite; }
.cell-phase-load { animation: cell-phase-load 24s steps(1, end) infinite; }
@keyframes cell-phase-machine { 0% { opacity: 1; } 52% { opacity: .42; } }
@keyframes cell-phase-unload { 0% { opacity: .42; } 52% { opacity: 1; } 78% { opacity: .42; } }
@keyframes cell-phase-load { 0% { opacity: .42; } 78% { opacity: 1; } }

.cell-motion { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0 8px 12px; border: 0; background: transparent; color: var(--text); font: inherit; letter-spacing: .04em; cursor: pointer; }
.cell-motion[hidden] { display: none; }
.cell-motion-icon { display: inline-block; width: 10px; font-size: 14px; }
.cell-motion:hover { color: #fff; }
.cell-cycle-track { height: 1px; overflow: hidden; background: var(--line); }
.cell-cycle-track span { display: block; width: 100%; height: 100%; background: var(--text); transform: scaleX(0); transform-origin: left; animation: cell-progress 24s linear infinite; }
@keyframes cell-progress { to { transform: scaleX(1); } }
:is(.hero-media, .probe-media)[data-paused="true"] *, :is(.hero-media, .probe-media)[data-suspended="true"] * { animation-play-state: paused !important; }
:is(.hero-media, .probe-media)[data-reduced="true"] * { animation: none !important; }
:is(.hero-media, .probe-media)[data-reduced="true"] .cell-cycle-track span { transform: scaleX(0); }


/* Proof */
.proof { padding-block: 0; }

.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }

.proof-grid li { display: grid; gap: 8px; padding: 24px; border-right: 1px solid var(--line); background: var(--surface); }

.proof-value { font-size: clamp(20px, 3vw, 32px); font-weight: 600; }

/* Capabilities */
.cap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cap-card { min-width: 0; display: grid; align-content: start; gap: 16px; padding: 32px; border: 1px solid var(--line); background: var(--surface); }
.card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.card-heading .label { color: var(--accent); }
.cap-card h3, .work-card h3 { font-size: 24px; }
.cap-card p { color: var(--muted); }
.cap-facts { margin: 8px 0 0; }
.cap-facts > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding-block: 12px; border-top: 1px solid var(--line); }
.cap-facts dt, .work-facts dt { font: 13px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cap-facts dd, .work-facts dd { margin: 0; }

/* Process */
.steps-list { margin: 0; padding: 0; list-style: none; }

.steps-list li { display: grid; grid-template-columns: 80px 1fr 1.2fr; gap: 24px; align-items: baseline; padding-block: 24px; border-top: 1px solid var(--line); }

.step-n { font-family: var(--mono); color: var(--muted); }

.steps-list h3 { font-size: 24px; }

.steps-list p { color: var(--muted); }

/* Cell */
.cell-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }

.cell-copy { display: grid; gap: 32px; align-content: start; }

.cell-copy ul { display: grid; gap: 16px; margin: 0; padding-left: 16px; color: var(--muted); }

.cell-media { display: grid; gap: 0; min-width: 0; align-content: start; border: 1px solid var(--line); }
.probe-media { min-width: 0; margin: 0; overflow: hidden; background: var(--bg); }
.probe-media svg { display: block; width: 100%; height: auto; }
.probe-media .cell-drawing-header { padding-inline: 16px; border-top: 0; }
.probe-media .cell-caption { padding-inline: 16px; gap: 8px; }
.probe-media .cell-sequence { gap: 10px; font-size: 8px; }
.probe-media .cell-cycle-track span { animation-duration: 32s; }
.probe-media[data-reduced="true"] .cell-sequence span { opacity: 1; }
@media (max-width: 380px) {
  .probe-media .cell-caption { flex-wrap: wrap; padding-block: 6px; }
  .probe-media .cell-motion { margin-left: auto; }
}

.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); }

.spec-table th, .spec-table td { padding: 16px 24px; border-bottom: 1px solid var(--line); text-align: left; }

.spec-table tr:last-child > * { border-bottom: 0; }

.spec-table th { color: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 400; width: 180px; }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.work-card { min-width: 0; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.work-image { margin: 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.work-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.work-image figcaption { padding: 12px 24px; border-top: 1px solid var(--line); font: 11px/1.5 var(--mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.work-body { display: grid; align-content: start; gap: 24px; padding: 24px; flex: 1; }
.work-facts { margin: 0; display: grid; gap: 12px; }
.work-facts > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.work-outcome { border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); }
.work-outcome strong { color: var(--text); font-weight: 500; }

/* Fit */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

.fit-grid h2 { font-size: 32px; margin-bottom: 16px; }

.fit-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 24px; }

/* FAQ */
.faq-list details { border-top: 1px solid var(--line); }

.faq-list details:last-child { border-bottom: 1px solid var(--line); }

.faq-list summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; font-size: 20px; padding-block: 16px; }

.faq-list p { color: var(--muted); max-width: 62ch; padding-bottom: 24px; }

/* Contact */
.close-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }

.close-grid form { display: grid; gap: 24px; border: 1px solid var(--line); background: var(--surface); padding: 32px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }

.field-grid label { color: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }

.field-grid input, .field-grid textarea { min-width: 0; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; resize: vertical; }

.field-grid label:nth-of-type(odd), .field-grid input, .field-grid textarea:nth-of-type(1) { grid-column: auto; }

.field-grid label[for="file-note"], .field-grid textarea { grid-column: 1 / -1; }

.form-status { color: var(--muted); min-height: 1.55em; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--surface); }

.footer-grid { display: flex; gap: 24px; align-items: center; padding-block: 24px; font-size: 16px; }

.footer-grid nav { margin-left: auto; display: flex; gap: 24px; color: var(--muted); }

.footer-grid a:hover { color: var(--text); }

/* Keep desktop hero spacing independent of the viewport height. */
@media (min-width: 961px) {
  .hero { min-height: auto; padding-top: 48px; }
}

/* Tablet and mobile */
@media (max-width: 960px) {
  :root { --pad: 64px; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 100%; left: 24px; right: 24px; z-index: 20; display: grid; gap: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); font-size: 18px; }
  .nav-links[hidden] { display: none; }
  .nav-links a:not(.button), .nav-links .button { min-height: 48px; display: flex; align-items: center; padding: 12px 24px; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.button)::after { left: 24px; right: 24px; bottom: 8px; }
  .nav-links .button { border-bottom: 0; }
  .hero { min-height: auto; }
  .hero-grid { width: min(100% - 48px, var(--max)); margin-inline: auto; grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 640px; }
  .hero h1 { font-size: clamp(48px, 8vw, 72px); }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-grid li { border-bottom: 1px solid var(--line); }
  .cap-card { padding: 24px; }
  .cap-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .cell-grid, .close-grid { grid-template-columns: 1fr; gap: 32px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .work-image { display: flex; flex-direction: column; justify-content: center; border-bottom: 0; border-right: 1px solid var(--line); }
  .work-image figcaption { margin-top: auto; }
  .work-body { padding: 32px; }
  .footer-grid { flex-wrap: wrap; }
  .footer-grid nav { width: 100%; margin: 0; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .wrap, .hero-grid { width: calc(100% - 32px); }
  .nav-links { left: 16px; right: 16px; }
  .hero h1 { font-size: clamp(44px, 9vw, 56px); }
  .section-head { margin-bottom: 32px; }
  .cap-grid, .fit-grid { grid-template-columns: 1fr; }
  .cap-facts > div { grid-template-columns: 100px minmax(0, 1fr); gap: 12px; }
  .steps-list li { grid-template-columns: 32px minmax(0, 1fr); gap: 12px 16px; }
  .steps-list p { grid-column: 2; }
  .work-card { display: flex; }
  .work-image { border-right: 0; border-bottom: 1px solid var(--line); }
  .work-body, .close-grid form { padding: 24px; }
  .spec-table th, .spec-table td { padding: 16px; }
  .spec-table th { width: 48%; }
  .field-grid { grid-template-columns: 1fr; align-items: stretch; gap: 8px; }
  .field-grid input, .field-grid textarea { margin-bottom: 12px; }
}

@media (max-width: 480px) {
  .proof-grid li { padding: 16px; }
  .proof-value { font-size: 22px; }
  .proof-grid .label { font-size: 11px; letter-spacing: .06em; }
  .cell-sequence { gap: 10px; font-size: 8px; }
  .cell-drawing-header { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media *, .probe-media * { animation: none !important; }
  .nav-links a::after { transition: none !important; }
}


/* Quote */
.quote-intro { display: grid; gap: 24px; align-content: start; }
.quote-intro p { color: var(--muted); max-width: 42ch; }
.quote-points { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.quote-points li { display: grid; gap: 4px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.quote-points li span:last-child { font-size: 20px; }

.dropzone {
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: start;
  align-content: center;
  min-height: 168px;
  padding: 24px;
  border: 1px dashed var(--line);
  background: var(--bg);
  cursor: pointer;
}
.dropzone:hover, .dropzone.is-hot { border-color: var(--text); }
.dropzone.is-hot { border-color: var(--accent); background: #171b10; }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.dropzone-title { font-size: 24px; letter-spacing: -.02em; }
.dropzone-note, .dropzone-file { color: var(--muted); }
.dropzone-file { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; overflow-wrap: anywhere; }

.material-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}
.material-choice legend { grid-column: 1 / -1; margin: 0; padding: 0; }
.material-option {
  position: relative;
  display: grid;
  gap: 2px;
  align-content: center;
  min-height: 72px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
}
.material-option:hover { border-color: var(--text); }
.material-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.material-option.is-selected, .material-option:has(input:checked) { border-color: var(--accent); }
.material-option.is-selected:hover { border-color: var(--accent); }
.material-option:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.material-name { font-size: 20px; }
.material-grade { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.quote-fields { grid-template-columns: auto minmax(0, 160px); justify-content: start; align-items: center; }
.quote-result { display: grid; gap: 20px; border-top: 1px solid var(--line); padding-top: 8px; }
.quote-result[hidden] { display: none; }
.quote-result-head { display: grid; grid-template-columns: 1.4fr .8fr; gap: 16px; align-items: end; }
.quote-cost, .quote-lead { display: grid; gap: 8px; }
.quote-cost strong { font-size: clamp(36px, 4vw, 56px); letter-spacing: -.03em; color: var(--accent); line-height: .95; }
.quote-lead strong { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.02em; line-height: 1; }
.quote-unit, .quote-note { color: var(--muted); }
.quote-note { font-size: 16px; }
.quote-facts { margin: 0; display: grid; }
.quote-facts div { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 12px; padding-block: 12px; border-top: 1px solid var(--line); }
.quote-facts dt { font: 13px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.quote-facts dd { margin: 0; white-space: pre-line; }
.button:disabled { opacity: .55; cursor: progress; }

@media (max-width: 640px) {
  .material-choice, .quote-result-head, .quote-facts div, .quote-fields { grid-template-columns: 1fr; }
  .dropzone { min-height: 148px; padding: 20px; }
}

/* Cost roadmap page */
.roadmap-hero { padding-block: clamp(56px, 7vw, 104px); border-top: 0; }
.roadmap-hero h1 { font-size: clamp(48px, 5vw, 80px); max-width: 16ch; margin-bottom: 24px; }
.roadmap-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: start; }
.roadmap-callout { display: grid; gap: 16px; align-content: start; padding: 32px; border: 1px solid var(--line); background: var(--surface); }
.roadmap-callout h2 { font-size: 28px; }
.roadmap-callout p { color: var(--muted); }
.roadmap-callout p.label { color: var(--accent); }
.roadmap-table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
.roadmap-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.roadmap-table caption { text-align: left; padding: 24px; color: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.roadmap-table th, .roadmap-table td { padding: 20px 24px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.roadmap-table thead th { background: #1b2127; color: var(--muted); font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.roadmap-table tbody th { color: var(--text); font-size: 20px; font-weight: 500; width: 190px; }
.roadmap-table tbody td { color: var(--muted); }
.roadmap-table strong { display: block; color: var(--accent); font-size: 20px; letter-spacing: -.01em; white-space: nowrap; }
.roadmap-table ul { display: grid; gap: 8px; margin: 0; padding-left: 18px; list-style: disc; }
.roadmap-table tr:last-child > * { border-bottom: 0; }
.roadmap-note { margin-top: 24px; padding: 24px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--muted); }
.roadmap-note strong { color: var(--text); font-weight: 500; }
.roadmap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.roadmap-grid article { display: grid; gap: 12px; align-content: start; min-width: 0; padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.roadmap-grid h3 { font-size: 24px; }
.roadmap-grid p:not(.label) { color: var(--muted); }
.roadmap-grid .label { color: var(--accent); }

@media (max-width: 900px) {
  .roadmap-grid, .roadmap-risk-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .roadmap-grid { grid-template-columns: 1fr; }
  .roadmap-hero h1 { font-size: clamp(40px, 10vw, 58px); }
  .roadmap-table th, .roadmap-table td, .roadmap-table caption { padding: 16px; }
}
@media (max-width: 640px) {
  .roadmap-hero { padding-block: 48px; }
  .roadmap-grid { gap: 24px; }
  .roadmap-callout { padding: 24px; }
}


/* Equipment breakdown cards */
.equip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.equip-card { display: grid; gap: 20px; align-content: start; padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.equip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.equip-head h3 { font-size: 22px; }
.equip-total { color: var(--accent); font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.equip-items { list-style: none; margin: 0; padding: 0; display: grid; }
.equip-items li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.equip-items li:first-child { border-top: 0; padding-top: 0; }
.equip-items li > span:first-child { color: var(--muted); }
.equip-price { font-family: var(--mono); font-size: 14px; color: var(--text); white-space: nowrap; }

/* Financial chart cards */
.fin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fin-card { display: grid; gap: 20px; align-content: start; padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.fin-head { display: grid; gap: 4px; }
.fin-head h3 { font-size: 22px; }
.fin-label { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chart-container { width: 100%; }
.chart-container svg { width: 100%; height: auto; display: block; }
.fin-svg text { font-family: var(--mono); }
.axis-label { fill: var(--muted); font-size: 11px; }
.grid-line { stroke: var(--line); stroke-width: 1; }
.bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform .8s cubic-bezier(.22,1,.36,1) var(--d, 0s); }
.chart-visible .bar { transform: scaleY(1); }
.bar-rev { fill: var(--accent); }
.bar-debt { fill: #ff5f56; }
.area-fill { fill: var(--accent); opacity: 0; transition: opacity .8s ease .6s; }
.chart-visible .area-fill { opacity: .12; }
.net-line { stroke: var(--text); stroke-width: 2; fill: none; }
.net-line-anim { stroke-dasharray: var(--len, 0); stroke-dashoffset: var(--len, 0); transition: stroke-dashoffset 1.4s ease .3s; }
.chart-visible .net-line-anim { stroke-dashoffset: 0; }
.payback-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 4; }
.payback-label { fill: var(--muted); font-size: 11px; }
.hbar { transform-box: fill-box; transform-origin: left; transform: scaleX(0); transition: transform .8s cubic-bezier(.22,1,.36,1) var(--d, 0s); }
.chart-visible .hbar { transform: scaleX(1); }
.hbar-1 { fill: var(--accent); }
.hbar-2 { fill: #8b9dff; }
.hbar-3 { fill: #4ecdc4; }
.hbar-label { fill: var(--muted); font-size: 13px; }
.hbar-value { fill: var(--text); font-size: 13px; }
.donut-seg { stroke-dasharray: 0 var(--circ, 628); transition: stroke-dasharray .9s cubic-bezier(.22,1,.36,1) var(--d, 0s); }
.chart-visible .donut-seg { stroke-dasharray: var(--seg, 0) var(--circ, 628); }
.donut-center-val { fill: var(--accent); font-size: 28px; font-weight: 600; }
.donut-center-label { fill: var(--muted); font-size: 12px; }
.chart-legend { display: flex; gap: 20px; align-items: center; font-size: 14px; color: var(--muted); }
.legend-swatch { width: 14px; height: 14px; display: inline-block; }
.legend-rev { background: var(--accent); }
.legend-debt { background: #ff5f56; }
.fin-highlight { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 16px; }
.fin-stat-num { font-size: clamp(28px, 3vw, 40px); color: var(--accent); letter-spacing: -.02em; }
.fin-stat-cap { font-size: 14px; color: var(--muted); }
.fin-scenario-stats { display: grid; gap: 8px; }
.scenario-header, .scenario-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 8px; padding: 10px 16px; }
.scenario-header { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.scenario-row { border: 1px solid var(--line); background: var(--bg); font-size: 14px; color: var(--muted); }
.scenario-row > span:first-child { color: var(--text); }
.scenario-row > span:nth-child(2) { color: var(--accent); font-family: var(--mono); }
.scenario-row > span:nth-child(3), .scenario-row > span:nth-child(4) { font-family: var(--mono); color: var(--text); }
.donut-legend { display: grid; gap: 0; }
.dl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.dl-row:first-child { border-top: 0; padding-top: 0; }
.dl-swatch { width: 10px; height: 10px; display: inline-block; margin-right: 8px; flex: none; }
.dl-value { font-family: var(--mono); font-size: 13px; color: var(--text); white-space: nowrap; }

@media (max-width: 900px) {
  .equip-grid, .fin-grid { grid-template-columns: 1fr; }
  .scenario-header, .scenario-row { grid-template-columns: 1fr 1fr 1fr 1fr; font-size: 13px; padding: 8px 12px; }
}
