/* IB Partnerships: site stylesheet. One file, no build step.
   The page is a dark desk; anything that is a document (terms, the application) is a sheet of paper on it. */

:root {
  --bg: #050b15;
  --bg-2: #08111e;
  --panel: #0c1829;
  --line: rgba(244, 241, 234, 0.09);
  --line-2: rgba(244, 241, 234, 0.17);
  --t1: #f4f1ea;
  --t2: rgba(244, 241, 234, 0.72);
  --t3: rgba(244, 241, 234, 0.48);

  --brass: #c8a467;
  --brass-hi: #ecd7a8;
  --brass-lo: #8d6b36;
  --brass-grad: linear-gradient(135deg, #f0dcae 0%, #c8a467 42%, #9a7740 100%);
  --blue: 61, 116, 214;

  --paper: #f7f4ed;
  --paper-2: #ece6d8;
  --paper-line: #d9d1bf;
  --ink: #0e1a2b;
  --ink-2: #5a6475;
  --brass-ink: #7a5a2b;
  --bad: #a02c2c;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --hdr: 76px;
  --r: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr) + 20px);
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--t1);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
fieldset { border: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }
::selection { background: rgba(200, 164, 103, 0.35); }

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

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: #fff; color: #000; padding: 10px 14px; }
.skip:focus { left: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── small parts ─────────────────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 8px;
  border: 1px solid rgba(200, 164, 103, 0.3);
  border-radius: 999px;
  background: rgba(200, 164, 103, 0.07);
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-hi);
  white-space: nowrap;
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px rgba(200, 164, 103, 0.2); }
.eyebrow b { font-weight: 500; color: var(--t3); }

h1 em, h2 em {
  font-style: italic;
  background: var(--brass-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 0.06em 0.1em 0;
  margin-right: -0.06em;
}

h2 { font: 400 clamp(34px, 4.5vw, 64px) / 1.04 var(--serif); letter-spacing: -0.024em; text-wrap: balance; }
.head { max-width: 860px; margin-bottom: clamp(40px, 5vw, 68px); }
.head h2 { margin-top: 24px; }
.head--c { margin-inline: auto; text-align: center; }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--t2); max-width: 60ch; margin-top: 22px; text-wrap: pretty; }
.head--c .lede { margin-inline: auto; text-wrap: balance; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 500 15.5px/1 var(--sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), filter 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn .arr { font-style: normal; transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-brass { background: var(--brass-grad); color: #0b1422; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 14px 34px -12px rgba(200, 164, 103, 0.6); }
.btn-brass:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 20px 40px -12px rgba(200, 164, 103, 0.7); }
.btn-ghost { border-color: var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--t1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(244, 241, 234, 0.4); background: rgba(255, 255, 255, 0.07); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #17283f; transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14.5px; border-radius: 9px; }
.btn-wide { width: 100%; }

.link { display: inline-flex; align-items: center; gap: 8px; padding: 0 0 3px; border: 0; border-bottom: 1px solid currentColor; background: none; font: 500 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.link .arr { transition: transform 0.3s var(--ease); }
.link:hover .arr { transform: translateX(-4px); }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 6px; border-radius: 999px; border: 1px solid rgba(200, 164, 103, 0.35); background: rgba(200, 164, 103, 0.09); font: 500 11.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-hi); white-space: nowrap; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--brass-hi); animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 0%, 100% { box-shadow: 0 0 0 0 rgba(236, 215, 168, 0.5); } 50% { box-shadow: 0 0 0 6px rgba(236, 215, 168, 0); } }

/* a pane of glass on the desk */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 40px 80px -40px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  transition: border-color 0.35s, transform 0.5s var(--ease);
}
.card::before {
  /* a light that follows the pointer (site.js sets --mx and --my) */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, -30%), rgba(200, 164, 103, 0.17), transparent 62%);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}
.card:hover { border-color: rgba(200, 164, 103, 0.34); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }

