/* ScaleNet landing page v9: v8 (after the five-way audit of 7 Nov) with the scroll effects and design patterns
   of Apple's MacBook Pro page, as far as they fit: the words centred over the copper in the hero, centred story
   headers, a chapter title lit by scrolling, the scene growing in as it comes up, media controls in one capsule,
   and a bar that marks where you are. The text never moves; only pictures and light do.
   From v8: one spacing system, copper only where it means copper, a short footer, and the AA fixes.
   One family: San Francisco where the device has it as its system font (Apple devices), Inter everywhere else
   (bundled, OFL). SF Pro itself is never shipped: its licence does not allow hosting it as a web font.
   Colour: a black canvas, graphite tiles, copper as a metal finish on the hero ore and the range band only
   (and as the colour of ore in the drawings), copper-sulfate blue for actions. Dark only.
   No inline styles or scripts (strict CSP). */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-opsz.woff2") format("woff2-variations"), url("fonts/inter-latin-opsz.woff2") format("woff2");
  font-weight: 100 900; 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;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #000000;          /* canvas */
  --tile: #1d1d1f;        /* graphite tiles */
  --tile-2: #2a2a2d;      /* raised parts inside a tile */
  --text: #f5f5f7;
  --text-2: #86868b;      /* 5.8:1 on black, 4.65:1 on graphite */
  --text-3: #a1a1a6;      /* small text: 8.0:1 on black, 6.5:1 on graphite */
  --line: rgba(255, 255, 255, .16);
  --edge: #6e6e73;        /* borders of things you type in: 3.3:1 on graphite, 4.1:1 on black */
  --glass: rgba(0, 0, 0, .78);
  --btn: #0a70c8;         /* copper-sulfate blue: white text 5.0:1 */
  --btn-hover: #0862b0;
  --link: #4db2f0;
  --err: #ff6b6b;         /* 6.1:1 on graphite */
  --cu-1: #f7d3b6; --cu-2: #e39a63; --cu-3: #b8683a;   /* copper metal, light to shadow */
  /* drawing colours, read by main.js */
  --d-glass: #c7c7cc; --d-steel-1: #3a3a3e; --d-steel-2: #1c1c1e; --d-liq-fresh: #0d151c; --d-liq-cu: #1b74b8;
  --d-ore: #f0a46c; --d-spent: #55555a; --d-bubble: #f5f5f7; --d-glow: #e39a63;
  --d-pulp: #18242c; --d-froth: #3a3f44;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Type: eight sizes. Each clamp mixes rem with vw, so it also grows with browser zoom. */
  --fs-hero: clamp(2.75rem, 1.4rem + 5.4vw, 6rem);
  --fs-fig:  clamp(2.5rem, 1.2rem + 4.4vw, 5rem);
  --fs-h2:   clamp(2rem, 1.2rem + 3vw, 3.5rem);
  --fs-h3l:  clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem);
  --fs-h3:   clamp(1.375rem, 1rem + .9vw, 1.75rem);
  --fs-lede: clamp(1.1875rem, 1rem + .4vw, 1.3125rem);
  --fs-body: 1.0625rem; --fs-small: .875rem; --fs-fine: .75rem;

  /* Space: one gap between sections, one gap under a heading. */
  --w: 1080px;
  --gut: clamp(20px, 5vw, 44px);
  --r-tile: 28px;
  --sec: clamp(48px, 6vw, 88px);
  --head-gap: clamp(32px, 4vw, 56px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 68px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--fs-body)/1.47 var(--font); letter-spacing: -0.022em; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul, figure, dl, dd, address { margin: 0; }
address { font-style: normal; }
ol, ul { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
/* Links inside running text are underlined, so they never rely on colour alone. */
main p a, .legal a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }
strong { font-weight: 600; color: var(--text); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--btn); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nowrap { white-space: nowrap; }

.wrap { width: min(var(--w), 100% - 2 * var(--gut)); margin-inline: auto; }
.sec { padding-block: var(--sec); }
.t-center { text-align: center; }

