/* Montreut site styles.
   Palette: sage page, petrol headings, ink text, lagoon for actions, amber reserved for one highlight at a time, paper for fields and overlays.
   Type: Newsreader for headings, Instrument Sans for everything else. Both self-hosted. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/newsreader.woff2") format("woff2-variations"), url("../fonts/newsreader.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/instrument-sans.woff2") format("woff2-variations"), url("../fonts/instrument-sans.woff2") format("woff2"); }

:root {
  --sage: #CCDCD6;
  --sage-light: #D7E5E0;
  --sage-deep: #BDD0C9;
  --line: #9DB5AD;
  --paper: #F6F8F6;
  --ink: #0F2129;
  --ink-70: rgba(15, 33, 41, 0.74);
  --ink-55: rgba(15, 33, 41, 0.66);
  --petrol: #0F3540;
  --lagoon: #1C8578;
  --amber: #E1B257;
  --error: #8A2E2E;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --pad: 32px;
  --gap: 24px;
  --section: 96px;
  --ease: cubic-bezier(0.22, 0.75, 0.2, 1);
  --nav-h: 72px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: linear-gradient(to bottom, var(--sage-light) 0, var(--sage) 900px) var(--sage);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--petrol); color: var(--paper); }
:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--petrol); color: var(--paper); padding: 10px 14px; z-index: 100; text-decoration: none; }
.skip:focus { left: 8px; }

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

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; font-optical-sizing: auto; color: var(--petrol); margin: 0; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.8vw, 80px); line-height: 1.02; }
h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 500; }
p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
.lead { font-family: var(--serif); font-size: clamp(19px, 1.5vw, 22px); line-height: 1.4; color: var(--ink); max-width: 36ch; font-optical-sizing: auto; }
.lead-long { max-width: 46ch; }
.muted { color: var(--ink-70); }
.fine { font-size: 13.5px; line-height: 1.5; color: var(--ink-55); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--section) 0; position: relative; }
.rule { height: 1px; background: var(--line); width: 100%; }
.rule-draw { transform: scaleX(0); transform-origin: left center; transition: transform 1.1s var(--ease); }
.rule-draw.is-in { transform: scaleX(1); }
.section-head { padding-top: 40px; margin-bottom: 40px; }
.section-head h2 { max-width: 22ch; }
.section-head .lead { margin-top: 16px; }

/* Two-column split: heading and short lead on the left, content on the right. Only used where the right column is short. */
.split { display: grid; grid-template-columns: 5fr 1fr 6fr; align-items: start; }
.split > :nth-child(odd) { grid-column: 1; }
.split > :nth-child(even) { grid-column: 3; }
.split-6 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 calc(var(--gap) * 2); align-items: start; }
.split-6 > :nth-child(odd) { grid-column: 1; }
.split-6 > :nth-child(even) { grid-column: 2; }

/* Tonal band behind a section */
.band { background: linear-gradient(to bottom, transparent 0, var(--sage-deep) 260px, var(--sage-deep) calc(100% - 260px), transparent 100%); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-block; background: var(--lagoon); color: #fff; text-decoration: none;
  font-family: var(--sans); font-weight: 500; font-size: 15px; line-height: 1; padding: 15px 22px;
  border: 1px solid var(--lagoon); border-radius: 0; cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--petrol); border-color: var(--petrol); }