.itile { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; border: 1px solid rgba(200, 164, 103, 0.34); background: linear-gradient(160deg, rgba(200, 164, 103, 0.2), rgba(200, 164, 103, 0.03)); color: var(--brass-hi); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.itile .ic { width: 26px; height: 26px; }

/* ── risk line and header ────────────────────────────────────────────────── */

.risk { position: relative; z-index: 51; background: #03070e; color: var(--t3); font: 400 12px/1.5 var(--sans); text-align: center; padding: 8px var(--gutter); }
.risk b { font-weight: 500; color: var(--t2); }

.hdr { position: sticky; top: 0; z-index: 50; height: var(--hdr); border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s; }
/* The frosted glass of the header once the page has moved is a layer of its own behind what the
   header holds, not the header itself. An element with a backdrop filter becomes the box its fixed
   children are measured against: the menu, which fills the screen below the header on a phone,
   was squeezed into the header's own 66 pixels as soon as the page had been scrolled, and showed
   nothing while the page stood locked behind it. */
.hdr::before { content: ""; position: absolute; inset: 0 0 -1px; z-index: -1; pointer-events: none; opacity: 0; background: rgba(5, 11, 21, 0.82); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); transition: opacity 0.3s; }
.hdr.is-stuck { border-bottom-color: var(--line); }
.hdr.is-stuck::before { opacity: 1; }
.hdr .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; color: inherit; flex: none; }
.brand svg { width: 38px; height: 38px; }
.brand-t { display: flex; flex-direction: column; gap: 4px; }
.brand-t b { font: 500 22px/1 var(--serif); letter-spacing: -0.012em; white-space: nowrap; }
.brand-t b span { font-style: italic; background: var(--brass-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.05em; }
.brand-t small { font: 400 9.5px/1 var(--mono); letter-spacing: 0.26em; text-transform: uppercase; color: var(--t3); }

.nav { display: flex; gap: clamp(14px, 2vw, 32px); margin-left: auto; }
.nav a { position: relative; padding: 8px 0; font: 500 14.5px/1 var(--sans); color: var(--t2); text-decoration: none; transition: color 0.2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav a:hover { color: var(--t1); }
.nav a:hover::after { transform: scaleX(1); }
.menu-b { display: none; margin-left: auto; height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 9px; background: rgba(255, 255, 255, 0.04); font: 500 14.5px/1 var(--sans); cursor: pointer; }

/* ── hero ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--hdr));
  padding-top: var(--hdr);
  --hero-h: clamp(580px, calc(100svh - 240px), 720px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1px 1px at 12% 22%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 31% 71%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 14%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 58% 82%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1px 1px at 7% 58%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1px 1px at 24% 44%, rgba(255, 255, 255, 0.3), transparent 60%),
    radial-gradient(62% 72% at 80% 42%, rgba(var(--blue), 0.3), transparent 70%),
    radial-gradient(36% 44% at 88% 62%, rgba(200, 164, 103, 0.16), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(var(--blue), 0.12), transparent 70%),
    linear-gradient(180deg, #040912 0%, #050b15 55%, #07111f 100%);
}
.hero::after {
  /* fine grid, fading out towards the globe */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(70% 80% at 18% 40%, #000 0%, transparent 72%);
  mask-image: radial-gradient(70% 80% at 18% 40%, #000 0%, transparent 72%);
  opacity: 0.55;
}

.hero-main { position: relative; display: flex; align-items: center; min-height: var(--hero-h); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; max-width: 670px; padding: 30px 0 36px; pointer-events: auto; }
.hero h1 { font: 400 clamp(42px, 5.25vw, 78px) / 1.02 var(--serif); letter-spacing: -0.026em; margin-top: 26px; text-wrap: balance; }
.hero-sub { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.58; color: var(--t2); max-width: 56ch; margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.assure { display: flex; flex-wrap: wrap; margin-top: 34px; border-top: 1px solid var(--line); }
.assure li { display: flex; align-items: center; gap: 10px; padding: 18px 18px 0 0; margin-right: 18px; border-right: 1px solid var(--line); }
.assure li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.assure .ic { width: 22px; height: 22px; color: var(--brass); }
.assure b { display: block; font: 500 15px/1.25 var(--sans); white-space: nowrap; }
.assure span { display: block; font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.06em; white-space: nowrap; text-transform: uppercase; color: var(--t3); margin-top: 4px; }

.globe { position: absolute; z-index: 0; top: calc(var(--hdr) + var(--hero-h) / 2); right: clamp(-250px, -9vw, -60px); width: clamp(560px, 58vw, 880px); aspect-ratio: 1; transform: translateY(-50%); }
.globe::before {
  /* the body of the globe: stays when WebGL is not there */
  content: "";
  position: absolute;
  inset: 7.5%;
  border-radius: 50%;
  border: 1px solid rgba(244, 241, 234, 0.09);
  background: radial-gradient(circle at 32% 28%, rgba(74, 122, 196, 0.36), rgba(20, 40, 72, 0.18) 46%, rgba(5, 11, 21, 0) 72%);
  box-shadow: 0 0 140px rgba(var(--blue), 0.2), inset 0 0 80px rgba(var(--blue), 0.16), inset -30px -40px 90px rgba(0, 0, 0, 0.45);
}
.globe::after { content: ""; position: absolute; inset: 1.5%; border-radius: 50%; border: 1px dashed rgba(244, 241, 234, 0.08); animation: turn 120s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; opacity: 0; transition: opacity 1.4s var(--ease); }
.globe.is-ready canvas { opacity: 1; }
.globe canvas.is-grab { cursor: grabbing; }
.globe.no-gl canvas, .globe.no-gl .globe-labels { display: none; }
.globe-labels { position: absolute; inset: 0; pointer-events: none; }
.glabel { position: absolute; left: 0; top: 0; font: 500 10px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244, 241, 234, 0.88); white-space: nowrap; opacity: 0; will-change: transform, opacity; text-shadow: 0 1px 8px rgba(5, 11, 21, 0.95); }

/* two panes floating in front of the globe; site.js moves them a little with the pointer */
.float {
  position: absolute;
  z-index: 3;
  padding: 16px 18px 15px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(9, 19, 34, 0.66);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 34px 70px -24px rgba(0, 0, 0, 0.75);
  pointer-events: none;
  transform: translate3d(calc(var(--px, 0) * var(--d, 12px)), calc(var(--py, 0) * var(--d, 12px)), 0);
  transition: transform 0.6s var(--ease);
  animation: bob 8s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.float-k { font: 500 10.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--t3); }
.float--a { top: calc(var(--hdr) + 54px); right: clamp(28px, 5vw, 96px); --d: 18px; width: 208px; }
.float--b { top: calc(var(--hdr) + var(--hero-h) - 196px); right: clamp(250px, 23.5vw, 420px); --d: -14px; width: 262px; animation-delay: -3s; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; margin: 14px 0 12px; }
.bars i { flex: 1; border-radius: 3px 3px 1px 1px; background: var(--brass-grad); opacity: 0.9; transform-origin: bottom; animation: grow 1.4s var(--ease) both; }
.bars i:nth-child(1) { height: 26%; animation-delay: 0.5s; }
.bars i:nth-child(2) { height: 40%; animation-delay: 0.6s; }
.bars i:nth-child(3) { height: 54%; animation-delay: 0.7s; }
.bars i:nth-child(4) { height: 68%; animation-delay: 0.8s; }
.bars i:nth-child(5) { height: 84%; animation-delay: 0.9s; }
.bars i:nth-child(6) { height: 100%; animation-delay: 1s; }
@keyframes grow { from { transform: scaleY(0); } }
.float-v { display: flex; justify-content: space-between; align-items: baseline; font: 500 19px/1 var(--serif); }
.float-v small { font: 400 10.5px/1 var(--mono); letter-spacing: 0.1em; color: var(--t3); text-transform: uppercase; }
.float ul { margin-top: 12px; }
.float li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--t2); }
.float li b { font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-hi); }