/* ---------- Type ---------- */
.t-section { font: 600 var(--fs-h2)/1.07 var(--font-display); letter-spacing: -0.014em; max-width: 22ch; text-wrap: balance; }
.t-center.t-section { margin-inline: auto; }
.t-tile { font: 600 var(--fs-h3)/1.14 var(--font-display); letter-spacing: -0.009em; }
.t-lede { font: 600 var(--fs-lede)/1.38 var(--font-display); letter-spacing: .004em; color: var(--text-2); max-width: 40em; text-wrap: pretty; }
.sec__lede { margin-top: 16px; }
.lede-narrow { max-width: 34em; margin: 20px auto 0; }

/* ---------- Buttons and the round play/pause control ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 22px; border: 0; border-radius: 980px;
  background: var(--btn); color: #fff; font: 400 var(--fs-body)/1.18 var(--font); letter-spacing: -0.022em;
  cursor: pointer; white-space: nowrap; transition: background-color .2s;
}
.btn:hover { background: var(--btn-hover); text-decoration: none; }
.btn--sm { position: relative; min-height: 32px; padding: 6px 15px; font-size: var(--fs-small); letter-spacing: -0.016em; }
.btn--sm::after { content: ""; position: absolute; inset: -6px -2px; }   /* a 44-px hit area, same look */
.btn--sm[aria-current="page"] { background: var(--tile-2); }

.toggle {
  position: relative; flex: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  background: var(--tile-2); color: var(--text); cursor: pointer;
}
.toggle::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; }   /* 44-px hit area */
.toggle .ico { width: 16px; height: 16px; stroke-width: 2.4; }
.toggle__play { display: none; fill: currentColor; stroke-width: 1.5; }
.toggle[data-state="paused"] .toggle__pause { display: none; }
.toggle[data-state="paused"] .toggle__play { display: block; }

/* ---------- The bar: full width, Apple style, its content on the page column ---------- */
.bar {
  position: fixed; z-index: 40; top: 0; left: 0; right: 0;
  background: var(--glass); border-bottom: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.bar__in { width: min(var(--w), 100% - 2 * var(--gut)); height: 52px; margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.bar__brand { display: block; margin-right: auto; }
.bar__brand img { height: 24px; width: auto; }
.bar__nav { display: flex; gap: 28px; }
.bar__nav a { color: var(--text); opacity: .8; font-size: var(--fs-small); letter-spacing: -0.016em; }
.bar__nav a:hover { opacity: 1; text-decoration: none; }
/* The section on screen is marked with a line along the bar's bottom edge, as on Apple's product bar (main.js). */
.bar__nav a { position: relative; }
.bar__nav a[aria-current] { opacity: 1; }
.bar__nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -16px; height: 1px; background: var(--text); }
@media (max-width: 739px) { .bar__nav { display: none; } }

/* ---------- 1. Hero: the words centred at the top, the copper ore under them (Apple's product hero) ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(92px, 13svh, 136px); text-align: center; }
.hero__in { width: min(var(--w), 100% - 2 * var(--gut)); margin-inline: auto; }
.hero__line { font: 600 var(--fs-lede)/1.25 var(--font-display); letter-spacing: .004em; color: var(--text); text-wrap: balance; }
.hero__h { margin: 8px auto 0; max-width: 15ch; font: 600 clamp(2.75rem, 1.2rem + 5vw, 5.75rem)/1.03 var(--font-display); letter-spacing: -0.028em; text-wrap: balance; }
.hero__sub { margin: 22px auto 0; max-width: 26em; font: 600 var(--fs-h3)/1.28 var(--font-display); letter-spacing: -0.004em; color: var(--text); text-wrap: balance; }
/* The ore stands under the words, where a product would. Its canvas fades out at the top and bottom edges, so
   nothing ends on a hard line as the page scrolls. */
.hero__media { position: relative; height: clamp(170px, min(40svh, 64vw), 440px); margin-top: clamp(4px, 1.5svh, 20px); }
.hero__cu {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 80%, transparent 100%);
}
/* With JavaScript the ore starts hidden and fades in once the words have been seen (main.js adds is-lit). */
.js .hero__cu { opacity: 0; transition: opacity 1.4s cubic-bezier(.25, .1, .25, 1); }
.js .hero.is-lit .hero__cu { opacity: 1; }
/* As the page leaves the hero, the ore rises a little and grows (main.js sets --p from 0 to 1). */
.fx .hero__media { transform: translateY(calc(var(--p, 0) * -56px)) scale(calc(1 + var(--p, 0) * .14)); }

