/* Layout concept: daylight engineering. White and the palest sky, a live isotherm field
   drawn in light blue with one red line, crisp dark type, and tools people can use:
   a need-finder, a Passive House savings calculator and a quick-contact button.
   A deliberately single, light colour world. */
:root {
  --bg: #ffffff;
  --surface: #f3f8fc;
  --surface-2: #e6eff6;
  --ink: #13181d;
  --muted: #55606a;
  --line: rgba(19, 24, 29, 0.1);
  --accent: #e0252e;
  --accent-ink: #ffffff;
  --sky: #55606a;
  --iso: rgba(85, 96, 106, 0.16);

  --f-display: "Roboto Flex", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --t-xs: 0.78rem;
  --t-sm: 0.92rem;
  --t-md: 1.06rem;
  --t-lg: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
  --t-xl: clamp(1.6rem, 1.1rem + 2.2vw, 2.75rem);
  --t-2xl: clamp(2.4rem, 1.2rem + 5.4vw, 6rem);

  --wrap: 80rem;
  --gl: max(20px, env(safe-area-inset-left, 0px));
  --gr: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-md)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); text-wrap: balance; }
h1 { font-size: var(--t-2xl); font-weight: 760; font-stretch: 128%; line-height: 0.96; letter-spacing: -0.035em; }
h2 { font-size: var(--t-xl); font-weight: 700; font-stretch: 118%; line-height: 1.05; letter-spacing: -0.02em; }
h3 { font-size: var(--t-lg); font-weight: 650; font-stretch: 110%; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
.accent { color: var(--accent); }
.wrap {
  width: 100%; max-width: calc(var(--wrap) + 40px); margin-inline: auto;
  padding-left: var(--gl); padding-right: var(--gr);
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--surface); padding: 8px 12px; }
.eyebrow {
  font: 500 var(--t-xs)/1.3 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); flex: none; }
.muted { color: var(--muted); }

/* Header */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 34px; height: 28px; flex: none; }
.brand b { font: 800 1.1rem/1 var(--f-display); font-stretch: 140%; letter-spacing: 0.08em; }
.mark-a { fill: none; stroke: var(--accent); stroke-width: 3.6; }
.mark-b { fill: none; stroke: var(--ink); stroke-width: 3.6; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav a { display: block; padding: 9px 12px; text-decoration: none; font-size: var(--t-sm); font-weight: 500; color: var(--muted); border-radius: 999px; }
.nav a:hover { color: var(--ink); background: var(--line); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; display: block; height: 2px; margin-top: 3px; background: var(--accent); }
.nav .lang { font: 500 var(--t-xs)/1 var(--f-mono); letter-spacing: 0.08em; border: 1px solid var(--line); margin-left: 6px; padding: 9px 11px; }
@media (max-width: 760px) {
  .nav { width: 100%; overflow-x: auto; }
  .nav a { white-space: nowrap; padding: 8px 10px; }
}

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 22px; min-height: 52px;
  border-radius: 999px; text-decoration: none; font: 600 var(--t-sm)/1 var(--f-body);
  border: 1px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer;
}
.btn .arr {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-size: 1rem; transition: transform 0.25s ease;
}
.btn:hover .arr { transform: translateX(3px) rotate(-45deg); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--solid .arr { background: var(--accent-ink); color: var(--accent); }
.btn--plain { padding-right: 22px; }

/* Isotherm field */
.field { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.field canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.field-inner { position: relative; z-index: 1; }
.field::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 38%, transparent 70%);
}
.fig-note {
  position: absolute; z-index: 2; right: var(--gr); bottom: 16px;
  font: 400 var(--t-xs)/1.4 var(--f-mono); color: var(--muted); letter-spacing: 0.04em; text-align: right; max-width: 22rem;
}

