:root {
  color-scheme: light;
  --ink: #162026;
  --ink-2: #202d33;
  --paper: #f3f5f2;
  --white: #fff;
  --muted: #4d6065;
  --line: #c8d0cc;
  --orange: #f27a46;
  --orange-dark: #9f3e1e;
  --teal: #136879;
  --blue: #7ed3df;
  --max: 1200px;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 100%;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #1694aa; outline-offset: 4px; }
.hero :focus-visible, .model-card :focus-visible, .site-footer :focus-visible { outline-color: var(--blue); }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3, h4 { line-height: 1.1; }
.container { width: min(var(--max), calc(100% - 100px)); margin-inline: auto; }
.section { padding-block: clamp(72px, 8vw, 126px); scroll-margin-top: 35px; }
.section-heading { max-width: 830px; margin-bottom: 36px; }
.section-heading h2 { font-size: clamp(2.35rem, 5vw, 4.25rem); letter-spacing: -.06em; margin: 10px 0 18px; }
.section-heading > p:last-child { max-width: 735px; color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.16rem); }
.section-tag { color: var(--orange-dark); font-size: .87rem; font-weight: 750; letter-spacing: .085em; text-transform: uppercase; }
.skip-link { position: fixed; top: 6px; left: 6px; z-index: 5; padding: 10px 18px; transform: translateY(-130%); background: var(--white); }
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--paper); }
.header-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.wordmark { font-size: 1.52rem; font-weight: 850; letter-spacing: -.075em; line-height: 1; display: inline-flex; align-items: center; gap: 11px; width: fit-content; text-decoration: none; }
.brand-mark { width: 24px; height: 27px; display: inline-block; position: relative; flex: 0 0 auto; transform: skewX(-15deg); }
.brand-mark::before, .brand-mark::after { content: ""; width: 7px; display: block; position: absolute; background: var(--orange); }
.brand-mark::before { height: 22px; top: 0; left: 3px; }
.brand-mark::after { height: 18px; top: 8px; left: 14px; }
nav { display: flex; align-items: center; gap: clamp(23px, 4vw, 53px); }
nav a { text-decoration: none; font-size: .95rem; font-weight: 650; }
nav a:hover, .text-link:hover { text-decoration-thickness: 2px; text-decoration-color: var(--orange-dark); text-decoration-line: underline; text-underline-offset: 5px; }
.header-action { justify-self: end; }
.button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 49px; padding: 10px 19px; border-radius: 5px; border: 1px solid transparent; background: none; font-weight: 730; text-decoration: none; line-height: 1.2; cursor: pointer; transition: background-color .18s, border-color .18s; text-align: center; }
.button-small { min-height: 41px; padding: 8px 14px; font-size: .91rem; }
.button-accent { background: var(--orange); color: #1c1917; }
.button-accent:hover { background: #ff9366; }
.button-outline { border-color: #6f7c7d; }
.button-outline:hover { background: #e1e8e3; border-color: #334348; }
.button-ghost { border-color: #adbac0; color: #f7f9fa; }
.button-ghost:hover { background: #304047; border-color: #e3ecec; }
.button:disabled { cursor: wait; }
.text-link { text-underline-offset: 4px; font-weight: 700; }

.hero { position: relative; overflow: clip; background: #141b1f; color: #f8f9f6; isolation: isolate; }
.hero-image { position: absolute; z-index: -2; right: 0; top: 0; width: 75%; height: 100%; object-fit: cover; object-position: 61% center; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #141b1f 11%, #141b1f 27%, #141b1fe8 40%, #141b1f62 61%, #141b1f0a 87%), linear-gradient(0deg,#141b1fbf,transparent 26%); }
.hero-inner { min-height: clamp(550px, 48vw, 695px); display: flex; align-items: center; position: relative; padding-block: clamp(76px, 8vw, 129px); }
.hero-copy { width: min(680px, 61%); position: relative; z-index: 1; }
.hero-kicker { color: #d4dfdb; letter-spacing: .1em; text-transform: uppercase; font-size: .86rem; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 11px; }
.hero-kicker span { height: 2px; width: 26px; display: inline-block; background: var(--orange); }
.hero h1 { font-size: clamp(3.3rem, 6.85vw, 6.65rem); line-height: .99; font-weight: 820; letter-spacing: -.073em; }
.hero h1 em { color: #ff9365; font-style: normal; }
.hero-lead { color: #e0e7e7; max-width: 450px; line-height: 1.55; margin-top: 25px; font-size: clamp(1.03rem, 1.6vw, 1.28rem); }
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.hero-caption { position: absolute; bottom: 23px; right: 0; text-align: right; color: #e9eeee; font-size: .8rem; padding: 5px 8px; background: #111a1ecc; border-radius: 3px; }

.metrics-band { background: var(--white); border-bottom: 1px solid var(--line); }
.metrics { display: grid; grid-template-columns: 1fr 1fr 1.12fr; }
.metrics > div { padding: 33px 28px 36px; min-width: 0; border-inline-start: 1px solid var(--line); }
.metrics > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.metrics > div:last-child { padding-inline-end: 0; }
.metrics dt { font-size: clamp(1.25rem, 2.7vw, 2.35rem); font-weight: 760; line-height: 1; letter-spacing: -.05em; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.metrics dt span { font-size: clamp(2rem, 4.5vw, 4.3rem); }
.metrics dd { max-width: 315px; color: var(--muted); font-size: .97rem; }

.tech-grid { display: grid; grid-template-columns: minmax(275px,.8fr) minmax(0,1.35fr); gap: clamp(28px,5vw,76px); align-items: start; }
.flow-list { border-top: 1px solid var(--line); }
.flow { border-bottom: 1px solid var(--line); }
.flow summary, .pilot-request summary { list-style: none; cursor: pointer; }
.flow summary::-webkit-details-marker, .pilot-request summary::-webkit-details-marker { display: none; }
.flow summary { display: grid; grid-template-columns: 13px 1fr 15px; gap: 13px; align-items: center; padding: 17px 4px; font-size: 1.22rem; font-weight: 730; }
.flow summary::after, .pilot-request summary::after { content: "+"; font-weight: 550; font-size: 1.4rem; line-height: 1; text-align: center; }
.flow[open] summary::after, .pilot-request details[open] summary::after { content: "−"; }
.flow summary:hover { background: #e8eeea; }
.flow-dot { width: 10px; height: 10px; display: inline-block; border-radius: 50%; background: var(--orange-dark); }
.flow-electric .flow-dot { background: #816020; }
.flow-water .flow-dot { background: var(--teal); }
.flow p { color: var(--muted); margin: 0 19px 22px 30px; }
.cutaway, .test-bench { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.cutaway img, .test-bench img { width: 100%; }
figcaption { color: var(--muted); border-top: 1px solid var(--line); padding: 11px 15px; font-size: .86rem; background: var(--white); }

.model-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px,5vw,70px); background: var(--ink); border-radius: 8px; color: var(--white); margin-top: clamp(42px,6vw,82px); padding: clamp(24px,4vw,45px); align-items: center; scroll-margin-top: 20px; }
.model-copy .section-tag { color: #ff9b75; }
.model-copy h3 { font-size: clamp(1.9rem,4vw,3.2rem); margin: 9px 0 14px; letter-spacing: -.045em; }
.model-copy > p:not(.section-tag) { color: #d7e3e2; max-width: 400px; }
.model-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 20px; margin-top: 20px; }
.model-status { margin-top: 10px; color: var(--blue); font-size: .9rem; }
.model-status:empty, .copy-status:empty { display: none; }
.model-view { position: relative; min-width: 0; overflow: hidden; border: 1px solid #657474; border-radius: 5px; min-height: 0; }
.model-poster { width: 100%; aspect-ratio: 16/10; object-fit: contain; background: #f5f5f5; }
.model-view canvas { display: block; width: 100%; aspect-ratio: 16/10; background: #172930; cursor: grab; touch-action: pan-y; }
.model-view canvas:active { cursor: grabbing; }
.viewer-controls { position: absolute; bottom: 10px; inset-inline: 9px; display: flex; justify-content: space-between; gap: 7px; flex-wrap: wrap; align-items: center; }
.viewer-controls button, .model-option { color: #fff; background: #101b20eb; border: 1px solid #627778; border-radius: 4px; min-height: 34px; padding: 4px 8px; font-size: .84rem; cursor: pointer; }
.model-option { display: flex; align-items: center; gap: 4px; }
.model-option input { accent-color: var(--orange); }

.calculations { background: #e7eeec; border-block: 1px solid var(--line); }
.scenario-tabs { display: flex; align-items: end; gap: 10px; margin-bottom: 16px; }
.scenario-tabs button { border: 1px solid #869793; background: transparent; padding: 11px 16px; min-height: 46px; border-radius: 5px; font-weight: 710; cursor: pointer; }
.scenario-tabs button:hover { background: #d1e0dc; }
.scenario-tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.scenario-panel { background: var(--white); border: 1px solid var(--line); border-radius: 7px; padding: clamp(22px,4vw,42px); }
.scenario-overview, .boiler-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(23px,5vw,65px); align-items: start; }
.scenario-panel h3 { font-size: clamp(1.62rem,3.5vw,2.9rem); letter-spacing: -.045em; margin-bottom: 11px; }
.scenario-panel p { color: var(--muted); }
.calculator { padding: clamp(17px,3vw,26px); border: 1px solid #b7cac8; border-top: 3px solid var(--teal); border-radius: 4px; background: #ebf3f2; }
.calculator h4 { color: var(--ink); font-size: 1.13rem; margin-bottom: 8px; }
.calculator p { margin-bottom: 13px; }
.range-heading { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; }
.range-heading output { font-weight: 720; flex: 0 0 auto; }
input[type="range"] { display: block; width: 100%; margin: 7px 0 15px; height: 22px; accent-color: var(--teal); cursor: pointer; }
.calculator-result { display: flex; gap: 5px 12px; align-items: baseline; flex-wrap: wrap; border-top: 1px solid #b7cac8; padding-top: 10px; }
.calculator-result output { font-size: 1.95rem; font-weight: 800; color: var(--teal); letter-spacing: -.035em; white-space: nowrap; }
.calculator-result[data-state="negative"] output { color: var(--orange-dark); }
.calculator-result span { color: var(--muted); font-size: .9rem; }
.table-scroll { overflow: auto; margin-top: 30px; border: 1px solid var(--line); padding-top: 13px; border-radius: 5px; }
table { border-collapse: collapse; width: 100%; min-width: 470px; background: var(--white); }
caption { padding: 0 14px 12px; font-weight: 750; text-align: left; font-size: 1.1rem; }
th, td { padding: 12px 14px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
thead th { background: #e9f0ee; color: var(--ink); }
tbody th { font-weight: 650; }
tbody td { font-variant-numeric: tabular-nums; }
tbody tr:nth-child(2) { background: #f7eee8; }
.scenario-note { margin-top: 16px; max-width: 880px; }
.boiler-grid h4 { margin-top: 22px; font-size: 1.1rem; }
.compact-list { margin: 10px 0 0; padding-left: 21px; }
.compact-list li + li { margin-top: 6px; }
.payback { border-radius: 5px; background: var(--ink); padding: clamp(20px,4vw,38px); border-top: 4px solid var(--orange); }
.payback p { color: #e0e8e5; }
.payback strong { display: block; color: #ffa47e; font-size: clamp(2.3rem,5vw,4rem); letter-spacing: -.06em; line-height: 1.08; margin-block: 10px 13px; }
.payback small { font-size: .42em; letter-spacing: -.01em; }

.steps { padding: 0; margin: 32px 0 39px; list-style: none; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.steps li { padding: 17px 15px 0 0; border-top: 3px solid var(--orange-dark); }
.steps li:nth-child(2) { border-color: #8e652c; }
.steps li:nth-child(3) { border-color: var(--teal); }
.steps h3 { font-size: clamp(1.25rem,2.5vw,1.75rem); margin-bottom: 8px; }
.steps p { color: var(--muted); }
.pilot-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(25px,5vw,64px); align-items: start; }
.pilot-request { border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 5px; background: var(--white); padding: clamp(20px,3vw,33px); }
.pilot-request h3 { font-size: clamp(1.45rem,3vw,2.12rem); margin-bottom: 12px; letter-spacing: -.035em; }
.pilot-request p { color: var(--muted); }
.pilot-request summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 750; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.pilot-request button { margin-top: 17px; }
.copy-status { margin-top: 9px; font-size: .9rem; }
.site-footer { background: var(--ink); color: var(--white); padding-block: 36px 41px; }
.footer-grid { display: grid; grid-template-columns: .8fr 1fr auto; gap: 20px 45px; align-items: start; }
.footer-grid p { color: #d4dddd; font-size: .9rem; max-width: 405px; }
.footer-grid > div p { margin-top: 12px; }

@media (max-width: 1000px) {
  .container { width: calc(100% - 64px); }
  .hero-copy { width: min(580px, 67%); }
  .hero-image { width: 81%; }
  .hero::before { background: linear-gradient(90deg,#141b1f 11%,#141b1ff5 24%,#141b1fc4 46%,#141b1f30 84%), linear-gradient(0deg,#141b1fd4,transparent 23%); }
  .metrics > div { padding-inline: 18px; }
  .metrics dt span, .metrics dt { white-space: nowrap; }
}

@media (max-width: 750px) {
  .container { width: calc(100% - 36px); }
  .header-inner { min-height: 70px; column-gap: 12px; grid-template-columns: 1fr auto; }
  .header-inner nav { grid-column: 1 / -1; grid-row: 2; padding-bottom: 13px; gap: 23px; }
  .wordmark { font-size: 1.42rem; }
  .header-action { grid-column: 2; grid-row: 1; margin-block: 9px; }
  .hero-inner { min-height: 640px; align-items: end; padding-block: 232px 58px; }
  .hero-image { width: 100%; height: 61%; object-position: 55% 43%; }
  .hero::before { background: linear-gradient(0deg,#141b1f 31%,#141b1fe3 45%,#141b1f2e 72%,#141b1f09); }
  .hero-copy { width: 100%; max-width: 560px; }
  .hero h1 { font-size: clamp(3.05rem, 9.2vw, 4.4rem); }
  .hero-caption { bottom: 10px; font-size: .77rem; }
  .hero-lead { margin-top: 18px; }
  .hero-actions { gap: 9px; margin-top: 24px; }
  .section-heading { margin-bottom: 25px; }
  .tech-grid, .scenario-overview, .boiler-grid, .pilot-grid, .model-card { grid-template-columns: 1fr; }
  .metrics > div { padding-block: 25px; padding-inline: 11px; }
  .metrics dt { font-size: 1rem; }
  .metrics dt span { font-size: clamp(1.45rem,5.5vw,2.4rem); }
  .metrics dd { font-size: .86rem; }
  .model-card { padding: 22px; }
  .steps { gap: 13px; }
  .steps li { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 470px) {
  .hero-inner { min-height: 590px; padding-top: 198px; }
  .hero-actions .button { padding-inline: 12px; }
  .metrics { grid-template-columns: 1fr; padding-block: 6px; }
  .metrics > div { border-inline: none; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(115px,.8fr) 1.2fr; align-items: center; gap: 13px; padding: 13px 0; }
  .metrics > div:first-child { border-top: 0; }
  .metrics dt { margin: 0; }
  .metrics dd { font-size: .9rem; }
  .section { padding-block: 69px; }
  .scenario-tabs { gap: 6px; }
  .scenario-tabs button { padding-inline: 8px; font-size: .88rem; }
  .scenario-panel { padding-inline: 15px; }
  .steps { grid-template-columns: 1fr; gap: 17px; }
  .steps li { padding: 8px 0 0 13px; border-top: 0; border-left: 3px solid var(--orange-dark); }
  .footer-grid { grid-template-columns: 1fr; gap: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