/* ---------- Chapter title: pinned for a moment while a band of light sweeps through it ---------- */
.chapter__pin { display: grid; place-items: center; padding: var(--sec) var(--gut) 0; }
.chapter__word {
  font: 600 clamp(4rem, 1rem + 10.5vw, 11rem)/.98 var(--font-display); letter-spacing: -0.04em;
  text-align: center; color: var(--text); text-wrap: balance;
}
.fx .chapter { height: 175svh; }
.fx .chapter__pin { position: sticky; top: 0; height: 100svh; padding: 0 var(--gut); }
.fx .chapter__word {
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(100deg, #f5f5f7 0%, #f5f5f7 34%, #ffffff 42%, #d2d2d7 47%, #3a3a3c 57%, #3a3a3c 100%);
  background-size: 300% 100%; background-position: calc(100% - var(--p, 0) * 100%) 0;
  transform: scale(calc(.94 + var(--p, 0) * .06));
}
@media (max-width: 739px) { .fx .chapter { height: 150svh; } }

/* ---------- The scene's drawing grows to full size as it comes up the screen ---------- */
.fx .scene__stage { transform: scale(calc(.86 + var(--p, 1) * .14)); opacity: calc(.25 + var(--p, 1) * .75); transform-origin: 50% 0; }

/* ---------- 2. How it works: four steps, each under a rule ---------- */
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 40px); row-gap: 40px;
  margin-top: var(--head-gap);
}
.steps li { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.steps h3 { font: 600 var(--fs-lede)/1.25 var(--font-display); letter-spacing: -0.012em; }
.steps p { color: var(--text-2); line-height: 1.45; }
@media (max-width: 899px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .steps { grid-template-columns: 1fr; row-gap: 28px; } }

/* ---------- 3. The scene: caption, drawing and step buttons on one screen ---------- */
.scene__stage {
  position: relative; margin: clamp(14px, 2vw, 24px) auto 0; aspect-ratio: 1000 / 480;
  width: min(var(--w), 100% - 2 * var(--gut), calc((100svh - 396px) * 2.08)); min-width: min(100% - 2 * var(--gut), 560px);
}
.scene__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 739px) { .scene__stage { width: 100%; min-width: 0; aspect-ratio: 1000 / 700; } }
.no-js .scene__stage { display: none; }
.scene__note { width: min(60ch, 100%); margin: 16px auto 0; text-align: center; color: var(--text-3); font-size: var(--fs-fine); line-height: 1.45; }

.caps { width: min(760px, 100%); margin: 16px auto 0; display: grid; gap: 14px; }
.cap p { font: 600 var(--fs-lede)/1.35 var(--font-display); letter-spacing: .004em; color: var(--text-2); text-wrap: pretty; }
.cap strong { color: var(--text); }
/* With JavaScript the captions share one cell, so the block keeps the height of the longest and never jumps.
   The old caption fades out quickly; the new one fades in a moment later, so they never overlap. */