/* Home hero */
.hero .field-inner { display: grid; gap: 28px; padding-block: clamp(64px, 10vw, 140px) clamp(72px, 9vw, 120px); max-width: 64rem; }
.hero .lede { font-size: var(--t-lg); line-height: 1.5; max-width: 38rem; color: var(--ink); }
.page-hero .field-inner { display: grid; gap: 20px; padding-block: clamp(56px, 8vw, 110px) clamp(48px, 6vw, 80px); max-width: 60rem; }
.page-hero h1 { font-size: clamp(2.2rem, 1.2rem + 4.2vw, 4.75rem); }
.page-hero .lede { font-size: var(--t-lg); line-height: 1.5; max-width: 40rem; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.facts > div { padding: 28px 24px 28px 0; display: grid; gap: 6px; align-content: start; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts b { font: 700 var(--t-xl)/1 var(--f-display); font-stretch: 125%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.facts b small { font-size: 0.45em; font-weight: 600; letter-spacing: 0; }
.facts span { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Sections */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section + .section { border-top: 1px solid var(--line); }
.head { display: grid; gap: 16px; max-width: 48rem; margin-bottom: clamp(36px, 5vw, 64px); }
.statement { font: 500 var(--t-xl)/1.18 var(--f-display); font-stretch: 112%; letter-spacing: -0.015em; max-width: 60rem; text-wrap: balance; }
.statement em { font-style: normal; color: var(--muted); }

/* Discipline rows */
.rows { border-top: 1px solid var(--ink); }
.row {
  display: grid; grid-template-columns: 4rem minmax(0, 1.2fr) minmax(0, 1fr) 3rem; gap: 24px 32px; align-items: start;
  padding-block: 36px; border-bottom: 1px solid var(--line); text-decoration: none; position: relative;
}
.row .idx { font: 500 var(--t-sm)/1.6 var(--f-mono); color: var(--accent); }
.row h3 { font-size: clamp(1.5rem, 1rem + 1.8vw, 2.4rem); font-weight: 700; font-stretch: 120%; letter-spacing: -0.02em; }
.row .kind { display: block; margin-top: 10px; font: 500 var(--t-xs)/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.row p { color: var(--muted); }
.row .go { justify-self: end; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color 0.2s, color 0.2s, transform 0.25s; }
.row:hover .go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: rotate(-45deg); }
.row:hover h3 { color: var(--accent); }
@media (max-width: 860px) {
  .row { grid-template-columns: 3rem minmax(0, 1fr); }
  .row p { grid-column: 2; }
  .row .go { display: none; }
}

/* Split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.prose { display: grid; gap: 18px; max-width: 40rem; }
.prose p { font-size: var(--t-md); }
.prose .big { font-size: var(--t-lg); line-height: 1.5; }

/* People */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.person { display: grid; gap: 16px; align-content: start; padding-top: 24px; border-top: 1px solid var(--ink); }
.person .mono {
  width: 88px; height: 88px; display: grid; place-items: center;
  font: 700 1.6rem/1 var(--f-display); font-stretch: 130%; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface)); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.person h3 { font-size: var(--t-xl); }
.role { font: 500 var(--t-xs)/1.5 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: var(--t-xs); padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 760px) { .people { grid-template-columns: minmax(0, 1fr); } }

/* Principles grid */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.grid4 > div { padding: 28px 24px 0 0; display: grid; gap: 10px; align-content: start; }
.grid4 > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.grid4 h3 { font-size: var(--t-lg); }
.grid4 p { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 900px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .grid4 > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 520px) {
  .grid4 { grid-template-columns: minmax(0, 1fr); }
  .grid4 > div + div { padding-left: 0; border-left: 0; }
}

/* Logos / names */
.names { display: flex; flex-wrap: wrap; gap: 12px 48px; align-items: baseline; }
.names span { font: 650 clamp(1.3rem, 1rem + 1.2vw, 2rem)/1.2 var(--f-display); font-stretch: 115%; letter-spacing: -0.01em; color: var(--muted); }
.names span:hover { color: var(--ink); }

/* Memberships */
.members { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 12px; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 6px; align-content: start; }
.member b { font: 650 1.05rem/1.25 var(--f-display); font-stretch: 108%; }
.member span { color: var(--muted); font-size: var(--t-sm); }

/* Service detail */
.service { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); scroll-margin-top: 96px; }
.service-side { display: grid; gap: 18px; align-content: start; position: sticky; top: 110px; }
.service-side .idx { font: 500 var(--t-sm)/1 var(--f-mono); color: var(--accent); }
.service-body { display: grid; gap: 28px; min-width: 0; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.ticks li { padding: 14px 0 14px 22px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; }
.table-scroll { overflow-x: auto; }
.spec { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { font: 500 var(--t-xs)/1.5 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); width: 40%; }
.spec td { font-weight: 500; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { text-decoration: none; font-size: var(--t-sm); padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.jump a:hover { border-color: var(--ink); }
@media (max-width: 860px) {
  .service { grid-template-columns: minmax(0, 1fr); }
  .service-side { position: static; }
  .ticks { grid-template-columns: minmax(0, 1fr); }
}

/* Clients */
.clients { border-top: 1px solid var(--ink); }
.client { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; gap: 16px 32px; align-items: baseline; padding-block: 32px; border-bottom: 1px solid var(--line); }
.client .idx { font: 500 var(--t-sm)/1 var(--f-mono); color: var(--accent); }
.client h3 { font-size: clamp(1.5rem, 1rem + 1.8vw, 2.4rem); font-weight: 700; font-stretch: 118%; }
.client p { color: var(--muted); margin-top: 8px; max-width: 40rem; }
.client a { font: 500 var(--t-xs)/1 var(--f-mono); white-space: nowrap; }
@media (max-width: 700px) { .client { grid-template-columns: minmax(0, 1fr); } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.details { border-top: 1px solid var(--ink); }
.details > div { display: grid; gap: 6px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.details .k { font: 500 var(--t-xs)/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.details .v { font: 600 var(--t-lg)/1.3 var(--f-display); font-stretch: 108%; overflow-wrap: anywhere; text-decoration: none; }
.row-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.copy { font: 500 var(--t-xs)/1 var(--f-mono); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.copy:hover { color: var(--ink); border-color: var(--ink); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); display: grid; gap: 18px; }
.f-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .f-row { grid-template-columns: minmax(0, 1fr); } }
.f { display: grid; gap: 6px; }
.f label { font: 500 var(--t-xs)/1.3 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.f input, .f select, .f textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px;
}
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.f textarea { min-height: 9rem; resize: vertical; }
.note { color: var(--muted); font-size: var(--t-sm); }
.result { border: 1px solid var(--accent); border-radius: 16px; padding: 18px; display: grid; gap: 12px; }
.result pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 0.86rem/1.55 var(--f-mono); }

/* CTA */
.cta { background: var(--ink); color: var(--bg); }
.cta .wrap { display: grid; gap: 28px; padding-block: clamp(64px, 9vw, 120px); }
.cta h2 { font-size: clamp(2.2rem, 1.2rem + 4.4vw, 5rem); font-stretch: 128%; line-height: 0.98; letter-spacing: -0.03em; max-width: 18ch; }
.cta p { color: color-mix(in srgb, var(--bg) 70%, var(--ink)); font-size: var(--t-lg); max-width: 36rem; }
.cta .btn { border-color: var(--bg); color: var(--bg); }
.cta .btn .arr { background: var(--bg); color: var(--ink); }
.cta .btn--solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cta .btn--solid .arr { background: var(--accent-ink); color: var(--accent); }

/* Footer */
.site-footer { padding-block: 48px 28px; }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.foot .k { font: 500 var(--t-xs)/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; font: 400 var(--t-xs)/1.4 var(--f-mono); color: var(--muted); }
@media (max-width: 860px) {
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot > div:first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .nav a, .btn, .jump a, .copy { transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
  .row h3 { transition: color 0.2s; }
}

/* Every page is its own document, so hidden UI (lightbox, prepared email) must stay hidden. */

/* ===== Version 4: daylight overrides ===== */
.site-header { background: rgba(255, 255, 255, 0.82); }
.field { background: linear-gradient(180deg, #ffffff 0%, var(--surface) 100%); }
.field::after { background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.75) 38%, rgba(255, 255, 255, 0) 70%); }
.facts { border-bottom: 0; }
.facts b { color: var(--ink); }
.facts > div:first-child b { color: var(--accent); }
.row:hover h3 { color: var(--accent); }
.member, .panel { background: var(--surface); border-color: transparent; }
.form { background: var(--surface); border-color: transparent; }
.cta { background: var(--surface); color: var(--ink); border-top: 1px solid var(--line); }
.cta p { color: var(--muted); }
.cta .btn { border-color: var(--ink); color: var(--ink); }
.cta .btn .arr { background: var(--ink); color: #fff; }
.cta .btn--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.cta .btn--solid .arr { background: #fff; color: var(--accent); }

/* Need-finder */
.intent { background: var(--surface); }
.intent-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.intent-tabs button {
  display: grid; gap: 10px; text-align: left; padding: 20px 22px; border-radius: 22px; cursor: pointer;
  background: #fff; border: 1.5px solid transparent; color: var(--ink);
  font: 600 var(--t-md)/1.3 var(--f-body); box-shadow: 0 1px 0 var(--line); transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.intent-tabs button .k { font: 500 var(--t-xs)/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.intent-tabs button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(19, 24, 29, 0.35); }
.intent-tabs button[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 16px 34px -22px rgba(224, 37, 46, 0.55); }
.intent-tabs button[aria-selected="true"] .k { color: var(--accent); }
.intent-panel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 32px; padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: #fff; }
.intent-panel h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); font-weight: 700; font-stretch: 115%; }
.intent-panel p { color: var(--muted); max-width: 38rem; }
.ip-text { display: grid; gap: 18px; align-content: start; }
.ip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ip-list li { font-size: var(--t-sm); padding: 7px 14px; border-radius: 999px; background: var(--surface); }
.ip-fig { display: grid; align-content: center; justify-items: start; gap: 8px; padding: 24px; border-radius: 22px; background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%); }
.ip-fig b { font: 700 clamp(2.4rem, 1.6rem + 3vw, 4rem)/1 var(--f-display); font-stretch: 125%; letter-spacing: -0.03em; color: var(--accent); }
.ip-fig span { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 860px) {
  .intent-tabs { grid-template-columns: minmax(0, 1fr); }
  .intent-panel { grid-template-columns: minmax(0, 1fr); }
}

/* Savings calculator */
.calc { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.calc-text { display: grid; gap: 18px; }
.calc-text p { color: var(--muted); }
.calc-box { display: grid; gap: 18px; padding: clamp(22px, 4vw, 40px); border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -45px rgba(19, 24, 29, 0.35); }
.calc-field { display: grid; gap: 8px; }
.calc-field label { font: 500 var(--t-xs)/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.calc-row { display: flex; align-items: center; gap: 16px; }
.calc-row output { min-width: 6.5rem; text-align: right; font: 700 var(--t-lg)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.calc input[type="range"] { flex: 1; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 999px; background: var(--surface-2); cursor: pointer; }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 4px 12px rgba(224, 37, 46, 0.3); }
.calc input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.calc-hint { font-size: var(--t-xs); color: var(--muted); }
.calc-bars { display: grid; gap: 12px; padding-top: 6px; }
.cbar { display: grid; gap: 6px; }
.cbar-head { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-sm); }
.cbar-head b { font-variant-numeric: tabular-nums; }
.cbar-track { height: 14px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.cbar-fill { height: 100%; border-radius: 999px; background: #c3cad0; transition: width 0.35s ease; }
.cbar.ph .cbar-fill { background: var(--sky); }
.calc-result { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; padding: 18px 20px; border-radius: 18px; background: var(--surface); }
.calc-result span { font: 500 var(--t-xs)/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.calc-result b { font: 700 clamp(2rem, 1.4rem + 2vw, 3rem)/1 var(--f-display); font-stretch: 120%; color: var(--accent); font-variant-numeric: tabular-nums; }
.calc-result small { width: 100%; color: var(--muted); }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } }

/* Quick contact button */
.fab {
  position: fixed; z-index: 40; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 18px 40px -18px rgba(19, 24, 29, 0.45); border: 1px solid var(--line);
}
.fab a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none; font: 600 var(--t-sm)/1 var(--f-body); color: var(--ink); }
.fab a:first-child { background: #1fa855; color: #fff; }
.fab a:hover { filter: brightness(1.05); }
.fab svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 520px) { .fab .t { display: none; } .fab a { padding: 0 14px; } }

@media (prefers-reduced-motion: reduce) { .cbar-fill, .intent-tabs button { transition: none; } }

/* Three scales explorer: one lens that zooms from building to street to region */
.scales { background: linear-gradient(180deg, #ffffff 0%, var(--surface) 100%); }
.scales .head p { color: var(--muted); font-size: var(--t-lg); max-width: 44rem; }
.sx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.sx-lens { position: relative; width: 100%; max-width: 520px; justify-self: center; }
.sx-lens .ring { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -50px rgba(19, 24, 29, 0.38); }
.sx-lens svg.d { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(1.35); transition: opacity 0.6s ease, transform 0.8s cubic-bezier(.2, .7, .2, 1); }
.sx-lens svg.d.on { opacity: 1; transform: scale(1); }
.sx-lens svg.d.out { transform: scale(0.7); }
.sx-lens .tick { position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(19, 24, 29, 0.22); pointer-events: none; }
.sxl { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sxt { fill: none; stroke: #b5bdc4; stroke-width: 1; }
.sxd { fill: none; stroke: #b5bdc4; stroke-width: 1; stroke-dasharray: 5 4; }
.sxr { fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linejoin: round; stroke-linecap: round; }
.sxb { fill: none; stroke: var(--sky); stroke-width: 1.6; }
.sxw { fill: #e6eff6; stroke: none; }
.sxf { fill: #fff; stroke: var(--ink); stroke-width: 1.6; }
.sxa { fill: var(--accent); }
.sxk { fill: var(--sky); }
.sxx { fill: var(--muted); font: 500 11px var(--f-mono); letter-spacing: 0.06em; }
.sx-bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 26px; font: 500 var(--t-xs)/1 var(--f-mono); color: var(--muted); letter-spacing: 0.06em; }
.sx-bar i { display: block; width: 120px; height: 8px; border: 1.5px solid var(--ink); border-top: 0; background: linear-gradient(90deg, var(--ink) 0 50%, transparent 50% 100%); background-size: 50% 100%; }
.sx-bar b { color: var(--ink); font-weight: 700; }

.sx-steps { display: grid; gap: 12px; }
.sx-zoom { display: grid; gap: 8px; margin-bottom: 8px; }
.sx-zoom label { font: 500 var(--t-xs)/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sx-zoom input { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--ink)); cursor: pointer; }
.sx-zoom input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.sx-zoom input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.sx-zoom .marks { display: flex; justify-content: space-between; font: 500 0.7rem/1 var(--f-mono); color: var(--muted); }
.sx-step { border-radius: 22px; background: #fff; border: 1.5px solid transparent; box-shadow: 0 1px 0 var(--line); transition: border-color 0.2s, box-shadow 0.2s; }
.sx-step[aria-current="true"] { border-color: var(--accent); box-shadow: 0 20px 40px -30px rgba(224, 37, 46, 0.6); }
.sx-step > button { width: 100%; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 14px; align-items: center; text-align: left; padding: 18px 22px; background: none; border: 0; cursor: pointer; color: var(--ink); font: 600 var(--t-md)/1.3 var(--f-body); }
.sx-step .sc { font: 700 var(--t-sm)/1 var(--f-mono); color: var(--accent); }
.sx-step .chev { color: var(--muted); transition: transform 0.25s; }
.sx-step[aria-current="true"] .chev { transform: rotate(90deg); color: var(--accent); }
.sx-body { display: grid; gap: 14px; padding: 0 22px 22px; }
.sx-body p { color: var(--muted); }
.sx-body .fig { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sx-body .fig b { font: 700 clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem)/1 var(--f-display); font-stretch: 120%; color: var(--accent); letter-spacing: -0.02em; }
.sx-body .fig span { color: var(--muted); font-size: var(--t-sm); }
.sx-thread { margin-top: 18px; padding: 16px 20px; border-left: 3px solid var(--accent); color: var(--ink); font-size: var(--t-md); }
@media (max-width: 900px) {
  .sx { grid-template-columns: minmax(0, 1fr); }
  .sx-lens { max-width: 360px; }
  .sx-step > button { grid-template-columns: 5.2rem minmax(0, 1fr) auto; padding: 16px 18px; }
}
@media (prefers-reduced-motion: reduce) { .sx-lens svg.d { transition: opacity 0.2s; transform: none !important; } }

/* Every page is its own document, so hidden UI must stay hidden. */
[hidden] { display: none !important; }