.hero-band { position: relative; z-index: 4; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(5, 11, 21, 0.5), rgba(5, 11, 21, 0.92)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.figs { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); }
.figs > div { padding: 26px 24px 30px; border-left: 1px solid var(--line); }
.figs > div:first-child { border-left: 0; padding-left: 0; }
.figs-k { font: 400 11px/1.5 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--t3); }
.figs-name { font: 500 22px/1.2 var(--serif); margin-top: 8px; }
.fig-n { font: 400 clamp(34px, 3.5vw, 50px) / 1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.fig-n sup { font-size: 0.5em; vertical-align: 0.72em; margin-left: 2px; background: var(--brass-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fig-l { font: 400 11px/1.45 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--t3); margin-top: 12px; }

/* what the programme comes with, passing by */
.ticker { position: relative; overflow: hidden; padding: 24px 0 22px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.012); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker-in { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker-set { display: flex; align-items: center; flex: none; }
.ticker span { padding: 0 30px; font: italic 400 clamp(21px, 2.3vw, 31px) / 1 var(--serif); color: var(--t3); white-space: nowrap; }
.ticker i { flex: none; width: 7px; height: 7px; transform: rotate(45deg); background: var(--brass); opacity: 0.75; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ── sections ────────────────────────────────────────────────────────────── */

.sec { position: relative; isolation: isolate; overflow: clip; padding: clamp(84px, 10vw, 150px) 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(60% 55% at var(--gx, 50%) 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(60% 55% at var(--gx, 50%) 0%, #000 0%, transparent 78%);
  opacity: 0.5;
}
.sec::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -340px;
  left: var(--gx, 50%);
  width: 1000px;
  height: 900px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--glow, var(--blue)), 0.2), transparent);
  pointer-events: none;
}
.sec--tint { background: linear-gradient(180deg, var(--bg-2), var(--bg) 70%); }
.sec--brass { --glow: 200, 164, 103; }

/* programmes */
.progs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1400px; }
.prog { display: flex; flex-direction: column; padding: 34px 32px 32px; transform-style: preserve-3d; }
.prog::after { content: ""; position: absolute; left: 32px; right: 32px; top: 0; height: 2px; background: var(--brass-grad); transform: scaleX(0.16); transform-origin: left; transition: transform 0.6s var(--ease); }
.prog:hover::after { transform: scaleX(1); }
.prog-top { display: flex; justify-content: space-between; align-items: flex-start; }
.prog-l { font: 400 92px/0.74 var(--serif); letter-spacing: -0.04em; color: rgba(244, 241, 234, 0.06); user-select: none; }
.prog-k { font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--t3); margin-top: 26px; }
.prog h3 { font: 400 clamp(28px, 2.5vw, 34px) / 1.1 var(--serif); letter-spacing: -0.016em; margin-top: 12px; }
.prog-for { font-size: 15.5px; line-height: 1.55; color: var(--t2); margin-top: 12px; min-height: 4.7em; }
.ticks { margin-top: 22px; border-top: 1px solid var(--line); }
.ticks li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; }
.ticks .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--brass); stroke-width: 1.8; }
.prog-pay { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding: 26px 0 22px; }
.prog-pay span { font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--t3); }