.js .caps { grid-template-areas: "cap"; text-align: center; }
.js .cap { grid-area: cap; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
.js .cap.is-on { opacity: 1; transform: none; transition-duration: .7s; transition-delay: .25s; transition-timing-function: cubic-bezier(.25, .1, .25, 1); }

/* The controls, as on Apple's galleries: the steps in one capsule, and a round pause button beside it. The
   current step is lit, and its line shows how much of it is left. */
.player { display: none; }
.js .player { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: clamp(14px, 2vw, 22px); }
.player__capsule { min-width: 0; padding: 4px; border-radius: 980px; background: var(--tile); }
.player__steps { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.player__toggle { width: 48px; height: 48px; background: var(--tile); }
.chip {
  position: relative; flex: none; min-height: 40px; padding: 10px 16px 12px; border: 0; border-radius: 980px;
  font: 600 var(--fs-small)/1.1 var(--font); letter-spacing: -0.016em; color: var(--text-2); background: transparent;
  cursor: pointer; transition: color .4s, background-color .4s;
}
.chip::after { content: ""; position: absolute; inset: -2px 0; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { color: var(--text); background: var(--tile-2); }
.chip__bar { position: absolute; left: 16px; right: 16px; bottom: 5px; height: 2px; border-radius: 2px; overflow: hidden; }
.chip[aria-pressed="true"] .chip__bar { background: var(--line); }
.chip__bar span { display: block; height: 100%; background: var(--text); transform-origin: left; transform: scaleX(0); }
/* Phones: the steps in one row that scrolls sideways, with the pause button beside it. */
@media (max-width: 739px) {
  .player__steps {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
    padding-block: 2px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .player__steps::-webkit-scrollbar { display: none; }
  .chip { scroll-snap-align: start; }
}

/* Reduced motion: one still drawing, the captions as a list, no player. */
@media (prefers-reduced-motion: reduce) {
  .js .caps { grid-template-areas: none; text-align: left; }
  .js .cap { grid-area: auto; opacity: 1; transform: none; }
  .js .player { display: none; }
}

/* ---------- Tiles ---------- */
.tile { background: var(--tile); border-radius: var(--r-tile); padding: clamp(28px, 4.4vw, 64px); }
.tile__text { margin-top: 12px; color: var(--text-2); line-height: 1.45; max-width: 34em; }
.tile__fine { margin-top: 18px; color: var(--text-3); font-size: var(--fs-fine); }

/* 4. The worth of a point of recovery */
.tile--worth .t-section { max-width: 18ch; }
.worth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 56px; align-items: end; margin-top: var(--head-gap); }
.worth__in { font: 600 var(--fs-lede)/1.9 var(--font-display); color: var(--text-2); letter-spacing: .004em; }
.calc__in {
  font: inherit; font-variant-numeric: tabular-nums; color: var(--text); background: var(--bg); border: 1px solid var(--text-2); border-radius: 10px;
  padding: 0 10px; margin: 0 2px; height: 1.7em; text-align: center; letter-spacing: 0; cursor: text;
  field-sizing: content; min-width: 3.2em; max-width: 7em;
  transition: border-color .2s, box-shadow .2s, color .9s cubic-bezier(.25, .1, .25, 1), padding .9s cubic-bezier(.25, .1, .25, 1);
}
.calc__in:hover { border-color: var(--text); }
.calc__in:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-color: var(--link); }
/* An example figure drifts up and fades out, takes its new value below, and rises back in (main.js).
   The box keeps its height (border-box), so moving the padding moves only the text. */
.calc__in.is-out { color: transparent; padding-bottom: .45em; transition: border-color .2s, box-shadow .2s, color .6s cubic-bezier(.42, 0, .58, 1), padding .6s cubic-bezier(.42, 0, .58, 1); }
.calc__in.is-below { color: transparent; padding-top: .5em; transition: none; }
.calc__in[aria-invalid="true"] { border-color: var(--err); }
.calc__in--ore, .calc__in--grade { width: 3.2em; } .calc__in--price { width: 5.2em; }
@supports (field-sizing: content) { .calc__in--ore, .calc__in--grade, .calc__in--price { width: auto; } }
.worth__hint { margin-top: 16px; font-size: var(--fs-small); color: var(--text-2); }
.worth__out { display: flex; flex-direction: column; }
.worth__pre, .worth__post { font: 600 var(--fs-lede)/1.3 var(--font-display); color: var(--text-2); }
.worth__post strong { color: var(--text); font-variant-numeric: tabular-nums; }
.worth__big { font: 600 var(--fs-fig)/1.02 var(--font-display); letter-spacing: -0.03em; margin: 6px 0 10px; color: var(--text); }
/* The result's gentle change in the example tour (calc.js): the old figure fades up and softens away, the new
   one rises in from just below and sharpens. */
.calc__out { display: inline-block; transition: opacity .9s cubic-bezier(.25, .1, .25, 1), transform .9s cubic-bezier(.25, .1, .25, 1), filter .9s cubic-bezier(.25, .1, .25, 1); }
.calc__out.is-out { opacity: 0; transform: translateY(-.14em); filter: blur(5px); transition-duration: .55s; transition-timing-function: cubic-bezier(.42, 0, 1, 1); }
.calc__out.is-below { opacity: 0; transform: translateY(.14em); filter: blur(5px); transition: none; }
.worth__note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-3); font-size: var(--fs-small); max-width: 60em; }
.worth__note.is-error #calc-note { color: var(--err); font-weight: 600; }
.worth__note.is-error .worth__note-rest { display: none; }
@media (max-width: 959px) { .worth { grid-template-columns: 1fr; } }