.btn:active { transform: translateY(1px); }
.link {
  text-decoration: none; color: var(--petrol); font-weight: 500; font-size: 15px;
  background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
  padding-bottom: 3px; transition: color .25s var(--ease), background-size .35s var(--ease);
}
.link:hover { color: var(--lagoon); background-size: 30% 1px; }
.actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.nav.is-scrolled { background: rgba(215, 229, 224, 0.86); border-bottom-color: var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1; }
.wordmark .mark { height: 26px; width: auto; }
.wordmark .word { height: 15px; width: auto; margin-left: 4px; position: relative; top: 1px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink); position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: var(--petrol); transition: right .3s var(--ease); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--petrol); margin: 5px 0; transition: transform .3s var(--ease), opacity .3s; }
.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.menu { position: fixed; inset: var(--nav-h) 0 0 0; background: var(--sage); z-index: 40; display: none; padding: 32px var(--pad); }
.menu-open .menu { display: block; }
.menu a { display: block; text-decoration: none; font-family: var(--serif); font-size: 34px; color: var(--petrol); padding: 18px 0; border-bottom: 1px solid var(--line); }
.menu a:not(.btn):first-child { border-top: 1px solid var(--line); }
.menu a.btn { font-family: var(--sans); font-size: 16px; color: #fff; margin-top: 28px; padding: 17px 22px; border: 1px solid var(--lagoon); text-align: center; }

/* ---------- Background field ---------- */
.field { position: fixed; inset: 0; z-index: 0; pointer-events: none; width: 100%; height: 100%; }
.page { position: relative; z-index: 1; }

/* ---------- Cover ---------- */
.cover { min-height: 92vh; min-height: 92svh; display: grid; align-content: end; padding: calc(var(--nav-h) + 6vh) 0 9vh; }
.cover > .wrap { width: 100%; }
.cover h1 { max-width: 13ch; }
.cover .sub { margin-top: 36px; display: grid; grid-template-columns: 5fr 1fr 6fr; }
.cover .sub > div { grid-column: 3; }
.cover .lead { max-width: 40ch; margin-bottom: 28px; }
.enter { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.is-loaded .enter { opacity: 1; transform: none; }

/* ---------- Scroll reveal (major blocks only) ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Lists ---------- */
.plain { list-style: none; margin: 0; padding: 0; }
.plain h3 { margin-bottom: 4px; }
.tick { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tick > li { padding: 11px 0; font-size: 16.5px; }

/* ---------- Figures: inside the grid, set on an offset panel so they read as designed objects ---------- */
.fig { margin: 0; min-width: 0; position: relative; }
.fig::before { content: ""; position: absolute; left: 16px; top: 16px; right: -16px; bottom: -16px; background: var(--sage-deep); transition: transform .9s var(--ease); transform: translate(-8px, -8px); }
.fig.is-in::before { transform: none; }
.fig-img { position: relative; overflow: hidden; }
.fig-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fig-img.h-360 { height: 360px; }
.fig-img.h-440 { height: 440px; }
.wipe .fig-img img { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); }
.wipe.is-in .fig-img img { clip-path: inset(0 0 0 0); }
.fig-pad { padding: 0 16px 16px 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); border-top: 1px solid var(--line); padding: 28px 0 0; margin-top: 44px; }
.stat .num { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--petrol); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.stat .lbl { margin-top: 10px; font-size: 14.5px; color: var(--ink-70); max-width: 24ch; line-height: 1.45; }

/* ---------- Tabs (chart view) and shared feed / caps ---------- */
.tabs { display: flex; gap: 26px; }
.tabs button { background: none; border: 0; padding: 6px 0; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--ink-55); position: relative; }
.tabs button::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -13px; height: 2px; background: var(--amber); transition: right .35s var(--ease); }
.tabs button[aria-selected="true"] { color: var(--petrol); }
.tabs button[aria-selected="true"]::after { right: 0; }
@keyframes pane-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 13px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 14px; font-size: 16px; }
.feed .t { font-family: var(--sans); font-size: 13px; color: var(--ink-55); padding-top: 4px; }
.feed .a { color: var(--ink-70); margin-top: 6px; font-family: var(--sans); font-size: 15px; }
.feed .a b { color: var(--lagoon); font-weight: 500; }
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 calc(var(--gap) * 2); }
.caps .plain > li { padding: 14px 0; border-top: 1px solid var(--line); }
.caps h3 { font-size: 19px; font-family: var(--sans); font-weight: 500; }
.caps p { font-size: 16px; color: var(--ink-70); max-width: 44ch; }

/* ---------- Closing and footer ---------- */
.close { padding: 80px 0 64px; }
.close .split { align-items: center; }
.footer { padding: 0 0 36px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--gap); padding: 40px 0 36px; border-top: 1px solid var(--line); }
.footer .cols h4 { margin: 0 0 12px; font-size: 14px; font-weight: 500; color: var(--ink-55); }
.footer .cols a { text-decoration: none; font-size: 15px; display: block; margin-bottom: 8px; color: var(--ink); }
.footer .cols a:hover { color: var(--lagoon); }
.footer .cols a.wordmark { display: block; }
.footer .stacked { width: 120px; height: auto; }
.footer .cols p { font-size: 15px; color: var(--ink-70); max-width: 30ch; }
.footer .legal { border-top: 1px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--ink-55); }
.footer .legal a { color: inherit; text-decoration: none; margin-left: 18px; }
.footer .legal a:hover { color: var(--lagoon); }

