/* Generated by scripts/build-css.mjs from tokens.css, base.css, components.css, sections.css. Do not edit. */
/* Design tokens: colours, type, spacing and motion shared by every component. */

@font-face {
  font-family: "TeX Gyre Schola";
  src: url("../assets/fonts/texgyreschola-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "TeX Gyre Schola";
  src: url("../assets/fonts/texgyreschola-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* Host Grotesk (SIL OFL), self-hosted: one variable file covers 400 to 600. Subsets and ranges as Google Fonts serves them. */
@font-face {
  font-family: "Host Grotesk";
  src: url("../assets/fonts/host-grotesk-latin.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; 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: "Host Grotesk";
  src: url("../assets/fonts/host-grotesk-latin-ext.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* brand */
  --brand: #18a83a;          /* A · logo green, accents on dark only */
  --brand-hi: #4fcf6c;       /* readable brand tint for small text on forest */
  --forest: #1b7a4a;         /* B · text, links and buttons on light */
  --forest-hover: #156139;
  --forest-deep: #0e3b26;    /* C · dark chapters */
  --forest-deeper: #0a2c1c;
  --forest-mid: #154d33;

  /* neutrals */
  --ink: #0b0f0d;
  --text: #13201a;
  --muted: #4c5a52;
  --paper: #f4f5f2;
  --paper-2: #e8ebe6;
  --white: #ffffff;
  --silver: #b4b4b4;
  --on-dark: #eef2ee;
  --on-dark-muted: #b8d4c2;   /* a tint of the forest, not grey: 7.9:1 on forest-deep */
  --line: rgba(19, 32, 26, .14);
  --line-strong: rgba(19, 32, 26, .32);
  --line-dark: rgba(238, 242, 238, .16);
  --line-dark-strong: rgba(238, 242, 238, .34);
  --foam: #e3c66a;           /* rigid foam in the traditional sandwich */

  /* chrome: the silver slash of the logo */
  --chrome: linear-gradient(100deg, #8e9499 0%, #e9ecee 38%, #a9aeb2 56%, #f6f7f8 76%, #9ca1a5 100%);

  /* type */
  --serif: "TeX Gyre Schola", "Century Schoolbook", "Century Schoolbook L", Georgia, serif;
  --sans: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-eyebrow: .78rem;
  --fs-h4: clamp(1.2rem, 1.5vw, 1.4rem);
  --fs-h3: clamp(1.7rem, 2.6vw, 2.4rem);
  --fs-h2: clamp(2.3rem, 4.6vw, 4.2rem);
  --fs-display-2: clamp(2.6rem, 6vw, 5.6rem);
  --fs-display: clamp(2.5rem, 5.6vw, 5.8rem);

  /* space and shape */
  --gut: clamp(16px, 2.4vw, 36px);
  --max: 1480px;
  --sec: clamp(88px, 10vw, 168px);
  --r: 10px;
  --r-sm: 6px;

  /* motion */
  --ease: cubic-bezier(.65, .05, 0, 1);
  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --dur: .7s;

  /* theme slots, flipped by .dark */
  --bg: var(--paper);
  --fg: var(--text);
  --fg-muted: var(--muted);
  --accent: var(--forest);
  --accent-hover: var(--forest-hover);
  --on-accent: var(--white);
  --accent-text: var(--forest);
  --rule: var(--line);
  --rule-strong: var(--line-strong);
  --surface: var(--white);

  color-scheme: light;
}

.dark {
  --bg: var(--forest-deep);
  --fg: var(--on-dark);
  --fg-muted: var(--on-dark-muted);
  --accent: var(--brand);
  --accent-hover: var(--brand-hi);
  --on-accent: var(--ink);
  --accent-text: var(--brand-hi);
  --rule: var(--line-dark);
  --rule-strong: var(--line-dark-strong);
  --surface: var(--forest-deeper);
  color-scheme: dark;
}

/* Reset, typography, layout primitives, reveal utilities. */

*, *::before, *::after { box-sizing: border-box; }
/* the solid bar's height (.nav: offset + 54 px + its 10 px skirt), so a section lands flush under it at every width */
html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--gut) + 64px);-webkit-text-size-adjust: 100%; scrollbar-color: var(--forest-mid) var(--paper-2); }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--sans); font-size: var(--fs-body); line-height: 1.6; letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; caret-color: var(--brand);
}
h1, h2, h3, h4 { margin: 0; font-variant-numeric: lining-nums; font-weight: 500; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; text-wrap: pretty; }
dl, dd, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }
abbr[aria-label] { text-decoration: none; }
::selection { background: var(--brand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }  /* sections that only receive focus from in-page links (ui.js) */
[hidden] { display: none !important; }

/* sections inherit their theme from tokens */
section, .foot { position: relative; background: var(--bg); color: var(--fg); }

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: var(--gut); top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-sm); background: var(--forest); color: var(--white); transition: top .3s; }
.skip:focus { top: var(--gut); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.pad { padding-block: var(--sec); }
.z { position: relative; z-index: 1; }

/* typography roles */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; }
.display { font-family: var(--serif); font-weight: 400; font-size: var(--fs-display); line-height: .98; letter-spacing: -.025em; }
.display-2 { font-size: var(--fs-display-2); line-height: .98; letter-spacing: -.025em; }
.h2 { font-size: var(--fs-h2); letter-spacing: -.02em; }
.h3 { font-size: var(--fs-h3); line-height: 1.08; }
.h4 { font-size: var(--fs-h4); line-height: 1.2; }
.lede { font-size: clamp(1.08rem, 1.35vw, 1.24rem); color: var(--fg-muted); max-width: 58ch; }
.muted { color: var(--fg-muted); }
.accent { color: var(--accent-text); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); }
/* the logo's silver slash as a section marker */
.eyebrow-slash::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--chrome); transform: skewX(-30deg); }
.chrome-rule { height: 2px; width: 0; background: var(--chrome); transition: width 1.6s var(--ease) .2s; }
.in .chrome-rule, .chrome-rule.in { width: 100%; }

/* reveal */
.rv { opacity: 0; transform: translateY(32px); transition: opacity var(--dur) var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }

/* procedural contour lines on dark chapters */
.topo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; color: rgba(238, 242, 238, .055); }
.topo svg { position: absolute; inset: -6%; width: 112%; height: 112%; transform: translateY(calc(var(--p, .5) * -4%)); }
/* own layer: --p moves it every scroll frame; without it desktop Chrome repainted the SVG each frame and flashed the paper
   background. Not on touch screens: on a phone Applications is ~7000 device px tall, too big a layer for iOS */
@media (hover: hover) and (pointer: fine) { .topo svg { will-change: transform; } }

@keyframes spin-in { from { transform: rotate(-120deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wiggle { 0%, 100% { transform: translateX(-3px) rotate(-8deg); } 50% { transform: translateX(3px) rotate(8deg); } }
@keyframes sweep { to { transform: translateX(100%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .chrome-rule { width: 100%; }
}

/* Reusable components. Colours come from theme slots, so each works on light and dark. */

/* ---------- button ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: var(--r-sm);
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
  font-weight: 500; font-size: .98rem; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
/* own compositor layer: on outline buttons the colour changes with the turn, and without it the arrow repaints a few times, blurs, then snaps */
.btn .arr { flex: none; transition: transform var(--dur) var(--ease); will-change: transform; }
.btn:hover .arr { transform: rotate(45deg); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--rule-strong); }
/* outline buttons flip ground and ink in opposite directions: a fast flip keeps the arrow visible while it turns (at .7s both sat on the same grey and the arrow flickered) */
.btn-ghost, .btn-line { transition-duration: .18s; transition-timing-function: ease-out; }
.btn-ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-sm { height: 42px; padding: 0 16px; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
/* rolling label: the text-shadow is the copy that slides in */
.roll { display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3; vertical-align: middle; }
.roll > i { display: block; font-style: normal; text-shadow: 0 1.3em 0 currentColor; transition: transform var(--dur) var(--ease); }
a:hover > .roll > i, button:hover > .roll > i, a:focus-visible > .roll > i, button:focus-visible > .roll > i { transform: translateY(-1.3em); }

.linkbtn { background: none; border: 0; padding: 1px 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.linkbtn:hover { color: var(--accent-text); }

.iconbtn {
  width: 40px; height: 40px; padding: 0; border-radius: var(--r-sm); display: grid; place-items: center;  /* iOS Safari pads buttons: the 16 px icon then spilled to the right */
  background: transparent; border: 1px solid var(--rule); color: var(--fg);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.iconbtn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- chip, card ---------- */
.card { padding: clamp(22px, 2.4vw, 32px); border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.card p { color: var(--fg-muted); }

/* ---------- toggle switch ---------- */
.toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 16px;
  border-radius: var(--r-sm); border: 1px solid var(--rule); background: none; font-weight: 500; transition: opacity .3s, border-color .3s;
}
.toggle:not([disabled]):hover { border-color: var(--rule-strong); }
.toggle[disabled] { opacity: .4; cursor: not-allowed; }
.toggle-sw { width: 42px; height: 24px; border-radius: 999px; background: var(--rule-strong); position: relative; transition: background-color .3s; }
.toggle-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--fg); transition: transform .5s var(--ease), background-color .3s; }
.toggle[aria-pressed="true"] .toggle-sw { background: var(--accent); }
.toggle[aria-pressed="true"] .toggle-sw::after { transform: translateX(18px); background: var(--on-accent); }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 90; background: var(--forest-deep); color: var(--on-dark); display: grid; place-items: center; clip-path: inset(0); transition: clip-path .9s var(--ease); }
.loader.done { clip-path: inset(0 0 100% 0); }
.loader-in { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.loader img { width: 52px; animation: spin-in 1.2s var(--ease-out) both; }
.loader-n { font-family: var(--serif); font-size: clamp(4rem, 12vw, 8.5rem); line-height: .8; font-variant-numeric: tabular-nums; }
.loader-n small { font-size: .3em; color: var(--brand-hi); margin-left: 6px; }
.loader-t { font-size: var(--fs-eyebrow); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.loader-bar { width: min(320px, 70vw); height: 2px; background: var(--line-dark); }
.loader-bar i { display: block; height: 100%; width: var(--lp, 0%); background: var(--chrome); }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 70; top: calc(env(safe-area-inset-top, 0px) + var(--gut)); left: var(--gut); right: var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav { --accent: var(--brand-hi); }  /* focus ring readable on the photo and on the forest bar */
/* Round 1: no boxes on the hero; once the hero is gone a full-width forest bar keeps the light links readable */
.nav::before { content: ""; position: absolute; z-index: -1; top: calc(-1 * (env(safe-area-inset-top, 0px) + var(--gut))); bottom: -10px; left: calc(-1 * var(--gut)); right: calc(-1 * var(--gut)); background: var(--forest-deep); box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .5); opacity: 0; transition: opacity var(--dur) var(--ease); pointer-events: none; }
.nav.is-solid::before { opacity: 1; }
.pill { display: flex; align-items: center; gap: 6px; height: 54px; padding: 0 6px 0 16px; color: var(--on-dark); text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.pill .brand { display: inline-flex; align-items: flex-start; }
.pill .brand img { height: 40px; width: auto; }  /* the footer logo's size (Adriel 05/11) */
@media (min-width: 761px) { .pill .brand img { height: 48px; } }
/* ™ (PDF item 8): a small mark at the top right of the logo, in the logo's light grey */
.tm { font-family: var(--sans); font-weight: 500; line-height: 1; letter-spacing: 0; color: #e4e7e3; }
.brand .tm { font-size: 9px; margin: 1px 0 0 1px; }
.pill-brand { padding: 0; }
.pill-brand .brand img { filter: drop-shadow(0 1px 10px rgba(0, 0, 0, .3)); }
.links { position: relative; padding: 0 8px; gap: 2px; }
.links a { position: relative; padding: 8px 12px; font-size: .94rem; font-weight: 500; color: rgba(238, 242, 238, .88); background: linear-gradient(currentColor, currentColor) no-repeat 12px calc(100% - 4px) / 0 1px; transition: color var(--dur) var(--ease), background-size var(--dur) var(--ease); }
.links a:hover, .links a:focus-visible { color: #fff; background-size: calc(100% - 24px) 1px; }
.links a[aria-current="true"] { color: #fff; }
.links .live { position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(24, 168, 58, .2); pointer-events: none; will-change: transform; }
.rt { padding: 0 6px; }
/* outlined button on photos and dark bars: hero, header (Round 1) */
.btn-line { background: transparent; color: #fff; border-color: rgba(238, 242, 238, .7); text-shadow: none; }
.btn-line:hover, .btn-line:focus-visible { background: #fff; color: var(--ink); border-color: #fff; }
.lang { display: flex; font-size: .78rem; font-weight: 600; letter-spacing: .06em; margin-right: 4px; }
.lang button { border: 0; background: none; color: rgba(238, 242, 238, .7); padding: 8px 10px; min-width: 40px; min-height: 40px; text-decoration: underline 1px transparent; text-underline-offset: 6px; transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease); }
.lang button:hover { color: #fff; }
.lang button[aria-pressed="true"] { color: #fff; text-decoration-color: currentColor; }
.menu-btn { width: 42px; height: 42px; padding: 0; border-radius: var(--r-sm); border: 0; background: none; display: grid; place-items: center; transition: background-color var(--dur) var(--ease); }
.menu-btn:hover { background: rgba(255, 255, 255, .12); }
.menu-btn i { display: block; width: 18px; height: 1.5px; background: #fff; position: relative; transition: transform var(--dur) var(--ease); }
.menu-btn i::before { content: ""; position: absolute; right: 0; top: -6px; width: 10px; height: 1.5px; background: #fff; transition: transform var(--dur) var(--ease), width var(--dur) var(--ease); }
.menu-btn[aria-expanded="true"] i { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i::before { width: 18px; transform: translateY(6px) rotate(-90deg); }

.overlay { position: fixed; inset: 0; z-index: 65; background: var(--forest-deep); color: var(--on-dark); display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 32px; padding: clamp(110px, 14vh, 160px) var(--gut) calc(var(--gut) + env(safe-area-inset-bottom, 0px)); clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease); }
.overlay.open { clip-path: inset(0); }
/* thin at the top so the page shows through, denser at the foot where the small text sits (4.5:1 over the light sections) */
@media (min-width: 1181px) { .overlay { background: linear-gradient(0deg, color-mix(in srgb, var(--forest-deep) 90%, transparent) 0%, color-mix(in srgb, var(--forest-deep) 78%, transparent) 26%, color-mix(in srgb, var(--forest-deep) 55%, transparent) 62%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); } }
.overlay nav { display: flex; flex-direction: column; }
.overlay nav a { font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1.05; width: fit-content; transform: translateY(40%); opacity: 0; transition: transform .9s var(--ease), opacity .6s, color var(--dur) var(--ease); }
.overlay.open nav a { transform: none; opacity: 1; }
.overlay.open nav a:nth-child(2) { transition-delay: .05s; } .overlay.open nav a:nth-child(3) { transition-delay: .1s; }
.overlay.open nav a:nth-child(4) { transition-delay: .15s; } .overlay.open nav a:nth-child(5) { transition-delay: .2s; }
.overlay nav a:hover { color: var(--brand-hi); }
.overlay-side { display: flex; flex-direction: column; gap: 22px; align-items: flex-end; text-align: right; }
.overlay-side p { color: var(--on-dark-muted); max-width: 34ch; }
.overlay .lang { border: 1px solid var(--line-dark-strong); border-radius: var(--r-sm); overflow: hidden; }
.overlay .lang button { color: var(--on-dark-muted); min-width: 48px; min-height: 44px; }
.overlay .lang button[aria-pressed="true"] { background: var(--brand); color: var(--ink); text-decoration-color: transparent; }

/* ---------- modal ---------- */
.modal { width: min(760px, calc(100vw - 2 * var(--gut))); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: var(--r); background: var(--paper); color: var(--text); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); overflow: hidden; }
.modal::backdrop { background: rgba(10, 44, 28, .72); backdrop-filter: blur(4px); }
.modal[open] { animation: fade-up .45s var(--ease-out); }
.modal-in { display: flex; flex-direction: column; max-height: inherit; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 14px 14px 28px; border-bottom: 1px solid var(--line); }
.modal-body { overflow: auto; padding: 0 0 32px; overscroll-behavior: contain; }
.modal-body > :not(.modal-cover) { margin-inline: 28px; }
.modal-body h2 { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h4); margin-top: 28px; }
.modal-body #modalTitle { font-size: var(--fs-h3); }  /* body headings stay below the title */
.modal-body p { margin-top: 16px; color: #2c3a33; max-width: 62ch; }
.modal-body .modal-src { margin-top: 28px; display: inline-flex; gap: 8px; color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- form ---------- */
.form-body { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-size: var(--fs-small); font-weight: 500; color: var(--fg); padding: 0; }
.field abbr { color: var(--accent-text); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--rule-strong);
  background: rgba(255, 255, 255, .04); color: var(--fg); transition: border-color .25s, background-color .25s;
}
.dark .field select option { background: var(--forest-deeper); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 3px rgba(24, 168, 58, .25); }
.field [aria-invalid="true"] { border-color: #f08a7a; }
.field-err { min-height: 0; font-size: var(--fs-small); color: #ffb3a6; }
.field-err:empty { display: none; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.checks legend { margin-bottom: 10px; float: left; width: 100%; }
.checks label, .consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--fg); cursor: pointer; }
.checks .field-err { grid-column: 1 / -1; }
input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--brand); }
.consent { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.consent .linkbtn { font-size: var(--fs-small); color: var(--fg-muted); }
.consent .field-err { flex-basis: 100%; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-err { flex: 1 1 260px; font-size: var(--fs-small); color: #ffb3a6; }  /* always rendered: a live region hidden at first may not be announced */
.turnstile { min-height: 65px; }  /* widget height, so the button does not jump when it loads */
.form-ok { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); animation: fade-up .5s var(--ease-out); }
.form-ok p { color: var(--fg-muted); }
.form-ok:focus { outline: none; }

@media (max-width: 1180px) { .links { display: none; } }
@media (max-width: 760px) {
  /* phones: no backdrop blur on the fixed bar (costly while scrolling on iOS) */
  .nav::before { box-shadow: none; }
  .rt .lang, .rt .btn { display: none; }
  .overlay { grid-template-columns: 1fr; align-content: end; }
  .overlay-side { align-items: flex-start; text-align: left; }
  .form-body, .checks { grid-template-columns: 1fr; }
}

/* touch screens: 44 px tap targets (Apple HIG) without moving the layout; mouse users keep the original sizes */
@media (pointer: coarse) {
  .menu-btn, .iconbtn { width: 44px; height: 44px; }
  .lang button { min-width: 44px; min-height: 44px; }
  .btn-sm { height: 44px; }
  .linkbtn { padding-block: 12px; margin-block: -12px; }
  .consent .linkbtn { padding: 0 0 22px; margin: 0 0 -22px; }  /* grows downward: upward it would cover the checkbox */
}
/* WCAG 2.5.8: 24 px checkboxes on touch screens and narrow windows (Lighthouse's phone emulation reports a fine pointer) */
@media (pointer: coarse), (max-width: 760px) {
  input[type="checkbox"] { width: 24px; height: 24px; margin-top: 0; }
}

/* Section-specific layout. Shared pieces live in components.css. */

/* ---------- hero ---------- */
.hero { height: max(700px, 100svh); overflow: hidden; background: var(--forest-deeper); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
/* Round 1: a bright photo; the shade sits only behind the header (top) and the text (bottom left) */
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10, 44, 28, .72) 0%, rgba(10, 44, 28, .38) 13%, rgba(10, 44, 28, 0) 28%), linear-gradient(0deg, rgba(10, 44, 28, .86) 0%, rgba(10, 44, 28, .5) 32%, rgba(10, 44, 28, 0) 58%), linear-gradient(90deg, rgba(10, 44, 28, .35), rgba(10, 44, 28, 0) 50%); }
.hero-copy { position: absolute; left: 0; right: 0; bottom: clamp(28px, 5vh, 64px); z-index: 2; display: grid; grid-template-columns: 1.35fr .65fr; gap: 20px 48px; align-items: end; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.hero-main { display: flex; flex-direction: column; gap: 18px; }
.hero-tag { color: #eef2ee; font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 36ch; opacity: 0; transition: opacity 1s var(--ease) .3s; }
.hero.go .hero-tag { opacity: 1; }
.hero-side .hero-lead { color: #fff; font-weight: 600; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.hero.go h1 .ln > span { transform: none; }
.hero.go h1 .ln:nth-child(2) > span { transition-delay: .08s; }
.hero.go h1 .ln:nth-child(3) > span { transition-delay: .16s; }
.hero-side { display: flex; flex-direction: column; gap: 22px; padding-bottom: 10px; opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease) .35s, transform 1s var(--ease) .35s; }
.hero.go .hero-side { opacity: 1; transform: none; }
.hero-side p { color: #d8e2dc; font-size: clamp(1rem, 1.25vw, 1.12rem); max-width: 42ch; }


.ap-ctas { display: flex; flex-wrap: wrap; gap: 10px; }  /* brochure and pilot side by side, stacked when narrow */
.ap-ctas .btn { padding-inline: 18px; }

/* ---------- technology ---------- */
.tech-grid { display: grid; grid-template-columns: .9fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.tech-copy { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 22px; }
.tech-copy > p { color: var(--muted); max-width: 46ch; }
.integ-note { margin-top: clamp(64px, 8vw, 120px); padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 96px); align-items: start; }
.integ-note .h3 { max-width: 18ch; }
.integ-note .lede { color: var(--muted); max-width: 56ch; }
.clipimg { position: relative; }
.clipimg-in { aspect-ratio: 1; overflow: hidden; border-radius: var(--r); clip-path: inset(calc(var(--c, 0) * 14%) round var(--r)); background: #102318; }
.clipimg img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1 + var(--c, 0) * .24)); }
.tech-props { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 28px); margin-top: 22px; }
.tech-props li { padding-top: 14px; border-top: 1px solid var(--line); }
.tech-props li:first-child { border-top-color: var(--forest); }  /* one quiet anchor on the row */
.tech-props b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.2; color: var(--text); }
.tech-props p { margin-top: 6px; font-size: .88rem; line-height: 1.45; color: var(--muted); }

/* ---------- lab ---------- */
.lab-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.lab-top p { color: var(--on-dark-muted); max-width: 44ch; font-size: 1.06rem; }
.lab-grid { display: grid; grid-template-columns: 1.55fr .85fr; gap: 14px; margin-top: clamp(40px, 5vw, 72px); }
/* one fixed height on every tab (the info panel beside it grows with each specimen): the specimen keeps its size,
   and the stage stays in view while the panel is read */
.stage { position: sticky; top: 104px; align-self: start; height: clamp(560px, calc(100svh - 140px), 740px); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-dark); background: radial-gradient(60% 55% at 50% 45%, #1d5a3c, var(--forest-deeper) 80%); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-corner { position: absolute; z-index: 2; top: 18px; left: 20px; max-width: calc(100% - 170px); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); pointer-events: none; }
.stage-corner b { color: var(--on-dark); font-weight: 600; }
.stage-tools { position: absolute; z-index: 2; top: 14px; right: 14px; display: flex; gap: 6px; }
.stage-tools .iconbtn { background: rgba(10, 44, 28, .55); }
.stage-hint { position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--brand); color: var(--ink); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; transition: opacity .6s; white-space: nowrap; }
.stage-hint svg { animation: wiggle 2.4s ease-in-out infinite; }
.stage.touched .stage-hint, .stage.exploded .stage-hint, .stage.has-density .stage-hint { opacity: 0; }
.density { position: absolute; z-index: 3; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(420px, 84%); padding: 8px 14px 10px; border-radius: var(--r-sm); background: rgba(10, 44, 28, .85); border: 1px solid var(--line-dark-strong); color: var(--on-dark); }
.density label { font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.density input { display: block; width: 100%; height: 28px; margin: 0; accent-color: var(--brand-hi); }
.density-ends { display: flex; justify-content: space-between; align-items: baseline; font-size: .75rem; color: var(--on-dark-muted); }
.density-ends output { color: var(--on-dark); font-size: .875rem; font-weight: 600; }
.density p { margin-top: 2px; font-size: .75rem; color: var(--on-dark-muted); }
.stage-fallback:not([hidden]) ~ .density { display: none; }
.tag-short { display: none; }
.tags3d { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.tag3d { position: absolute; left: 0; top: 0; padding: 6px 10px; border-radius: 4px; white-space: nowrap; font-size: .78rem; font-weight: 500; opacity: 0; transition: opacity .35s; background: rgba(10, 44, 28, .85); border: 1px solid var(--line-dark-strong); color: var(--on-dark); }
.tag3d:not(.head) { display: inline-flex; align-items: center; gap: 8px; }
.tag3d:not(.head)::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: #9a9993; }
.tag3d.foam::before { background: var(--foam); }
.tag3d.core::before { background: #d6d9d3; }
.tag3d.gap::before { background: none; border: 1px dashed var(--on-dark-muted); }
.tag3d.board::before { background: #e9e7e0; }
.tag3d.head { background: none; border: 0; padding: 0; font-family: var(--serif); font-size: 1.15rem; }
.hud { background: var(--forest-deeper); border: 1px solid var(--line-dark); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 20px; }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
/* "Aerogel Dispersion 50/70" is long: it wraps between words, and only breaks a word on a 320 px phone */
.tabs button { min-width: 0; min-height: 44px; overflow-wrap: normal; hyphens: manual; line-height: 1.25; }  /* wrap between words only */
.tabs button { border: 1px solid var(--line-dark); background: none; padding: 12px 6px; border-radius: var(--r-sm); font-size: .9rem; font-weight: 500; color: var(--on-dark-muted); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.tabs button:hover { color: var(--on-dark); border-color: var(--line-dark-strong); }
.tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.hud-desc { color: var(--on-dark-muted); min-height: 5.2em; margin-top: 10px; }
.hud .toggle { margin-top: 14px; }
/* lab tools (Aline 06/11): exploded view and magnifier side by side; Aerogel Dispersion shows where it goes instead */
.hud-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.hud-tools .toggle[hidden] { display: none; }
.hud-tools[hidden], .disp-apps[hidden], .mz-panel[hidden], .mz-compare[hidden] { display: none; }
.hud .hud-tools .toggle { margin-top: 0; }
.toggle-l { display: inline-flex; align-items: center; gap: 8px; }
.mz-panel { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.mz-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mz-compare figure { display: flex; align-items: center; gap: 10px; }
.mz-compare canvas { width: 56px; height: 56px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 0 0 4px rgba(10, 44, 28, .6); }
.mz-compare figcaption { font-size: .82rem; line-height: 1.25; color: var(--on-dark); }
.mz-note { font-size: .78rem; color: var(--on-dark-muted); }
.disp-apps { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.disp-apps .eyebrow { color: var(--brand-hi); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-dark-strong); background: transparent; color: var(--on-dark); font: inherit; font-size: .86rem; line-height: 1.2; cursor: pointer; touch-action: manipulation; transition: background-color .3s, border-color .3s, color .3s; }
/* iOS took the first tap as a hover (border transition) and only pressed on the second tap: hover is for mice only */
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--brand-hi); } }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.chip:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 2px; }
.disp-app-desc { min-height: 2.7em; font-size: .92rem; color: var(--on-dark-muted); }
/* the magnifier: glass rim over the stage, its caption under it */
.lens { position: absolute; left: 0; top: 0; z-index: 3; width: var(--lens, 168px); height: var(--lens, 168px); pointer-events: none; will-change: transform; }
.lens[hidden] { display: none; }
.lens canvas { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--forest-deeper); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85), 0 0 0 6px rgba(10, 44, 28, .5), 0 18px 44px rgba(0, 0, 0, .45); }
.lens::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; box-shadow: inset 0 0 22px rgba(0, 0, 0, .38); background: radial-gradient(110% 70% at 30% 14%, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 40%); }
.lens-cap { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(calc(-50% + var(--cap-x, 0px))); width: max-content; max-width: min(240px, 64vw); padding: 6px 12px; border-radius: 12px; background: rgba(10, 44, 28, .88); border: 1px solid var(--line-dark-strong); color: var(--on-dark); font-size: .78rem; line-height: 1.3; text-align: center; }
.stage.lens-on canvas { cursor: crosshair; }
.stage.lens-on .stage-hint { opacity: 0; }
.spec { display: flex; flex-direction: column; margin-top: 18px; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-dark); }
.spec div:last-child { border-bottom: 1px solid var(--line-dark); }
.spec dt { color: var(--on-dark-muted); font-size: .92rem; }
.spec dd { text-align: right; font-weight: 500; }
.hud-order { align-self: flex-start; margin-top: 18px; }
.hud-order[hidden] { display: none; }
.footnote { font-size: .82rem; color: var(--on-dark-muted); line-height: 1.5; }

/* ---------- AirPanel spotlight ---------- */
.ap-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.ap-media { border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2.1; }
.ap-media img { width: 100%; height: 100%; object-fit: cover; }
.ap-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.ticks { display: flex; flex-direction: column; border-top: 1px solid var(--line); width: 100%; }
.ticks li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 12px; height: 7px; border-left: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: rotate(-45deg); }

/* ---------- applications ---------- */
.apps-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 72px); }
.apps-head > p { color: var(--on-dark-muted); max-width: 40ch; }
.app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.app-grid > :nth-child(4n + 2), .app-grid > :nth-child(4n + 4) { margin-top: clamp(40px, 6vw, 96px); }
/* 10 cards in 4 columns: the last two sit in the middle */
@media (min-width: 1081px) and (max-width: 1279px) { .app-grid > :nth-last-child(2):nth-child(4n + 1) { grid-column: 2; } }
/* Marciel 10/11: from 1280 px the last two go to a fifth column on the right, one per row, level with the first column */
@media (min-width: 1280px) {
  .app-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .app-grid > :nth-child(9) { grid-area: 1 / 5; }
  .app-grid > :nth-child(10) { grid-area: 2 / 5; margin-top: 0; }
}
/* the sample takes whatever the text leaves, so text never covers it */
.app { position: relative; display: flex; flex-direction: column; width: 100%; padding: 0; border: 1px solid var(--line-dark); border-radius: var(--r); background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 60%); color: var(--on-dark); text-align: left; overflow: hidden; aspect-ratio: 4 / 5; transition: border-color var(--dur) var(--ease); }
.app:hover, .app:focus-visible, .app[aria-pressed="true"] { border-color: var(--brand); }
/* Round 1 (item 17): the photo is the card; a forest gradient keeps the title and description readable */
.app-media { position: absolute; inset: 0; overflow: hidden; }
.app-photo, .app-detail { position: absolute; top: 0; left: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.app-photo { transform: scale(1.04); transition: transform 1.2s var(--ease); }
/* the close-up wipes up over the cover, as the photo once rose over the drawn sample */
.app-detail { clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path var(--dur) var(--ease), transform 1.2s var(--ease); }
.app::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(10, 44, 28, .95) 0%, rgba(10, 44, 28, .6) 30%, rgba(10, 44, 28, 0) 58%); pointer-events: none; }
.app:hover .app-photo, .app:focus-visible .app-photo, .app[aria-pressed="true"] .app-photo { transform: none; }
.app:hover .app-detail, .app:focus-visible .app-detail, .app[aria-pressed="true"] .app-detail { clip-path: inset(0); transform: none; }
.app-title, .app-desc { display: block; }
.app-txt { position: relative; z-index: 2; margin-top: auto; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.app-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 1.4vw, 1.35rem); line-height: 1.15; }
.app-desc { font-size: .9rem; color: var(--on-dark-muted); max-height: 0; opacity: 0; overflow: hidden; transition: max-height var(--dur) var(--ease), opacity .4s; }
.app:hover .app-desc, .app:focus-visible .app-desc, .app[aria-pressed="true"] .app-desc { max-height: 11em; opacity: 1; }  /* six lines: French on a fifth-column card */
/* with the description open the title rises onto the bright part of the close-up: a veil behind the text keeps it readable */
@media (min-width: 761px) {
  .app-txt::before { content: ""; position: absolute; inset: -36px 0 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 44, 28, .94) 62%, rgba(10, 44, 28, 0)); opacity: 0; transition: opacity .4s; pointer-events: none; }
  .app:hover .app-txt::before, .app:focus-visible .app-txt::before, .app[aria-pressed="true"] .app-txt::before { opacity: 1; }
}
.apps-note { margin-top: 18px; font-size: var(--fs-small); color: var(--on-dark-muted); }
.apps-close { margin-top: clamp(48px, 6vw, 88px); max-width: 38ch; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.2; }

/* ---------- about ---------- */
.about { background: var(--white); }
.about-intro { display: flex; flex-direction: column; gap: 22px; }
.about-intro .h2 { max-width: 20ch; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: clamp(56px, 7vw, 104px); padding-top: 32px; border-top: 1px solid var(--line); }
.about-block { display: flex; flex-direction: column; gap: 16px; }
.about-quote { font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.2; }
.about-block p:not(.about-quote) { color: var(--muted); max-width: 52ch; }

/* Challenge and approach (Aline 06/11): the chrome bar runs from the constraint into the answer */
.about-shift { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: clamp(56px, 7vw, 104px); }
.about-shift .chrome-rule { position: absolute; top: 0; left: 0; }
.about-shift article { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 3.4vw, 52px) clamp(24px, 3.4vw, 56px) clamp(32px, 3.8vw, 56px); }
.shift-ch { padding-left: 0 !important; border-top: 1px solid var(--line); }
.shift-ap { background: var(--forest-deep); color: #eef2ee; border-radius: 0 0 var(--r) var(--r); }
.shift-ap .eyebrow { color: var(--brand-hi); }
.shift-h { font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.18; letter-spacing: -.01em; max-width: 20ch; }
.shift-ch .shift-h { color: var(--muted); }
.about-shift p { max-width: 50ch; }
.shift-ch p { color: var(--muted); }
.shift-ap p { color: rgba(238, 242, 238, .78); }
/* Round 1 (item 9.5): numbered circles joined by a line; the line is green up to the current stage */
.ecosys { margin-top: clamp(72px, 9vw, 136px); padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 80px); }
.ecosys-head { display: flex; flex-direction: column; gap: 16px; }
.ecosys-head p { color: var(--muted); max-width: 44ch; }
.ecosys-groups { display: flex; flex-direction: column; gap: 30px; }
.eco-group { display: flex; flex-direction: column; gap: 14px; }
.eco-list { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; }
.eco-org { display: flex; align-items: center; gap: 12px; min-height: 40px; }
/* one quiet grey tone for every logo, its own colours on hover or focus */
.eco-org a { display: inline-flex; align-items: center; min-height: 44px; border-radius: var(--r-sm); }
.eco-org img { width: auto; height: auto; max-height: 40px; max-width: 170px; filter: grayscale(1); opacity: .7; transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.eco-org a:hover img, .eco-org a:focus-visible img { filter: none; opacity: 1; }
/* NRC: bilingual signature, 13:1, needs more width than the other logos to stay legible; French-first in French */
.eco-org img.eco-sig { max-width: 300px; }
html[lang^="fr"] .eco-sig-en, html:not([lang^="fr"]) .eco-sig-fr { display: none; }
.road-h { margin-top: clamp(72px, 9vw, 136px); }
/* Adriel 07/11 (screen recording): names grew and shrank with the moving panel, jumped lines, and the block changed
   height. Everything is now sized from the whole row (the container), never from the panel that is moving:
   one name size, one name width (a closed panel's), the open panel's content at its final width, one height. */
.panels { --pp: clamp(22px, 2.4vw, 32px); --closed: calc(100cqi / 5.4); --open: calc(100cqi * 2.4 / 5.4);
  container-type: inline-size; display: flex; margin-top: clamp(32px, 4vw, 56px); padding: 0; list-style: none; border-radius: var(--r); overflow: hidden; height: clamp(540px, 42vw, 600px); }
.panel { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; padding: var(--pp); overflow: hidden; color: var(--on-dark); cursor: pointer; transition: flex 1s var(--ease); background: var(--forest-deep); }
.panel:nth-child(2) { background: var(--forest-mid); } .panel:nth-child(3) { background: #1d5f40; } .panel:nth-child(4) { background: var(--forest); }
.panel.is-open { flex: 2.4; cursor: default; }
.panel:focus-visible { outline-offset: -4px; outline-color: var(--brand-hi); }
/* stage number, then its name: the names wrap between words, sized to the panel so the closed ones fit */
.panel h4 { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; font-family: var(--serif); font-weight: 400; font-size: 1.4rem; font-size: clamp(1.25rem, calc(var(--closed) * .1), 1.75rem); line-height: 1.12; overflow-wrap: normal; color: var(--on-dark); }
.panel h4 [data-i] { width: calc(var(--closed) - 2 * var(--pp)); }  /* the same line breaks open or closed */
.panel-n { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line-dark-strong); font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .04em; line-height: 1; color: var(--on-dark); }  /* the border tells the state; the figure stays legible on every green */
.panel.is-done .panel-n { border-color: var(--brand-hi); }
.panel.is-now .panel-n { background: var(--brand); border-color: var(--brand); color: var(--ink); box-shadow: 0 0 0 6px rgba(79, 207, 108, .18); }
/* where AeroNova is today: visible on the closed panel too */
.panel-now { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 5px 11px 5px 9px; border-radius: 999px; border: 1px solid rgba(79, 207, 108, .5); background: rgba(10, 44, 28, .35); color: #dff5e5; font-size: .8rem; line-height: 1.2; }
.panel-now::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-hi); }  /* static: the stage is a fact, not live data */
.panel-more { display: flex; flex-direction: column; flex: 1; gap: 20px; width: calc(var(--open) - 2 * var(--pp)); margin-top: 20px; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.panel.is-open .panel-more { opacity: 1; visibility: visible; transition: opacity .7s .35s, visibility 0s; }
.panel-more img { margin-top: auto; width: min(100%, 420px); height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.panel-more p { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.3; max-width: 30ch; }

/* ---------- news ---------- */
.news-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.news-head > div { display: flex; flex-direction: column; gap: 18px; }
.cms-badge { display: inline-flex; gap: 10px; align-items: center; font-size: var(--fs-small); color: var(--muted); padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 999px; }
.cms-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
/* minmax(0, 1fr): older iPad Safari (iPadOS 16.1) widened 1fr columns to the photos' 800 px */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(40px, 5vw, 72px); }
.ncard { display: flex; flex-direction: column; gap: 12px; }
.ncover { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-sm); overflow: hidden; background: var(--forest-deep); color: var(--on-dark); display: flex; flex-direction: column; justify-content: space-between; padding: 20px; }
.ncard.lead .ncover { background: var(--forest); }
.ncover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 90% at 85% 10%, rgba(79, 207, 108, .22), transparent 60%), radial-gradient(70% 80% at 0% 100%, rgba(255, 255, 255, .07), transparent 60%); transition: transform 1.1s var(--ease); }
.ncard:hover .ncover::before { transform: scale(1.15); }
.ncover img { position: relative; width: 30px; height: auto; opacity: .9; }
.ncover span { position: relative; font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1; color: rgba(238, 242, 238, .92); }
.nmeta { font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.ncard h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 1.7vw, 1.55rem); line-height: 1.15; }
.ncard p { color: var(--muted); font-size: .98rem; }
.nread { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 0; background: none; border: 0; font-weight: 600; color: var(--forest); }
.nread svg { transition: transform var(--dur) var(--ease); }
.nread:hover svg { transform: translateX(4px); }
.nread::after { content: ""; position: absolute; inset: 0; }
.ncard { position: relative; }
.modal-cover { aspect-ratio: 16 / 7; background: var(--forest-deep); display: flex; align-items: flex-end; padding: 24px 28px; color: var(--on-dark); font-family: var(--serif); font-size: 1.6rem; }
/* photo covers from Sanity */
.ncover-img { padding: 0; }
.ncover-img::before { content: none; }
.ncover-img img { position: relative; width: 100%; height: 100%; object-fit: contain; opacity: 1; transition: transform 1.1s var(--ease); }
.ncard:hover .ncover-img img { transform: scale(1.04); }
/* the modal shows the photo at its own proportion; only a very tall one is fitted to 70% of the screen */
.modal-cover-img { position: relative; overflow: hidden; aspect-ratio: auto; margin: 0; padding: 0; }
.modal-cover-img img { position: relative; width: 100%; height: auto; max-height: 70svh; object-fit: contain; }
/* any photo proportion fits whole: a blurred copy of the same image fills the rest of the frame */
.ncover-img .cover-fill, .modal-cover-img .cover-fill { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; filter: blur(18px) brightness(.8); transform: scale(1.2); }
.ncard:hover .ncover-img .cover-fill { transform: scale(1.25); }
/* loading placeholders while /api/content answers */
.nskel i { display: block; height: 14px; border-radius: 4px; background: var(--paper-2); }
.nskel i:nth-of-type(2) { width: 80%; height: 22px; }
.nskel i:nth-of-type(3) { width: 60%; }
.nskel .ncover::before { content: none; }
.nskel .ncover, .nskel i { animation: skel 1.4s ease-in-out infinite alternate; }
@keyframes skel { to { opacity: .55; } }
.news-down { grid-column: 1 / -1; font-size: 1.1rem; }
.news-down a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.news-ctrl { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(28px, 4vw, 44px); }
.news-ctrl [hidden] { display: none; }
/* News body in the modal: what the Studio allows (headings, lists, links, images) */
.modal-body h3 { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h4); margin-top: 24px; }
.modal-body ul, .modal-body ol { margin-top: 16px; padding-left: 1.3em; max-width: 62ch; color: #2c3a33; }
.modal-body li + li { margin-top: 6px; }
.modal-body p a, .modal-body li a { color: var(--forest); text-underline-offset: 3px; }
.modal-body figure { margin-top: 20px; }
.modal-body figure img { width: 100%; height: auto; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .nskel .ncover, .nskel i { animation: none; } }

/* ---------- contact ---------- */
.contact { background: var(--forest-deep); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 104px); align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 120px; }
.contact-side > p { color: var(--on-dark-muted); max-width: 44ch; }
.contact-info { display: flex; flex-direction: column; margin-top: 12px; border-top: 1px solid var(--line-dark); }
.contact-info > div { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.contact-info dt { font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); padding-top: 3px; }
.contact-info dd { white-space: pre-line; }
.contact-info a { text-decoration: underline; text-decoration-color: var(--line-dark-strong); text-underline-offset: 4px; transition: color .3s; }
.contact-info a:hover { color: var(--brand-hi); }
.form { padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: var(--forest-deeper); border: 1px solid var(--line-dark); }