/* 5. The report: one wide tile with the range picture, and two small tiles under it */
.report { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: var(--head-gap); }
.tile--range { grid-column: 1 / -1; }
.tile--small { display: flex; flex-direction: column; }
.flags { display: grid; gap: 8px; margin-top: 10px; font: 600 var(--fs-lede)/1.3 var(--font-display); letter-spacing: -0.012em; }
.flags li { display: flex; gap: 12px; align-items: baseline; }
.flags li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; transform: translateY(-3px); background: var(--text-2); }
.tile__say { margin-top: 14px; font: 600 var(--fs-lede)/1.3 var(--font-display); letter-spacing: -0.012em; color: var(--text); max-width: 22em; }
.report__more { margin-top: 28px; color: var(--text-2); font: 600 var(--fs-lede)/1.38 var(--font-display); }

/* The range: the lab result as a dot, and the estimated full-size range as a copper interval below it.
   Positions are shares of the track; no real figures. On entry the band slides out of the lab dot, once. */
.range { position: relative; margin-top: var(--head-gap); padding: 34px 0 40px; --band-l: 34%; --band-w: 30%; --lab: 82%; --band-shift: 60%; }
.range__axis { position: absolute; right: 0; bottom: 0; font-size: var(--fs-small); font-weight: 600; color: var(--text-2); letter-spacing: -0.01em; }
.range__track { position: relative; height: 48px; }
.range__track::before { content: ""; position: absolute; left: 0; right: 6px; top: 50%; height: 2px; margin-top: -1px; background: rgba(255, 255, 255, .4); }
.range__track::after {
  content: ""; position: absolute; right: 1px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-top: 2px solid rgba(255, 255, 255, .4); border-right: 2px solid rgba(255, 255, 255, .4); transform: rotate(45deg);
}
/* An interval: a bar with an end mark at each end */
.range__band {
  position: absolute; z-index: 1; top: 50%; height: 14px; margin-top: -7px; left: var(--band-l); width: var(--band-w); border-radius: 7px;
  background: linear-gradient(180deg, var(--cu-1) 0%, var(--cu-2) 55%, var(--cu-3) 100%);
  box-shadow: 0 10px 34px -10px color-mix(in srgb, var(--cu-2) 60%, transparent);
  transform-origin: 100% 50%;
}
.range__band::before, .range__band::after { content: ""; position: absolute; top: -10px; bottom: -10px; width: 3px; border-radius: 2px; background: var(--cu-2); }
.range__band::before { left: 0; } .range__band::after { right: 0; }
.range__lab {
  position: absolute; z-index: 2; top: 50%; left: var(--lab); width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  background: var(--text); box-shadow: 0 0 0 6px color-mix(in srgb, var(--text) 12%, transparent);
}
.range__lab-txt, .range__est-txt { position: absolute; font-size: .9375rem; font-weight: 600; letter-spacing: -0.012em; white-space: nowrap; color: var(--text); }
.range__lab-txt { top: 0; left: var(--lab); transform: translateX(-50%); }
.range__est-txt { bottom: 0; left: calc(var(--band-l) + var(--band-w) / 2); transform: translateX(-50%); }
/* Before it is seen: the lab dot alone; the band is a sliver at the dot. (Only with JavaScript.) */
.js .range__band { transition: transform 1.3s cubic-bezier(.22, 1, .36, 1) .5s, opacity .4s ease .5s; }
.js .range__lab { transition: opacity .5s ease, transform .5s ease; }
.js .range:not(.is-in) .range__band { opacity: 0; transform: translateX(var(--band-shift)) scaleX(.04); }
.js .range:not(.is-in) .range__lab { opacity: 0; transform: scale(.6); }
/* band-shift = (lab - band-l - band-w) / band-w: it puts the band's right edge on the lab dot. */
@media (max-width: 639px) {
  .range { --band-l: 16%; --band-w: 42%; --lab: 84%; --band-shift: 61.9%; }
  .range__axis { right: auto; bottom: auto; left: 0; top: 0; }
  .range__lab-txt, .range__est-txt { font-size: var(--fs-small); }
  .range__est-txt { left: 0; transform: none; }
  .report { grid-template-columns: 1fr; }
}