/* ---------- Page headers ---------- */
.page-head { padding: calc(var(--nav-h) + 9vh) 0 56px; }
.page-head h1 { max-width: 14ch; }
.page-head .lead { margin-top: 28px; }

/* ---------- Responsive ---------- */
@media (min-width: 1800px) {
  :root { --wrap: 1320px; }
}
@media (max-width: 1080px) {
  :root { --section: 80px; }
  .fig-img.h-440 { height: 380px; }
  .standard ol { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 16px; }
}
@media (max-width: 900px) {
  :root { --pad: 22px; --section: 64px; --nav-h: 64px; }
  .split, .split-6, .cover .sub, .caps { grid-template-columns: 1fr; }
  .split > :nth-child(odd), .split > :nth-child(even), .split-6 > :nth-child(odd), .split-6 > :nth-child(even), .cover .sub > div { grid-column: 1; }
  .split > :nth-child(odd), .split-6 > :nth-child(odd) { margin-bottom: 26px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px var(--gap); }
  .cover { min-height: 84vh; min-height: 84svh; padding-top: calc(var(--nav-h) + 8vh); padding-bottom: 8vh; }
  .cover .sub { margin-top: 30px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .form .two { grid-template-columns: 1fr; gap: 0; }
  .form::before { left: 10px; top: 10px; right: -10px; bottom: -10px; }
  .form > form { padding: 26px 20px 24px; }
  .page-head { padding-top: calc(var(--nav-h) + 7vh); }
  .fig-img, .fig-img.h-360, .fig-img.h-440 { height: 250px; }
  .fig::before { left: 10px; top: 10px; right: -10px; bottom: -10px; }
  .section-head { padding-top: 28px; margin-bottom: 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .footer .cols { grid-template-columns: 1fr; }
  .footer .legal { flex-direction: column; }
  .footer .legal a { margin: 0 18px 0 0; }
  .actions { gap: 20px; }
  .btn { padding: 14px 20px; }
  .feed li { grid-template-columns: 1fr; gap: 4px; }
  .fig-img, .fig-img.h-360, .fig-img.h-440 { height: 220px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .enter, .rule-draw { opacity: 1 !important; transform: none !important; transition: none !important; }
  .wipe .fig-img img { clip-path: none !important; transition: none !important; }
}

/* ---------- Cost chart ---------- */
.chart-wrap { margin-top: 8px; overflow: hidden; padding-top: 4px; }
.chart { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); gap: 0 clamp(8px, 1.6vw, 22px); align-items: end; height: 300px; padding: 0 0 0 44px; margin-top: 32px;
  background-image: linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line));
  background-size: calc(100% - 44px) 1px; background-repeat: no-repeat; background-position: right 0 top 0, right 0 top 33.33%, right 0 top 66.66%; }
.chart::after { content: ""; position: absolute; left: 44px; right: 0; bottom: 0; height: 1px; background: var(--ink-55); }
.chart .y { position: absolute; left: 0; font-size: 13px; color: var(--ink-55); transform: translateY(-50%); }
.chart .col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.chart .bar { height: calc(var(--v) / 9 * 100%); background: var(--petrol); transform: scaleY(0); transform-origin: bottom; transition: transform .9s var(--ease), height .7s var(--ease), background .3s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.chart .col.proj .bar { background: repeating-linear-gradient(135deg, var(--petrol) 0 4px, transparent 4px 8px); }
.chart .col.hi .bar { background: var(--amber); }
.chart .val { position: absolute; left: 0; right: 0; bottom: calc(var(--v) / 9 * 100% + 8px); text-align: center; font-size: 14px; font-weight: 500; color: var(--petrol); opacity: 0; transition: opacity .6s var(--ease), bottom .7s var(--ease); transition-delay: calc(var(--i) * 70ms + .7s); white-space: nowrap; }
.chart .col.hi .val { font-size: 16px; }
.chart.is-in .bar { transform: scaleY(1); }
.chart.is-in .val { opacity: 1; }
.chart-x { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0 clamp(8px, 1.6vw, 22px); padding-left: 44px; margin-top: 10px; }
.chart-x span { text-align: center; font-size: 13.5px; color: var(--ink-70); }
.chart-key { display: flex; gap: 22px; margin-top: 18px; font-size: 13.5px; color: var(--ink-70); flex-wrap: wrap; }
.chart-key span { display: inline-flex; align-items: center; gap: 8px; }
.chart-key i { width: 14px; height: 10px; display: inline-block; background: var(--petrol); }
.chart-key i.proj { background: repeating-linear-gradient(135deg, var(--petrol) 0 3px, transparent 3px 6px); }
.chart-key i.hi { background: var(--amber); }
@media (max-width: 900px) { .chart { height: 220px; padding-left: 34px; background-size: calc(100% - 34px) 1px; } .chart::after { left: 34px; } .chart-x { padding-left: 34px; } .chart .val { font-size: 12px; } .chart-x span { font-size: 12px; } }
@media (max-width: 560px) { .chart .col:not(.hi) .val { display: none; } }

/* ---------- Hover motion ---------- */
.tick > li { transition: color .25s var(--ease), transform .35s var(--ease); }
.tick > li:hover { color: var(--petrol); transform: translateX(6px); }
.caps .plain > li:hover h3 { color: var(--lagoon); }
.caps h3 { transition: color .25s var(--ease); }
.stat { transition: transform .35s var(--ease); }
.stat:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  .chart .bar { transform: none !important; transition: none !important; }
  .chart .val { opacity: 1 !important; }
  .tick > li:hover, .stat:hover { transform: none; }
}

