/* CRAFTMAN — editorial pages between painted scenes.
   Layout: a painted, explorable hero (house or business building), then quiet parchment pages (max 1200px)
   punctuated by 24px-radius atmospheric cards. */
:root {
  /* colour */
  --parchment: #fefffc;
  --paper: #ffffff;
  --linen: #f9faf7;
  --ink: #171717;
  --graphite: #2c2c2c;
  --charcoal: #444141;
  --ash: #646464;
  --fog: #b4b8b4;
  --mist: #dee2de;
  --twilight: #282834;
  --dusk: #1f1f29;
  --signal: #41a1cf;
  --signal-ink: #0b6c9e;
  --signal-wash: rgba(65, 161, 207, 0.09);
  --cerulean: #0081c0;
  --night: #0f1730;
  --sky: #1d2f58;
  --heat: #d6542c;
  --heat-soft: #e6a24a;
  --on-dark: #ffffff;
  --on-dark-soft: #e6ecf7;
  /* type */
  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-ui: 'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --text-display: clamp(2.3rem, 1.45rem + 3.3vw, 3.375rem);
  --text-heading-lg: clamp(2rem, 1.45rem + 2.2vw, 3rem);
  --text-heading: clamp(1.6rem, 1.25rem + 1.5vw, 2.5rem);
  --text-heading-sm: clamp(1.35rem, 1.2rem + 0.6vw, 1.6875rem);
  /* shape */
  --r-btn: 8px;
  --r-card: 12px;
  --r-card-lg: 16px;
  --r-surface: 24px;
  --shadow-nav: rgba(0, 0, 0, 0.15) 0 2px 6px 0;
  --shadow-card: rgba(0, 0, 0, 0.08) 0 1px 1px 0, rgba(0, 0, 0, 0.08) 0 4px 5px 0;
  --shadow-card-hover: rgba(0, 0, 0, 0.06) 0 2px 2px 0, rgba(0, 0, 0, 0.1) 0 14px 28px -6px;
  --shadow-diagram: rgba(0, 0, 0, 0.05) 0 1px 8px 0;
  --shadow-atmo: rgba(0, 0, 0, 0.06) 0 2px 2px 0, rgba(0, 0, 0, 0.04) 0 0 0 5px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-cam: cubic-bezier(0.65, 0, 0.2, 1);
  --maxw: 1200px;
  --gutter-l: max(16px, 3.2vw, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, 3.2vw, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; }
html.is-locked { overflow: hidden; }
html.is-locked body { position: fixed; left: 0; right: 0; overflow: hidden; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--charcoal);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* band behind the phone status bar: sky over the hero, parchment over the pages */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 80; background: var(--sky); transition: background 0.4s; }
body.is-content::before { background: var(--parchment); }
img { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--signal-ink); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: var(--r-btn); background: var(--dusk); color: #fff; text-decoration: none; transition: top 0.2s; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

.wrap { width: 100%; max-width: calc(var(--maxw) + 64px); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* ---------- type ---------- */
.display, .h-lg, .h, .chapter__title, .card h3, .step h3, .manifesto, .footer__statement, .qa summary, .svc__title, .b2b-card h3, .steps-row h3, .glazing__num, .fig__v {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  font-feature-settings: "liga" 0;
  color: var(--graphite);
  text-wrap: balance;
}
.display { font-size: var(--text-display); line-height: 1.04; letter-spacing: -0.03em; }
.display em, .h-lg em { font-style: italic; }
.h-lg { font-size: var(--text-heading-lg); line-height: 1.08; letter-spacing: -0.025em; }
.h { font-size: var(--text-heading); line-height: 1.12; letter-spacing: -0.02em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--on-dark-soft); }
.section__intro { font-size: 18px; line-height: 1.5; letter-spacing: -0.012em; color: var(--ash); max-width: 56ch; }
.footnote { margin-top: 28px; font-size: 13px; line-height: 1.4; color: var(--ash); }