/* 6. The technology: two tiles of equal height; the name, its process, one line, its status, then the drawing */
.engines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: var(--head-gap); }
.tile--engine { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
.engine__copy { flex: 1; }
.engine__name { font: 600 var(--fs-h3l)/1.1 var(--font-display); letter-spacing: -0.012em; }
.engine__kind { margin-top: 6px; font: 600 var(--fs-lede)/1.3 var(--font-display); color: var(--text); }
.engine__text { margin-top: 12px; color: var(--text-2); line-height: 1.45; max-width: 30em; }
.engine__status { margin-top: 10px; color: var(--text-3); font-size: var(--fs-small); }
.engine__fig { position: relative; aspect-ratio: 2 / 1; margin: clamp(20px, 2.4vw, 32px) calc(-1 * clamp(28px, 4.4vw, 64px)) 0; }
.engine__canvas { width: 100%; height: 100%; }
.fig__toggle { display: none; position: absolute; right: 14px; bottom: 14px; background: rgba(42, 42, 45, .86); }
.js .fig__toggle { display: grid; }
.no-js .engine__fig { display: none; }
@media (max-width: 799px) { .engines { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .js .fig__toggle { display: none; } }

/* 7. Questions */
.faq { max-width: 820px; margin-top: var(--head-gap); border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font: 600 var(--fs-lede)/1.3 var(--font-display); letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 14px; height: 14px; transition: transform .3s ease;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.8px no-repeat, linear-gradient(currentColor, currentColor) center / 1.8px 14px no-repeat;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 48px 24px 0; color: var(--text-2); max-width: 44em; }
/* Answers open smoothly where the browser can animate to auto height. */
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    .faq { interpolate-size: allow-keywords; }
    .faq__item::details-content { height: 0; overflow: clip; transition: height .35s cubic-bezier(.25, .1, .25, 1), content-visibility .35s allow-discrete; }
    .faq__item[open]::details-content { height: auto; }
  }
}

/* 8. Closing: the invitation centred, the form in one tile under it */
.tile--form { width: min(720px, 100%); margin: var(--head-gap) auto 0; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: var(--fs-small); font-weight: 600; letter-spacing: -0.016em; }
.field__opt { font-weight: 400; color: var(--text-2); }
.field__eg { color: var(--text-2); font-size: var(--fs-small); }
.form input, .form textarea {
  width: 100%; font: 400 var(--fs-body)/1.35 var(--font); letter-spacing: -0.022em; color: var(--text);
  background: var(--bg); border: 1px solid var(--edge); border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
.form textarea { resize: vertical; min-height: 104px; }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-color: var(--link); }
.form ::placeholder { color: var(--text-2); opacity: 1; }
/* The spam check arrives when the form comes near the screen; its space is kept so nothing jumps. */
.cf-turnstile { min-height: 65px; }
.form__send { justify-self: stretch; min-height: 50px; }
.form__note { font-size: var(--fs-fine); color: var(--text-3); letter-spacing: -0.01em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 479px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer: who we are, how to reach us, the legal lines. The same on every page. ---------- */
.foot { border-top: 1px solid rgba(255, 255, 255, .1); color: var(--text-3); font-size: var(--fs-small); line-height: 1.45; letter-spacing: -0.01em; padding: 40px 0 32px; }
.foot__in { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; }
.foot__id strong { color: var(--text); }
.foot ul { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.foot__nav a { color: var(--text); }
.foot__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--fs-fine); }
.foot__who { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.foot__legal a { color: var(--text-3); }
.foot a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 739px) {
  .foot__in { grid-template-columns: 1fr; gap: 16px; }
  .foot__nav ul { flex-direction: column; gap: 0; }
  .foot__nav a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); }
  .foot__legal { flex-direction: column; align-items: flex-start; padding-top: 4px; border-top: 0; }
  .foot__who { flex-direction: column; }
  .foot__legal a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .range__band, .js .range__lab, .js .hero__cu, .faq__item summary::after, .calc__in, .calc__out { transition: none; }
}

@media print {
  .bar, .hero__cu, .scene__stage, .player, .engine__fig, .form, .foot__nav { display: none; }
  .js .cap { opacity: 1; transform: none; grid-area: auto; }
  .js .caps { grid-template-areas: none; text-align: left; }
  .js .range__band, .js .range__lab { opacity: 1; transform: none; }
}