/* ---------- Interactive chart ---------- */
.chart-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 32px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.chart .col:hover .bar { background: var(--lagoon); }
.chart .col.hi:hover .bar { background: var(--amber); }
.chart .tip { position: absolute; left: 50%; bottom: calc(var(--v) / 9 * 100% + 34px); transform: translate(-50%, 6px); visibility: hidden; background: var(--paper); color: var(--ink); font-size: 13px; line-height: 1.45; padding: 8px 10px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); z-index: 2; box-shadow: 0 8px 24px -12px rgba(15, 53, 64, 0.5); }
.chart .col:hover .tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.chart .col:nth-child(4) .tip, .chart .col:nth-child(5) .tip { left: 0; transform: translate(0, 6px); }
.chart .col:nth-child(4):hover .tip, .chart .col:nth-child(5):hover .tip { transform: translate(0, 0); }
.chart .col:last-child .tip, .chart .col:nth-last-child(2) .tip { left: auto; right: 0; transform: translate(0, 6px); }
.chart .col:last-child:hover .tip, .chart .col:nth-last-child(2):hover .tip { transform: translate(0, 0); }
.yours { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.yours .in label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.yours .in output { font-variant-numeric: tabular-nums; color: var(--petrol); }
.yours .out { font-family: var(--serif); font-size: 21px; color: var(--petrol); font-variant-numeric: tabular-nums; }
.yours .out b { font-weight: 500; color: var(--lagoon); }

/* ---------- Range inputs ---------- */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--line); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--lagoon); border: 3px solid var(--sage-light); margin-top: -8px; box-shadow: 0 0 0 1px var(--lagoon); transition: transform .2s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--lagoon); border: 3px solid var(--sage-light); box-shadow: 0 0 0 1px var(--lagoon); }
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--lagoon); }

/* ---------- Service grid (Home, What we do) ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 0 calc(var(--gap) * 2); }
.services > div { padding: 20px 0 22px; border-top: 1px solid var(--line); }
.services h3 { font-size: 19px; font-family: var(--sans); font-weight: 500; color: var(--petrol); margin-bottom: 6px; transition: color .25s var(--ease); }
.services > div:hover h3 { color: var(--lagoon); }
.services p { font-size: 15.5px; color: var(--ink-70); max-width: 34ch; }

/* ---------- Live model, on the page ---------- */
.model-in { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 calc(var(--gap) * 2); margin-top: 36px; padding: 22px 0 8px; border-top: 1px solid var(--line); }
.model-in label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.model-in output { font-variant-numeric: tabular-nums; color: var(--petrol); font-size: 15px; }