/* ---------- buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: var(--h);
  padding: 0 18px;
  border-radius: var(--r-btn);
  border: 1px solid var(--twilight);
  background: transparent;
  color: var(--twilight);
  font: 500 15px/1 var(--font-ui);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:has(.btn__arrow) { padding-right: 8px; }
.btn__arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid currentColor; transition: transform 0.35s var(--ease); }
.btn__arrow svg, .link-arrow svg, .panel__nav svg, .panel__close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--signal { border-color: var(--signal); color: var(--signal-ink); }
.btn--signal .btn__arrow { border-color: var(--signal); }
.btn--signal:hover { background: var(--signal-wash); }
.btn--ghost:hover { background: rgba(40, 40, 52, 0.06); }
.btn--dusk { background: var(--dusk); border-color: var(--twilight); color: #fff; }
.btn--dusk:hover { background: #33334a; }
.btn--light { border-color: rgba(255, 255, 255, 0.75); color: #fff; }
.btn--light:hover { background: rgba(255, 255, 255, 0.12); }
.btn--sm { --h: 38px; font-size: 14px; padding: 0 14px; }
.btn--sm .btn__arrow { width: 26px; height: 26px; }
.btn--sm:has(.btn__arrow) { padding-right: 6px; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--twilight); text-decoration: none; border-bottom: 1px solid var(--mist); padding-bottom: 4px; transition: border-color 0.25s, gap 0.3s var(--ease); }
.link-arrow:hover { border-color: currentColor; gap: 12px; }
.link-arrow--light { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.chip-btn { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px 9px 10px; border-radius: var(--r-btn); border: 1px solid var(--twilight); color: var(--twilight); font-size: 14.5px; font-weight: 500; text-decoration: none; transition: background 0.25s, border-color 0.25s, color 0.25s; }
.chip-btn::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid currentColor; font-size: 14px; line-height: 1; transition: transform 0.35s var(--ease); }
.chip-btn:hover { background: var(--signal-wash); border-color: var(--signal); color: var(--signal-ink); }
.chip-btn:hover::before { transform: rotate(90deg); }

/* ---------- navigation ---------- */
.nav {
  position: fixed;
  z-index: 50;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
  transition: opacity 0.4s ease, transform 0.5s var(--ease);
}
html.is-locked .nav { opacity: 0; transform: translateY(-12px); }
html.is-locked .nav * { pointer-events: none !important; }
.nav__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 5px 6px 5px 6px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  color: #fff;
  box-shadow: 0 6px 24px rgba(10, 16, 40, 0.18);
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease), color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.nav.is-solid .nav__pill, .nav.is-open .nav__pill { background: rgba(254, 255, 252, 0.82); border-color: var(--twilight); color: var(--twilight); box-shadow: var(--shadow-nav); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; margin-right: 12px; padding-left: 2px; }
.brand__mascot { flex: none; display: block; width: auto; height: 40px; margin-block: -2px; transition: transform 0.5s var(--ease); }
.brand:hover .brand__mascot { transform: rotate(-6deg) scale(1.05); }
/* the original CRAFTMAN lettering, tinted with the text colour of the bar */
.brand__word { display: block; width: 101px; height: 13px; background: currentColor; -webkit-mask: url("../img/logo-wordmark.png") center / contain no-repeat; mask: url("../img/logo-wordmark.png") center / contain no-repeat; }
.nav__links { list-style: none; display: flex; gap: 2px; margin-right: 8px; }
.nav__links a { position: relative; display: block; padding: 9px 12px; font-size: 15px; font-weight: 500; text-decoration: none; border-radius: 50px; }
.nav__links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.nav:not(.is-solid):not(.is-open) .nav__cta { border-color: rgba(255, 255, 255, 0.8); color: #fff; }
.nav:not(.is-solid):not(.is-open) .nav__cta .btn__arrow { border-color: rgba(255, 255, 255, 0.8); }
.nav:not(.is-solid):not(.is-open) .nav__cta:hover { background: rgba(255, 255, 255, 0.14); }
.nav__toggle { display: none; position: relative; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.nav__burger, .nav__burger::before { position: absolute; left: 11px; right: 11px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.nav__burger { top: 16px; }
.nav__burger::before { content: ""; left: 0; right: 0; top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__burger { top: 19px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__burger::before { top: 0; transform: rotate(-90deg); }
.nav__menu {
  pointer-events: auto;
  width: min(460px, 100%);
  margin-top: 8px;
  padding: 20px;
  border-radius: var(--r-card-lg);
  border: 1px solid var(--mist);
  background: rgba(254, 255, 252, 0.95);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card-hover);
  animation: menuIn 0.4s var(--ease) both;
}
.nav__menu ul { list-style: none; display: grid; margin-bottom: 18px; }
.nav__menu ul a { display: block; padding: 10px 2px; font-family: var(--font-display); font-size: 26px; letter-spacing: -0.02em; color: var(--graphite); text-decoration: none; border-bottom: 1px solid var(--mist); }
.nav__menu .btn { width: 100%; }
.nav__menu-contact { margin-top: 14px; font-size: 14px; color: var(--ash); text-align: center; }
.nav__menu-contact a { color: var(--charcoal); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- hero explorer ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  /* painted sky above, meadow below: fills the frame while the camera moves */
  background: linear-gradient(180deg, #24325e 0%, #5f6488 40%, #8a7f8f 52%, #56683a 56%, #3c4f2c 100%);
  container-type: size;
  isolation: isolate;
}
/* default framing (before the script measures the card and the house) */
.scene {
  position: absolute;
  --ar: 1.6;
  --fx: 0.64;
  --fy: 0.62;
  --ty: 0.6;
  --W: max(100cqw, calc(100cqh * var(--ar)));
  --H: calc(var(--W) / var(--ar));
  width: var(--W);
  height: var(--H);
  left: clamp(calc(100cqw - var(--W)), calc(50cqw - var(--fx) * var(--W)), 0px);
  top: clamp(calc(100cqh - var(--H)), calc(var(--ty) * 100cqh - var(--fy) * var(--H)), 0px);
}
@media (max-aspect-ratio: 4/5) {
  .scene { --ar: 0.5623; --fx: 0.52; --fy: 0.42; --ty: 0.36; }
}
/* framing computed by the script so the whole house stays clear of the card */
.hero.is-fit .scene { width: var(--sw); height: var(--sh); left: var(--sl); top: var(--st); }
.hero.is-fit.is-reframing .scene { transition: left 0.9s var(--ease-cam), top 0.9s var(--ease-cam), width 0.9s var(--ease-cam), height 0.9s var(--ease-cam); }
.scene--spots { z-index: 4; pointer-events: none; opacity: var(--spots-o, 1); transition: opacity 0.25s linear; }
.scene__zoom { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 1.1s var(--ease-cam); }
.layer { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.layer__in { position: absolute; inset: 0; }
.layer img { display: block; width: 100%; height: 100%; }
.scene-art { position: absolute; inset: 0; transition: opacity 0.9s ease, transform 1.4s var(--ease); }
.scene-art--b2b { opacity: 0; transform: translateY(14px); }
html[data-aud="b2b"] .scene-art--b2b { opacity: 1; transform: none; }
html[data-aud="b2b"] .scene-art--b2c { opacity: 0; transform: translateY(14px); }
.scene-art--cut { opacity: 0; clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease-cam), opacity 0.35s ease 0.75s; }
.hero.is-cut .scene-art--cut { opacity: 1; clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-cam), opacity 0.2s ease; }
html[data-aud="b2b"] .scene-art--cut { visibility: hidden; }
.spots--b2b { display: none; }
html[data-aud="b2b"] .spots--b2c { display: none; }
html[data-aud="b2b"] .spots--b2b { display: block; }
.js .layer__in { transition: transform 1.6s var(--ease), opacity 1.2s ease; }
.js .hero:not(.is-ready) .layer__in--sky { transform: scale(1.04); }
.js .hero:not(.is-ready) .layer__in--mid { transform: translateY(24px); opacity: 0; }
.js .hero:not(.is-ready) .layer__in--house { transform: translateY(44px); opacity: 0; }
.js .hero:not(.is-ready) .layer__in--front { transform: translateY(90px); opacity: 0; }
.layer__in--mid { transition-delay: 0.1s; }
.layer__in--house { transition-delay: 0.22s; }
.layer__in--front { transition-delay: 0.32s; }
.hero__dusk {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 20, 46, 0.42) 0%, rgba(12, 20, 46, 0) 22%),
    linear-gradient(180deg, rgba(14, 20, 52, 0.55), rgba(14, 20, 52, 0.25));
  opacity: 0.35;
}
.hero__spot {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 50%), rgba(8, 12, 30, 0) 0, rgba(8, 12, 30, 0) 18%, rgba(8, 12, 30, 0.42) 75%);
  transition: opacity 0.9s ease;
}
.hero.is-exploring .hero__spot { opacity: 1; }
/* while exploring, the house fills the screen (the page below stays hidden) */
.hero.is-exploring { z-index: 3; }
.hero__card {
  position: absolute;
  z-index: 5;
  left: max(var(--gutter-l), calc((100% - var(--maxw)) / 2));
  bottom: max(28px, calc(env(safe-area-inset-bottom, 0px) + 20px));
  width: clamp(330px, 40vw, 560px);
  padding: 22px 30px 24px;
  border-radius: var(--r-surface);
  background: rgba(254, 255, 252, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 20px 60px -20px rgba(16, 22, 50, 0.45);
  will-change: transform, opacity;
}
.js .hero__card { transition: transform 1.4s var(--ease) 0.45s, opacity 1s ease 0.45s; }
.js .hero:not(.is-ready) .hero__card { transform: translateY(30px); opacity: 0; }
.hero.is-settled .hero__card { transition: none; }
.hero.is-settled.is-returning .hero__card { transition: opacity 0.6s ease, transform 0.8s var(--ease); }
.hero.is-settled.is-exploring .hero__card { opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity 0.4s ease, transform 0.6s var(--ease); }
.hero.is-replay .hero__card { animation: cardBack 0.9s var(--ease) backwards; }
@keyframes cardBack { from { opacity: 0; transform: translateY(22px); } }
.hero__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.hero__place { font: 500 12px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #4d5150; }
.aud-switch { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid rgba(40, 40, 52, 0.18); background: rgba(255, 255, 255, 0.5); }
.aud-switch button { padding: 7px 13px; border: 0; border-radius: 7px; background: none; font-size: 13.5px; font-weight: 500; color: #4d5150; cursor: pointer; transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.aud-switch button[aria-pressed="true"] { background: var(--twilight); color: #fff; box-shadow: 0 2px 6px rgba(20, 20, 40, 0.25); }
.aud-switch button:not([aria-pressed="true"]):hover { color: var(--twilight); background: rgba(255, 255, 255, 0.7); }
.hero__card .display { max-width: 15ch; font-size: clamp(2rem, 1.1rem + 2.1vw, 3.375rem); }
.hero__card .display em { color: #3b4b6b; }
.hero__card .display > span { display: block; animation: swapIn 0.7s var(--ease) both; }
@keyframes swapIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero__lead { margin-top: 14px; font-size: 16.5px; line-height: 1.5; color: #3a3838; max-width: 54ch; }
.hero__lead--sm, .show-sm { display: none; }
.hero__lead--lg:not([hidden]) { display: block; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero__hint { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(40, 40, 52, 0.12); font-size: 13.5px; line-height: 1.35; color: #3f4342; }
.hero__hint-dot { position: relative; flex: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(65, 161, 207, 0.65); }
.hero__hint-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--signal); animation: ping 2.4s var(--ease) infinite; }
/* the script trims the card when the house would not fit beside or above it */
.hero.is-compact .hero__lead { display: none !important; }
.hero.is-mini .hero__hint { display: none; }
.hero.is-mini .hero__card .display { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.4rem); }
.hero__scroll {
  position: absolute;
  z-index: 3;
  right: max(var(--gutter-r), calc((100% - var(--maxw)) / 2));
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  transition: opacity 0.4s;
}
.hero.is-exploring .hero__scroll, .hero.is-scrolled .hero__scroll { opacity: 0; pointer-events: none; }
.hero__scroll i { position: relative; width: 1px; height: 46px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: scrollHint 2.2s var(--ease) infinite; }
@keyframes scrollHint { to { top: 110%; } }

/* "see inside" switch */
.cut-toggle {
  position: absolute;
  z-index: 6;
  top: calc(env(safe-area-inset-top, 0px) + 80px);
  right: max(var(--gutter-r), calc((100% - var(--maxw)) / 2));
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 6px 16px 6px 8px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(254, 255, 252, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 26px -10px rgba(10, 16, 40, 0.45);
  color: var(--twilight);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.4s var(--ease), background 0.25s;
}
.cut-toggle:hover { background: #fff; }
.cut-toggle__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--signal-wash); border: 1px solid var(--signal); color: var(--signal-ink); transition: background 0.3s, color 0.3s; }
.cut-toggle__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cut-toggle__cut { stroke-dasharray: 2 2.2; }
.cut-toggle[aria-pressed="true"] .cut-toggle__icon { background: var(--signal-ink); border-color: var(--signal-ink); color: #fff; }
.js .hero:not(.is-settled) .cut-toggle { opacity: 0; transform: translateY(-6px); }
.hero.is-exploring .cut-toggle, .hero.is-scrolled .cut-toggle { opacity: 0; pointer-events: none; }
html[data-aud="b2b"] .cut-toggle { display: none; }

/* hotspots */
.hotspot {
  position: absolute;
  left: calc(var(--lx) * 100%);
  top: calc(var(--ly) * 100%);
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  pointer-events: auto;
  text-decoration: none;
  color: var(--graphite);
  transition: opacity 0.4s ease;
}
@media (max-aspect-ratio: 4/5) { .hotspot { left: calc(var(--px) * 100%); top: calc(var(--py) * 100%); } }
.hero.is-cut .hotspot { left: calc(var(--clx, var(--lx)) * 100%); top: calc(var(--cly, var(--ly)) * 100%); }
@media (max-aspect-ratio: 4/5) { .hero.is-cut .hotspot { left: calc(var(--cpx, var(--px)) * 100%); top: calc(var(--cpy, var(--py)) * 100%); } }
.hero.is-cutting .hotspot { transition: left 1s var(--ease-cam), top 1s var(--ease-cam), opacity 0.4s ease, transform 0.6s var(--ease); transition-delay: 0s; }
.hero.is-scrolled .hotspot { pointer-events: none; }
.hotspot__dot { position: absolute; inset: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(65, 161, 207, 0.6), 0 2px 10px rgba(0, 0, 0, 0.35); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.hotspot__dot::after { content: ""; pointer-events: none; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.9); animation: ping 2.6s var(--ease) infinite; animation-delay: calc(var(--i) * 0.35s); }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.js .hotspot { transition: opacity 0.6s ease, transform 0.6s var(--ease); transition-delay: calc(1.1s + var(--i) * 0.12s); }
.hero.is-exploring .hotspot { transform: scale(var(--inv, 1)); }
.js .hero:not(.is-ready) .hotspot { opacity: 0; transform: scale(0.4); }
.hero.is-settled .hotspot { transition-delay: 0s; }
.hero.is-replay .hotspot { animation: spotIn 0.7s var(--ease) backwards; animation-delay: calc(0.2s + var(--i) * 0.09s); }
@keyframes spotIn { from { opacity: 0; transform: scale(0.3); } }
.hotspot:hover .hotspot__dot, .hotspot:focus-visible .hotspot__dot, .hotspot.is-current .hotspot__dot { transform: scale(1.3); box-shadow: 0 0 0 5px rgba(65, 161, 207, 0.85), 0 2px 12px rgba(0, 0, 0, 0.4); }
.hero.is-exploring .hotspot:not(.is-current) { opacity: 0.8; }
.hotspot__label {
  --shift: 0px;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  display: grid;
  gap: 2px;
  min-width: max-content;
  padding: 9px 13px 10px;
  border-radius: var(--r-card);
  border: 1px solid var(--mist);
  background: rgba(254, 255, 252, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-nav);
  font-size: 13px;
  line-height: 1.3;
  color: var(--ash);
  opacity: 0;
  transform: translate(calc(-50% + var(--shift)), 6px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease);
  pointer-events: none;
}
.hotspot.is-below .hotspot__label { bottom: auto; top: calc(100% + 6px); transform: translate(calc(-50% + var(--shift)), -6px); }
.hotspot__label strong { font-weight: 600; color: var(--graphite); }
.hotspot:hover .hotspot__label, .hotspot:focus-visible .hotspot__label, .hotspot.is-peek .hotspot__label, .hotspot.is-current .hotspot__label { opacity: 1; transform: translate(calc(-50% + var(--shift)), 0); }
.hero.is-exploring .hotspot.is-current .hotspot__label { opacity: 0; }

/* ---------- detail panel (drawer beside the house, sheet below it on phones and portrait tablets) ---------- */
.panel-backdrop { position: fixed; inset: 0; z-index: 65; background: rgba(14, 18, 36, 0.34); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; transition: opacity 0.45s ease; }
.panel-backdrop.is-open { opacity: 1; }
.panel {
  position: fixed;
  z-index: 70;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: calc(env(safe-area-inset-right, 0px) + 12px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  width: clamp(360px, 36vw, 480px);
  display: flex;
  flex-direction: column;
  border-radius: var(--r-surface);
  border: 1px solid var(--mist);
  background: rgba(254, 255, 252, 0.96);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 30px 80px -20px rgba(10, 16, 40, 0.5);
  transform: translateX(calc(100% + 28px));
  transition: transform 0.65s var(--ease);
}
.panel.is-open { transform: none; }
/* beside the house, the drawer runs edge to edge so nothing shows around it */
html.is-exploring .panel { top: 0; right: 0; bottom: 0; border-width: 0 0 0 1px; border-radius: var(--r-surface) 0 0 var(--r-surface); }
.panel__bar { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 22px; border-bottom: 1px solid var(--mist); }
.panel__aud { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--signal); font: 500 11.5px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-ink); }
.panel__count { margin-right: auto; font: 500 12px var(--font-mono); color: var(--ash); font-variant-numeric: tabular-nums; }
.panel__close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--mist); background: var(--paper); color: var(--twilight); cursor: pointer; transition: border-color 0.25s, transform 0.35s var(--ease); }
.panel__close:hover { border-color: var(--twilight); transform: rotate(90deg); }
.panel__close svg { width: 16px; height: 16px; }
.panel__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 26px 30px; outline: none; }
.panel__scroll > .svc { animation: panelIn 0.55s var(--ease) both; }
.panel__scroll.is-back > .svc { animation-name: panelInBack; }
@keyframes panelIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes panelInBack { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
.panel__foot { display: flex; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid var(--mist); }
.panel__foot .btn { flex: 1; }
.panel__nav { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-btn); border: 1px solid var(--twilight); background: transparent; color: var(--twilight); cursor: pointer; transition: background 0.25s; }
.panel__nav:hover { background: rgba(40, 40, 52, 0.06); }
.panel__nav svg { width: 16px; height: 16px; }
@media (max-width: 720px), (max-aspect-ratio: 4/5) {
  .panel, html.is-exploring .panel { top: auto; left: calc(env(safe-area-inset-left, 0px) + 8px); right: calc(env(safe-area-inset-right, 0px) + 8px); bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); width: auto; max-width: 640px; margin-inline: auto; height: min(60svh, 600px); border-width: 1px; border-radius: 20px; }
  .panel { transform: translateY(calc(100% + 24px)); }
  .panel.is-open { transform: none; }
  .panel__scroll { padding: 18px 20px 24px; }
}

