/* Fonts are served from this site: Space Grotesk and Libre Baskerville, both SIL Open Font Licence. */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/space-grotesk-v22-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/space-grotesk-v22-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/space-grotesk-v22-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/space-grotesk-v22-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/libre-baskerville-v24-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/libre-baskerville-v24-latin-italic.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/libre-baskerville-v24-latin-700.woff2") format("woff2"); }
/* Quantessa — site styles
   Palette: ink, paper, mist, key green (from the logo), deep green for text.
   Blue is reserved for model inputs, as in a financial model. */
:root {
  --ink: #16201c;
  --paper: #ffffff;
  --mist: #f2f5f3;
  --line: #d5dcd8;
  --key: #5fd39a;
  --deep: #14553a;
  --muted: #55605b;
  --input: #1b4fc4;
  --warn: #7a4300;
  --warn-bg: #fdefd6;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1.25; }

p { margin: 0; max-width: 62ch; }
p + p { margin-top: 1em; }

a { color: var(--deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--input); outline-offset: 3px; border-radius: 2px; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  font-family: var(--sans); font-size: 0.95rem; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--paper); }

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 28px; padding-block: 12px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand img { height: 40px; width: auto; display: block; }
.brand img[hidden] { display: none; }
.brand-text { font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.01em; }
.brand-text[hidden] { display: none; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-family: var(--sans); font-size: 0.97rem; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding-block: 10px; }
.nav a:hover { color: var(--deep); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--key); }
.nav a.btn { padding: 11px 18px; font-size: 0.95rem; color: var(--paper); }
.nav a.btn:hover { color: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; padding: 15px 24px; border-radius: 6px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper); cursor: pointer;
}
.btn:hover { background: #24332d; color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--key { background: var(--key); border-color: var(--key); color: var(--ink); }
.btn--key:hover { background: #7fe0b0; border-color: #7fe0b0; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Bands ---------- */
.band { padding-block: clamp(64px, 9vw, 116px); }
.band--mist { background: var(--mist); border-block: 1px solid var(--line); }
.band--ink { background: var(--ink); color: var(--paper); }
.band--ink a { color: var(--key); }
.band--ink a:hover { color: var(--paper); }
.band--ink .btn--key, .band--ink .btn--key:hover { color: var(--ink); }

.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.65; color: #2d3833; margin-top: 24px; max-width: 56ch; }
.band--ink .lede { color: #dfe6e2; }
.intro { display: grid; gap: 20px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.intro p { color: #2d3833; }

/* ---------- Hero ---------- */
.hero { background: var(--mist); border-bottom: 1px solid var(--line); padding-block: clamp(48px, 7vw, 96px); }
.hero .wrap { display: block; }
.hero h1 { max-width: 20ch; }
.hero .lede { max-width: 62ch; }
.page-hero { background: var(--mist); border-bottom: 1px solid var(--line); padding-block: clamp(48px, 7vw, 88px); }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 20ch; }


/* ---------- Fit list ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split > div > h2 + p { margin-top: 20px; }
.ticks { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ticks li { position: relative; padding: 18px 0 18px 44px; border-bottom: 1px solid var(--line); }
.ticks li::before {
  content: ""; position: absolute; left: 6px; top: 26px; width: 18px; height: 9px;
  border-left: 3px solid var(--deep); border-bottom: 3px solid var(--deep); transform: rotate(-45deg);
}
.aside-note { margin-top: 24px; font-size: 0.97rem; color: var(--muted); }

/* ---------- Ruled definition rows ---------- */
.rows { margin: 0; border-top: 2px solid var(--ink); }
.rows > div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 8px 40px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rows dt { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.rows dd { margin: 0; color: #2d3833; }
.band--ink .rows { border-top-color: var(--key); }
.band--ink .rows > div { border-bottom-color: #33423c; }
.band--ink .rows dd { color: #dfe6e2; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(32px, 6vw, 88px); }
.pillars article { border-top: 2px solid var(--ink); padding-top: 22px; }
.pillars h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); margin-bottom: 12px; }
.pillars p { color: #2d3833; }

/* ---------- Two ways in ---------- */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.way { padding: clamp(28px, 4vw, 44px); border: 1.5px solid var(--ink); border-radius: 4px; display: flex; flex-direction: column; gap: 16px; }
.way--build { background: var(--ink); color: var(--paper); }
.way--build p { color: #dfe6e2; }
.way--build a { color: var(--key); }
.way--build a:hover { color: var(--paper); }
.way h3 { font-size: 1.6rem; }
.way .when { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; }
.way--audit .when { color: var(--deep); }
.way--build .when { color: var(--key); }
.way .more { margin-top: auto; padding-top: 8px; font-family: var(--sans); font-weight: 600; }

/* ---------- Inputs / Calculations / Outputs ---------- */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1.5px solid var(--ink); border-radius: 4px; background: var(--paper); }
.flow > div { padding: clamp(22px, 3vw, 34px); border-right: 1px solid var(--line); }
.flow > div:last-child { border-right: 0; background: var(--ink); color: var(--paper); }
.flow h3 { margin-bottom: 10px; font-size: 1.4rem; }
.flow .is-input h3 { color: var(--input); }
.flow p { font-size: 1rem; }
.flow > div:last-child p { color: #dfe6e2; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(step); font-family: var(--sans); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--deep); display: block; margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 1rem; color: #2d3833; }

/* ---------- Scope columns ---------- */
.scope { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px 28px; }
.scope section { border-top: 2px solid var(--ink); padding-top: 16px; }
.scope h3 { margin-bottom: 12px; }
.scope ul { margin: 0; padding-left: 1.1em; font-size: 1rem; line-height: 1.6; color: #2d3833; }
.scope li + li { margin-top: 8px; }

.plain { margin: 0; padding-left: 1.2em; }
.plain li + li { margin-top: 10px; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.founder .role { font-family: var(--sans); font-weight: 600; color: var(--deep); margin-top: 8px; }
.founder-links { margin-top: 20px; font-family: var(--sans); font-weight: 600; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { font-family: var(--sans); font-weight: 600; font-size: 1.15rem; padding: 20px 36px 20px 0; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; font-weight: 500; color: var(--deep); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 22px; color: #2d3833; }

/* ---------- Closing call ---------- */
.closing h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 18ch; }
.closing .mail { font-family: var(--sans); margin-top: 22px; font-size: 1rem; }

/* ---------- Forms ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form { display: grid; gap: 20px; font-family: var(--sans); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 4px; padding: clamp(22px, 3.5vw, 40px); }
.form .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.form label, .form legend { font-size: 0.93rem; font-weight: 600; display: block; padding: 0; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; margin-top: 8px; font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid #8b9590; border-radius: 4px; padding: 12px 14px; min-height: 48px;
}
.form textarea { min-height: 150px; line-height: 1.5; resize: vertical; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form .checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; }
.form .check { display: inline-flex; align-items: center; gap: 10px; font-weight: 400; font-size: 1rem; min-height: 44px; }
.form .check input { width: 20px; height: 20px; accent-color: var(--deep); }
.form .consent { font-family: var(--serif); font-size: 0.93rem; font-weight: 400; line-height: 1.55; display: flex; gap: 12px; align-items: flex-start; }
.form .consent input { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--deep); }
.form .hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.93rem; color: var(--warn); background: var(--warn-bg); padding: 12px 14px; border-radius: 4px; max-width: none; }
.form-note[hidden] { display: none; }
.next { list-style: none; counter-reset: n; margin: 28px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.next li { counter-increment: n; padding: 14px 0 14px 40px; border-bottom: 1px solid var(--line); position: relative; }
.next li::before { content: counter(n); position: absolute; left: 4px; top: 12px; font-family: var(--sans); font-weight: 700; font-size: 1.2rem; color: var(--deep); }

/* ---------- Prose pages ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 44px 0 12px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: #0f1613; color: #c5cec9; font-family: var(--sans); font-size: 0.95rem; }
.site-footer .wrap { padding-block: 52px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-brand { font-family: var(--serif); font-size: 1.5rem; color: var(--paper); }
.site-footer p { max-width: 34ch; margin-top: 10px; line-height: 1.6; }
.site-footer h2 { font-size: 0.95rem; letter-spacing: 0; color: var(--paper); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 4px; }
.site-footer a { color: #c5cec9; display: inline-block; padding-block: 5px; }
.site-footer a:hover { color: var(--paper); }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid #2a3732; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.86rem; color: #a3aea9; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .split, .founder, .contact { grid-template-columns: minmax(0, 1fr); }
  .pillars, .ways { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow > div:last-child { border-bottom: 0; }
  .rows > div { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 0 18px; font-size: 0.92rem; }
  .nav a.btn { display: none; }
}

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

/* ---------- Case study ---------- */
.band--tight { padding-block: clamp(24px, 3vw, 36px); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0; border-top: 2px solid var(--ink); }
.facts > div { padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-family: var(--sans); font-weight: 700; line-height: 1.3; }

.chart { margin: 36px 0 0; max-width: 820px; }
.chart figcaption { margin-top: 16px; font-size: 0.86rem; color: var(--muted); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; font-family: var(--sans); }
.bar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 64px; align-items: center; gap: 14px; }
.bar__name { font-weight: 600; line-height: 1.25; }
.bar__tag { display: block; font-size: 0.82rem; font-weight: 600; color: var(--deep); }
.bar__track { display: block; height: 32px; }
.bar__fill { display: block; height: 100%; width: var(--w); background: #bcc7c1; }
.bar--selected .bar__fill { background: var(--deep); }
.bar--rejected .bar__fill { background: repeating-linear-gradient(135deg, #bcc7c1 0 5px, var(--paper) 5px 9px); outline: 1px solid #8f9b95; outline-offset: -1px; }
.bar--rejected .bar__tag { color: var(--muted); }
.bar__val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.band--ink .chart { margin-top: 0; }
.band--ink .chart figcaption { color: #b4beb9; }
.band--ink .bar__fill { background: #52625b; }
.band--ink .bar--selected .bar__fill { background: var(--key); }
.band--ink .bar__tag { color: var(--key); }
.band--ink .split > div > p + p { margin-top: 1em; }
.band--ink .more { margin-top: 24px; font-family: var(--sans); font-weight: 600; }
.chart--dark .bar { grid-template-columns: 96px minmax(0, 1fr) 64px; }

.table-wrap { margin-top: 44px; overflow-x: auto; }
.tradeoff { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 0.98rem; border-top: 2px solid var(--ink); }
.tradeoff th, .tradeoff td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tradeoff thead th { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.tradeoff tbody th { font-weight: 700; }
.tradeoff td { font-variant-numeric: tabular-nums; }
.tradeoff tr.is-selected th, .tradeoff tr.is-selected td { background: #e5f6ed; }
.tradeoff tr.is-selected th { padding-left: 12px; }

@media (max-width: 560px) {
  .bar, .chart--dark .bar { grid-template-columns: 1fr 58px; gap: 4px 10px; }
  .bar__name { grid-column: 1 / -1; }
  .bar__track { grid-column: 1; }
  .bar__val { grid-column: 2; }
}
.tradeoff td { white-space: nowrap; }
@media (max-width: 560px) { .nav { gap: 0 14px; font-size: 0.88rem; } .tradeoff { font-size: 0.9rem; } .tradeoff th, .tradeoff td { padding-right: 10px; } .tradeoff td { white-space: normal; } .tradeoff td:nth-child(2) { white-space: nowrap; } }
.band--ink .split { align-items: center; }

/* ---------- Client logo ---------- */
.logo-tile { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 18px 26px; display: inline-flex; align-items: center; }
.logo-tile img { display: block; height: 52px; width: auto; }
.page-hero--case .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 56px; align-items: center; }
.chart--dark .logo-tile { margin-bottom: 28px; }
@media (max-width: 900px) { .page-hero--case .wrap { grid-template-columns: minmax(0, 1fr); } .page-hero--case .logo-tile { justify-self: start; order: -1; } }

/* ---------- Case study refinements ---------- */
.bar--selected .bar__fill { background: var(--key); }
.bar--selected .bar__tag { display: inline-block; margin-top: 3px; padding: 1px 9px; background: var(--key); color: var(--ink); border-radius: 3px; }
.findings .rows dt { display: flex; align-items: center; gap: 14px; }
.ico { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--deep); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Case study hero photo ---------- */
.page-hero--case {
  --shade: 0.85; /* black overlay opacity: 15% transparency. Lower it to show more of the photo. */
  background: linear-gradient(rgba(0, 0, 0, var(--shade)), rgba(0, 0, 0, var(--shade))), url("mt-ama-hero.jpg") center 45% / cover no-repeat, var(--ink);
  border-bottom: 0;
  color: var(--paper);
}
.page-hero--case h1 { color: var(--paper); }
.page-hero--case .lede { color: #e6ece9; }
.page-hero--case .btn--key, .page-hero--case .btn--key:hover { color: var(--ink); }
.page-hero--case .btn--ghost { color: var(--paper); border-color: var(--paper); }
.page-hero--case .btn--ghost:hover { background: var(--paper); color: var(--ink); }
.page-hero--case :focus-visible { outline-color: var(--key); }

/* ---------- Homepage: six country charts ---------- */
.band--rule { border-bottom: 1px solid var(--line); }
.footer-logo { display: block; height: 52px; width: auto; }
.cc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.cc { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 16px 16px 14px; }
.cc-name { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; }
.kpis { display: flex; gap: 22px; margin: 10px 0 8px; font-family: var(--sans); }
.kpis dt { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.kpis abbr { text-decoration: none; }
.kpis dd { margin: 0; font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cc svg { display: block; width: 100%; height: auto; overflow: visible; }
.cc svg text { font-family: var(--sans); fill: var(--muted); }
.cc svg .a { font-size: 10.5px; }
.cc svg .x { font-size: 10.5px; fill: var(--ink); }
.cc svg .t { font-size: 10px; }
.cc svg .g { stroke: var(--line); stroke-width: 1; }
.cc svg .brk { stroke: #aab5af; stroke-width: 1; stroke-dasharray: 3 3; }
.cc svg .bc { fill: var(--deep); }
.cc svg .bm { fill: #b7d3c4; }
.cc svg .hit { fill: transparent; }
.cc svg .yr { cursor: pointer; outline: none; }
.cc svg .yr:hover .hit, .cc svg .yr.is-on .hit { fill: rgba(95, 211, 154, 0.16); }
.cc svg .yr:focus-visible .hit { fill: rgba(95, 211, 154, 0.16); stroke: var(--ink); stroke-width: 1.5; }
.cc svg .dl0 { fill: none; stroke: var(--ink); stroke-width: 3.6; stroke-linejoin: round; pointer-events: none; }
.cc svg .dl { fill: none; stroke: var(--key); stroke-width: 1.8; stroke-linejoin: round; pointer-events: none; }
.cc svg .dm { fill: var(--key); stroke: var(--ink); stroke-width: 1; pointer-events: none; }
.cc-read { min-height: 2.9em; margin: 8px 0 0; font-family: var(--sans); font-size: 0.88rem; line-height: 1.4; max-width: none; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; margin: 22px 0 0; padding: 0; font-family: var(--sans); font-size: 0.92rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 16px; height: 12px; }
.sw-c { background: var(--deep); }
.sw-m { background: #b7d3c4; }
.sw-d { height: 0; width: 22px; border-top: 3px solid var(--key); box-shadow: 0 0 0 1px var(--ink); }
.cc-note { margin-top: 14px; font-size: 0.86rem; color: var(--muted); max-width: 90ch; }
@media (max-width: 1060px) { .cc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .cc-grid { grid-template-columns: minmax(0, 1fr); } }

.cc svg .m-solar { fill: #e6b43f; }
.cc svg .m-bess { fill: #3d4f47; }
.cc svg .m-wind { fill: #8fa7b5; }
.sw-s { background: #e6b43f; }
.sw-b { background: #3d4f47; }
.sw-w { background: #8fa7b5; }
.cc-read { min-height: 4.3em; }

/* Founder's offer */
.offerbar { background: var(--key); color: var(--ink); font-family: var(--sans); font-size: 0.94rem; }
.offerbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding-block: 9px; }
.offerbar strong { font-weight: 700; }
.offerbar a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-left: auto; }
.offerbar a:hover { color: var(--deep); }
.band--offer { background: var(--deep); color: var(--paper); border-block: 6px solid var(--key); }
.band--offer h2 { color: var(--paper); }
.band--offer .lede { color: #e3efe8; margin-top: 20px; }
.band--offer a:not(.btn) { color: var(--key); }
.badge { display: inline-block; margin: 0 0 20px; padding: 6px 14px; border: 1.5px dashed var(--key); border-radius: 999px; font-family: var(--sans); font-weight: 600; font-size: 0.95rem; color: var(--key); }
.offer { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.offer h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 16ch; }
.offer-steps { list-style: none; margin: 0; padding: 8px clamp(22px, 3vw, 36px); background: var(--paper); color: var(--ink); border-radius: 4px; border: 2px dashed var(--ink); }
.offer-steps li { padding: 20px 0; border-bottom: 1px dashed var(--line); }
.offer-steps li:last-child { border-bottom: 0; }
.offer-steps h3 { font-size: 1.25rem; margin-bottom: 6px; color: var(--deep); }
.offer-steps p { font-size: 0.98rem; color: #2d3833; margin: 0; }
.band--offer-slim { padding-block: clamp(36px, 5vw, 56px); }
.offer--slim { grid-template-columns: minmax(0, 1fr) auto; }
.offer--slim h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); max-width: 34ch; line-height: 1.2; }
.offer--slim .badge { margin-bottom: 14px; }
.offer--slim .actions { margin-top: 0; }
@media (max-width: 900px) { .offer, .offer--slim { grid-template-columns: minmax(0, 1fr); } .offerbar a { margin-left: 0; } }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 28px; position: relative; }
.timeline li { position: relative; padding-top: 34px; border-top: 3px solid var(--ink); }
.timeline li::before { content: ""; position: absolute; top: -10px; left: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--key); border: 3px solid var(--ink); }
.timeline .tl-when { position: absolute; top: 10px; left: 0; font-family: var(--sans); font-weight: 700; font-size: 1rem; color: var(--deep); }
.timeline h3 { margin: 18px 0 8px; font-size: 1.25rem; }
.timeline p { font-size: 1rem; color: #2d3833; }
.timeline p + p { margin-top: 0.7em; }
@media (max-width: 900px) { .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; } .timeline li { border-top: 0; border-left: 3px solid var(--ink); padding: 0 0 28px 28px; } .timeline li::before { top: 2px; left: -10px; } .timeline .tl-when { position: static; display: block; margin-bottom: 4px; } .timeline h3 { margin-top: 0; } }

/* Photography and illustration */
.portrait { display: block; width: 100%; max-width: 300px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; margin-top: 32px; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 1px 2px rgba(22, 32, 28, 0.06), 0 8px 24px rgba(22, 32, 28, 0.08); }
.closing { padding-bottom: 0; overflow: hidden; }
.closing .ridge { display: block; width: 100%; height: clamp(120px, 18vw, 230px); margin-top: clamp(40px, 6vw, 72px); }
@media (max-width: 900px) { .portrait { max-width: 240px; } }

/* Delivery guarantee and registered office */
.guarantee { grid-column: 1 / -1; margin-top: 8px; padding: clamp(22px, 3vw, 34px); border: 2px solid var(--key); border-radius: 4px; background: rgba(95, 211, 154, 0.08); }
.guarantee h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.15; color: var(--key); }
.guarantee p { margin: 12px 0 0; max-width: 70ch; color: #e3efe8; font-size: 1rem; }
.guarantee--light { margin-top: 44px; background: var(--paper); border-color: var(--deep); }
.guarantee--light h3 { color: var(--deep); }
.guarantee--light p { color: #2d3833; }
.band--offer .offer { row-gap: clamp(28px, 4vw, 44px); }

/* ---------- Header hides on scroll down, returns on scroll up ---------- */
.site-header { transition: transform 0.28s ease, box-shadow 0.28s ease; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { box-shadow: 0 1px 10px rgba(22, 32, 28, 0.08); }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }

/* ---------- Icons ---------- */
:root { --qa: #1f9a63; }
.band--ink, .band--offer, .way--build, .hero--photo, .site-footer { --qa: #5fd39a; }
.qi { width: 40px; height: 40px; flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pillars .qi { margin-bottom: 18px; width: 44px; height: 44px; }
.way .qi { width: 44px; height: 44px; }
.way--build .qi { color: var(--paper); }
.rows dt.has-i { display: flex; align-items: flex-start; gap: 14px; }
.rows dt.has-i .qi { width: 30px; height: 30px; margin-top: -3px; }
.band--ink .rows dt.has-i .qi { color: var(--paper); }

/* ---------- Home hero with photograph ---------- */
.hero--photo {
  position: relative; color: var(--paper); border-bottom: 0;
  min-height: clamp(520px, 74vh, 740px); display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(9, 17, 14, 0.9) 0%, rgba(9, 17, 14, 0.8) 42%, rgba(9, 17, 14, 0.3) 68%, rgba(9, 17, 14, 0) 100%),
              url("mt-summit-hero.jpg") 70% 45% / cover no-repeat, var(--ink);
}
.hero--photo .wrap { width: 100%; }
.hero--photo h1 { color: var(--paper); }
.hero--photo .lede { color: #e1e9e5; }
.hero--photo .btn:not(.btn--ghost) { background: var(--key); border-color: var(--key); color: var(--ink); }
.hero--photo .btn--ghost { color: var(--paper); border-color: rgba(255, 255, 255, 0.8); background: transparent; }
.hero--photo .btn--ghost:hover { background: var(--paper); color: var(--ink); }
@media (max-width: 760px) { .hero--photo { background: linear-gradient(rgba(9, 17, 14, 0.78), rgba(9, 17, 14, 0.78)), url("mt-summit-hero.jpg") 72% 45% / cover no-repeat, var(--ink); } }

/* ---------- Mountain photo bands ---------- */
.photo-band { position: relative; margin: 0; height: clamp(260px, 34vw, 470px); display: flex; align-items: flex-end; background-color: var(--ink); background-repeat: no-repeat; background-size: cover; }
.photo-band figcaption { width: 100%; max-width: 1160px; margin-inline: auto; padding: 0 clamp(20px, 4vw, 40px) clamp(22px, 3vw, 36px); color: var(--paper); font-family: var(--sans); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.35rem, 2.8vw, 2.2rem); line-height: 1.15; text-wrap: balance; }
.photo-band--karakoram { background-image: linear-gradient(to top, rgba(9, 17, 14, 0.72), rgba(9, 17, 14, 0) 55%), url("mt-teton-band.jpg"); background-position: center, center 45%; }
.photo-band--ama { background-image: linear-gradient(to top, rgba(9, 17, 14, 0.72), rgba(9, 17, 14, 0) 55%), url("mt-ama-band.jpg"); background-position: center, center 40%; }
.photo-band--musala { background-image: linear-gradient(to top, rgba(9, 17, 14, 0.72), rgba(9, 17, 14, 0) 55%), url("mt-moraine-band.jpg"); background-position: center, center 42%; }
.contact-photo { margin: 28px 0 0; }
.contact-photo img { display: block; width: 100%; height: auto; max-width: 520px; border-radius: 4px; }

/* ---------- Founder's offer: two promises ---------- */
.promises { display: grid; gap: 16px; }
.promises article { --qa: #1f9a63; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: start; background: var(--paper); color: var(--ink); border-radius: 4px; padding: clamp(20px, 2.6vw, 28px); }
.promises .qi { grid-row: span 2; width: 44px; height: 44px; }
.promises h3 { font-size: 1.3rem; color: var(--deep); }
.promises p { margin: 8px 0 0; font-size: 0.98rem; color: #2d3833; }
.guarantee--light { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; }
.guarantee--light .qi { grid-row: span 2; width: 44px; height: 44px; color: var(--ink); }

/* ---------- Section intro on one row ---------- */
.intro--row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 56px; align-items: end; max-width: none; }
.intro--row p { margin: 0; }
@media (max-width: 900px) { .intro--row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Home: consolidated portfolio chart ---------- */
.cs { margin: 36px 0 0; }
.cs-head { display: flex; flex-wrap: wrap; gap: 8px clamp(28px, 5vw, 64px); margin-bottom: 18px; font-family: var(--sans); }
.cs-stat { margin: 0; color: var(--muted); font-size: 0.98rem; }
.cs-stat strong { display: block; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.05; color: var(--deep); letter-spacing: -0.02em; }
.cs svg { display: block; width: 100%; height: auto; overflow: visible; }
.cs svg text { font-family: var(--sans); fill: var(--muted); }
.cs svg .a, .cs svg .t { font-size: 13px; }
.cs svg .x { font-size: 13px; fill: var(--ink); }
.cs svg .g { stroke: var(--line); stroke-width: 1; }
.cs svg .brk { stroke: #aab5af; stroke-width: 1; stroke-dasharray: 4 4; }
.cs svg .bc { fill: var(--deep); }
.cs svg .bm { fill: #b7d3c4; }
.cs svg .dl0 { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; }
.cs svg .dl { fill: none; stroke: var(--key); stroke-width: 2.6; stroke-linejoin: round; }
.cs svg .dm { fill: var(--key); stroke: var(--ink); stroke-width: 1.4; }
.cs-chips { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; font-family: var(--sans); font-size: 0.92rem; }
.cs-chips li { border-top: 2px solid var(--ink); padding-top: 10px; display: flex; flex-direction: column; color: var(--muted); }
.cs-chips .cs-c { color: var(--ink); font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.cs-chips abbr { text-decoration: none; }
@media (max-width: 900px) { .cs-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cs-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Engagement: the ascent ---------- */
.ascent { margin: 40px 0 0; }
.ascent-art { display: block; width: 100%; height: auto; }
.ascent-art .cmp circle { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.ascent-art .cmp text { fill: var(--ink); }
.ascent-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; text-align: center; }
.ascent-steps .when { display: block; font-family: var(--sans); font-weight: 600; font-size: 0.88rem; color: var(--deep); }
.ascent-steps h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.ascent-steps p { font-size: 0.95rem; line-height: 1.6; color: #2d3833; margin: 0; }
.ascent-note { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding: 16px 20px; background: var(--paper); border: 1.5px solid var(--deep); border-radius: 4px; font-family: var(--sans); font-size: 1rem; }
.ascent-note .qi { width: 34px; height: 34px; }
@media (max-width: 900px) {
  .ascent-steps { grid-template-columns: minmax(0, 1fr); text-align: left; counter-reset: asc; gap: 0; }
  .ascent-steps li { counter-increment: asc; position: relative; padding: 0 0 20px 46px; }
  .ascent-steps li::before { content: counter(asc); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--sans); font-weight: 700; font-size: 0.9rem; background: var(--paper); }
}

@media (max-width: 640px) {
  .cs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cs svg { min-width: 680px; }
  .cs-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-chips, .cs .legend { min-width: 0; }
}
.hero--photo h1 { max-width: 13ch; }
.hero--photo .lede { max-width: 46ch; }

/* ---------- Offer footnotes ---------- */
.promises sup { font-size: 0.7em; line-height: 0; margin-left: 1px; }
.promises sup a { color: var(--deep); font-family: var(--sans); font-weight: 700; text-decoration: none; }
.footnotes { margin: 4px 0 0; padding-left: 1.3em; font-size: 0.86rem; line-height: 1.55; color: #cfe0d7; }
.footnotes li + li { margin-top: 4px; }
.footnotes li::marker { font-family: var(--sans); font-weight: 700; color: var(--key); }
.footnotes li:target { color: var(--paper); }

/* ---------- Fit and warning signs ---------- */
.fit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); margin-top: 40px; }
.fit-h { font-size: 1.2rem; margin-bottom: 16px; }
.signs { border-top: 2px solid var(--ink); }
.signs details { border-bottom: 1px solid var(--line); }
.signs summary { display: flex; align-items: center; gap: 14px; padding: 16px 0; cursor: pointer; list-style: none; font-family: var(--sans); font-weight: 600; font-size: 1.05rem; }
.signs summary::-webkit-details-marker { display: none; }
.signs summary .qi { width: 28px; height: 28px; }
.signs summary span { flex: 1; }
.signs summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--deep); transition: transform 0.2s ease; }
.signs details[open] summary::after { transform: rotate(45deg); }
.signs summary:hover span { color: var(--deep); }
.signs details p { margin: 0 0 18px 42px; font-size: 0.98rem; color: #2d3833; }
@media (max-width: 900px) { .fit-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Spreadsheet illustrations in the two service cards ---------- */
.ways { align-items: stretch; }
.xl { margin: 0 0 8px; font-family: var(--sans); }
.xl-tabs { display: flex; gap: 4px; padding-left: 10px; }
.xl-tab { padding: 7px 14px 6px; font-size: 0.8rem; font-weight: 600; border-radius: 6px 6px 0 0; background: #c9d6cf; color: #4c5a54; position: relative; top: 1px; }
.xl-tab.is-active { background: var(--paper); color: var(--deep); box-shadow: inset 0 3px 0 var(--key); }
.way--build .xl-tab:not(.is-active) { background: #2b3732; color: #9fb0a8; }
.xl-sheet { background: var(--paper); color: var(--ink); border-radius: 0 6px 6px 6px; padding: 10px 12px 12px; box-shadow: 0 1px 0 rgba(22, 32, 28, 0.06), 0 12px 30px rgba(9, 17, 14, 0.18); border: 1px solid #dbe3df; }
.way--audit .xl-sheet { box-shadow: 0 10px 26px rgba(22, 32, 28, 0.1); }
.xl-bar { display: flex; align-items: center; gap: 8px; font-size: 0.74rem; color: #4c5a54; border: 1px solid var(--line); border-radius: 3px; padding: 4px 8px; margin-bottom: 10px; overflow: hidden; white-space: nowrap; }
.xl-ref { font-weight: 700; color: var(--ink); padding-right: 8px; border-right: 1px solid var(--line); }
.xl-fx { font-style: italic; font-weight: 700; color: var(--deep); }
.xl-f { overflow: hidden; text-overflow: ellipsis; }
.xl-key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.74rem; color: #4c5a54; margin-bottom: 2px; }
.xl-key span { display: inline-flex; align-items: center; gap: 6px; }
.xl-key .sw { width: 10px; height: 10px; }
.xl-chart { display: block; width: 100%; height: auto; }
.xl-chart text { font-family: var(--sans); font-size: 9.5px; fill: #6b7872; }
.xl-chart .x { fill: var(--ink); }
.xl-chart .g { stroke: #e3e9e6; stroke-width: 1; }
.xl-chart .brk { stroke: #aab5af; stroke-dasharray: 3 3; }
.xl-chart .bc { fill: var(--deep); }
.xl-chart .bm { fill: #b7d3c4; }
.xl-chart .dl { fill: none; stroke: var(--key); stroke-width: 2.2; stroke-linejoin: round; }
.xl-chart .dm { fill: var(--key); stroke: var(--ink); stroke-width: 1; }
.xl-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; font-variant-numeric: tabular-nums; margin-top: 8px; }
.xl-table th, .xl-table td { border: 1px solid #e0e7e3; padding: 4px 8px; text-align: right; color: var(--ink); }
.xl-table thead th { background: #eef3f0; font-weight: 600; color: #4c5a54; font-size: 0.74rem; }
.xl-table tbody th { text-align: left; font-weight: 600; }
.xl-table thead th:first-child { text-align: left; }
.xl-table--audit th, .xl-table--audit td { text-align: left; }
.xl-table--audit .n { width: 1%; color: #6b7872; text-align: center; }
.xl-table--audit tbody th { font-weight: 500; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.pill--red { background: #f6dcd8; color: #9b2c20; }
.pill--amb { background: #f8ebcc; color: #85590d; }
.pill--ok { background: #d9efe3; color: #14553a; }
.xl-score { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.xl-score li { border: 1px solid #e0e7e3; border-top: 3px solid; border-radius: 3px; padding: 6px 10px; font-size: 0.76rem; color: #4c5a54; }
.xl-score strong { display: block; font-size: 1.35rem; line-height: 1.1; color: var(--ink); }
.xl-score .red { border-top-color: #c4473a; }
.xl-score .amb { border-top-color: #d89b2b; }
.xl-score .ok { border-top-color: var(--deep); }
.xl figcaption { margin-top: 8px; font-size: 0.76rem; color: #6b7872; }
.way--build .xl figcaption { color: #9fb0a8; }
@media (max-width: 480px) { .xl-table { font-size: 0.74rem; } .xl-table th, .xl-table td { padding: 3px 5px; } }
.promises sup a { color: #14553a; }
.xl-key .sw-d { width: 14px; height: 3px; border: 0; background: var(--key); box-shadow: 0 0 0 1px var(--ink); }
#founder .portrait { margin-top: 0; }

/* ---------- Founder's offer: interactive fee meter ---------- */
.band--offer { position: relative; overflow: hidden; isolation: isolate; }
.band--offer::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.4s ease;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(95, 211, 154, 0.2), rgba(95, 211, 154, 0) 70%); }
.band--offer.is-lit::before { opacity: 1; }
.band--offer::after { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(100deg, transparent 20%, #000 75%); -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 75%); }
.offer { align-items: center; }
.offer .promises { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.offer .footnotes { grid-column: 1 / -1; }
.promises article { border: 1px solid transparent; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.promises article:hover { transform: translateY(-4px); border-color: var(--key); box-shadow: 0 16px 36px rgba(9, 17, 14, 0.32); }
.promises article .qi { transition: transform 0.35s ease; }
.promises article:hover .qi { transform: scale(1.1) rotate(-4deg); }
.feemeter { margin: 0; padding: clamp(18px, 2.4vw, 26px); border-radius: 6px; background: rgba(9, 17, 14, 0.34); border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(9, 17, 14, 0.28); font-family: var(--sans); transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.feemeter:hover { border-color: rgba(95, 211, 154, 0.6); box-shadow: 0 24px 60px rgba(9, 17, 14, 0.36), 0 0 0 4px rgba(95, 211, 154, 0.12); }
.fm-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; }
.fm-title { margin: 0; font-weight: 700; font-size: 1.02rem; color: var(--paper); }
.fm-upfront { margin: 0; font-size: 0.86rem; color: #b8cdc2; }
.fm-upfront strong { color: var(--key); font-size: 1rem; margin-left: 4px; }
.fm-out { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: center; margin: 14px 0 6px; min-height: 3.6em; }
.fm-pct { font-size: clamp(2.4rem, 4.4vw, 3.3rem); line-height: 1; letter-spacing: -0.03em; color: var(--key); font-variant-numeric: tabular-nums; min-width: 3.2ch; transition: color 0.25s ease; }
.feemeter[data-state="half"] .fm-pct { color: #b7d3c4; }
.feemeter[data-state="free"] .fm-pct { color: var(--paper); }
.fm-text { font-size: 0.9rem; line-height: 1.4; color: #dfe9e4; }
.fm-day { font-weight: 700; color: var(--paper); }
.fm-chart { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.fm-chart text { font-family: var(--sans); }
.fm-g { stroke: rgba(255, 255, 255, 0.12); stroke-dasharray: 2 4; }
.fm-axis { stroke: rgba(255, 255, 255, 0.45); }
.fm-a { font-size: 11px; fill: #a9bfb4; }
.fm-x text { font-size: 11.5px; fill: #dfe9e4; font-weight: 600; }
.fm-full { fill: var(--key); }
.fm-half { fill: #b7d3c4; }
.fm-saved { fill: url(#fm-hatch); stroke: rgba(95, 211, 154, 0.45); stroke-dasharray: 4 4; }
.fm-step { fill: none; stroke: var(--paper); stroke-width: 2; stroke-linejoin: round; }
.fm-zone { font-size: 13px; font-weight: 700; fill: var(--ink); }
.fm-zone--free { fill: var(--key); font-size: 15px; }
.fm-due { stroke: var(--paper); stroke-dasharray: 3 3; opacity: 0.8; }
.fm-mark { font-size: 11px; font-weight: 700; fill: var(--paper); }
.fm-draft { fill: var(--paper); }
.fm-cursor line { stroke: var(--paper); stroke-width: 1.5; }
.fm-cursor circle { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; transition: cy 0.2s ease; }
.fm-flag { fill: var(--key); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.fm-hit { fill: transparent; cursor: ew-resize; }
.fm-range { display: block; margin-top: 4px; }
.fm-range input { width: 100%; accent-color: var(--key); cursor: pointer; }
.fm-hint { margin-top: 6px; font-size: 0.8rem; color: #a9bfb4; }
@media (max-width: 900px) { .offer .promises { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .promises article, .promises article .qi, .band--offer::before, .fm-cursor circle, .fm-pct { transition: none; }
  .promises article:hover { transform: none; }
  .promises article:hover .qi { transform: none; }
}

/* ---------- Photo heroes on inner pages ---------- */
.page-hero--photo { position: relative; color: var(--paper); border-bottom: 0; display: flex; align-items: center; min-height: clamp(380px, 54vh, 540px);
  background-color: var(--ink); background-repeat: no-repeat; background-size: cover; background-position: center, var(--pos, center); }
.page-hero--photo .wrap { width: 100%; }
.page-hero--photo h1 { color: var(--paper); max-width: 18ch; }
.page-hero--photo .lede { color: #e1e9e5; max-width: 52ch; }
.page-hero--photo .btn:not(.btn--ghost) { background: var(--key); border-color: var(--key); color: var(--ink); }
.page-hero--photo .btn--ghost { color: var(--paper); border-color: rgba(255, 255, 255, 0.8); background: transparent; }
.page-hero--photo .btn--ghost:hover { background: var(--paper); color: var(--ink); }
.page-hero--photo a:not(.btn) { color: var(--key); }
.page-hero--photo :focus-visible { outline-color: var(--key); }
.page-hero--short { min-height: clamp(300px, 40vh, 400px); }
.ph-zermatt { --pos: 62% 42%; background-image: linear-gradient(90deg, rgba(9, 17, 14, 0.9) 0%, rgba(9, 17, 14, 0.78) 40%, rgba(9, 17, 14, 0.3) 70%, rgba(9, 17, 14, 0.1) 100%), url("mt-zermatt-hero.jpg"); }
.ph-rockies { --pos: 60% 60%; background-image: linear-gradient(90deg, rgba(9, 17, 14, 0.9) 0%, rgba(9, 17, 14, 0.75) 40%, rgba(9, 17, 14, 0.3) 70%, rgba(9, 17, 14, 0.1) 100%), url("mt-rockies-hero.jpg"); }
.ph-moraine { --pos: center 50%; background-image: linear-gradient(90deg, rgba(9, 17, 14, 0.9) 0%, rgba(9, 17, 14, 0.75) 42%, rgba(9, 17, 14, 0.35) 72%, rgba(9, 17, 14, 0.15) 100%), url("mt-moraine-band.jpg"); }
.ph-peak { --pos: 75% 22%; background-image: linear-gradient(90deg, rgba(9, 17, 14, 0.88) 0%, rgba(9, 17, 14, 0.72) 38%, rgba(9, 17, 14, 0.25) 66%, rgba(9, 17, 14, 0.05) 100%), url("mt-peak-hero.jpg"); }
.ph-ama { --pos: center 40%; background-image: linear-gradient(90deg, rgba(9, 17, 14, 0.9) 0%, rgba(9, 17, 14, 0.7) 45%, rgba(9, 17, 14, 0.3) 100%), url("mt-ama-band.jpg"); }
.ph-teton { --pos: center 45%; background-image: linear-gradient(90deg, rgba(9, 17, 14, 0.9) 0%, rgba(9, 17, 14, 0.7) 45%, rgba(9, 17, 14, 0.3) 100%), url("mt-teton-band.jpg"); }
.ph-summit { --pos: 70% 45%; background-image: linear-gradient(90deg, rgba(9, 17, 14, 0.9) 0%, rgba(9, 17, 14, 0.7) 45%, rgba(9, 17, 14, 0.25) 100%), url("mt-summit-hero.jpg"); }
@media (max-width: 760px) {
  .page-hero--photo { min-height: 0; padding-block: 64px; }
  .page-hero--photo::before { content: ""; position: absolute; inset: 0; background: rgba(9, 17, 14, 0.45); pointer-events: none; }
  .page-hero--photo .wrap { position: relative; }
}

/* ---------- Compact country charts with capacity area ---------- */
.cc svg .ar-solar { fill: #e6b43f; fill-opacity: 0.32; }
.cc svg .ar-bess { fill: #3d4f47; fill-opacity: 0.22; }
.cc svg .ar-wind { fill: #8fa7b5; fill-opacity: 0.42; }
.cc svg .ar-top { fill: none; stroke: #8a9a92; stroke-width: 1; stroke-dasharray: 2 2; }
.cc svg .mwl { font-size: 10.5px; font-weight: 700; fill: #4c5a54; }
.cc svg .bc, .cc svg .bm { pointer-events: none; }
.cc-read { min-height: 4.3em; }
.sw-s { background: rgba(230, 180, 63, 0.45); }
.sw-b { background: rgba(61, 79, 71, 0.35); }
.sw-w { background: rgba(143, 167, 181, 0.6); }
.legend .lg-mw { color: var(--muted); margin-left: 6px; }

/* ---------- Compact spreadsheet illustrations ---------- */
.way .xl { margin: 6px 0 0; }
.xl-sheet { padding: 8px 10px 8px; }
.xl-key { margin-bottom: 0; }
.xl-table { margin-top: 4px; font-size: 0.76rem; }
.xl-table th, .xl-table td { padding: 2px 8px; }
.xl-score { gap: 6px; margin-bottom: 2px; }
.xl-score li { padding: 3px 8px; display: flex; align-items: baseline; gap: 6px; }
.xl-score strong { display: inline; font-size: 1.05rem; }
.xl figcaption { margin-top: 6px; }

/* ---------- Scope: optional column ---------- */
.scope section.scope-opt { border: 1.5px dashed var(--deep); border-radius: 4px; padding: 18px 20px; background: var(--mist); }
.scope-opt .tag { display: inline-block; margin: 0 0 10px; font-family: var(--sans); font-size: 0.8rem; font-weight: 700; color: var(--deep); }
.scope-opt .more { margin: 12px 0 0; font-family: var(--sans); font-weight: 600; font-size: 0.92rem; }
.scope { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .scope { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .scope { grid-template-columns: minmax(0, 1fr); } }
.cc .kpis { gap: 8px 18px; flex-wrap: wrap; } .cc .kpis dd { font-size: 1.08rem; }

/* ---------- Audit timeline: the survey map ---------- */
.survey-art { display: block; width: 100%; height: auto; }
.sv-sheet { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; }
.sv-grid { stroke: #edf2ef; stroke-width: 1; }
.survey-art path[class^="sv-c"] { fill: none; stroke: #c9d8d0; stroke-width: 1; }
.survey-art path.sv-ci { stroke: #93b3a3; stroke-width: 1.6; }
.sv-route0 { fill: none; stroke: var(--paper); stroke-width: 8; stroke-linecap: round; }
.sv-route { fill: none; stroke: var(--deep); stroke-width: 3; stroke-dasharray: 7 7; stroke-linecap: round; }
.sv-branch { fill: none; stroke-width: 2.5; stroke-dasharray: 3 7; stroke-linecap: round; }
.sv-fix { stroke: #1f9a63; }
.sv-rebuild { stroke: var(--ink); }
.sv-end { fill: var(--key); stroke: var(--ink); stroke-width: 1.5; }
.sv-lab { font-family: var(--sans); font-size: 14px; font-weight: 700; fill: var(--ink); }
.sv-flag line { stroke: var(--ink); stroke-width: 2; }
.sv-flag circle { fill: var(--ink); }
.sv-flag path { stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.sv-flag.red path { fill: #c4473a; }
.sv-flag.amb path { fill: #d89b2b; }
.sv-ok circle { fill: #d9efe3; stroke: var(--deep); stroke-width: 1.5; }
.sv-ok path { fill: none; stroke: var(--deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sv-north path { fill: var(--ink); }
.sv-north text, .sv-scale text { font-family: var(--sans); font-size: 12px; font-weight: 700; fill: #4c5a54; }
.sv-scale path { fill: none; stroke: #4c5a54; stroke-width: 1.5; }
@media (min-width: 901px) { .ascent-steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.survey-note { flex-wrap: wrap; gap: 10px 22px; }
.sv-key { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; }
.sv-key i { width: 14px; height: 10px; display: inline-block; border: 1px solid var(--ink); }
.sv-key .k-red { background: #c4473a; } .sv-key .k-amb { background: #d89b2b; } .sv-key .k-ok { background: #d9efe3; border-radius: 50%; width: 12px; height: 12px; }
.sv-offer { margin-left: auto; }
@media (max-width: 900px) { .sv-offer { margin-left: 0; flex-basis: 100%; } }
.offer-terms { grid-column: 1 / -1; margin: 0; font-family: var(--sans); font-size: 0.9rem; font-weight: 600; } .offer-terms a { color: var(--key); }