.model { display: grid; grid-template-columns: 5fr 1fr 6fr; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); align-items: start; }
.model > :nth-child(1) { grid-column: 1; }
.model > :nth-child(2) { grid-column: 3; }
.figures { list-style: none; margin: 0; padding: 0; }
.figures li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.figures .k { font-size: 15px; color: var(--ink-70); }
.figures .v { font-family: var(--serif); font-size: 26px; color: var(--petrol); font-variant-numeric: tabular-nums; white-space: nowrap; }
.figures li.warn .v { color: #B0812C; }
.figures li.good .v { color: var(--lagoon); }
.figures li.good .k { color: var(--ink); }
.figures .sub { display: block; font-size: 13px; color: var(--ink-55); margin-top: 2px; }
.saving { margin-bottom: 18px; }
.saving .k { font-size: 14px; color: var(--ink-70); margin-bottom: 4px; }
.saving .n { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--lagoon); font-variant-numeric: tabular-nums; }
.opt-bars { list-style: none; margin: 0; padding: 0; }
.opt-bars li { display: grid; grid-template-columns: 170px 1fr 92px; gap: 14px; align-items: center; font-size: 14px; color: var(--ink-70); padding: 7px 0; }
.opt-bars .track { height: 12px; background: rgba(15, 53, 64, 0.10); position: relative; }
.opt-bars .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--petrol); transition: width .7s var(--ease); }
.opt-bars li.warn .fill { background: var(--amber); }
.opt-bars li.hi .fill { background: var(--lagoon); }
.opt-bars li.max .fill { background: repeating-linear-gradient(135deg, var(--lagoon) 0 3px, transparent 3px 6px); }
.opt-bars .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.opt-bars li.hi .num { color: var(--lagoon); font-weight: 500; }
.opt-bars li.warn .num { font-weight: 500; }
.notes3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 calc(var(--gap) * 2); margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.notes3 p { font-size: 15.5px; color: var(--ink-70); max-width: 38ch; }
.notes3 p b { color: var(--petrol); font-weight: 500; display: block; margin-bottom: 4px; }
[data-calc] { font-variant-numeric: tabular-nums; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 1fr 6fr; align-items: start; }
.contact-grid > :nth-child(1) { grid-column: 1; }
.contact-grid > :nth-child(2) { grid-column: 3; }
.topics { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line); }
.topics li { border-bottom: 1px solid var(--line); }
.topics button { width: 100%; text-align: left; background: none; border: 0; padding: 13px 0 13px 26px; font-size: 16px; color: var(--ink); cursor: pointer; position: relative; transition: color .25s var(--ease), padding-left .3s var(--ease); }
.topics button::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border: 1px solid var(--line); background: transparent; transition: background .25s var(--ease), border-color .25s var(--ease); }
.topics button:hover { color: var(--petrol); padding-left: 30px; }
.topics button[aria-pressed="true"] { color: var(--petrol); font-weight: 500; }
.topics button[aria-pressed="true"]::before { background: var(--lagoon); border-color: var(--lagoon); }
.contact-meta { margin-top: 30px; font-size: 14.5px; color: var(--ink-70); }
.contact-meta a { color: var(--petrol); text-decoration: none; }
.contact-meta a:hover { color: var(--lagoon); }
.contact-meta span { display: block; margin-bottom: 6px; }
.form { position: relative; isolation: isolate; }
.form::before { content: ""; position: absolute; left: 16px; top: 16px; right: -16px; bottom: -16px; background: var(--sage-deep); z-index: -1; }
.form > form, .form > .done { background: var(--sage-light); }
.form > form { padding: 38px 40px 34px; }
.form .f { margin-bottom: 22px; }
.form label { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink-70); margin-bottom: 8px; }
.form label small { color: var(--ink-55); font-weight: 400; margin-left: 6px; opacity: 0.85; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; height: 46px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: rgba(246, 248, 246, 0.55); padding: 0 10px 8px; font: inherit; font-size: 16.5px; color: var(--ink);
  transition: border-color .25s var(--ease);
}
.form textarea { height: auto; min-height: 96px; padding: 10px 10px; resize: vertical; line-height: 1.45; }
.form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path d='M2 5l5 5 5-5' fill='none' stroke='%230F3540' stroke-width='1.3'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 34px; cursor: pointer; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--lagoon); background: var(--paper); }
.form .f.has-error input, .form .f.has-error select, .form .f.has-error textarea { border-bottom-color: var(--error); }
.form .err { display: none; font-size: 13px; color: var(--error); margin-top: 6px; }
.form .f.has-error .err { display: block; }
.form .cond { display: none; }
.form .cond.is-on { display: block; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.form .file { position: relative; border: 0; border-bottom: 1px solid var(--line); padding: 10px 10px 12px; font-size: 15px; color: var(--ink-70); background: transparent; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; transition: border-color .25s var(--ease); }
.form .file:hover { border-bottom-color: var(--lagoon); background: var(--paper); }
.form .file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.form .file .name { color: var(--petrol); font-weight: 500; white-space: nowrap; font-size: 14px; }
.form-foot { margin-top: 28px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.form .btn { padding: 15px 28px; }
.form .done { display: none; padding: 12px 0; }
.form.is-done form { display: none; }
.form.is-done .done { display: block; animation: pane-in .6s var(--ease); }
.form .done h3 { margin-bottom: 10px; }

/* ---------- About: the Standard ---------- */
.standard { position: relative; margin-top: 8px; padding-top: 34px; }
.standard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.standard::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--lagoon); transition: width .25s linear; }
.standard ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 calc(var(--gap) * 1.4); counter-reset: s; }
.standard li { counter-increment: s; opacity: 0.38; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.standard li.is-on { opacity: 1; transform: none; }
.standard li::before { content: counter(s); display: block; font-family: var(--serif); font-size: 22px; color: var(--lagoon); margin-bottom: 10px; }
.standard h3 { font-size: 20px; margin-bottom: 8px; }
.standard p { font-size: 15px; color: var(--ink-70); max-width: 26ch; }
/* ---------- MontreutOS page visuals ---------- */
.signals-svg { width: 100%; height: auto; display: block; margin-top: 40px; overflow: visible; }
.signals-svg .lbl { font-family: var(--sans); font-size: 14px; fill: var(--ink); }
.signals-svg .lbl.out { fill: var(--petrol); font-weight: 500; }
.signals-svg .wire { fill: none; stroke: var(--line); stroke-width: 1.2; }
.signals-svg .core { fill: var(--sage-light); stroke: var(--petrol); stroke-width: 1.2; }
.signals-svg .core-lbl { font-family: var(--serif); font-size: 21px; fill: var(--petrol); }
.signals-svg .pulse { fill: var(--lagoon); }
.signals-svg .pulse.a { fill: var(--amber); }
.cycle { display: grid; grid-template-columns: 5fr 1fr 6fr; align-items: center; margin-top: 40px; }
.cycle > :nth-child(1) { grid-column: 1; }
.cycle > :nth-child(2) { grid-column: 3; }
.cycle-svg { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.cycle-svg .ring { fill: none; stroke: var(--line); stroke-width: 1.2; }
.cycle-svg .arc { fill: none; stroke: var(--lagoon); stroke-width: 2.5; stroke-linecap: round; transition: stroke-dasharray .8s var(--ease); }
.cycle-svg .node { fill: var(--sage); stroke: var(--petrol); stroke-width: 1.2; transition: fill .3s var(--ease), stroke .3s var(--ease); }
.cycle-svg .node.is-on { fill: var(--lagoon); stroke: var(--lagoon); }
.cycle-svg .nlbl { font-family: var(--sans); font-size: 14px; fill: var(--ink); font-weight: 500; }
.cycle-svg .nlbl.is-on { fill: var(--lagoon); }
.cycle-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cycle-steps li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 14px; font-size: 15.5px; opacity: 0.45; transition: opacity .4s var(--ease); cursor: default; }
.cycle-steps li b { font-weight: 500; color: var(--petrol); }
.cycle-steps li span { color: var(--ink-70); }
.cycle-steps li.is-on { opacity: 1; }
.cycle-steps li.is-on b { color: var(--lagoon); }
.time { display: grid; grid-template-columns: 1fr 1fr; gap: 0 calc(var(--gap) * 2); margin-top: 8px; }
.time > div { padding: 20px 0; border-top: 1px solid var(--line); }
.time h3 { font-size: 15px; font-family: var(--sans); font-weight: 500; color: var(--ink-55); margin-bottom: 12px; }
.time ul { list-style: none; margin: 0; padding: 0; }
.time li { font-family: var(--serif); font-size: 24px; line-height: 1.35; color: var(--petrol); }
.time .off li { color: var(--ink-55); text-decoration: line-through; text-decoration-color: rgba(15, 33, 41, 0.35); }
.statement { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); line-height: 1.2; color: var(--petrol); max-width: 22ch; margin: 0; }
.statement b { font-weight: 400; color: var(--lagoon); }