/* which programme fits */
.fit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: 22px; }
.fit-list { padding: 34px 30px 30px 34px; border-right: 1px solid var(--line); }
.fit-list h3 { font: 400 28px/1.15 var(--serif); letter-spacing: -0.014em; }
.fit-list > p { font-size: 15px; color: var(--t2); margin: 8px 0 18px; }
.fit-opt { display: flex; align-items: center; gap: 14px; width: calc(100% + 14px); margin-left: -14px; padding: 12px 14px; border: 1px solid transparent; border-radius: 11px; background: none; text-align: left; font-size: 16px; line-height: 1.3; color: var(--t2); cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.fit-opt .ic { width: 20px; height: 20px; color: var(--t3); transition: color 0.2s; }
.fit-opt:hover { background: rgba(255, 255, 255, 0.045); color: var(--t1); }
.fit-opt[aria-pressed="true"] { background: linear-gradient(90deg, rgba(200, 164, 103, 0.2), rgba(200, 164, 103, 0.05)); border-color: rgba(200, 164, 103, 0.38); color: var(--t1); }
.fit-opt[aria-pressed="true"] .ic { color: var(--brass-hi); }
.fit-out { display: flex; flex-direction: column; padding: 36px 38px 34px; background: radial-gradient(120% 90% at 100% 0%, rgba(200, 164, 103, 0.1), transparent 60%); }
.fit-k { font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.fit-name { font: 400 clamp(32px, 3.3vw, 46px) / 1.06 var(--serif); letter-spacing: -0.02em; margin-top: 14px; }
.fit-note { color: var(--t2); font-size: 16px; margin-top: 14px; max-width: 56ch; }
.facts { margin-top: 24px; border-top: 1px solid var(--line-2); }
.facts div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 11px/1.7 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--t3); }
.facts dd { font-size: 16px; }
.fit-out .btn { margin-top: 28px; align-self: flex-start; }
.fit-out.is-swap > * { animation: swap 0.5s var(--ease) both; }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }

/* commission: the terms as a sheet of paper, the network beside it */
.terms { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 26px; align-items: stretch; }
.sheet-wrap { position: relative; isolation: isolate; display: flex; }
.sheet { position: relative; flex: 1; padding: 34px 38px 30px; border-radius: 6px; background: linear-gradient(180deg, #fbf9f4, #f1ece0); color: var(--ink); box-shadow: 0 60px 100px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.4) inset; }
.sheet::before, .sheet::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 6px; background: #ddd5c3; }
.sheet::before { transform: rotate(-1.5deg) translate(-7px, 9px); opacity: 0.5; }
.sheet::after { transform: rotate(1.2deg) translate(9px, 12px); opacity: 0.28; }
.sheet-h { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.sheet-h span:last-child { color: var(--brass-ink); }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { padding: 16px 16px 12px 0; border-bottom: 1px solid var(--paper-line); font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); text-align: left; }
.tbl td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--paper-line); vertical-align: top; font-size: 15.5px; line-height: 1.45; }
.tbl td:first-child { font: 500 21px/1.2 var(--serif); letter-spacing: -0.01em; }
.tbl td:last-child, .tbl th:last-child { padding-right: 0; text-align: right; }
.tbl small { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.stamp { display: inline-block; padding: 6px 9px 5px; border: 1px solid var(--brass-ink); border-radius: 3px; font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-ink); white-space: nowrap; }
.sheet-note { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); margin-top: 18px; }

.net { display: flex; flex-direction: column; min-height: 480px; }
.net-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 26px 28px 0; }
.net-h h3 { font: 400 24px/1.15 var(--serif); letter-spacing: -0.012em; max-width: 14ch; }
.net-stage { position: relative; flex: 1; min-height: 300px; }
.net-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.net-stage svg { position: absolute; inset: 8% 6%; width: 88%; height: 84%; opacity: 0.9; }
.net.is-ready .net-stage svg { display: none; }
.net-cap { padding: 0 28px 26px; font-size: 14.5px; line-height: 1.55; color: var(--t2); }

.rhythm { margin-top: 26px; padding: 30px 34px 26px; }
.rhythm-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.rhythm-h h3 { font: 400 24px/1.15 var(--serif); letter-spacing: -0.012em; }
.rhythm-h span { font: 400 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--t3); }
.rh-row { display: grid; grid-template-columns: 190px 1fr 96px; align-items: center; gap: 22px; padding: 15px 0; border-top: 1px solid var(--line); }
.rh-row b { font: 500 15.5px/1.2 var(--sans); }
.rh-row > span { justify-self: end; }
.rh-cells { display: grid; grid-template-columns: repeat(30, 1fr); gap: 4px; }
.rh-cells i { aspect-ratio: 1; border-radius: 3px; background: rgba(244, 241, 234, 0.07); }
.rh-cells i.on { background: var(--brass-grad); box-shadow: 0 0 14px rgba(200, 164, 103, 0.5); }

