/* R2F — r2f.solutions (2026-11). Static, no build step.
   Palette: white and near-white surfaces, charcoal from the logo, one green accent. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --white: #FFFFFF;
  --paper: #FAFAFA;
  --tint: #F4F4F2;
  --rule: #E7E7E3;
  --rule-strong: #CFCFC9;
  --ink: #2A2A2D;
  --ink-2: #55555A;
  --charcoal: #3F3F42;
  --hero: #2E2E31;
  --hero-box: #3F3F42;
  --on-dark: #F3F3F0;
  --on-dark-2: #B9B9B4;
  --green: #3F6B4D;
  --green-2: #5F8F6B;
  --green-soft: #E6EEE7;
  --accent: var(--green-2);
  --fig-bg: #FFFFFF;
  --fig-line: #8E8E8A;

  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.1vw, 2.2rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "ss01", "tnum" 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }
.mono { font-family: var(--mono); font-size: 0.82em; letter-spacing: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--green-2); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.8em 1.25em; border-radius: 3px; border: 1px solid var(--green);
  background: var(--green); color: var(--white);
  font: 600 var(--step--1)/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: #335A40; border-color: #335A40; }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 0.6em 0.95em; }
.btn-ghost { background: transparent; border-color: rgba(243,243,240,0.35); color: var(--on-dark); }
.btn-ghost:hover { background: rgba(243,243,240,0.08); border-color: var(--on-dark); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-quiet:hover { background: var(--tint); border-color: var(--ink-2); }
.link { color: var(--green); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.link:hover { text-decoration-thickness: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--hero); border-bottom: 1px solid rgba(243,243,240,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { width: 132px; height: auto; }
.nav ul { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { font-size: var(--step--1); font-weight: 500; text-decoration: none; color: var(--on-dark-2); }
.nav a:not(.btn):hover { color: var(--on-dark); }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule-strong); border-radius: 3px; padding: 6px 12px; font: 500 var(--step--1) var(--sans); color: var(--on-dark); border-color: rgba(243,243,240,0.3); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: var(--hero); border-bottom: 1px solid rgba(243,243,240,0.12); padding: 8px var(--gutter) 16px; }
  .nav ul.is-open { display: flex; }
  .nav li a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid rgba(243,243,240,0.12); }
  .nav li:last-child { padding-top: 14px; }
}

/* Hero */
.hero { background: var(--hero); color: var(--on-dark); padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.eyebrow { font-family: var(--mono); font-size: var(--step--1); color: #9CC3A5; margin-bottom: 1.4rem; }
.hero h1 { font-size: var(--step-3); font-weight: 750; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--on-dark-2); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero-figure { margin: 0; }
.hero-copy > * { animation: rise 0.9s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-figure { animation: rise 1.1s 0.2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.compare { position: relative; background: var(--hero-box); border-radius: 4px; aspect-ratio: 640 / 460; touch-action: pan-y; user-select: none; }
.compare-svg { width: 100%; height: 100%; }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: rgba(243,243,240,0.7); pointer-events: none; }
.compare-knob { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--on-dark); box-shadow: 0 0 0 6px rgba(46,46,49,0.35); }
.compare-knob::before, .compare-knob::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 5px solid transparent; margin-top: -5px; }
.compare-knob::before { left: 6px; border-right-color: var(--hero); }
.compare-knob::after { right: 6px; border-left-color: var(--hero); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-range:focus-visible + * , .compare:has(.compare-range:focus-visible) { outline: 2px solid var(--green-2); outline-offset: 3px; }
.compare-tag { position: absolute; top: 12px; font-family: var(--mono); font-size: 0.72rem; padding: 3px 8px; border-radius: 2px; pointer-events: none; }
.tag-left { left: 12px; background: rgba(243,243,240,0.1); color: var(--on-dark-2); }
.tag-right { right: 12px; background: var(--green); color: var(--white); }
.hero-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 12px; font-size: var(--step--1); color: var(--on-dark-2); }
.hero-figure figcaption .mono { color: var(--on-dark); }

/* SVG model styling */
.m-face-top { fill: #56565A; } .m-face-l { fill: #4A4A4E; } .m-face-r { fill: #444448; }
.m-edge { fill: none; stroke: #C9C9C3; stroke-width: 1; stroke-linejoin: round; }
.m-thin { fill: none; stroke: #8F8F8A; stroke-width: 0.7; }
.m-glass { fill: #6E7A80; opacity: 0.85; }
.m-door { fill: #38383B; stroke: #9A9A95; stroke-width: 0.6; }
.m-label { font: 500 10px var(--mono); fill: var(--on-dark-2); }
.z-edge { fill: none; stroke: #EDEDE8; stroke-width: 0.9; stroke-linejoin: round; }
.z-split { fill: none; stroke: rgba(46,46,49,0.65); stroke-width: 1; }
.z-label { font: 600 9.5px var(--mono); fill: #1F2A22; }
.air { fill: none; stroke: #F3F3F0; stroke-width: 1.4; stroke-dasharray: 4 3; animation: flow 1.6s linear infinite; }
.ahu { fill: #F3F3F0; stroke: var(--hero); stroke-width: 0.8; }
.ahu-label { font: 700 9px var(--mono); fill: #F3F3F0; paint-order: stroke; stroke: #2E2E31; stroke-width: 2.4px; }
@keyframes flow { to { stroke-dashoffset: -14; } }

/* Schemes strip */
.schemes { border-bottom: 1px solid var(--rule); background: var(--white); }
.scheme-list { display: flex; flex-wrap: wrap; gap: 8px 0; list-style: none; margin: 0; padding: 18px 0; color: var(--ink-2); }
.scheme-list li { padding-right: 22px; margin-right: 22px; border-right: 1px solid var(--rule); }
.scheme-list li:last-child { border-right: 0; }

/* Track record */
.record { padding: clamp(40px, 6vw, 72px) 0; background: var(--white); }
.record-grid { display: grid; grid-template-columns: 180px 1fr; gap: 16px 48px; align-items: start; }
.ledger { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 2px solid var(--ink); }
.ledger > div { padding: 14px 16px 16px 0; border-right: 1px solid var(--rule); }
.ledger > div + div { padding-left: 16px; }
.ledger > div:last-child { border-right: 0; }
.ledger dt { font-family: var(--mono); font-size: 0.76rem; color: var(--ink-2); margin-bottom: 6px; }
.ledger dd { margin: 0; font-size: var(--step-0); color: var(--ink-2); }
.ledger strong { display: block; font-size: var(--step-2); color: var(--ink); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.record-note { grid-column: 2; max-width: 62ch; color: var(--ink-2); margin: 8px 0 0; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tint { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-label { font-family: var(--mono); font-size: var(--step--1); font-weight: 500; color: var(--green); letter-spacing: 0; margin: 0 0 0.9rem; line-height: 1.4; }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); max-width: 40rem; }
.section-head h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }

/* Who I work with */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.trio article { border-top: 1px solid var(--ink); padding-top: 18px; }
.trio-n { display: block; color: var(--green); margin-bottom: 18px; }
.trio h3 { margin-bottom: 12px; }
.trio p { color: var(--ink-2); margin: 0; }

/* Services */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.service { background: var(--white); padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; }
.service-lead { grid-row: span 2; background: var(--hero); color: var(--on-dark); }
.service-lead .service-meta { color: #9CC3A5; }
.service-lead p { color: var(--on-dark-2); }
.service-lead h3 { font-size: var(--step-2); }
.service-lead .link { color: #A9D1B2; }
.service-meta { color: var(--green); margin-bottom: 14px; }
.service h3 { margin-bottom: 12px; }
.service p { color: var(--ink-2); flex: 1; }
.service .link { align-self: flex-start; }
.service.service-more { background: var(--tint); }
.service-lead p, .service-lead .service-meta { color: var(--on-dark-2); }
.service-lead .service-meta { color: #9CC3A5; }

/* Process */
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 0 clamp(32px, 6vw, 96px); }
.process-grid .section-head { grid-column: 1 / -1; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; grid-column: 2; grid-row: 2; }
.steps li { counter-increment: step; position: relative; padding: 0 0 28px 64px; border-left: 1px solid var(--rule-strong); margin-left: 18px; }
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: -18px; top: -4px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--white); border: 1px solid var(--ink); font: 600 0.78rem var(--mono); }
.steps li:nth-child(2)::before { background: var(--green); border-color: var(--green); color: var(--white); }
.steps h3 { font-size: var(--step-1); margin-bottom: 6px; }
.steps p { color: var(--ink-2); margin: 0; max-width: 54ch; }
.scope { grid-column: 1; grid-row: 2; align-self: start; position: sticky; top: 96px; display: grid; gap: 28px; background: var(--paper); border: 1px solid var(--rule); padding: 28px; }
.scope h3 { font-size: var(--step-0); margin-bottom: 10px; }
.scope ul { list-style: none; margin: 0; padding: 0; }
.scope li { padding: 8px 0 8px 22px; border-top: 1px solid var(--rule); position: relative; font-size: var(--step--1); color: var(--ink-2); }
.scope li::before { content: "+"; position: absolute; left: 0; color: var(--green); font-family: var(--mono); font-weight: 600; }
.scope .minus li::before { content: "–"; color: var(--ink-2); }

/* Work */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); margin-bottom: clamp(40px, 5vw, 64px); }
.case { background: var(--white); border: 1px solid var(--rule); }
.case-fig { width: 100%; height: auto; border-bottom: 1px solid var(--rule); }
.fig-txt { font: 500 10px var(--mono); fill: var(--ink-2); }
.case-body { padding: 22px 24px 26px; }
.case-meta { color: var(--green); margin-bottom: 10px; }
.case h3 { margin-bottom: 8px; }
.case p:last-child { color: var(--ink-2); margin: 0; }
.table-wrap { overflow-x: auto; }
.projects { width: 100%; border-collapse: collapse; font-size: var(--step--1); min-width: 560px; }
.projects caption { text-align: left; font-family: var(--mono); color: var(--green); padding-bottom: 12px; }
.projects th { text-align: left; font-weight: 600; padding: 10px 12px 10px 0; border-bottom: 2px solid var(--ink); }
.projects td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.projects td:first-child { color: var(--ink); font-weight: 500; }
.projects .num, .projects th:last-child { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }
.footnote { font-size: var(--step--1); color: var(--ink-2); margin-top: 16px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 96px); }
.faq-grid .section-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: var(--step-0); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-2); padding: 0 40px 22px 0; margin: 0; max-width: 60ch; }

/* Quote form */
.quote { background: var(--white); border-top: 1px solid var(--rule); }
.quote-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.quote-aside { color: var(--ink-2); margin-top: 20px; font-size: var(--step--1); }
.qform { border: 1px solid var(--rule); background: var(--paper); padding: clamp(20px, 3vw, 36px); }
.qsteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; }
.qsteps li { padding-top: 10px; border-top: 3px solid var(--rule); color: var(--ink-2); transition: border-color 0.3s var(--ease), color 0.3s var(--ease); }
.qsteps li.is-active, .qsteps li.is-done { border-color: var(--green); color: var(--ink); }
.qstep { border: 0; margin: 0; padding: 0; min-width: 0; }
.js .qstep:not(.is-active) { display: none; }
.qstep.is-active { animation: rise 0.45s var(--ease) both; }
.qstep legend { font-size: var(--step-1); font-weight: 700; margin-bottom: 18px; padding: 0; }
.field-label { font-weight: 600; font-size: var(--step--1); margin: 22px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--rule-strong); border-radius: 3px; background: var(--white); font-size: var(--step--1); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label:has(input:checked) { border-color: var(--green); background: var(--green-soft); color: #23402D; font-weight: 600; }
.chips label:has(input:focus-visible) { outline: 2px solid var(--green-2); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-size: var(--step--1); font-weight: 600; }
.fields .span-2 { grid-column: 1 / -1; }
.hint { font-weight: 400; color: var(--ink-2); }
.fields input, .fields select, .fields textarea { font: 400 var(--step-0) var(--sans); color: var(--ink); background: var(--white); border: 1px solid var(--rule-strong); border-radius: 3px; padding: 10px 12px; width: 100%; }
.fields input:focus, .fields select:focus, .fields textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(95,143,107,0.2); }
.fields input:user-invalid { border-color: #A3442E; }
.hp { position: absolute !important; left: -9999px; }
.consent { font-size: var(--step--1); color: var(--ink-2); margin: 18px 0 0; }
.qnav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 12px; }
.qstatus { margin: 16px 0 0; font-size: var(--step--1); min-height: 1.4em; }
.qstatus.is-ok { color: var(--green); font-weight: 600; }
.qstatus.is-err { color: #A3442E; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.portrait { width: 100%; max-width: 360px; height: auto; filter: grayscale(1) contrast(1.05); border: 1px solid var(--rule); }
.about-grid h2 { font-size: var(--step-2); margin-bottom: 1.2rem; max-width: 22ch; }
.about-grid p { color: var(--ink-2); max-width: 60ch; }
.about-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 0; margin: 1.4rem 0 0; }

/* Footer */
.site-footer { background: var(--hero); color: var(--on-dark-2); padding: 40px 0; font-size: var(--step--1); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-inner img { width: 120px; height: auto; }
.footer-inner p { margin: 0; }
.site-footer a { color: var(--on-dark); text-decoration-color: rgba(243,243,240,0.4); text-underline-offset: 0.2em; }

/* Reveal on scroll (JS adds .js to html) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Simple pages */
.page { padding: clamp(48px, 8vw, 104px) 0; }
.page h1 { font-size: var(--step-3); margin-bottom: 1.5rem; }
.page h2 { font-size: var(--step-1); margin: 2rem 0 0.6rem; }
.page p, .page li { color: var(--ink-2); max-width: 64ch; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .lede { max-width: 48ch; }
  .services { grid-template-columns: 1fr 1fr; }
  .service-lead { grid-row: auto; grid-column: 1 / -1; }
  .record-grid { grid-template-columns: 1fr; }
  .record-note { grid-column: 1; }
}
@media (max-width: 760px) {
  .trio, .cases, .services, .process-grid, .faq-grid, .quote-grid, .about-grid { grid-template-columns: 1fr; }
  .steps, .scope { grid-column: 1; grid-row: auto; }
  .scope { position: static; margin-top: 40px; }
  .steps li { padding-left: 44px; }
  .ledger { grid-template-columns: 1fr 1fr; }
  .ledger > div:nth-child(2) { border-right: 0; }
  .ledger > div:nth-child(3) { padding-left: 0; }
  .ledger > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .fields { grid-template-columns: 1fr; }
  .scheme-list li { margin-right: 14px; padding-right: 14px; }
  .portrait { max-width: 240px; }
  .compare-tag { font-size: 0.64rem; }
}


/* ==== Visual layer Plano (from variant 4), 2026-11-20 ==== */
/* Variant 4 — "Plano": Drawing set structure (sheet grid, ink frames, corner ticks,
   square corners, title blocks) with the Base fonts and charcoal, and the Forest greens
   only as secondary colour on chosen elements.
   Rules taken from taste-skill (Leonxlnx/taste-skill): no fade-in on scroll, flat grounds,
   one button pair and one card style, hover micro-motion (lift 2px, underline draws,
   press on click), real icons for the tools actually used, equal edges. */
:root {
  /* Base */
  --ink: #2A2A2D;
  --ink-2: #55555A;
  --hero: #2E2E31;
  --hero-box: #3F3F42;
  --rule: #E2E2DD;
  --frame: #2A2A2D;
  /* Forest, secondary only */
  --forest: #17382A;
  --forest-2: #3E8A5C;
  --forest-soft: #E3EEE5;
  --lime: #C9E86B;
  --green: #17382A;
  --green-2: #3E8A5C;
  --green-soft: #E3EEE5;
  --accent: #3E8A5C;
  --fig-line: #2A2A2D;
  --grid: rgba(42, 42, 45, 0.05);
  --grid-dark: rgba(243, 243, 240, 0.045);
  --z1: #9FD3AE; --z2: #C9E86B; --z3: #6DB685; --z4: #E3EEE5; --z5: #A8D98A;
}

/* the sheet */
body {
  background-color: #FFFFFF;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* no fade-in on scroll: content is simply there */
.js .reveal { opacity: 1; transform: none; transition: none; }

/* one button pair: solid (white on dark, charcoal on light) and outline. Green only on hover. */
.btn { border-radius: 0; background: var(--ink); border-color: var(--ink); color: #FFFFFF; transition: background .18s, border-color .18s, transform .12s; }
.btn:hover { background: var(--forest); border-color: var(--forest); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.site-header .btn, .hero .btn:not(.btn-ghost) { background: #F3F3F0; border-color: #F3F3F0; color: var(--ink); }
.site-header .btn:hover, .hero .btn:not(.btn-ghost):hover { background: var(--lime); border-color: var(--lime); color: var(--forest); }
.btn-ghost { border-radius: 0; }
.btn-quiet { border-radius: 0; border-color: var(--ink); }

/* links: the underline draws on hover */
.link { color: var(--forest); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .3s var(--ease); }
.link:hover { background-image: linear-gradient(var(--forest-2), var(--forest-2)); background-size: 100% 2px; background-position: 0 100%; }

/* header: same black as the hero, sheet edge underneath */
.site-header { border-bottom: 1px solid rgba(243,243,240,0.1); }

/* hero: dark sheet with its own faint grid */
.hero {
  background-color: var(--hero);
  background-image: linear-gradient(var(--grid-dark) 1px, transparent 1px), linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px);
  background-size: 24px 24px;
  border-bottom: 1.5px solid var(--frame);
}
.eyebrow { color: var(--lime); }
.eyebrow::before { content: "A-001"; color: var(--on-dark-2); margin-right: 1.2em; padding-right: 1.2em; border-right: 1px solid rgba(243,243,240,0.25); }
.compare { border-radius: 0; border: 1px solid rgba(243,243,240,0.55); }
.compare::before, .compare::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1.5px solid #F3F3F0; pointer-events: none; }
.compare::before { left: -9px; top: -9px; border-right: 0; border-bottom: 0; }
.compare::after { right: -9px; bottom: -9px; border-left: 0; border-top: 0; }
.compare-line { background: var(--lime); width: 1.5px; }
.compare-knob { background: var(--lime); border-radius: 0; box-shadow: 0 0 0 5px rgba(46,46,49,0.5); }
.compare-knob::before { border-right-color: var(--forest); }
.compare-knob::after { border-left-color: var(--forest); }
.compare-tag { border-radius: 0; }
.tag-left { background: transparent; border: 1px solid rgba(243,243,240,0.4); color: #F3F3F0; }
.tag-right { background: var(--lime); color: var(--forest); }
.z-edge { stroke: #17382A; }
.z-label { fill: #0E2016; }
.air { stroke: #F3F3F0; }
.ahu-label { stroke: #17382A; }
/* the caption becomes the drawing's title block */
.hero-figure figcaption { margin-top: 0; padding: 10px 12px; border: 1px solid rgba(243,243,240,0.55); border-top: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline; }
.hero-figure figcaption::before { content: "Sheet A-001"; grid-row: span 2; font-family: var(--mono); font-size: 0.74rem; color: var(--lime); padding-right: 16px; border-right: 1px solid rgba(243,243,240,0.25); align-self: stretch; }

/* schemes strip, with the real icons of the two tools used */
.schemes { background: #FFFFFF; border-bottom: 1.5px solid var(--frame); }
.scheme-list { color: var(--ink); align-items: center; }
.scheme-list li { border-right-color: var(--frame); display: inline-flex; align-items: center; gap: 8px; }
.scheme-list li:nth-child(4)::before, .scheme-list li:nth-child(5)::before { content: ""; width: 20px; height: 20px; background: center / contain no-repeat; }
.scheme-list li:nth-child(4)::before { background-image: url("/img/tool-energyplus.jpg"); width: 26px; }
.scheme-list li:nth-child(5)::before { background-image: url("/img/tool-openstudio.png"); }

/* section labels as drawing sheet numbers */
main { counter-reset: sheet 1; }
.section-label { color: var(--ink); }
#clients .section-label::before, #services .section-label::before, #process .section-label::before, #work .section-label::before, #faq .section-label::before, #quote .section-label::before, #about .section-label::before {
  counter-increment: sheet; content: "A-00" counter(sheet); color: var(--forest-2); margin-right: 1em; padding-right: 1em; border-right: 1px solid var(--rule);
}
.section-tint { background: rgba(247,247,244,0.88); border-top: 1.5px solid var(--frame); border-bottom: 1.5px solid var(--frame); }

/* track record as a title block */
.record { background: transparent; }
.ledger { border: 1.5px solid var(--frame); background: #FFFFFF; }
.ledger > div { border-right-color: var(--frame); padding: 14px 16px 16px !important; }
.ledger dt { color: var(--forest-2); }
.ledger > div:last-child strong { white-space: nowrap; }

/* one card style everywhere: white, ink frame, square, lifts 2px when it links */
.trio article, .case, .scope, .qform { background: #FFFFFF; border: 1.5px solid var(--frame); border-radius: 0; }
.trio article { padding: 20px; border-top-width: 1.5px; }
.trio-n { color: var(--forest-2); }
.services { background: var(--frame); border: 1.5px solid var(--frame); gap: 1.5px; }
.service { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.service:hover, .case:hover { transform: translateY(-2px); box-shadow: 0 6px 0 -3px var(--forest-2); }
.case { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.service-lead { background: var(--forest); }
.service-lead h3 { color: #FFFFFF; }
.service-lead p { color: #C3D7C9; }
.service-lead .service-meta, .service-lead .link { color: var(--lime); }
.service-meta { color: var(--forest-2); }
.service.service-more { background: var(--forest-soft); }

/* process */
.steps li { border-left: 1.5px solid var(--frame); }
.steps li::before { border-radius: 0; border: 1.5px solid var(--frame); background: #FFFFFF; color: var(--ink); }
.steps li:nth-child(2)::before { background: var(--lime); border-color: var(--forest); color: var(--forest); }
.scope li::before { color: var(--forest-2); }

/* work */
.case-fig { border-bottom: 1.5px solid var(--frame); }
.case-meta { color: var(--forest-2); }
.projects caption { color: var(--ink); }
.projects th { border-bottom: 1.5px solid var(--frame); }

/* faq */
.faq { border-top: 1.5px solid var(--frame); }
.faq summary::after { border-color: var(--forest-2); }
.faq summary:hover { color: var(--forest); }

/* quote */
.quote { background: transparent; border-top: 1.5px solid var(--frame); }
.qsteps li.is-active, .qsteps li.is-done { border-color: var(--forest-2); }
.chips label { border-radius: 0; border-color: #9A9A95; }
.chips label:hover { border-color: var(--ink); }
.chips label:has(input:checked) { background: var(--forest); color: #FFFFFF; border-color: var(--forest); }
.fields input, .fields select, .fields textarea { border-radius: 0; border-color: #9A9A95; }
.fields input:focus, .fields select:focus, .fields textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(62,138,92,0.2); }

/* about and footer */
.portrait { border: 1.5px solid var(--frame); }
.site-footer { background: var(--hero); border-top: 1.5px solid var(--frame); }
.hero .btn-ghost { background: transparent; border-color: rgba(243,243,240,0.45); color: #F3F3F0; }
.hero .btn-ghost:hover { border-color: var(--lime); color: var(--lime); background: transparent; }
/* bottom-right corner tick closes the whole drawing, title block included */
.compare::after { display: none; }
.hero-figure { position: relative; }
.hero-figure::after { content: ""; position: absolute; right: -9px; bottom: -9px; width: 14px; height: 14px; border: 1.5px solid #F3F3F0; border-left: 0; border-top: 0; pointer-events: none; }


/* ==== Plano afinado (variant 5) and Roberto's review, 2026-11-22 ==== */
/* Variant 5 — "Plano afinado": variant 4 after the taste-skill audit (loaded on top of v4).
   1 type: Base sizes kept; weight 500 instead of 700-750, tighter tracking; one size per card title.
   2 colour: 90-95% neutral, one accent (forest); label green darkened to 6.1:1; lime only inside the model.
   3 lines: ink frame only on the hero drawing; everything else 1px hairline at 14% ink; no rules between sections.
   4 ground: grid only in the hero and the case drawings; plain white elsewhere, separation by ground change.
   5 alignment: every split on one 5/7 grid with one gap; one vertical rhythm; schemes strip joins the hero. */
:root {
  --forest-2: #2F6E48;
  --green-2: #2F6E48;
  --accent: #2F6E48;
  --hair: rgba(42, 42, 45, 0.14);
  --hair-strong: rgba(42, 42, 45, 0.32);
  --split: minmax(0, 5fr) minmax(0, 7fr);
  --split-gap: clamp(32px, 4.5vw, 72px);
  --rhythm: clamp(72px, 8vw, 112px);
  --fig-bg: transparent;
}

/* 1 · Type: same faces and sizes as the Base, lighter and tighter */
h1, h2, h3 { font-weight: 500; }
.hero h1 { font-weight: 500; letter-spacing: -0.035em; }
.section-head h2, .about-grid h2 { letter-spacing: -0.03em; }
h3, .trio h3, .service h3, .service-lead h3, .case h3, .steps h3 { font-size: 1.25rem; letter-spacing: -0.015em; font-weight: 500; }
.scope h3 { font-size: 1rem; }
.ledger strong { font-weight: 500; letter-spacing: -0.03em; }
.faq summary { font-weight: 500; }
.btn { font-weight: 500; }

/* 2 · Colour: one accent, lime kept for the model only */
.eyebrow { color: var(--on-dark-2); }
.eyebrow::before { color: #8A8A86; }
.site-header .btn:hover, .hero .btn:not(.btn-ghost):hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--forest); }
.hero .btn-ghost:hover { border-color: #F3F3F0; color: #FFFFFF; }
.hero-figure figcaption::before { color: var(--on-dark-2); }
.service-lead .service-meta { color: #A9C4B2; }
.service-lead .link { color: #FFFFFF; }
.service.service-more { background: #FFFFFF; }
.steps li:nth-child(2)::before { background: var(--forest); border-color: var(--forest); color: #FFFFFF; }
.chips label:has(input:checked) { background: var(--forest); border-color: var(--forest); }
.service:hover, .case:hover { box-shadow: none; }

/* 3 · Lines: hairlines everywhere except the hero drawing */
.hero, .schemes, .section-tint, .quote, .site-footer { border: 0; }
.trio article, .case, .scope, .qform, .ledger, .portrait { border: 1px solid var(--hair); }
.services { background: var(--hair); border: 1px solid var(--hair); gap: 1px; }
.ledger > div { border-right: 1px solid var(--hair); }
.ledger > div:last-child { border-right: 0; }
.case-fig { border-bottom: 1px solid var(--hair); }
.steps li { border-left: 1px solid var(--hair-strong); }
.steps li:last-child { border-left-color: transparent; }
.steps li::before { border: 1px solid var(--hair-strong); }
.faq { border-top: 1px solid var(--hair-strong); }
.faq details { border-bottom: 1px solid var(--hair); }
.projects th { border-bottom: 1px solid var(--ink); }
.projects td { border-bottom: 1px solid var(--hair); }
.scope li { border-top: 1px solid var(--hair); }
.chips label, .fields input, .fields select, .fields textarea { border-color: var(--hair-strong); }
.section-label::before { border-right-color: var(--hair-strong) !important; }

/* 4 · Ground: grid only in the hero and in the case drawings */
body { background-image: none; background-color: #FFFFFF; }
.section-tint { background: #F7F7F5; }
.case-fig {
  background-color: #FFFFFF;
  background-image: linear-gradient(rgba(42,42,45,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(42,42,45,.05) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* 5 · Alignment and rhythm */
.section { padding: var(--rhythm) 0; }
.hero { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.hero-grid, .record-grid, .process-grid, .faq-grid, .quote-grid, .about-grid { grid-template-columns: var(--split); column-gap: var(--split-gap); }
.record { padding: var(--rhythm) 0 0; }
.record-grid { row-gap: 20px; }
.record-note { grid-column: 2; }

/* the schemes strip becomes the foot of the hero */
.schemes { background: var(--hero); }
.schemes .wrap { border-top: 1px solid rgba(243,243,240,0.12); }
.scheme-list { color: var(--on-dark-2); padding: 20px 0 24px; }
.scheme-list li { border-right-color: rgba(243,243,240,0.18); }
.scheme-list li:nth-child(4)::before, .scheme-list li:nth-child(5)::before { background-color: #FFFFFF; background-origin: content-box; padding: 2px; border-radius: 2px; }

/* services: the lead card spans the row and splits on the same 5/7 grid, so it has no hole */
.services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-lead { grid-column: 1 / -1; grid-row: auto; display: grid; grid-template-columns: var(--split); column-gap: var(--split-gap); align-items: start; }
.service-lead .service-meta, .service-lead h3 { grid-column: 1; }
.service-lead p, .service-lead .link { grid-column: 2; }
.service-lead .service-meta { margin-bottom: 8px; }
.service-lead h3 { grid-row: 2; font-size: 1.6rem; }
.service-lead p { grid-row: 1 / span 2; margin: 0; }
.service-lead .link { grid-row: 3; margin-top: 16px; }

@media (max-width: 980px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero-grid, .record-grid, .process-grid, .faq-grid, .quote-grid, .about-grid { grid-template-columns: 1fr; }
  .record-note { grid-column: 1; }
  .services { grid-template-columns: 1fr; }
  .service-lead { grid-template-columns: 1fr; }
  .service-lead .service-meta, .service-lead h3, .service-lead p, .service-lead .link { grid-column: 1; grid-row: auto; }
  .service-lead p { margin-top: 10px; }
}

/* track record: label and sentence on the split line, the four figures across the full width */
.record-grid > .section-label { grid-column: 1; grid-row: 1; }
.record-note { grid-column: 2; grid-row: 1; margin: 0; }
.ledger { grid-column: 1 / -1; grid-row: 2; }
@media (max-width: 760px) {
  .record-grid > .section-label, .record-note, .ledger { grid-column: 1; grid-row: auto; }
}

/* checker round 2: one card-title size; grey text at 7:1 on the tinted ground too */
.service-lead h3 { font-size: 1.25rem; }
:root { --ink-2: #4F4F54; }

/* ---- Roberto's review, 2026-11-22 ---- */

/* top bar: exactly the hero charcoal, no edge line */
.site-header { background: var(--hero); border-bottom: 0; }

/* hero figure: back to the Base figure (colours, frame, handle, caption) */
:root { --z1: #B9D6BF; --z2: #97C3A2; --z3: #C9DFCC; --z4: #D3E5D6; --z5: #88B895; }
.compare { border: 0; border-radius: 4px; }
.compare::before, .compare::after, .hero-figure::after { display: none; }
.compare-line { background: rgba(243,243,240,0.7); width: 1px; }
.compare-knob { background: #F3F3F0; border-radius: 50%; box-shadow: 0 0 0 6px rgba(46,46,49,0.35); }
.compare-knob::before { border-right-color: var(--hero); }
.compare-knob::after { border-left-color: var(--hero); }
.compare-tag { border-radius: 2px; }
.tag-left { background: rgba(243,243,240,0.1); border: 0; color: var(--on-dark-2); }
.tag-right { background: #3F6B4D; color: #FFFFFF; }
.z-edge { stroke: #EDEDE8; }
.z-label { fill: #1F2A22; }
.ahu-label { stroke: #2E2E31; }
.hero-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 12px; padding: 0; border: 0; }
.hero-figure figcaption::before { content: none; }

/* no sheet numbers */
.eyebrow::before, .section-label::before { content: none !important; }

/* section labels: same size, set apart by colour */
.section-label { color: var(--forest-2); font-size: 0.95rem; font-weight: 500; }

/* headings heavier */
h1, h2, .hero h1 { font-weight: 650; }
h3, .trio h3, .service h3, .service-lead h3, .case h3, .steps h3 { font-weight: 600; }
.ledger strong { font-weight: 600; }

/* card links one step smaller than the card text */
.service .link { font-size: var(--step--1); }

/* ---- review 2026-11-22, round 2 ---- */
/* schemes strip back on white, as in variant 4, with a hairline below */
.schemes { background: #FFFFFF; border-bottom: 1px solid var(--hair); }
.schemes .wrap { border-top: 0; }
.scheme-list { color: var(--ink); padding: 18px 0; }
.scheme-list li { border-right-color: var(--hair-strong); }
.scheme-list li:nth-child(4)::before, .scheme-list li:nth-child(5)::before { background-color: transparent; padding: 0; }

/* section labels larger, still well under the h2 right below (about 21px vs 35px at 1440) */
.section-label { font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.3rem); line-height: 1.3; margin-bottom: 0.8rem; }

/* about links the same size as the card links */
.about-links .link { font-size: var(--step--1); }
.about-grid .section-label { color: var(--forest-2); }

/* ==== Accessibility touches from the final taste-skill pass (no visual change at rest) ==== */
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: #F3F3F0; }
@media (max-width: 860px) { .nav-toggle { min-height: 44px; min-width: 44px; } }
@media (max-width: 760px) { .about-links .link { display: inline-block; padding: 12px 0; background-position: 0 calc(100% - 10px); } }

/* Track record: five ledger columns (countries added 2026-11-22) */
.ledger { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .ledger { grid-template-columns: 1fr 1fr; }
  .ledger > div:nth-child(4) { border-right: 0; }
  .ledger > div:nth-child(5) { grid-column: 1 / -1; }
}

/* What you receive: four stages (added 2026-11-22) */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--hair); background: #FFFFFF; }
.stages > li { padding: 20px; border-right: 1px solid var(--hair); }
.stages > li:last-child { border-right: 0; }
.stage-label { font-family: var(--mono); font-size: 0.82rem; font-weight: 500; letter-spacing: 0; color: var(--forest-2); margin: 0 0 14px; }
.stages ul { list-style: none; margin: 0; padding: 0; }
.stages ul li { padding: 10px 0; border-top: 1px solid var(--hair); font-size: var(--step--1); color: var(--ink-2); }
.guarantee { margin: 24px 0 0; padding-left: 16px; border-left: 2px solid var(--forest); max-width: 44rem; color: var(--ink); }
@media (max-width: 960px) {
  .stages { grid-template-columns: 1fr 1fr; }
  .stages > li:nth-child(2) { border-right: 0; }
  .stages > li:nth-child(n+3) { border-top: 1px solid var(--hair); }
}
@media (max-width: 560px) {
  .stages { grid-template-columns: 1fr; }
  .stages > li { border-right: 0; }
  .stages > li + li { border-top: 1px solid var(--hair); }
}

/* Scope: three columns, replaces the process steps (2026-11-22) */
#scope .scope { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; background: #FFFFFF; border: 1px solid var(--hair); }
#scope .scope > div { padding: 20px; border-right: 1px solid var(--hair); }
#scope .scope > div:last-child { border-right: 0; }
#scope .scope .apart li::before { content: "→"; color: var(--ink-2); }
@media (max-width: 760px) {
  #scope .scope { grid-template-columns: 1fr; }
  #scope .scope > div { border-right: 0; }
  #scope .scope > div + div { border-top: 1px solid var(--hair); }
}

/* Work: 3D model links (2026-11-22) */
.case-body .case-link { margin: 14px 0 0; font-size: var(--step--1); }
.projects .mdl { white-space: nowrap; }
.projects th:last-child { text-align: left; }
.projects td.num, .projects th.num { text-align: right; padding-right: 24px; }
.case-body p:not(.case-meta):not(.case-link) { color: var(--ink-2); margin-bottom: 0; }
.qstep[data-step="2"] .hint { display: inline; margin: 0 0 0 6px; }
.case .case-body p.case-link { margin-top: 16px; }

/* Analytics consent banner (2026-11-22) */
.ga-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin-left: auto; background: #FFFFFF; border: 1px solid var(--hair); box-shadow: 0 8px 24px rgba(42,42,45,.12); padding: 16px 18px; display: grid; gap: 12px; font-size: var(--step--1); color: var(--ink); }
.ga-banner p { margin: 0; }
.ga-banner-actions { display: flex; gap: 8px; justify-content: flex-end; }
.link-button { border: 0; padding: 0 0 2px; font: inherit; cursor: pointer; background-color: transparent; }

/* Hero: wider text column so the headline sits on four lines (2026-11-22) */
@media (min-width: 981px) { .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
.page .section-label { color: var(--forest-2); }