/* service article (panel + no-script library) */
.svc__tag { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font: 500 12px/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); }
.svc__icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--mist); background: var(--linen); color: var(--signal-ink); }
.svc__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc__title { font-size: clamp(1.85rem, 1.5rem + 1vw, 2.35rem); line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 10px; }
.svc__promise { font-size: 18px; line-height: 1.45; color: var(--graphite); letter-spacing: -0.012em; }
.svc__figs { display: grid; gap: 8px; margin-top: 20px; }
.svc__figure { margin: 18px 0 0; }
.svc__figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-card); border: 1px solid var(--mist); background: var(--linen); }
.svc__figure figcaption { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--ash); }
.svc__more { margin-top: 18px; font-size: 14.5px; }
.svc__more a { color: var(--signal-ink); text-underline-offset: 3px; }
.fig { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-card); border: 1px solid var(--mist); background: var(--linen); }
.fig__v { font-size: 1.85rem; line-height: 1; letter-spacing: -0.03em; color: var(--signal-ink); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.fig__v small { font-size: 0.55em; letter-spacing: 0; }
.fig__c { font-size: 13.5px; line-height: 1.4; color: var(--ash); }
.svc__h { margin: 26px 0 12px; font: 500 12px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); }
.howto { list-style: none; counter-reset: how; display: grid; }
.howto li { counter-increment: how; position: relative; padding: 0 0 16px 44px; color: var(--charcoal); }
.howto li::before { content: counter(how, decimal-leading-zero); position: absolute; left: 0; top: -3px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--signal); background: var(--paper); font: 500 11.5px/28px var(--font-mono); text-align: center; color: var(--signal-ink); }
.howto li::after { content: ""; position: absolute; left: 15px; top: 29px; bottom: 1px; width: 1px; background: var(--mist); }
.howto li:last-child { padding-bottom: 0; }
.howto li:last-child::after { display: none; }
.howto strong { font-weight: 600; color: var(--graphite); }
.plus { list-style: none; display: grid; gap: 9px; }
.plus li { position: relative; padding-left: 30px; color: var(--charcoal); }
.plus li::before { content: "+"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px; background: var(--signal-wash); font-weight: 600; font-size: 14px; line-height: 20px; text-align: center; color: var(--signal-ink); }
.svc__facts { display: grid; gap: 1px; margin: 24px 0 0; overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--mist); background: var(--mist); }
.svc__facts div { display: grid; gap: 3px; padding: 12px 14px; background: var(--paper); }
.svc__facts dt { font: 500 11.5px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-ink); }
.svc__facts dd { margin: 0; font-size: 14.5px; color: var(--charcoal); }
.svc__note { margin-top: 22px; padding: 14px 16px; border-left: 2px solid var(--signal); border-radius: 0 10px 10px 0; background: var(--linen); font-size: 15px; color: var(--charcoal); }
.svc__switch { margin-top: 22px; font-size: 14.5px; color: var(--ash); }
.svc__switch button { padding: 0; border: 0; background: none; color: var(--signal-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.svc-library { background: var(--paper); border-top: 1px solid var(--mist); }
.js .svc-library { display: none; }
.svc-library .svc { max-width: 720px; padding-block: 40px; border-bottom: 1px solid var(--mist); }

/* ---------- sheet & manifesto ---------- */
.sheet {
  position: relative;
  z-index: 2;
  margin-top: -24px;
  padding-block: clamp(72px, 11vw, 140px) clamp(64px, 9vw, 120px);
  background: var(--parchment);
  border-radius: var(--r-surface) var(--r-surface) 0 0;
  box-shadow: 0 -18px 50px rgba(8, 14, 36, 0.22);
}
.manifesto { font-size: clamp(1.65rem, 1.05rem + 2.4vw, 2.85rem); line-height: 1.2; letter-spacing: -0.025em; max-width: 30ch; text-wrap: pretty; }
.manifesto.is-split .w { color: #a3a7a3; transition: color 0.45s ease; }
.manifesto.is-split .w.on { color: var(--graphite); }
/* what is guaranteed, right after the promise */
.trust { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 7vw, 88px); }
.trust li { padding-top: 20px; border-top: 1px solid var(--mist); }
.trust__icon, .engage__icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 10px; border: 1px solid var(--signal); background: var(--signal-wash); color: var(--signal-ink); }
.trust__icon svg, .engage__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.trust h3 { margin-bottom: 8px; font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--graphite); }
.trust p { font-size: 15px; color: var(--ash); max-width: 34ch; }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.section__head { display: grid; margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.section__head .h-lg { margin-bottom: 18px; }
.section__head--split { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; }
.section__head--split .h-lg { margin-bottom: 0; }
.section__head--split .section__intro { max-width: 42ch; }

/* ---------- châssis spotlight ---------- */
.chassis { background: var(--paper); border-top: 1px solid var(--mist); }
.chassis__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.compare { margin: 0; min-width: 0; }
.compare__frame { position: relative; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; border-radius: var(--r-card-lg); border: 1px solid var(--mist); background: var(--linen); box-shadow: var(--shadow-card); cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare__img, .compare__after img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 0 18px rgba(0, 0, 0, 0.3); pointer-events: none; }
.compare__handle span { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; border: 1px solid var(--twilight); background: rgba(254, 255, 252, 0.94); box-shadow: var(--shadow-nav); transition: transform 0.3s var(--ease); }
.compare__frame:hover .compare__handle span, .compare__frame.is-dragging .compare__handle span { transform: scale(1.08); }
.compare__frame:has(.compare__range:focus-visible) .compare__handle span { outline: 2px solid var(--signal-ink); outline-offset: 3px; }
.compare__handle svg { width: 22px; height: 22px; fill: none; stroke: var(--twilight); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.compare__tag { position: absolute; top: 14px; padding: 5px 10px; border-radius: 7px; background: rgba(254, 255, 252, 0.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 500 12px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--twilight); pointer-events: none; }
.compare__tag--before { left: 14px; }
.compare__tag--after { right: 14px; }
.compare__range { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.compare figcaption { margin-top: 12px; font-size: 14px; color: var(--ash); }
.glazing { display: flex; flex-direction: column; padding: 22px; border-radius: var(--r-card-lg); border: 1px solid var(--mist); background: var(--linen); min-width: 0; }
.glazing__k { margin-bottom: 14px; font: 500 12px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); }
.glazing__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 3px; border-radius: 10px; border: 1px solid var(--mist); background: var(--paper); }
.glazing__tabs button { padding: 9px 4px; border: 0; border-radius: 7px; background: none; font-size: 13px; font-weight: 500; line-height: 1.15; color: var(--ash); cursor: pointer; transition: background 0.3s, color 0.3s; }
.glazing__tabs button[aria-selected="true"] { background: var(--twilight); color: #fff; }
.glazing__tabs button:not([aria-selected="true"]):hover { color: var(--twilight); background: var(--linen); }
.glazing__out { display: flex; flex-direction: column; gap: 10px; flex: 1; margin-top: 22px; }
.glazing__ug { display: flex; align-items: baseline; gap: 8px; }
.glazing__num { font-size: clamp(3rem, 2.4rem + 2vw, 4.2rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums lining-nums; }
.glazing__unit { font: 500 14px var(--font-mono); color: var(--ash); }
.glazing__lab { font-size: 13.5px; color: var(--ash); }
.glazing__bar { height: 10px; margin-top: 8px; overflow: hidden; border-radius: 5px; border: 1px solid var(--mist); background: var(--paper); }
.glazing__fill { display: block; width: var(--w); height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--heat-soft), var(--heat)); transition: width 0.8s var(--ease); }
.glazing__bar-lab { font-size: 14px; color: var(--charcoal); }
.glazing__bar-lab strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.glazing__meters { display: grid; gap: 10px; margin: 8px 0 0; }
.glazing__meters div { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.glazing__meters dt { color: var(--charcoal); }
.glazing__meters dd { display: flex; gap: 4px; margin: 0; }
.glazing__meters i { width: 18px; height: 6px; border-radius: 3px; background: var(--mist); transition: background 0.4s ease; }
.glazing__meters i.on { background: var(--signal-ink); }
.glazing__tip { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--mist); font-size: 15px; color: var(--graphite); }
.steps-row { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.steps-row li { padding-top: 18px; border-top: 1px solid var(--mist); }
.steps-row__n { font: 500 12px var(--font-mono); letter-spacing: 0.08em; color: var(--signal-ink); }
.steps-row h3 { margin: 10px 0 8px; font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.02em; }
.steps-row p { font-size: 15px; color: var(--ash); }
.promise { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.promise li { position: relative; padding: 16px 18px 16px 50px; border-radius: var(--r-card); border: 1px solid var(--mist); background: var(--linen); font-size: 15px; color: var(--ash); }
.promise li::before { content: ""; position: absolute; left: 16px; top: 17px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--signal); background: var(--signal-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.4' fill='none' stroke='%230b6c9e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.promise strong { display: block; margin-bottom: 2px; font-weight: 600; color: var(--graphite); }
.chassis__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }

/* ---------- solutions story ---------- */
.solutions { background: var(--parchment); border-top: 1px solid var(--mist); }
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.story__visual { position: sticky; top: 92px; height: calc(100svh - 116px); max-height: 720px; display: flex; align-items: center; }
.chapter { min-height: 64svh; display: flex; flex-direction: column; justify-content: center; padding-block: 40px; }
.js .chapter { opacity: 0.4; transition: opacity 0.5s ease; }
.js .chapter.is-active { opacity: 1; }
.chapter__tag { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); }
.chapter__num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--twilight); font-size: 12px; letter-spacing: 0; color: var(--twilight); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.chapter.is-active .chapter__num { background: var(--signal-ink); border-color: var(--signal-ink); color: #fff; }
.chapter__title { font-size: var(--text-heading); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 14px; }
.chapter__lead { font-size: 19px; line-height: 1.45; color: var(--graphite); letter-spacing: -0.012em; max-width: 42ch; }
.chapter__how { margin-top: 14px; color: var(--ash); max-width: 52ch; }
.chapter__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.figure { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; margin-top: 24px; padding: 16px 18px; border-radius: var(--r-card); border: 1px solid var(--mist); background: var(--paper); max-width: 520px; }
.figure__value { font-family: var(--font-display); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem); line-height: 1; letter-spacing: -0.03em; color: var(--signal-ink); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.figure__value small { font-size: 0.55em; letter-spacing: 0; }
.figure__caption { font-size: 14px; line-height: 1.4; color: var(--ash); }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--charcoal); }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%; border: 1px solid var(--signal); background: var(--signal-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.4' fill='none' stroke='%230b6c9e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.chapter--all .chapter__title { font-style: italic; }
.chapter--all .link-arrow { margin-top: 24px; align-self: flex-start; }
.chapter__num--all { font-family: var(--font-ui); font-size: 15px; }

.diagram { margin: 0; width: 100%; padding: 14px 14px 10px; border-radius: var(--r-card-lg); border: 1px solid var(--mist); background: rgba(255, 255, 255, 0.8); box-shadow: var(--shadow-diagram); }
.diagram svg { display: block; width: 100%; height: auto; overflow: visible; }
.diagram__caption { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 6px; padding: 10px 6px 4px; border-top: 1px solid var(--mist); font-size: 14px; line-height: 1.35; color: var(--charcoal); }
.diagram__num { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--signal-ink); color: #fff; font: 600 12px/1 var(--font-mono); }
.d-line { fill: none; stroke: var(--twilight); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: stroke 0.4s ease, fill 0.4s ease; }
.d-soft { stroke: var(--fog); }
.d-faint { stroke: var(--mist); }
.d-fill { fill: var(--linen); }
.d-wall { fill: var(--paper); }
.d-insul { stroke: #c9973a; }
.d-sun .d-line { stroke: #c98a2b; }
.d-sun .d-fill { fill: #fdf3df; }
.d-part { transition: opacity 0.45s ease; }
.diagram.has-active .d-part:not(.is-on) { opacity: 0.38; }
.d-part.is-on .d-line { stroke: var(--signal-ink); }
.d-part.is-on .d-fill { fill: #e3f1f8; }
.d-flow { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 3 7; opacity: 0; transition: opacity 0.45s ease; vector-effect: non-scaling-stroke; }
.d-flow--hot { stroke: #d9822b; }
.d-flow--air { stroke-width: 1.6; }
.d-flow--bus { stroke: #e3a33a; stroke-dasharray: 2 6; }
.d-flow.is-on { opacity: 1; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.d-marker { cursor: pointer; outline: none; }
.d-marker circle:not(.d-pulse) { fill: var(--paper); stroke: var(--twilight); stroke-width: 1.2; transition: fill 0.3s, stroke 0.3s; }
.d-marker text { font: 600 11px var(--font-mono); text-anchor: middle; fill: var(--twilight); pointer-events: none; transition: fill 0.3s; }
.d-marker:hover circle:not(.d-pulse), .d-marker:focus-visible circle:not(.d-pulse) { stroke: var(--signal-ink); }
.d-marker.is-on circle:not(.d-pulse) { fill: var(--signal-ink); stroke: var(--signal-ink); }
.d-marker.is-on text { fill: #fff; }
.d-pulse { fill: none; stroke: var(--signal); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.d-marker.is-on .d-pulse { animation: dpulse 2.2s var(--ease) infinite; }
@keyframes dpulse { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); } }

/* ---------- B2B ---------- */
.b2b { padding-block: clamp(24px, 4vw, 48px) clamp(72px, 10vw, 120px); background: var(--paper); }
.atmo { position: relative; border-radius: var(--r-surface); overflow: hidden; box-shadow: var(--shadow-atmo); isolation: isolate; }
.atmo--night { min-height: clamp(520px, 48vw, 660px); background: var(--night); color: var(--on-dark); display: flex; align-items: flex-end; }
.atmo__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.atmo__media img { display: block; width: 100%; height: 118%; margin-top: -9%; object-fit: cover; object-position: 66% 50%; will-change: transform; }
.atmo__card {
  margin: clamp(16px, 3vw, 36px);
  width: min(540px, 100%);
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-surface);
  background: rgba(10, 16, 38, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.atmo__card .h-lg { color: #fff; }
.atmo__card > p:not(.eyebrow) { margin-top: 16px; color: var(--on-dark-soft); font-size: 17px; max-width: 46ch; }
.atmo__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.b2b__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.b2b-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 22px; border-radius: var(--r-card-lg); border: 1px solid var(--mist); background: var(--paper); box-shadow: var(--shadow-card); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s; }
.b2b-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--fog); }
.b2b-card__art { margin-bottom: 8px; padding: 10px; border-radius: var(--r-card); border: 1px solid var(--mist); background: var(--linen); }
.b2b-card__art svg { display: block; width: 100%; height: auto; }
.b2b-card__art .l { fill: none; stroke: var(--twilight); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.b2b-card__art .l--soft { stroke: var(--fog); }
.b2b-card__art .f { fill: #e3f1f8; }
.b2b-card__art .s { stroke: #c98a2b; }
.b2b-card__art .a { fill: none; stroke: var(--signal); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 3 6; animation: flow 1.2s linear infinite; }
.b2b-card__k { font: 500 12px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-ink); }
.b2b-card h3 { font-size: 1.55rem; line-height: 1.15; letter-spacing: -0.02em; }
.b2b-card p { color: var(--ash); }
.b2b-card .link-arrow { margin-top: auto; align-self: flex-start; }
.b2b__more { margin-top: 26px; color: var(--charcoal); max-width: 70ch; }
.b2b__more a { color: var(--signal-ink); text-underline-offset: 3px; }

/* ---------- gains ---------- */
.gains { background: var(--parchment); }
.segmented { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 10px; border: 1px solid var(--mist); background: var(--linen); }
.segmented button { position: relative; z-index: 1; padding: 11px 22px; border: 0; border-radius: 7px; background: none; font-size: 15px; font-weight: 500; color: var(--ash); cursor: pointer; transition: color 0.3s; }
.segmented button[aria-selected="true"] { color: var(--graphite); }
.segmented__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 7px; border: 1px solid var(--mist); background: var(--paper); box-shadow: var(--shadow-card); transition: transform 0.5s var(--ease); }
.segmented[data-value="b2b"] .segmented__thumb { transform: translateX(100%); }
.cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 28px; border-radius: var(--r-card); border: 1px solid var(--mist); background: var(--paper); box-shadow: var(--shadow-card); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--fog); }
.card__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 10px; border: 1px solid var(--mist); background: var(--linen); color: var(--twilight); transition: border-color 0.35s, color 0.35s, transform 0.5s var(--ease); }
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card__icon { border-color: var(--signal); color: var(--signal-ink); transform: rotate(-6deg); }
.card h3 { font-size: 24px; line-height: 1.18; letter-spacing: -0.02em; }
.card p { color: var(--ash); }
.gains__panel.is-swapping .card { animation: cardIn 0.6s var(--ease) both; animation-delay: calc(var(--n, 0) * 0.06s); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- method ---------- */
.method { background: var(--paper); border-block: 1px solid var(--mist); }
.method__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 7vw, 110px); align-items: start; }
.method__head { position: sticky; top: 112px; }
.method__head .h-lg { margin-bottom: 18px; }
.method__head .btn { margin-top: 28px; }
.steps-wrap { position: relative; }
.steps__rail { position: absolute; left: 24px; top: 40px; bottom: 56px; width: 1px; background: var(--mist); }
.steps__fill { width: 100%; height: 0; background: var(--signal); }
.steps { list-style: none; display: grid; }
.step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 22px; padding-block: 16px 30px; }
.step__num { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--mist); background: var(--paper); font: 500 13px/1 var(--font-mono); color: var(--ash); transition: border-color 0.4s, color 0.4s, box-shadow 0.4s; }
.step.is-on .step__num { border-color: var(--signal); color: var(--signal-ink); box-shadow: 0 0 0 6px var(--signal-wash); }
.step h3 { font-size: var(--text-heading-sm); line-height: 1.25; letter-spacing: -0.025em; margin: 9px 0 8px; }
.step p { color: var(--ash); max-width: 50ch; }


/* ---------- air/air, air/eau, water heater: the house in section ---------- */
.hp { background: var(--paper); border-top: 1px solid var(--mist); }
.hp__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; max-width: 760px; margin-bottom: 18px; padding: 4px; border-radius: 12px; border: 1px solid var(--mist); background: var(--linen); }
.hp__tabs button { display: grid; gap: 2px; padding: 10px 12px; border: 0; border-radius: 9px; background: none; color: var(--ash); text-align: left; cursor: pointer; transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.hp__tabs b { font-size: 16px; font-weight: 600; color: var(--graphite); transition: color 0.3s; }
.hp__tabs small { font-size: 12.5px; line-height: 1.25; }
.hp__tabs button[aria-selected="true"] { background: var(--twilight); color: rgba(255, 255, 255, 0.78); box-shadow: 0 2px 8px rgba(20, 20, 40, 0.25); }
.hp__tabs button[aria-selected="true"] b { color: #fff; }
.hp__tabs button:not([aria-selected="true"]):hover { background: var(--paper); }
.hp__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.hp__fig { margin: 0; min-width: 0; }
.hp__stage { position: relative; border-radius: var(--r-card-lg); border: 1px solid var(--mist); background: linear-gradient(180deg, #eef3f8 0%, #f8f6f1 62%); overflow: hidden; }
.hp__canvas { position: relative; transform-origin: 0 0; transition: transform 0.85s var(--ease-cam); }
.hp__stage svg { display: block; width: 100%; height: auto; }
.hp-ink { fill: none; stroke: #33363e; stroke-width: 1.4; stroke-linejoin: round; }
rect.hp-ink, circle.hp-ink { stroke: #33363e; stroke-width: 1.4; }
.hp-win path { stroke: #8fa3b3; stroke-width: 1.2; }
.hp-furn path { fill: none; stroke: #b9b2a5; stroke-width: 1.4; stroke-linejoin: round; }
.hp-furn .hp-water { stroke: #8cc6ea; }
.hp-room { font: 500 11px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; fill: #a59f93; text-anchor: middle; }
.hp__fig [data-sys] { transition: opacity 0.55s ease; }
.hp__fig[data-mode="air"] [data-sys]:not([data-sys~="air"]), .hp__fig[data-mode="eau"] [data-sys]:not([data-sys~="eau"]), .hp__fig[data-mode="ecs"] [data-sys]:not([data-sys~="ecs"]) { opacity: 0.12; }
.hp__fig [data-only] { opacity: 0; transition: opacity 0.55s ease; }
.hp__fig[data-mode="eau"] [data-only="eau"], .hp__fig[data-mode="ecs"] [data-only="ecs"] { opacity: 1; }
.pipe { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pipe--gas { stroke: #8f99a5; stroke-width: 5; }
.pipe--liq { stroke: #b6bec8; stroke-width: 3; }
.pipe--hot { stroke: #d4452f; stroke-width: 3.5; }
.pipe--cold { stroke: #3a7fc4; stroke-width: 3.5; }
.pipe--dhw { stroke: #e98a6b; stroke-width: 2.5; }
.pipe--duct { stroke: #c4c9d0; stroke-width: 8; }
.hp-ufh circle { fill: #d4452f; }
.hp__fig { --air: #e8743b; }
.hp__fig[data-season="ete"] { --air: #2f8fd0; }
.flow { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 6 10; animation: hpFlow 1.1s linear infinite; animation-play-state: paused; }
.flow--rev { animation-direction: reverse; }
.flow--ref { stroke: #ffffff; stroke-width: 1.6; opacity: 0.9; }
.flow--hot { stroke: #ffd0b8; stroke-width: 1.6; }
.flow--cold { stroke: #cfe6ff; stroke-width: 1.6; }
.flow--dhw { stroke: #fff1e8; stroke-width: 1.4; }
.flow--air { stroke: var(--air); stroke-width: 2.4; stroke-dasharray: 5 7; transition: stroke 0.5s ease; }
.flow--out { stroke: #9fb6c9; stroke-width: 2.2; stroke-dasharray: 5 7; }
.flow--heat { stroke: #f0a073; stroke-width: 1.8; stroke-dasharray: 4 5; }
.flow--in { stroke: #7fb3dc; stroke-width: 2.4; stroke-dasharray: 5 7; }
.flow--outc { stroke: #2f6fa6; stroke-width: 2.4; stroke-dasharray: 5 7; }
.flow--pv { stroke: #e3b23c; stroke-width: 2.2; stroke-dasharray: 3 6; }
.hp__fig[data-season="ete"] [data-sys="air"] .flow--ref { animation-direction: reverse; }
.hp__fig[data-season="ete"] [data-sys="air"] .flow--ref.flow--rev { animation-direction: normal; }
.hp__fig[data-mode="air"] [data-sys~="air"] .flow, .hp__fig[data-mode="eau"] [data-sys~="eau"] .flow, .hp__fig[data-mode="eau"] [data-only="eau"] .flow, .hp__fig[data-mode="ecs"] [data-only="ecs"] .flow { animation-play-state: running; }
@keyframes hpFlow { to { stroke-dashoffset: -32; } }
.hp__label { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); padding: calc(4px / var(--hpk, 1)) calc(8px / var(--hpk, 1)); border-radius: calc(6px / var(--hpk, 1)); border: calc(1px / var(--hpk, 1)) solid var(--mist); background: rgba(254, 255, 252, 0.92); font-size: calc(12px / var(--hpk, 1)); font-weight: 500; line-height: 1.2; color: var(--graphite); white-space: nowrap; box-shadow: 0 2px 8px rgba(20, 20, 40, 0.08); opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.hp__label--start { transform: translate(0, -50%); }
.hp__label--end { transform: translate(-100%, -50%); }
.hp__fig[data-mode="air"] .hp__label[data-for="air"], .hp__fig[data-mode="eau"] .hp__label[data-for="eau"], .hp__fig[data-mode="ecs"] .hp__label[data-for="ecs"] { opacity: 1; }
.hp__label--air { border-color: var(--air); color: var(--air); transition: opacity 0.4s ease, color 0.5s, border-color 0.5s; }
.hp__season { display: inline-flex; gap: 3px; margin-top: 12px; padding: 3px; border-radius: 10px; border: 1px solid var(--mist); background: var(--paper); transition: opacity 0.4s; }
.hp__season button { padding: 8px 14px; border: 0; border-radius: 7px; background: none; font-size: 13.5px; font-weight: 500; color: var(--ash); cursor: pointer; transition: background 0.3s, color 0.3s; }
.hp__season button[aria-pressed="true"] { background: var(--twilight); color: #fff; }
.hp__fig:not([data-mode="air"]) .hp__season { opacity: 0; visibility: hidden; }
.hp__facts { padding: 22px; border-radius: var(--r-card-lg); border: 1px solid var(--mist); background: var(--linen); }
.js .hp__facts.is-off { display: none; }
.hp__facts:not(.is-off) { animation: panelIn 0.5s var(--ease) both; }
html:not(.js) .hp__facts + .hp__facts { margin-top: 12px; }
.hp__name { font-family: var(--font-display); font-weight: 400; font-size: var(--text-heading-sm); line-height: 1.15; letter-spacing: -0.02em; color: var(--graphite); }
.hp__lead { margin-top: 10px; font-size: 15.5px; color: var(--charcoal); }
.hp__list { display: grid; gap: 1px; margin: 18px 0; overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--mist); background: var(--mist); }
.hp__list div { display: grid; gap: 2px; padding: 10px 14px; background: var(--paper); }
.hp__list dt { font: 500 11.5px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-ink); }
.hp__list dd { margin: 0; font-size: 14.5px; color: var(--charcoal); }

/* ---------- plus-value: thermography and PEB example ---------- */
.value { background: var(--paper); border-top: 1px solid var(--mist); }
.value__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.thermo { margin: 0; min-width: 0; }
.thermo__frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-card-lg); background: #0c0820; box-shadow: var(--shadow-card); }
.thermo__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.thermo__img--after { opacity: 0; transition: opacity 0.9s ease 0.15s; }
.thermo[data-state="apres"] .thermo__img--after { opacity: 1; }
.thermo__scan { position: absolute; left: 0; right: 0; top: 0; height: 22%; background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.12) 80%, rgba(255, 255, 255, 0.45)); opacity: 0; pointer-events: none; }
.thermo__scan.is-on { animation: thermoScan 1.05s var(--ease) both; }
@keyframes thermoScan { from { transform: translateY(-100%); opacity: 1; } to { transform: translateY(460%); opacity: 0; } }
.thermo__tag, .thermo__pin { position: absolute; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(12, 8, 32, 0.58); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; }
.thermo__tag { left: 14px; top: 14px; padding: 5px 9px; font: 500 11px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.thermo__pin { left: var(--x); top: var(--y); display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 8px; transform: translate(-50%, -50%); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.thermo__pin::before { content: ""; flex: none; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid #fff; background: radial-gradient(circle, #fff 0 1.5px, transparent 2px); }
.thermo__pin b { font: 500 13px var(--font-mono); font-variant-numeric: tabular-nums; }
.thermo__scale { position: absolute; right: 14px; top: 14px; bottom: 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 500 10.5px var(--font-mono); color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.thermo__scale b { font-weight: 500; }
.thermo__scale i { flex: 1; width: 9px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, 0.35); background: linear-gradient(180deg, #fffce2, #fcd23c 13%, #f48c14 26%, #de4c28 40%, #b02278 54%, #680e8e 70%, #240c5c 86%, #080618); }
.thermo__switch { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: 12px; padding: 3px; border-radius: 10px; border: 1px solid var(--mist); background: var(--paper); }
.thermo__switch button { padding: 10px 8px; border: 0; border-radius: 7px; background: none; font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--ash); cursor: pointer; transition: background 0.3s, color 0.3s; }
.thermo__switch button[aria-pressed="true"] { background: var(--twilight); color: #fff; }
.thermo__switch button:not([aria-pressed="true"]):hover { color: var(--twilight); background: var(--linen); }
.thermo figcaption { margin-top: 12px; font-size: 14px; color: var(--ash); }
.peb { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: var(--r-card-lg); border: 1px solid var(--mist); background: var(--linen); min-width: 0; }
.peb__k { font: 500 12px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); }
.peb__title { margin-top: -8px; font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.02em; color: var(--graphite); }
.peb__now { display: flex; align-items: center; gap: 16px; }
.peb__letter { --pc: #e2592a; display: grid; place-items: center; flex: none; min-width: 76px; height: 76px; padding: 0 10px; border-radius: 14px; background: var(--pc); color: #fff; font: 700 2.2rem/1 var(--font-ui); letter-spacing: -0.02em; transition: background 0.5s ease; }
.peb__letter.is-pop { animation: pebPop 0.55s var(--ease); }
@keyframes pebPop { 0% { transform: scale(0.84); } 60% { transform: scale(1.06); } 100% { transform: none; } }
.peb__letter[data-c="A++"] { --pc: #1a7f3c; font-size: 1.8rem; } .peb__letter[data-c="A+"] { --pc: #2f9a43; } .peb__letter[data-c="A"] { --pc: #5fb446; }
.peb__letter[data-c="B"] { --pc: #8fbb34; } .peb__letter[data-c="C"] { --pc: #d6c12a; } .peb__letter[data-c="D"] { --pc: #ebab27; }
.peb__letter[data-c="E"] { --pc: #ec8628; } .peb__letter[data-c="F"] { --pc: #e2592a; } .peb__letter[data-c="G"] { --pc: #cc2b27; }
.peb__val { display: grid; gap: 2px; }
.peb__num { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; letter-spacing: -0.03em; color: var(--graphite); font-variant-numeric: tabular-nums lining-nums; }
.peb__unit { font: 500 11.5px var(--font-mono); color: var(--ash); }
.peb__gain { margin-top: 4px; font-size: 14.5px; font-weight: 600; color: var(--signal-ink); }
.peb__scale { list-style: none; display: grid; gap: 4px; }
.peb__scale li { position: relative; display: flex; align-items: center; width: calc(var(--w) - 10px); height: 22px; padding-left: 9px; border-radius: 3px 11px 11px 3px; background: var(--c); color: #fff; font: 700 12px/1 var(--font-ui); opacity: 0.32; transition: opacity 0.45s ease, transform 0.45s var(--ease); }
.peb__scale li.is-on { opacity: 1; transform: translateX(8px); }
.peb__scale li.is-on::after { content: ""; position: absolute; left: calc(100% + 8px); top: 50%; border: 7px solid transparent; border-right-color: var(--twilight); transform: translateY(-50%); }
.peb__works { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.peb__works legend { width: 100%; margin-bottom: 10px; padding: 0; font-size: 13px; font-weight: 500; color: var(--ash); }
.peb__tip { padding: 12px 14px; border-left: 2px solid var(--signal); border-radius: 0 10px 10px 0; background: var(--paper); font-size: 14px; line-height: 1.45; color: var(--charcoal); }
.peb__tip strong { font-weight: 600; color: var(--graphite); }
.peb__note { padding-top: 14px; border-top: 1px solid var(--mist); font-size: 13px; line-height: 1.45; color: var(--ash); }

/* ---------- engagements ---------- */
.engage { margin-top: clamp(56px, 8vw, 96px); }
.engage__title { margin-bottom: 24px; font-family: var(--font-display); font-weight: 400; font-size: var(--text-heading-sm); letter-spacing: -0.02em; color: var(--graphite); }
.engage__list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.engage__list li { padding: 20px; border-radius: var(--r-card); border: 1px solid var(--mist); background: var(--paper); transition: border-color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease); }
.engage__list li:hover { border-color: var(--signal); box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.engage__list h4 { margin-bottom: 6px; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--graphite); }
.engage__list p { font-size: 15px; color: var(--ash); }

/* ---------- zone ---------- */
.zone { padding-block: clamp(64px, 9vw, 112px) 0; background: var(--parchment); }
.zone__head { margin-bottom: 36px; }
.zone__head .h { max-width: 28ch; }
.marquee { overflow: hidden; border-block: 1px solid var(--mist); padding-block: 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { display: flex; align-items: center; gap: 44px; padding-right: 44px; font-family: var(--font-display); font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3.1rem); letter-spacing: -0.02em; color: var(--graphite); white-space: nowrap; }
.marquee span::after { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--signal); }
.marquee span:nth-child(3n + 2) { font-style: italic; color: var(--ash); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- faq ---------- */
.faq { background: var(--parchment); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: 112px; }
.faq__head .h-lg { margin-bottom: 18px; }
.faq__head a { color: var(--signal-ink); }
.qa { border-top: 1px solid var(--mist); }
.qa:last-child { border-bottom: 1px solid var(--mist); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; list-style: none; cursor: pointer; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); line-height: 1.3; letter-spacing: -0.015em; transition: color 0.25s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--signal-ink); }
.qa__icon { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--mist); transition: transform 0.4s var(--ease), border-color 0.3s; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--twilight); transform: translate(-50%, -50%); transition: transform 0.4s var(--ease); }
.qa__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa__icon { transform: rotate(180deg); border-color: var(--signal); }
.qa[open] .qa__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa__body { overflow: hidden; }
.qa__body p { padding: 0 54px 24px 0; color: var(--charcoal); max-width: 64ch; }

/* ---------- contact ---------- */
.contact { background: var(--parchment); padding-top: clamp(32px, 5vw, 64px); }
.atmo--blue { background: var(--cerulean); color: #fff; }
.atmo__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); padding: clamp(24px, 6vw, 80px); align-items: start; }
.display--light { color: #fff; }
.contact__lead { margin-top: 18px; font-size: 18px; color: var(--on-dark-soft); max-width: 40ch; }
.next { list-style: none; counter-reset: next; display: grid; gap: 10px; margin-top: 22px; }
.next li { counter-increment: next; display: flex; align-items: center; gap: 12px; color: #fff; font-size: 15.5px; }
.next li::before { content: counter(next); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.55); font: 500 12px var(--font-mono); }
.contact__list { list-style: none; display: grid; margin: 34px 0 30px; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.contact__list li { display: grid; gap: 4px; padding-block: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.contact__k { font: 500 12px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #cfe6f4; }
.contact__v { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 18px; user-select: text; }
.contact__v a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.4); text-underline-offset: 4px; }
.copy { padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.4); background: transparent; color: #fff; font-size: 12.5px; cursor: pointer; transition: background 0.2s; }
.copy:hover { background: rgba(255, 255, 255, 0.14); }
.form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-card-lg); background: var(--paper); color: var(--charcoal); box-shadow: 0 30px 60px -30px rgba(4, 30, 60, 0.6); }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 500; color: var(--ash); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form__seg, .form__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.form__seg legend, .form__chips legend { width: 100%; }
.seg-opt, .chip { position: relative; display: inline-flex; }
.seg-opt input, .chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg-opt span, .chip span { display: inline-flex; align-items: center; padding: 9px 14px; border-radius: var(--r-btn); border: 1px solid var(--mist); background: var(--paper); font-size: 14.5px; color: var(--charcoal); transition: border-color 0.2s, background 0.2s, color 0.2s; }
.seg-opt span { padding-inline: 18px; }
.seg-opt input:checked + span, .chip input:checked + span { border-color: var(--signal); background: var(--signal-wash); color: var(--signal-ink); }
.seg-opt input:focus-visible + span, .chip input:focus-visible + span { outline: 2px solid var(--signal-ink); outline-offset: 2px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: 13px; font-weight: 500; color: var(--ash); }
.field input, .field textarea { width: 100%; padding: 12px 12px 10px; border: 0; border-bottom: 1px solid var(--charcoal); border-radius: 0; background: var(--linen); font: 400 16px/1.4 var(--font-ui); color: var(--charcoal); outline: none; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--signal-ink); box-shadow: inset 0 -1px 0 var(--signal-ink); background: #f3f7f8; }
.field.is-invalid input, .check.is-invalid span { border-bottom-color: #b3261e; }
.field.is-invalid label, .check.is-invalid { color: #b3261e; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ash); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--signal-ink); }
.form__status { min-height: 1.4em; font-size: 14px; line-height: 1.45; color: var(--ash); }
.form__status[data-state="error"] { color: #b3261e; }
.form__status[data-state="ok"] { color: #1f6b3a; }
.form__status[data-state="info"] { padding: 12px 14px; border-radius: var(--r-btn); border: 1px solid var(--mist); background: var(--linen); color: var(--charcoal); }

/* ---------- footer ---------- */
.footer { position: relative; overflow: hidden; margin-top: clamp(72px, 10vw, 120px); padding-top: clamp(72px, 10vw, 128px); border-top: 1px solid var(--mist); background: var(--paper); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(48px, 7vw, 80px); }
.footer__statement { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.2rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 17ch; }
.footer__logo { flex: none; }
.footer__lockup { display: block; width: clamp(150px, 15vw, 190px); height: auto; transition: transform 0.6s var(--ease); }
.footer__logo:hover .footer__lockup { transform: rotate(-3deg) translateY(-4px); }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand p { max-width: 30ch; font-size: 15px; color: var(--ash); }
.footer h3 { margin-bottom: 14px; font: 500 12px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); }
.footer ul { list-style: none; display: grid; gap: 10px; font-size: 15px; }
.footer ul a { text-decoration: none; color: var(--charcoal); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--ease); }
.footer ul a:hover { background-size: 100% 1px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 56px; padding-block: 26px; border-top: 1px solid var(--mist); font-size: 13px; color: var(--ash); }
.footer__meadow { position: relative; height: clamp(110px, 17vw, 250px); margin-top: 8px; pointer-events: none; }
.footer__meadow img { position: absolute; left: 50%; bottom: -2px; width: max(100%, 1100px); max-width: none; height: auto; transform: translateX(-50%); }

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  z-index: 45;
  right: calc(env(safe-area-inset-right, 0px) + 16px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  border-radius: 50px;
  border: 1px solid var(--twilight);
  background: rgba(254, 255, 252, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-nav);
  color: var(--twilight);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.55s var(--ease), opacity 0.4s ease, background 0.25s;
}
.wa-float.is-visible { transform: none; opacity: 1; }
html.is-locked .wa-float { transform: translateY(140%); opacity: 0; }
.wa-float:hover { background: #fff; }
.wa-float svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }

/* ---------- reveal on scroll (content stays visible until its animation starts) ---------- */
@keyframes revealUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.js .reveal.is-in { animation: revealUp 0.95s var(--ease) both; animation-delay: var(--d, 0s); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engage__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__links { display: none; }
  .nav__toggle { display: inline-block; }
  .brand { margin-right: auto; }
  .nav__pill { width: min(560px, 100%); justify-content: space-between; gap: 8px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .b2b__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .b2b__grid .b2b-card:last-child { grid-column: 1 / -1; }
  .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .story { grid-template-columns: minmax(0, 1fr); }
  .story__visual { order: -1; top: calc(env(safe-area-inset-top, 0px) + 72px); z-index: 2; height: auto; max-height: none; padding-block: 6px 10px; background: var(--parchment); }
  .story__visual::before { content: ""; position: absolute; left: calc(-1 * var(--gutter-l)); right: calc(-1 * var(--gutter-r)); bottom: 100%; height: 90px; background: var(--parchment); }
  .story__visual::after { content: ""; position: absolute; left: calc(-1 * var(--gutter-l)); right: calc(-1 * var(--gutter-r)); top: 100%; height: 18px; background: linear-gradient(var(--parchment), rgba(254, 255, 252, 0)); }
  .diagram { padding: 8px 8px 4px; }
  .diagram svg { max-height: 30svh; }
  .diagram__caption { min-height: 0; padding-top: 6px; font-size: 13px; }
  .chapter { min-height: 0; padding-block: 44px; }
  .method__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .method__head, .faq__head { position: static; }
  .value__grid, .hp__grid { grid-template-columns: minmax(0, 1fr); }
  .promise { grid-template-columns: minmax(0, 1fr); }
  .section__head--split { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .chassis__grid { grid-template-columns: minmax(0, 1fr); }
}
/* portrait screens: the house on top, the card below it */
@media (max-aspect-ratio: 4/5) {
  .hero__card { left: 12px; right: 12px; width: auto; max-width: 620px; margin-inline: auto; bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 8px)); padding: 16px 18px 16px; border-radius: 20px; }
  .hero__card .display { max-width: 18ch; }
  .hero__scroll { display: none; }
}
/* low landscape screens (phones turned sideways) */
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  .hero { min-height: 0; }
  .hero__card { bottom: 12px; padding: 14px 18px; }
  .hero__top { margin-bottom: 10px; }
  .hero__lead, .hero__hint, .hero__place, .hero__scroll { display: none !important; }
  .hero__card .display { font-size: clamp(1.5rem, 1rem + 2.4vw, 2.1rem); }
  .hero__actions { margin-top: 12px; }
}
@media (max-width: 720px) {
  .hero__top { margin-bottom: 12px; }
  .hero__place { display: none; }
  .aud-switch { width: 100%; }
  .aud-switch button { flex: 1; }
  .hero__card .display { font-size: clamp(1.85rem, 1.2rem + 3vw, 2.3rem); }
  .hero__lead { font-size: 15px; margin-top: 10px; }
  .hero__lead--lg, .hide-sm, .hero__lead--lg:not([hidden]) { display: none; }
  .hero__lead--sm:not([hidden]), .show-sm { display: block; }
  .hero__actions { margin-top: 14px; gap: 8px; }
  .hero__actions .btn { --h: 44px; flex: 1 1 auto; padding-inline: 14px; font-size: 14px; }
  .hero__actions .btn:has(.btn__arrow) { padding-right: 6px; }
  .hero__hint { margin-top: 12px; padding-top: 10px; font-size: 12.5px; }
  .hotspot { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .hotspot__dot { inset: 11px; }
  .nav__cta { display: none; }
  .atmo--night { display: block; min-height: 0; }
  .atmo__media { position: relative; z-index: 0; aspect-ratio: 4 / 3; }
  .atmo__media img { height: 100%; margin-top: 0; object-position: 70% 50%; }
  .atmo__card { margin: 0; width: 100%; border-radius: 0; border: 0; background: var(--night); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .cards, .b2b__grid { grid-template-columns: minmax(0, 1fr); }
  .b2b__grid .b2b-card:last-child { grid-column: auto; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
  .footer__top { flex-direction: column-reverse; align-items: flex-start; }
  .chapter__lead { font-size: 17px; }
  .figure { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .glazing__tabs button { font-size: 12px; padding-inline: 2px; }
  .wa-float span { display: none; }
  .wa-float { padding: 12px; }
}
@media (max-width: 520px) {
  .steps-row { grid-template-columns: minmax(0, 1fr); }
  .trust, .engage__list { grid-template-columns: minmax(0, 1fr); }
  .thermo__pin { font-size: 11.5px; padding: 4px 8px 4px 6px; }
  .thermo__tag { display: none; }
  .hp__tabs button { padding: 8px; }
  .hp__tabs b { font-size: 14.5px; }
  .hp__tabs small { font-size: 11.5px; }
  /* on phones the drawing zooms on the part being explained */
  .hp__stage { aspect-ratio: 4 / 3; }
  .hp__fig[data-mode="air"] .hp__canvas { --hpk: 1.818; transform: scale(1.818) translate(0, -25%); }
  .hp__fig[data-mode="eau"] .hp__canvas { --hpk: 1.4815; transform: scale(1.4815) translate(-26.9%, -14%); }
  .hp__fig[data-mode="ecs"] .hp__canvas { --hpk: 1.4815; transform: scale(1.4815) translate(-29.4%, -11%); }
  .cut-toggle { top: calc(env(safe-area-inset-top, 0px) + 76px); right: 12px; font-size: 13.5px; min-height: 40px; }
}
@media (max-width: 420px) {
  .contact__v { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__track span:nth-child(n + 17) { display: none; }
  .js .chapter { opacity: 1; }
}