/* reporting */
.report { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.report .head { margin-bottom: 0; }
.dash { margin-top: 36px; }
.dash li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.dash li:last-child { border-bottom: 1px solid var(--line); }
.dash .itile { width: 46px; height: 46px; border-radius: 12px; }
.dash .itile .ic { width: 22px; height: 22px; }
.dash b { display: block; font: 500 17px/1.3 var(--sans); }
.dash span { display: block; font-size: 15px; color: var(--t2); margin-top: 1px; }

.devices { position: relative; height: 640px; perspective: 1700px; }
.devices::before { content: ""; position: absolute; inset: 6% 2% 2%; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(70% 60% at 50% 40%, rgba(200, 164, 103, 0.26), rgba(200, 164, 103, 0) 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent); }
.device { position: absolute; width: min(46%, 276px); border: 8px solid #0d1727; border-radius: 40px; background: #0d1727; overflow: hidden; box-shadow: 0 0 0 1px rgba(244, 241, 234, 0.16), 0 50px 80px -24px rgba(0, 0, 0, 0.85); transition: transform 0.8s var(--ease); will-change: transform; }
.device img { width: 100%; height: auto; border-radius: 32px; }
.device--a { left: 8%; top: 18px; transform: rotateY(17deg) rotateX(4deg) rotateZ(-2deg); }
.device--b { right: 8%; top: 82px; transform: rotateY(-14deg) rotateX(4deg) rotateZ(2deg); }
.devices:hover .device--a { transform: rotateY(8deg) rotateX(2deg) rotateZ(-1deg) translateY(-8px); }
.devices:hover .device--b { transform: rotateY(-6deg) rotateX(2deg) rotateZ(1deg) translateY(-8px); }
.note-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 11px 15px 11px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(9, 19, 34, 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.8); font: 500 13.5px/1.2 var(--sans); white-space: nowrap; animation: bob 7s ease-in-out infinite; }
.note-chip .ic { width: 18px; height: 18px; color: var(--brass-hi); }
.note-chip small { display: block; font: 400 10px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--t3); margin-top: 4px; }
.note-chip--1 { left: -2%; top: 46%; }
.note-chip--2 { right: -3%; top: 8%; animation-delay: -2.4s; }
.note-chip--3 { right: 4%; bottom: 6%; animation-delay: -4.6s; }
.devices-cap { position: absolute; left: 2%; bottom: -14px; font: 400 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--t3); }