/* ---------- footer ---------- */
.foot { background: var(--forest-deeper); color: var(--on-dark); padding-top: clamp(64px, 7vw, 104px); padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 32px; align-items: start; }
.foot-brand { display: flex; flex-direction: column; gap: 18px; }
.foot-logo { display: inline-flex; align-items: flex-start; align-self: flex-start; }
.foot-brand img { width: 160px; height: auto; }
.foot-logo .tm { font-size: 9px; margin: 1px 0 0 1px; }
.foot-brand p { font-size: 1.3rem; color: var(--on-dark-muted); max-width: 24ch; }
.foot-brand p span { display: block; }
.foot-nav { display: flex; flex-direction: column; gap: 8px; }
.foot-nav a, .foot-addr a { width: fit-content; transition: color .3s; }
.foot-nav a:hover, .foot-addr a:hover, .foot-bottom a:hover { color: var(--brand-hi); }
.foot-addr { display: flex; flex-direction: column; gap: 10px; color: var(--on-dark-muted); }
.foot-addr span { white-space: pre-line; }
.wm { max-width: var(--max); margin: clamp(32px, 4vw, 56px) auto 0; padding-inline: var(--gut); overflow: hidden; line-height: .8; text-align: center; }
.wm span { display: block; font-family: var(--serif); font-size: clamp(4.2rem, 18vw, 17rem); letter-spacing: -.035em; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; transform: translateY(105%); transition: transform 1.6s var(--ease); }
.wm.in span { transform: none; }
@media (min-width: 761px) { .foot-brand img { width: 200px; } .wm span { font-size: clamp(4.2rem, 14vw, 13rem); } }
/* ™ after the wordmark, top right of the "a", in solid silver (a positioned child falls outside the clipped text) */
.wm span.tm { display: inline; font-family: var(--sans); font-weight: 500; font-size: .11em; letter-spacing: 0; vertical-align: top; margin-left: .06em; position: relative; top: .25em; transform: none; background: none; color: #d6dad6; -webkit-text-fill-color: #d6dad6; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-dark); font-size: .84rem; color: var(--on-dark-muted); }
.foot-bottom .credit { opacity: .8; }
.foot-bottom a { padding-block: 1px; }

@media (max-width: 1080px) {
  .hero-copy { grid-template-columns: 1fr; }
  .tech-grid, .lab-grid, .ap-grid, .contact-grid { grid-template-columns: 1fr; }
  .stage { position: relative; top: auto; }
  .panels { display: grid; grid-template-columns: 1fr 1fr; height: auto; }
  .panel, .panel.is-open { flex: none; cursor: default; }
  .panel h4 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
  .panel h4 [data-i], .panel-more { width: auto; }
  .panel-more { opacity: 1; visibility: visible; }
  .tech-copy, .contact-side { position: static; }
  .stage { min-height: 0; height: auto; aspect-ratio: 8 / 7; }  /* a little wider than tall: the stage and its toggle share one phone screen */
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .app-grid > :nth-child(4n + 4) { margin-top: 0; }
  .app-grid > :nth-child(2n) { margin-top: clamp(40px, 6vw, 96px); }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

}
@media (max-width: 760px) {
  .hero { height: auto; min-height: max(640px, 100svh); display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--gut) + 134px); }
  .hero-copy { position: relative; bottom: auto; width: 100%; padding-bottom: 24px; }
  /* the text runs up the photo on phones: a longer, deeper shade behind it */
  .hero-shade { background: linear-gradient(180deg, rgba(10, 44, 28, .62) 0%, rgba(10, 44, 28, 0) 18%), linear-gradient(0deg, rgba(10, 44, 28, .94) 0%, rgba(10, 44, 28, .78) 45%, rgba(10, 44, 28, .2) 78%, rgba(10, 44, 28, 0) 90%); }
  .about-grid, .about-shift, .foot-grid { grid-template-columns: 1fr; }
  .shift-ch { padding-bottom: 32px !important; }
  .shift-ap { border-radius: var(--r); }
  .ecosys, .integ-note { grid-template-columns: 1fr; }
  .tech-props { grid-template-columns: 1fr; gap: 14px; }  /* one under the other: three columns are too narrow for the French words */
  /* the 3D stage and its Exploded view toggle share one phone screen */
  .hud { padding: 18px; gap: 12px; }
  .hud .toggle, .hud-tools { margin-top: 8px; }
  .hud-tools { grid-template-columns: 1fr; gap: 8px; }  /* one per row: two side by side squeezed the switch on a 390 px phone */
  .hud .h3 { font-size: 1.5rem; }
  /* each column at least as wide as its longest word ("AeroConcret / e" on an iPhone 8 Plus), the rest shared */
  .tabs { grid-template-columns: minmax(min-content, 1.3fr) minmax(min-content, 1fr) minmax(min-content, 1fr); gap: 4px; }
  .tabs button { font-size: .8rem; padding: 8px 3px; }
  /* narrow stage: smaller headings and the short AirPanel legend, so the tags do not overlap */
  .tag3d.head { font-size: .95rem; }
  .stage-corner { display: none; }  /* the same name is right below the stage; a phone stage needs the room */
  .density { padding: 6px 12px 8px; }
  .density p { display: none; }
  .tag3d:not(.head) { padding: 3px 6px; gap: 4px; font-size: .68rem; }
  .tag3d:not(.head)::before { width: 8px; height: 8px; }
  .tag-long { display: none; }
  .tag-short { display: inline; }
  .app-grid { gap: 10px; align-items: start; }
  /* phones: photo on top, text below in the flow, so the opened description always fits */
  .app { aspect-ratio: auto; }
  /* a definite 4:3 height from the card width (two columns, 10 px gap): iOS 16 Safari ignored aspect-ratio here,
     and percentage heights inside the card button, so the photos had 0 px */
  .app-media { position: relative; inset: auto; display: block; height: calc((100vw - 2 * var(--gut) - 10px) * .375); }
  .app::after { display: none; }
  .app-txt { padding: 12px; }
  .app:hover .app-desc, .app:focus-visible .app-desc, .app[aria-pressed="true"] .app-desc { max-height: 18em; }

  .panels { grid-template-columns: 1fr; }
  .panel h4 { flex-direction: row; align-items: center; gap: 14px; font-size: 1.75rem; }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-info > div { grid-template-columns: 1fr; gap: 4px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
@media (pointer: coarse) {
  .foot a, .foot .linkbtn { padding-block: 12px; margin-block: -12px; min-width: 44px; }  /* 44 px tap area, same layout */
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .ln > span, .hero-side, .hero-tag, .wm span { transform: none; opacity: 1; }

  .loader { display: none; }
}
@media (max-width: 360px) { .tabs button { font-size: .74rem; } }