@media (max-width: 900px) {
  .model-in, .notes3, .time { grid-template-columns: 1fr; }
  .model-in { gap: 14px 0; }
  .model, .contact-grid, .cycle { grid-template-columns: 1fr; }
  .model > :nth-child(2), .contact-grid > :nth-child(2), .cycle > :nth-child(2) { grid-column: 1; margin-top: 28px; }
  .standard ol { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  .standard li { opacity: 1; transform: none; }
  .opt-bars li { grid-template-columns: 120px 1fr 80px; }
  .cycle-svg { max-width: 320px; }
  .chart .tip { display: none; }
}
@media (max-width: 560px) {
  .standard ol { grid-template-columns: 1fr; }
  .opt-bars li { grid-template-columns: 1fr 88px; }
  .opt-bars li > span:first-child { grid-column: 1 / -1; padding-bottom: 2px; }
  .cycle-steps li { grid-template-columns: 1fr; gap: 2px; }
  .figures .v { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .fig::before { transform: none !important; transition: none !important; }
  .standard li { opacity: 1 !important; transform: none !important; }
  .opt-bars .fill { transition: none !important; }
}

/* ---------- Device and browser polish ---------- */
@media (max-width: 380px) {
  h1 { font-size: 36px; }
  .btn { white-space: normal; text-align: center; }
  .actions { gap: 16px; }
  .chart { padding-left: 30px; background-size: calc(100% - 30px) 1px; } .chart::after { left: 30px; } .chart-x { padding-left: 30px; }
  .chart-x span { font-size: 11px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .cover { min-height: auto; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 56px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .nav-links { gap: 22px; }
  .nav-links .btn { padding: 13px 16px; }
}
@supports (-webkit-touch-callout: none) {
  input, select, textarea { font-size: 16.5px; } /* iOS: no auto-zoom on focus */
}

/* ---------- A year on MontreutOS ---------- */
.year { margin-top: 44px; }
.year .k { font-size: 13px; font-weight: 500; color: var(--ink-55); margin: 0 0 6px; }
.year-segs { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 4px; align-items: end; height: 64px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.year-seg { position: relative; height: 12px; background: var(--petrol); opacity: 0.32; border: 0; padding: 0; cursor: pointer; transition: opacity .3s var(--ease), height .3s var(--ease), background .3s var(--ease); }
.year-seg span { position: absolute; left: 0; bottom: 18px; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--petrol); white-space: nowrap; opacity: 0; transition: opacity .3s var(--ease); }
.year-seg:hover, .year-seg.is-on { opacity: 1; }
.year-seg.is-on { background: var(--lagoon); height: 18px; }
.year-seg.is-on span, .year-seg:hover span { opacity: 1; }
.year-mark { position: absolute; top: 0; bottom: 14px; width: 1px; background: var(--lagoon); left: var(--x, 0%); transition: left 1.2s var(--ease); pointer-events: none; }
.year-decision { position: relative; align-self: end; justify-self: end; height: 30px; font-size: 12px; color: var(--ink); white-space: nowrap; transform: translateX(50%); padding-bottom: 6px; padding-right: 14px; }
.year-decision i { position: absolute; right: 0; bottom: -14px; width: 8px; height: 8px; background: var(--amber); }
.year-months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 4px; margin-top: 8px; font-size: 12.5px; color: var(--ink-55); }
.year-months span { text-align: left; padding-left: 2px; }
.year-detail { position: relative; margin-top: 28px; min-height: 150px; }
.year-phase { position: absolute; inset: 0; opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.year-phase[data-on] { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.year-when { font-family: var(--serif); font-size: 24px; color: var(--petrol); margin: 0 0 14px; }
.year-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 calc(var(--gap) * 2); }
.year-cols p { font-size: 15.5px; color: var(--ink-70); max-width: 44ch; }
.year-all { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.year-all p { font-size: 15.5px; color: var(--ink-70); max-width: 70ch; }
@media (max-width: 900px) {
  .year-seg span { display: none; }
  .year-segs { height: 40px; }
  .year-decision { display: none; }
  .year-cols { grid-template-columns: 1fr; }
  .year-cols > div + div { margin-top: 14px; }
  .year-detail { min-height: 0; }
  .year-when { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .year-mark, .year-seg, .year-phase { transition: none !important; } }