/* process */
.flow { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.flow::before, .flow::after { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 1px; }
.flow::before { background: var(--line-2); }
.flow::after { background: var(--brass-grad); transform-origin: left; box-shadow: 0 0 14px rgba(200, 164, 103, 0.6); }
.fstep { position: relative; padding-top: 82px; }
.fstep-n { position: absolute; z-index: 1; top: 0; left: 0; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(200, 164, 103, 0.55); background: radial-gradient(circle at 30% 25%, #17283f, #08111e); color: var(--brass-hi); box-shadow: 0 0 0 7px var(--bg), 0 0 28px rgba(200, 164, 103, 0.22); }
.fstep-k { font: 500 11px/1 var(--mono); letter-spacing: 0.16em; color: var(--t3); }
.fstep h3 { font: 400 25px/1.15 var(--serif); letter-spacing: -0.012em; margin-top: 12px; }
.fstep p { font-size: 15px; line-height: 1.55; color: var(--t2); margin-top: 10px; max-width: 26ch; }

/* the broker */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { padding: 30px 30px 28px; }
.tile h3 { font: 400 25px/1.15 var(--serif); letter-spacing: -0.012em; margin-top: 22px; }
.tile p { font-size: 15.5px; line-height: 1.55; color: var(--t2); margin-top: 10px; }
.disclose { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; margin-top: 20px; padding: 28px 32px; border-color: rgba(200, 164, 103, 0.34); background: linear-gradient(90deg, rgba(200, 164, 103, 0.14), rgba(200, 164, 103, 0.02) 70%); }
.disclose h3 { font: 400 clamp(22px, 2.1vw, 28px) / 1.2 var(--serif); letter-spacing: -0.012em; }
.disclose p { font-size: 15px; color: var(--t2); margin-top: 6px; max-width: 70ch; }

/* questions */
.qa { display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.qa .head { margin-bottom: 0; position: sticky; top: calc(var(--hdr) + 32px); }
.qa-card { margin-top: 34px; padding: 26px 28px; }
.qa-card p { font-size: 15.5px; color: var(--t2); margin-bottom: 18px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; list-style: none; cursor: pointer; font: 400 clamp(20px, 1.75vw, 24px) / 1.3 var(--serif); letter-spacing: -0.01em; transition: color 0.2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brass-hi); }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 50%; font: 400 18px/1 var(--mono); color: var(--brass-hi); transition: transform 0.35s var(--ease), background 0.2s; }
.faq details[open] summary::after { content: "\2212"; background: rgba(200, 164, 103, 0.14); transform: rotate(180deg); }
.faq details p { padding: 0 60px 26px 0; max-width: 74ch; color: var(--t2); }

/* application */
.apply { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.apply .head { margin-bottom: 0; }
.next { margin-top: 38px; }
.next li { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.5; color: var(--t2); }
.next li:last-child { border-bottom: 1px solid var(--line); }
.next i { font: 500 11px/1 var(--mono); font-style: normal; letter-spacing: 0.1em; color: var(--brass); }

.form-wrap { position: relative; isolation: isolate; }
.form { position: relative; padding: clamp(24px, 3.4vw, 46px); border-radius: 8px; background: linear-gradient(180deg, #fbf9f4, #f3eee3); color: var(--ink); box-shadow: 0 70px 120px -50px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.4) inset; }
.form::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 8px; background: #ddd5c3; transform: rotate(1.1deg) translate(9px, 12px); opacity: 0.3; }
.form-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; white-space: nowrap; font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.form-bar { position: relative; height: 2px; margin-top: 14px; background: var(--paper-line); }
.form-bar i { position: absolute; inset: 0 auto 0 0; width: 25%; background: var(--brass-ink); transition: width 0.5s var(--ease); }
.form legend { float: left; width: 100%; padding: 0; margin-top: 30px; font: 400 clamp(26px, 2.4vw, 32px) / 1.12 var(--serif); letter-spacing: -0.016em; }
.form legend + * { clear: both; }
.hint { color: var(--ink-2); font-size: 15px; margin: 0 0 20px; padding-top: 8px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { position: relative; display: block; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt span { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 11px 14px; border: 1px solid var(--paper-line); border-radius: 8px; background: #fffdf9; font-size: 15.5px; line-height: 1.3; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.opt span::before { content: ""; flex: none; width: 16px; height: 16px; border: 1px solid #8a93a1; border-radius: 50%; background: #fff; }
.opt--check span::before { border-radius: 3px; }
.opt:hover span { border-color: #a9a290; }
.opt input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt input:checked + span::before { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 3px #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.opts--row { grid-template-columns: repeat(4, 1fr); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.grid1 { display: block; }
/* Rows of two and three fields go by the width of the form, not of the screen. Beside the text, on
   a tablet held sideways or a small laptop, the form is narrower than on many phones (364 pixels at
   a screen of 861), and three fields across left 112 pixels for an email address. Under 500 pixels
   of form a row of three stands one under the other, which is what the rule for phones further
   down has always meant; from there up the layout is as it was drawn. The form itself is the
   measure, not the card around it: a measure makes a layer of its own, and the tilted sheet behind
   the card has to stay behind the card. */
form[data-apply-form] { container: ibpform / inline-size; }
@container ibpform (max-width: 500px) { .grid3 { grid-template-columns: 1fr; } }
@container ibpform (max-width: 380px) { .grid2 { grid-template-columns: 1fr; } }
.reach { margin-top: 24px; padding: 18px 18px 20px; border: 1px solid var(--paper-line); border-radius: 10px; background: rgba(14, 26, 43, 0.035); transition: border-color 0.2s, box-shadow 0.2s; }
.reach.is-bad { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(160, 44, 44, 0.12); }
.reach-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.reach-h b { font: 500 16px/1.3 var(--sans); }
.reach-h span { font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-ink); }
.reach .field { margin-top: 14px; }
.field { display: block; margin-top: 16px; }
.field > span { display: block; margin-bottom: 7px; font: 500 13.5px/1.2 var(--sans); }
.field > span em { font-style: normal; font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; height: 52px; padding: 0 14px; border: 1px solid var(--paper-line); border-radius: 8px; background: #fff; font-size: 16px; color: var(--ink); }
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(200, 164, 103, 0.35); }
.field .is-bad { border-color: var(--bad); }
.sub { font: 500 13.5px/1.2 var(--sans); margin: 22px 0 9px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 14px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.err { min-height: 1.5em; margin-top: 14px; font-size: 14.5px; color: var(--bad); }
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 10px; }
.form-nav .link { color: var(--ink-2); }

.done-mark { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--brass-ink); border-radius: 50%; color: var(--brass-ink); }
.done h3 { font: 400 32px/1.12 var(--serif); letter-spacing: -0.016em; margin-top: 22px; }
.done p { color: var(--ink-2); margin-top: 12px; max-width: 52ch; }
.done .facts { margin-top: 24px; border-top-color: var(--ink); }
.done .facts div { border-bottom-color: var(--paper-line); }
.done .facts dt { color: var(--ink-2); }
.done .tag { display: inline-block; margin-top: 22px; padding: 8px 10px; border-radius: 4px; background: var(--paper-2); font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
/* shown only when the bot can hear: the applicant carries on in Telegram */
.done-tg { margin-top: 26px; padding: 20px; border: 1px solid var(--paper-line); border-radius: 10px; background: rgba(14, 26, 43, 0.035); }
.done-tg .btn .ic { width: 20px; height: 20px; }
.done .done-tg p { margin-top: 14px; font-size: 14.5px; line-height: 1.55; }

/* a field no person sees */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent a { text-underline-offset: 2px; }

/* a page of text: the legal pages, and anything written in wp-admin */
.doc { min-height: 72vh; padding-top: clamp(64px, 8vw, 110px); }
.doc-in { max-width: 800px; }
.doc-in + .doc-in { margin-top: 90px; }
.doc h1 { margin-top: 24px; font: 400 clamp(38px, 4.8vw, 66px) / 1.04 var(--serif); letter-spacing: -0.024em; text-wrap: balance; }
.doc-body { margin-top: 36px; font-size: 17.5px; line-height: 1.72; color: var(--t2); }
.doc-body > * + * { margin-top: 16px; }
.doc-body h2 { margin-top: 44px; font: 400 29px/1.2 var(--serif); letter-spacing: -0.014em; color: var(--t1); }
.doc-body h3 { margin-top: 32px; font: 500 19px/1.3 var(--sans); color: var(--t1); }
.doc-body a { color: var(--brass-hi); text-underline-offset: 3px; }
.doc-body ul, .doc-body ol { padding-left: 22px; list-style: revert; }
.doc-body li + li { margin-top: 8px; }
.doc-body strong { font-weight: 500; color: var(--t1); }
.doc-body img { height: auto; border-radius: 10px; }
.doc-back { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 48px; }

/* footer */
.ftr { position: relative; border-top: 1px solid var(--line); background: #03070e; color: var(--t2); padding: 68px 0 40px; font-size: 15px; }
.ftr-top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px; padding-bottom: 46px; border-bottom: 1px solid var(--line); }
.ftr .brand { color: var(--t1); }
.ftr-about { margin-top: 20px; max-width: 40ch; font-size: 14.5px; line-height: 1.6; color: var(--t3); }
.ftr h4 { font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--t3); margin-bottom: 16px; }
.ftr li { margin-top: 10px; }
.ftr li a { text-decoration: none; color: var(--t2); transition: color 0.2s; }
.ftr li a:hover { color: var(--brass-hi); }
.legal { padding-top: 34px; font-size: 12.5px; line-height: 1.7; color: var(--t3); columns: 2; column-gap: 48px; }
.legal p { break-inside: avoid; margin-bottom: 14px; }
.legal b { font-weight: 500; color: var(--t2); }
.ftr-end { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font: 400 11px/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--t3); }

/* ── appearing on scroll ──────────────────────────────────────────────────────
   Tied to the scroll position by the browser itself, where it can do that. No script hides
   anything, so nothing can stay hidden: without support, or with reduced motion, it is all there. */

@keyframes rise { from { opacity: 0; translate: 0 28px; } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes pop { from { transform: scale(0.3); opacity: 0.15; box-shadow: none; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-reveal] { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 240px; }
    [data-reveal="1"] { animation-range: entry 60px entry 300px; }
    [data-reveal="2"] { animation-range: entry 120px entry 360px; }

    .flow { view-timeline-name: --flow; }
    .flow[data-reveal] { animation: none; }
    .flow::after { animation: draw linear both; animation-timeline: --flow; animation-range: entry 60% cover 44%; }
    .fstep { animation: rise linear both; animation-timeline: --flow; animation-range: entry calc(20% + var(--i) * 18%) entry calc(90% + var(--i) * 18%); }

    .rhythm { view-timeline-name: --rhythm; }
    .rh-cells i.on { animation: pop linear both; animation-timeline: --rhythm; animation-range: cover calc(12% + var(--i) * 0.7%) cover calc(19% + var(--i) * 0.7%); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── narrower screens ────────────────────────────────────────────────────── */

@media (max-width: 1240px) {
  .float { display: none; }
}

@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-b { display: inline-flex; align-items: center; }
  .hdr .btn { display: none; }
  .hdr.is-open { background: var(--bg); }
  .hdr.is-open::before { opacity: 0; }
  .nav.is-open { display: flex; position: fixed; inset: var(--hdr) 0 0 0; flex-direction: column; gap: 0; margin: 0; padding: 12px var(--gutter) 40px; background: var(--bg); overflow: auto; }
  .nav.is-open a { padding: 18px 0; border-bottom: 1px solid var(--line); font: 400 30px/1.2 var(--serif); color: var(--t1); }
  .nav.is-open a::after { display: none; }
  .figs { grid-template-columns: repeat(4, 1fr); }
  .figs > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
  .figs > div:nth-child(2) { border-left: 0; padding-left: 0; }
  .terms { grid-template-columns: 1fr; }
  .net { min-height: 520px; }
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
  .flow::before, .flow::after { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .qa { grid-template-columns: 1fr; }
  .qa .head { position: static; }
}

@media (max-width: 860px) {
  body { font-size: 16.5px; }
  .hero { display: flex; flex-direction: column; }
  .hero-main { display: block; min-height: 0; order: 1; }
  .hero-copy { padding: 40px 0 0; max-width: none; }
  .globe { position: relative; order: 2; top: auto; right: auto; flex: none; align-self: center; width: min(132vw, 660px); margin: 4px 0 -36%; transform: none; }
  .hero-band { order: 3; }
  .progs { grid-template-columns: 1fr; }
  .prog-for { min-height: 0; }
  .fit { grid-template-columns: 1fr; }
  .fit-list { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 24px 22px; }
  .fit-opt { margin-left: -10px; width: calc(100% + 20px); padding: 12px 10px; }
  .fit-out { padding: 28px 24px; }
  .report, .apply { grid-template-columns: 1fr; }
  .devices { height: 560px; max-width: 540px; width: 100%; margin: 24px auto 0; }
  .note-chip--1 { left: 0; }
  .note-chip--2 { right: 0; }
  .flow { grid-template-columns: 1fr 1fr; }
  .disclose { grid-template-columns: 1fr; gap: 18px; }
  .ftr-top { grid-template-columns: 1fr 1fr; }
  .ftr-top > div:first-child { grid-column: 1 / -1; }
  .legal { columns: 1; }
  .sheet::before, .sheet::after, .form::before { display: none; }
  .rh-row { grid-template-columns: 1fr auto; gap: 10px 16px; }
  .rh-cells { grid-column: 1 / -1; grid-row: 2; }

  /* the table becomes cards */
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; }
  .tbl tr { padding: 20px 0; border-bottom: 1px solid var(--paper-line); }
  .tbl tr:last-child { border-bottom: 0; }
  .tbl td { padding: 0; border: 0; }
  .tbl td + td { margin-top: 12px; }
  .tbl td[data-k]::before { content: attr(data-k); display: block; margin-bottom: 5px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
  .tbl td:last-child { text-align: left; }
}

@media (max-width: 600px) {
  :root { --hdr: 66px; --r: 14px; }
  .risk { font-size: 11px; text-align: left; }
  .brand { gap: 10px; }
  .brand svg { width: 34px; height: 34px; }
  .brand-t b { font-size: 20px; }
  .eb-more { display: none; }
  .hdr .wrap { gap: 12px; }
  .menu-b { height: 42px; padding: 0 14px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .assure { display: grid; grid-template-columns: 1fr; }
  .assure li { margin: 0; padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .assure li:last-child { border-bottom: 0; }
  .figs { grid-template-columns: 1fr 1fr; }
  .figs > div { padding: 20px 14px 22px; }
  .figs > div:nth-child(2n) { border-left: 0; padding-left: 0; }
  .figs > div:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .prog { padding: 28px 24px; }
  .prog::after { left: 24px; right: 24px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .sheet { padding: 26px 22px 22px; }
  .net-h, .net-cap { padding-inline: 22px; }
  .rhythm { padding: 24px 22px 18px; }
  .rh-cells { gap: 3px; }
  .rh-cells i { border-radius: 2px; }
  .opts, .grid2, .grid3 { grid-template-columns: 1fr; }
  .opts--row { grid-template-columns: 1fr 1fr; }
  .devices { height: auto; aspect-ratio: 1 / 1.3; }
  .device { width: 54%; border-width: 6px; border-radius: 30px; }
  .device img { border-radius: 24px; }
  .device--a { left: 1%; top: 3%; }
  .device--b { right: 1%; top: 13%; }
  .note-chip { font-size: 12px; padding: 9px 12px 9px 10px; }
  .note-chip--3 { display: none; }
  .flow { grid-template-columns: 1fr; row-gap: 34px; }
  .fstep { padding: 0 0 0 76px; min-height: 56px; }
  .fstep p { max-width: none; }
  .tiles { grid-template-columns: 1fr; }
  .tile { padding: 26px 24px; }
  .faq details p { padding-right: 0; }
  .ftr-top { grid-template-columns: 1fr; gap: 30px; }
  .form-top span:last-child { display: none; }
  .form-nav { flex-direction: column-reverse; align-items: stretch; }
  .form-nav .btn { width: 100%; }
  .form-nav .link { align-self: center; }
}

@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .brand-t small { display: none; }
  .brand-t b { font-size: 19px; }
  .brand svg { width: 32px; height: 32px; }
  .hero h1 { font-size: 38px; }
  h2 { font-size: 31px; }
  .prog { padding: 24px 20px; }
  .prog::after { left: 20px; right: 20px; }
  .fit-list { padding: 24px 18px 18px; }
  .fit-out { padding: 24px 18px; }
  .sheet { padding: 22px 18px 18px; }
  .rhythm { padding: 22px 18px 16px; }
  .rh-cells { gap: 2px; }
  .form { padding: 22px 16px; }
  .opts--row { grid-template-columns: 1fr 1fr; }
  .tile { padding: 24px 20px; }
  .disclose { padding: 24px 20px; }
  .note-chip--2 { display: none; }
  .figs > div { padding: 18px 10px 20px; }
}
