/* ==========================================================================
   Charles Park Search and Selection | Home page motion mockup
   Source: Figma "CPSS Web 2.0", RD 6, Home | Light / Audiences A / Round 20 cards (203:562)
   ========================================================================== */

/* The footer panel wears the opposite theme in full (Dom, 16 Oct): each token block also applies to
   .foot__in under the other theme, so its text, labels, lines and hovers are that theme's own. */
:root, :root[data-theme="dark"] .foot__in {
  --bg: #f9fafe;
  --ink: #101014;
  --ink-2: #53535c;
  --ink-3: #6d6d76;
  --navy: #0f3f70;
  --navy-deep: #0a2746;
  --teal: #4a90a3;
  --teal-deep: #2d5b67;
  --sky: #a7e3ff;
  --sky-400: #6ed0fb;
  --mist: #e7eaff;
  --mist-200: #d3d7fb;
  --white: #fff;

  /* Theme roles. Light is the default; [data-theme="dark"] below remaps them. */
  --accent: var(--navy);                 /* navy as text, strokes and underlines */
  --surface: #fff;                       /* cards */
  --surface-2: var(--mist);              /* Richard band */
  --inverse: var(--ink);                 /* the dark tiles and the footer */
  --hair: #b4b7d3;
  --bg-rgb: 249, 250, 254;
  --btn: var(--navy);
  --btn-hover: var(--navy-deep);
  --portrait-bg: rgba(255, 255, 255, .55);
  --logo-inv: 0;
  --on-photo: #f9fafe;

  --lc: 74, 144, 163;            /* construction line colour (teal) */
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* One content frame: 1200px centred, rails sit on its edges. */
  --rail: max(20px, min(8.3333vw, 120px), calc(50vw - 600px));
  --nav-h: 80px;

  --e-out: cubic-bezier(.22, 1, .36, 1);   /* soft attack, long calm settle (Dom, 16 Oct: smooth and slow) */
  --e-io: cubic-bezier(.65, 0, .35, 1);
}

:root[data-theme="dark"], :root:not([data-theme="dark"]) .foot__in {
  /* Backgrounds follow the Figma dark tokens: Onyx 950 page, Onyx 900 surfaces, Navy 900 tint band.
     Text, accents and construction lines stay muted for low glare. */
  color-scheme: dark;
  --bg: #101014;
  --bg-rgb: 16, 16, 20;
  --ink: #cdd1df;
  --ink-2: #959bb0;
  --ink-3: #737a90;
  --accent: #96bccd;
  --surface: #222228;
  --surface-2: #0a2746;
  --inverse: #222228;
  --hair: #3a3b42;
  --btn: #234f7e;
  --btn-hover: #1a3f68;
  --portrait-bg: rgba(255, 255, 255, .03);
  --lc: 84, 146, 166;
  --logo-inv: 1;
  --sky: #8fb9cb;
  --sky-400: #6a95aa;
  --mist: #bfc4d8;
  --white: #e3e6f0;
  --on-photo: #e9ecf4;
}
:root[data-theme="dark"] .hero__img { filter: brightness(.84) saturate(.92); }
/* Assets with a light and a dark version: the one for the other theme is never shown. */
:root:not([data-theme="dark"]) .th-dk, :root[data-theme="dark"] .th-lt { display: none !important; }

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

html { background: var(--bg); -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.58 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ==========================================================================
   Type
   ========================================================================== */
.label {
  font: 500 12px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.h2 {
  font: 300 clamp(38px, 4.1667vw, 60px)/1.06 var(--serif);
  letter-spacing: -.0217em;
}
.h4 { font: 400 24px/1.2 var(--serif); letter-spacing: -.002em; }
.body { color: var(--ink-2); }

/* ==========================================================================
   Construction lines
   --------------------------------------------------------------------------
   Framing lines are solid along the edge they frame and fade to nothing as
   they run past it; each end has its own overshoot (see inline --s1 / --s2).
   Drawn with clip-path so the box never changes size (ScrollTrigger safe).
   ========================================================================== */
.cl { position: absolute; pointer-events: none; z-index: 1; --la: .65; }
.cl-h {
  height: 1px;
  background: linear-gradient(90deg,
    rgba(var(--lc), 0) 0%,
    rgba(var(--lc), var(--la)) var(--s1, var(--rail)),
    rgba(var(--lc), var(--la)) var(--s2, calc(100% - var(--rail))),
    rgba(var(--lc), 0) 100%);
}
.cl-v {
  width: 1px;
  --la: .5;
  background: linear-gradient(180deg,
    rgba(var(--lc), 0) 0%,
    rgba(var(--lc), var(--la)) var(--s1, 14%),
    rgba(var(--lc), var(--la)) var(--s2, 86%),
    rgba(var(--lc), 0) 100%);
}
.full { left: 0; right: 0; }
.rail { position: absolute; top: 0; bottom: 0; width: 1px; z-index: 1; background: rgba(var(--lc), .5); pointer-events: none; }
.rail-l { left: var(--rail); }
.rail-r { left: calc(100% - var(--rail) - 1px); }   /* the frame's last pixel, as .rail-l is its first */

/* Shared 3 column grid: 382px cards, 26px gutters, 1px for the rails. */
.g3 { margin-inline: var(--rail); padding-inline: 1px; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 26px; }
.g3-lines { position: absolute; inset: 0; pointer-events: none; }
.g3-lines > div { position: relative; }
.edge-r { left: 100%; }
.edge-l { left: -1px; }

/* Feathered leading edge for scrubbed rails (see buildScrubLines) */
.tip {
  --tip: 0px;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(var(--tip) - 90px), transparent var(--tip));
  mask-image: linear-gradient(180deg, #000 0, #000 calc(var(--tip) - 90px), transparent var(--tip));
}

/* Pre-reveal states (only when JS is running) */
.js .cl, .js .rail { clip-path: inset(0 100% 100% 0); }
.js [data-in="mask"], .js [data-in="words"] { visibility: hidden; }
.js [data-in="clip"]:not(.is-in) { clip-path: inset(0 0 100% 0); }
.js [data-in="wipe"]:not(.is-in) { clip-path: inset(0 100% 0 0); }
.js [data-in="fade"]:not(.is-in) { opacity: 0; }
.js .nav__in > *, .js .nav__rule { opacity: 0; }
.js .hero__title, .js .hero__open { visibility: hidden; }
.js .nav__rule { opacity: 1; clip-path: inset(0 100% 0 0); }
.js .hero__seal-in { opacity: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 8px 8px 8px 24px;
  font: 500 14px/1 var(--sans);
  letter-spacing: .01em;
  background: var(--btn);
  color: var(--white);
  border: 1px solid var(--btn);
  overflow: hidden;
  isolation: isolate;
  transition: color .8s var(--e-out), border-color .8s var(--e-out);
}
.btn::before {
  content: '';
  position: absolute; inset: -1px;
  z-index: -1;
  background: var(--btn-hover);
  transform: translateY(101%);
  transition: transform 1s var(--e-out);
}
.btn:hover::before { transform: none; }
.btn--sky { background: var(--sky); border-color: var(--sky); color: #101014; padding: 6px 6px 6px 20px; gap: 14px; }
.btn--sky::before { background: var(--sky-400); }
.btn--sky .btn__arrow { width: 32px; height: 32px; }
.btn--line { background: transparent; border-color: var(--mist); color: var(--mist); }
.btn--line::before { background: var(--mist); }
.btn--line:hover { color: #101014; }
.btn__arrow { position: relative; width: 36px; height: 36px; overflow: hidden; flex: none; }
.btn__arrow svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1s var(--e-out); }
.btn__arrow svg + svg { transform: translate(-100%, 100%); }
.btn:hover .btn__arrow svg:first-child, .tlink:hover .btn__arrow svg:first-child { transform: translate(100%, -100%); }
.btn:hover .btn__arrow svg + svg, .tlink:hover .btn__arrow svg + svg { transform: none; }

/* ==========================================================================
   Nav
   ========================================================================== */
/* --np (0 to 1) is the nav's "over the full-bleed hero photo" state, scrubbed in main.js:
   the bar goes clear, and the logo, links and underline turn light. */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  --np: 0;
  --rule: color-mix(in srgb, var(--sky) calc(var(--np) * 100%), var(--teal));
  color: color-mix(in srgb, #fff calc(var(--np) * 100%), var(--ink));
  background: rgba(var(--bg-rgb), calc(.9 * (1 - var(--np))));
  -webkit-backdrop-filter: blur(calc(14px * (1 - var(--np)))) saturate(calc(1 + .1 * (1 - var(--np))));
  backdrop-filter: blur(calc(14px * (1 - var(--np)))) saturate(calc(1 + .1 * (1 - var(--np))));
  transition: transform 1.2s var(--e-out);
}
.nav .logo img { filter: invert(max(var(--np), var(--logo-inv))); }
.nav.is-hidden { transform: translateY(-101%); }
.nav__in {
  position: absolute; left: var(--rail); right: var(--rail); top: 18px; height: 44px;
  padding-inline: 1px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__links { display: flex; gap: 36px; margin-left: auto; margin-right: 32px; font: 500 14px/1 var(--sans); letter-spacing: .01em; }
.nav__links a { position: relative; padding-block: 6px; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule);
  transform: scaleX(0); transform-origin: var(--ox, 100%) 50%; transition: transform .75s var(--e-out), background-color .4s var(--e-out);
}
.nav__links a.is-active::after { transform: scaleX(1); transform-origin: 0 50%; background: currentColor; }
/* Pointer-side rule (nav, About card, contact and footer links): the underline grows from the side the pointer came in
   and retracts to the side it left (--ox, set in main.js and page.js). Teal, sky over the photo; the active nav
   link keeps a full rule in the text colour. */
.tlink .t, .ulink, .foot__links a, .foot__legal nav a { position: relative; }
.tlink .t::after, .ulink::after, .foot__links a::after, .foot__legal nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.32em; height: 1px; background: var(--teal);
  transform: scaleX(0); transform-origin: var(--ox, 0%) 50%; transition: transform .75s var(--e-out);
}
.ulink::after, .foot__links a::after { bottom: -.12em; }
@media (hover: hover) {
  .nav__links a:hover::after { transform: scaleX(1); background: var(--rule); }
  .tlink:hover .t::after, .ulink:hover::after, .foot__links a:hover::after, .foot__legal nav a:hover::after { transform: scaleX(1); }
}
.nav__links a:focus-visible::after { transform: scaleX(1); background: var(--rule); }
.tlink:focus-visible .t::after, .ulink:focus-visible::after, .foot__links a:focus-visible::after, .foot__legal nav a:focus-visible::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .nav__links a::after, .tlink .t::after, .ulink::after, .foot__links a::after, .foot__legal nav a::after { transition: none; } }
.nav__rule {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(var(--lc), 0) 0%, rgba(var(--lc), .55) 8.3333%, rgba(var(--lc), .55) 91.667%, rgba(var(--lc), 0) 100%);
}
.js .nav__rule { opacity: calc(1 - var(--np)); }

/* Reading progress: a 5px band along the bottom edge fills left to right with the page scroll (--rp, set in
   main.js and page.js). Teal on a light ground, sky on a dark one; data-ground comes from what sits under it. */
.progress {
  position: fixed; left: 0; right: 0; bottom: 0; height: 5px; z-index: 96; pointer-events: none;
  background: var(--teal); transform: scaleX(var(--rp, 0)); transform-origin: 0 50%; transition: background-color .4s var(--e-out);
}
.progress[data-ground="dark"] { background: #a7e3ff; }
:root[data-theme="dark"] .progress[data-ground="dark"] { background: #6aa9ba; }

/* Back to top: a small hairline square in the right gutter, above the progress band. It appears once the hero
   is behind you (.is-on, main.js / page.js); the arrow swaps upwards on hover like the button arrows. It takes
   the ground under it like the band, so its colours are fixed per ground rather than per theme. */
.totop {
  position: fixed; right: max(16px, calc(var(--rail) / 2 - 20px)); bottom: 28px; z-index: 96;
  width: 40px; height: 40px; overflow: hidden;
  color: #101014; background: rgba(249, 250, 254, .86); border: 1px solid rgba(74, 144, 163, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .8s var(--e-out), transform 1s var(--e-out), visibility 0s linear 1s, border-color .6s var(--e-out), color .4s, background-color .4s;
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.totop[data-ground="dark"] { color: #e7eaff; background: rgba(16, 16, 20, .55); border-color: rgba(167, 227, 255, .4); }
.totop svg { position: absolute; left: 6px; top: 6px; width: 26px; height: 26px; transform: rotate(-45deg); transition: transform 1s var(--e-out); }
.totop svg + svg { transform: translateY(150%) rotate(-45deg); }
@media (hover: hover) {
  .totop:hover { border-color: #4a90a3; color: #4a90a3; }
  .totop[data-ground="dark"]:hover { border-color: #a7e3ff; color: #a7e3ff; }
  .totop:hover svg:first-child { transform: translateY(-150%) rotate(-45deg); }
  .totop:hover svg + svg { transform: rotate(-45deg); }
}
.totop:focus-visible { outline-offset: 4px; }

/* Light / dark switch: a hairline pill (same language as the construction lines) with a sun that
   eases into a crescent as the knob travels. Takes the nav's colour, so it also reads over the photo. */
.theme {
  position: relative; flex: none; width: 52px; height: 28px; margin-right: 24px; padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 36%, transparent); border-radius: 999px;
  background: transparent; color: inherit; cursor: pointer;
  transition: border-color .8s var(--e-out);
}
.theme:hover { border-color: color-mix(in srgb, currentColor 80%, transparent); }
.theme__knob {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; display: grid; place-items: center;
  transition: transform 1.1s var(--e-out);
}
.theme svg { width: 16px; height: 16px; overflow: visible; }
.theme .t-core { transform-origin: 12px 12px; transition: transform 1.1s var(--e-out); }
.theme .t-cut { transform: translate(14px, -14px); transition: transform 1.1s var(--e-out); }
.theme .t-rays { transform-origin: 12px 12px; transition: transform 1.1s var(--e-out), opacity .7s var(--e-out); }
:root[data-theme="dark"] .theme__knob { transform: translateX(24px); }
:root[data-theme="dark"] .theme .t-core { transform: scale(1.38); }
:root[data-theme="dark"] .theme .t-cut { transform: translate(0, 0); }
:root[data-theme="dark"] .theme .t-rays { transform: rotate(70deg) scale(.4); opacity: 0; }

/* The theme change reveals as a circle growing from the switch (View Transitions, where supported). */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

.logo { position: relative; display: block; width: 202.87px; height: 32.16px; flex: none; }
.logo img { position: absolute; }
.logo__mark { left: 0; top: -.2px; width: 62.26px; height: 32.16px; }
.logo__word { position: absolute; left: 35.16%; top: 20.51%; right: 8.57%; bottom: 21.75%; }
.logo__word .a { inset: -.66% 39.51% 57.97% .12%; width: auto; height: auto; }
.logo__word .b { inset: -.66% -.08% 58.77% 66.9%; width: auto; height: auto; }
.logo__sub { position: absolute; left: .14px; top: 11.74px; font: 700 7.13px/1 Inter, var(--sans); letter-spacing: .31em; text-transform: uppercase; white-space: nowrap; color: currentColor; }
.logo__word img { display: block; }

/* ==========================================================================
   Hero (sticky stage, scrubbed expansion)
   --p is the opening progress (0 to 1). Everything that moves with the window
   is a function of it, so the clip, lines, seal and image zoom stay locked.
   ========================================================================== */
/* The section after the hero overlaps its last screen, so it slides up over the still-pinned, full-frame
   photo; the opening itself still runs over 260svh (main.js ends it where that section starts to enter).
   --ov (0 to 1, scrubbed in main.js) drifts the stage up more slowly than the page and dims it, for depth. */
.hero { position: relative; height: calc(100svh + 260svh + 100svh); }
.hero + .sec { margin-top: -100svh; z-index: 1; background: var(--bg); }
.hero__stage {
  position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; background: var(--bg);
  container-type: size;
  --p: 0; --fl: 1; --sf: 0; --ov: 0;
  transform: translateY(calc(var(--ov) * -22svh));
  /* The window sits on the grid (Dom, 16 Oct): it spans the middle two columns and the gutters either side, so
     its framing lines (.fl-l at -1px, .fl-r at 100%) land on the gutters' outer grid lines. The grid is main.js GL:
     6 columns, 26px gutters, frame = page width minus the rails, so 2 columns + 3 gutters - 2px is
     (frame - 130px) / 3 + 76px. Height follows the photo. On short screens, where that would push the seal off the
     bottom (--win-fit), it snaps one step in to the gutters' inner lines (2 columns + 1 gutter, exactly 50px
     narrower); only below that does it leave the grid. round() makes the step: 0 below the wide size, 50px at it. */
  --win-small: calc((100cqw - 2 * var(--rail) - 130px) / 3 + 26px);
  --win-fit: calc((48.7svh - 75px) * 1.4305);
  --win-w: min(var(--win-fit), calc(var(--win-small) + clamp(0px, round(down, var(--win-fit) - var(--win-small), 50px), 50px)));
  --win-h: calc(var(--win-w) / 1.4305);
}
.hero .rail { top: var(--nav-h); z-index: 6; }
.hero__stage::after { content: ''; position: absolute; inset: 0; z-index: 20; pointer-events: none; background: #0a2746; opacity: calc(var(--ov) * .4); }

.hero__title {
  position: absolute; left: 0; right: 0; top: max(19.7svh, 104px); z-index: 7;
  text-align: center;
  font: 300 min(6.11vw, 9.36svh, 96px)/1 var(--serif);
  letter-spacing: -.0205em;
  pointer-events: none;
}
.hero__line { display: block; will-change: transform; }
.hero__line--a { transform: translate(calc(var(--p) * -5cqw), calc(var(--p) * -5cqh)); }
.hero__line--b { transform: translate(calc(var(--p) * 5cqw), calc(var(--p) * -5cqh)); }
.hero__line + .hero__line { margin-top: .16em; }
.hero__line--b { font-style: italic; color: var(--accent); }
.mk { display: block; overflow: hidden; padding: .06em .12em .2em; margin: -.06em -.12em -.2em; }
.mk > span { display: block; }

.hero__frame {
  position: absolute; left: 50%; top: 51.3%;
  width: var(--win-w); height: var(--win-h); margin-left: calc(var(--win-w) / -2);
  z-index: 6; pointer-events: none;
  opacity: var(--fl);
}
.fl-top { left: -89%; width: 306%; top: -1px; --s1: 32.9%; --s2: 66%; transform: translateY(calc(var(--p) * (var(--nav-h) + 1px - 51.3cqh))); }
.fl-bot { left: -98%; width: 315%; top: 100%; --s1: 9.5%; --s2: 71.4%; transform: translateY(calc(var(--p) * (48.7cqh - var(--win-h)))); }
.fl-l { left: -1px; top: -47.7%; height: 181.5%; --s1: 33%; --s2: 66%; transform: translateX(calc(var(--p) * (var(--win-w) / 2 - 50cqw))); }
.fl-r { left: 100%; top: -13%; height: 152%; --s1: 14%; --s2: 86%; transform: translateX(calc(var(--p) * (50cqw - var(--win-w) / 2))); }

.hero__photo {
  position: absolute; inset: 0; z-index: 2; overflow: hidden;
  clip-path: inset(
    calc(51.3% * (1 - var(--p)))
    calc((50% - var(--win-w) / 2) * (1 - var(--p)))
    calc((100% - 51.3% - var(--win-h)) * (1 - var(--p)))
    calc((50% - var(--win-w) / 2) * (1 - var(--p))));
  will-change: clip-path;
}
.hero__wrap { position: absolute; inset: 0; transform-origin: 50% 50%; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform-origin: 50% 50%; will-change: transform;
  /* zoomed on the boat at p=0, settling to 1:1 at p=1; the edges always stay covered */
  transform: translate(0, calc(-12cqh * (1 - var(--p)))) scale(calc(1.3 - .3 * var(--p)));
}
.hero__shade { position: absolute; inset: 0; opacity: calc(.55 + .45 * var(--p)); background:
    linear-gradient(180deg, rgba(10, 39, 70, .5) 0, rgba(10, 39, 70, 0) calc(var(--nav-h) * 2.4)),
    linear-gradient(180deg, rgba(15, 63, 112, 0) 0%, rgba(15, 63, 112, .1) 55%, rgba(15, 63, 112, .46) 100%); }
/* 1px larger than the window on every side: edge to edge, the photo's clip and the curtain land on the
   same fractional pixel and the photo's edge showed as a thin bracket on load. */
.hero__curtain {
  position: absolute; left: 50%; top: calc(51.3% - 1px); z-index: 3;
  width: calc(var(--win-w) + 2px); height: calc(var(--win-h) + 2px); margin-left: calc(var(--win-w) / -2 - 1px);
  background: var(--bg); transform-origin: 50% 0;
}

.hero__seal {
  position: absolute; left: 50%; top: calc(51.3% + var(--win-h)); z-index: 8;
  width: 112px; height: 112px; margin: -56px 0 0 -56px;
  /* --sf is the scroll fade (main.js); the intro animates .hero__seal-in, so the two never share a property.
     will-change keeps the seal on its own layer: Safari can drop transformed layers inside the sticky stage. */
  opacity: calc(1 - var(--sf));
  transform: translateY(calc(var(--p) * (48.7cqh - var(--win-h)))) scale(calc(1 - .1 * var(--sf)));
  will-change: transform, opacity;
}
.hero__seal-in {
  width: 100%; height: 100%;
  background: var(--bg); border: 1px solid var(--teal-deep);
  display: grid; place-items: center;
}
.hero__seal img { width: 65.3%; height: auto; filter: brightness(0) invert(calc(var(--logo-inv) * .92)); }

.hero__open { position: absolute; inset: 0; z-index: 5; pointer-events: none; color: var(--on-photo); }
.hero__open-in {
  position: absolute; left: 0; right: 0; top: max(33svh, 150px);
  display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 4.4svh, 40px);
  padding-inline: 24px;
}
.hero__intro {
  max-width: 880px; text-align: center;
  font: 400 clamp(24px, 2.36vw, 34px)/1.14 var(--serif); letter-spacing: -.005em;
  text-wrap: balance;
}
.hero__open .btn { pointer-events: auto; }

/* ==========================================================================
   Sections: base
   ========================================================================== */
.sec { position: relative; }
.wrap { margin-inline: var(--rail); padding-inline: 1px; position: relative; }
.row { position: relative; }

/* ---------- Audiences ---------- */
.aud { padding-top: 96px; padding-bottom: 120px; }
.aud__head { margin-inline: var(--rail); padding-left: 41px; }
.aud__head .h2 { margin-top: 24px; }
.aud .row { margin-top: 104px; }
.card { position: relative; background: var(--surface); overflow: hidden; }
.aud-card { min-height: 470px; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; }
.aud-card h3 { font: 400 clamp(26px, 2.22vw, 32px)/1.2 var(--serif); letter-spacing: -.004em; }
.aud-card p { margin-top: 12px; color: var(--ink-2); max-width: 334px; }
.ill { position: absolute; left: 0; top: 0; width: 100%; height: 320px; pointer-events: none; }
.ill svg { width: 100%; height: 100%; overflow: visible; }
.ill .fill { stroke: var(--accent); stroke-width: 1.4; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: 50% 50%; }
.ill .dot { transform-box: fill-box; transform-origin: 50% 50%; }
.ill--multi svg { transform: translate(10px, 2px) scale(.932); transform-origin: 0 0; }

/* ---------- About ---------- */
.about { padding-top: 83px; height: 1028px; }
.about__head { text-align: center; padding-inline: 24px; }
.about__lead {
  max-width: 942px; margin: 38px auto 0;
  font: 400 clamp(26px, 3.06vw, 44px)/1.273 var(--serif); letter-spacing: -.01em;
  text-wrap: balance;
}
.about__sub { margin-top: 38px; color: var(--ink-2); }
.about .row { position: absolute; left: 0; right: 0; top: 510px; height: 331px; }
/* On the 6-column grid: each card spans three columns, edges on the rails like the .g3 sections. */
.about__cells { position: relative; margin-inline: var(--rail); padding-inline: 1px; height: 100%; display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; }
.route { position: relative; padding: 82px 25px 44px; display: flex; flex-direction: column; }
.route .label { margin-bottom: 24px; }
.route p.h4 { max-width: 460px; }
.tlink { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font: 500 14px/1 var(--sans); letter-spacing: .01em; }
.tlink .btn__arrow { margin-right: -8px; }

/* ---------- Services ---------- */
.svc { padding-top: 152px; padding-bottom: 275px; }
.svc__head { text-align: center; }
.svc__head .label { grid-column: 2; }
.svc__head .h2 { grid-column: 2; margin-top: 22px; }
.svc__cols { position: absolute; top: 66px; bottom: 0; left: 0; right: 0; pointer-events: none; }
.svc__cols .g3 { height: 100%; }
.svc__cols .cl-v { top: 0; bottom: 0; --s1: 4%; --s2: 100%; }
.svc__grid { margin-top: 172px; row-gap: 24px; position: relative; z-index: 2; }
.scard {
  position: relative; height: 440px; padding: 24px; background: var(--surface);
  display: flex; flex-direction: column; justify-content: space-between;
}
.svc__grid .scard:nth-child(2), .svc__grid .scard:nth-child(5) { margin-top: 64px; margin-bottom: -64px; }
.scard .num { font: 500 12px/1 var(--sans); letter-spacing: .16em; color: var(--accent); }
.scard h3 { font: 400 24px/1.2 var(--serif); letter-spacing: -.002em; max-width: 282px; }
.scard p { margin-top: 28px; max-width: 282px; color: var(--ink-2); }

/* ---------- Reach ---------- */
.reach { background: var(--navy); color: var(--mist); min-height: 940px; padding-top: 130px; overflow: hidden; }
.reach .rail { background: rgba(231, 234, 255, .45); }
.reach .g3-lines { display: none; }
.reach__cols { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; margin-inline: var(--rail); padding-inline: 1px; min-height: 810px; }
.reach__gut { position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin-inline: var(--rail); padding-inline: 1px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; pointer-events: none; }
.reach__gut .cl-v { top: 0; bottom: 0; --la: .45; --lc: 231, 234, 255; --s1: 0%; --s2: 100%; }
.reach .label { color: var(--sky); }
.reach__l { position: relative; padding-left: 24px; }
.reach__l .h2 { margin-top: 50px; max-width: 520px; font-size: clamp(36px, 4.03vw, 58px); }
.reach__l p.body { margin-top: 40px; max-width: 440px; color: var(--mist); }
.reach__mark { position: absolute; left: 0; bottom: 0; width: 100%; height: 269px; overflow: hidden; }
.reach__mark img { position: absolute; left: 0; top: 0; width: 586px; max-width: none; height: 269px; will-change: transform; transform-origin: 30% 100%; }
.reach__r { padding-left: 0; }
.reach__r .label { padding-left: 24px; }
.pa { position: relative; margin-top: 28px; }
.pa li { position: relative; height: 80px; padding: 22px 24px 0; font: 400 24px/1.2 var(--serif); letter-spacing: -.002em; }
.pa li .cl { left: 0; right: 0; top: 0; --s1: 0%; --s2: 100%; --lc: 231, 234, 255; --la: .55; }
/* the list's closing line is a construction line like the others, so it rests and lights with them */
.pa li .cl.pa__end { top: auto; bottom: 0; }
.pa li > span { display: inline-block; transition: transform 1.1s var(--e-out); }
.pa li:hover > span { transform: translateX(12px); }
.reach__hl { position: absolute; left: 0; right: 0; bottom: 140px; }
.reach__hl .cl { left: 0; width: calc(var(--rail) + 586px + 1px); --s1: 33%; --s2: 66%; --lc: 231, 234, 255; --la: .55; }

/* ---------- Experience ---------- */
.exp { padding-top: 130px; height: 914px; }
.exp__head { margin-inline: var(--rail); padding-left: 25px; position: relative; }
.exp__head .h2 { margin-top: 47px; }
/* Starts on column 5 of the 6-column grid (26px gutters), with the cards' 25px inset. */
/* Its last baseline sits on the heading's baseline. The head ends .3832em of heading type below that baseline
   (descent .2432em plus the .14em padding of the line mask); the copy's last baseline sits 7.27px above its
   own bottom (16px/1.58). */
.exp__side { position: absolute; left: calc((100% - 130px) * 4 / 6 + 104px + 25px); right: 25px; bottom: calc(.3832 * clamp(38px, 4.1667vw, 60px) - 7.27px); color: var(--ink-2); }
.exp .row { margin-top: 112px; }
.xcard { position: relative; height: 402px; padding: 24px; display: flex; flex-direction: column; gap: 170px; }
.xcard .n {
  font: 300 96px/.88 var(--serif); letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px var(--accent);
}
.xcard p { font-family: var(--sans); color: var(--ink); }

/* ---------- Richard ---------- */
.rp { background: var(--surface-2); padding-block: 133px 128px; }
.rp .rail { z-index: 0; }
.rp__grid { grid-template-rows: 173px 426px; position: relative; z-index: 2; }
.portrait { grid-column: 1; grid-row: 1 / span 2; position: relative; margin: 0; overflow: hidden; background: var(--portrait-bg); }
/* Cropped from the top so the face stays in frame in the tall desktop cell and the wider phone cell. */
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.quote { grid-column: 2; grid-row: 1; background: var(--teal-deep); color: var(--mist); padding: 24px; }
.quote p { font: italic 400 24px/1.3 var(--serif); letter-spacing: -.004em; }
.rcard { grid-column: 3; grid-row: 2; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.rcard h2 { margin-top: 36px; font: 300 40px/1.2 var(--serif); letter-spacing: -.02em; }
.rcard p.body { margin-top: 28px; }

/* ---------- Group ---------- */
.grp { padding-block: 110px; }
.grp__grid { grid-template-rows: 336px; position: relative; z-index: 2; margin-top: 1px; }
.grp__tile { position: relative; background: var(--inverse); overflow: hidden; }
.grp__tile img { position: absolute; left: 0; top: 0; width: 745px; height: 386px; will-change: transform; transform-origin: 0 0; }
.grp__card { grid-column: 2 / 4; margin-inline: -1px; background: var(--inverse); color: var(--mist); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.grp__card .label { color: var(--sky); }
.grp__card p.t { margin-top: 48px; font: 400 clamp(17px, 1.39vw, 20px)/1.52 var(--sans); max-width: 744px; }

/* ---------- Contact ---------- */
.contact { padding-top: 126px; padding-bottom: 153px; text-align: center; }
.contact h2 { margin-top: 57px; font: 300 clamp(40px, 5vw, 72px)/1.08 var(--serif); letter-spacing: -.02em; }
.contact__links { margin-top: 38px; display: flex; flex-direction: column; gap: 37px; align-items: center; }
.ulink { position: relative; font: 400 24px/1.2 var(--serif); color: var(--accent); letter-spacing: -.002em; }
.contact .row { margin-top: 111px; }
/* On the 6-column grid: the form spans the frame and splits on the centre gutter. */
.form { margin-inline: var(--rail); padding: 72px 1px 0; text-align: left; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; }
.field { position: relative; padding: 24px 24px 0; height: 134px; display: block; }
.field > span { display: block; font: 500 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field textarea {
  display: block; width: 100%; margin-top: 22px; padding: 0 0 12px; height: 52px;
  background: transparent; border: 0; outline: 0; resize: none;
  font: 400 20px/1.5 var(--sans); color: var(--ink);
}
.field textarea { height: 52px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-2); opacity: 1; }
.field i { position: absolute; left: 24px; right: 24px; bottom: 25px; height: 1px; background: var(--hair); }
.field i::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s var(--e-out); }
.field:focus-within i::after, .field.is-sizing i::after { transform: scaleX(1); }
/* Message: four lines tall, taller on demand. Without JS the browser's own resizer stays; with JS the grip takes over. */
.field--msg { height: auto; padding-bottom: 25px; }
.field--msg textarea {
  height: 136px; min-height: 136px; max-height: 520px; padding-bottom: 16px; resize: vertical;
  scrollbar-width: thin; scrollbar-color: rgba(var(--lc), .45) transparent;
}
.js .field--msg textarea { resize: none; }
.field__grip { display: none; }
.js .field__grip {
  display: block; position: absolute; right: 24px; bottom: 30px; width: 10px; height: 10px;
  color: var(--ink-3); cursor: ns-resize; touch-action: none;
  transition: color .6s var(--e-out), transform .6s var(--e-out);
}
.field__grip::before { content: ''; position: absolute; inset: -14px; }
.field__grip svg { display: block; width: 100%; height: 100%; overflow: visible; }
.field__grip path { fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: square; vector-effect: non-scaling-stroke; }
.field__grip:hover, .field.is-sizing .field__grip { color: var(--accent); transform: translate(2px, 2px); }
html.is-sizing, html.is-sizing * { cursor: ns-resize !important; user-select: none; }
.form__foot { display: flex; align-items: center; justify-content: space-between; padding: 24px; gap: 24px; }
.form__foot .btn { cursor: pointer; }
.form__note { font-size: 13px; color: var(--ink-2); text-align: right; }

/* ---------- Footer ---------- */
.foot { position: relative; height: 980px; background: linear-gradient(90deg, #a7e3ff 0%, #e7eaff 55%, #4a90a3 100%); }
.foot__in { position: absolute; inset: 16px; background: var(--bg); overflow: hidden; color: var(--ink); }
.foot__mark { position: absolute; left: 50%; top: 65px; width: 167px; height: 85px; margin-left: -83.5px; overflow: hidden; }
.foot__mark img { position: absolute; left: .08px; top: -.6px; width: 166.85px; height: 86.2px; }
.foot__links { position: absolute; left: 0; right: 0; top: 225px; display: flex; justify-content: center; gap: 44px; font: 400 24px/1.2 var(--serif); letter-spacing: -.002em; }
.foot__links a { position: relative; }
.foot__addr { position: absolute; left: 0; right: 0; top: 341px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.foot__addr address { font: 400 13px/1.44 var(--sans); font-style: normal; letter-spacing: .001em; opacity: .7; }
.foot__grp { position: absolute; left: 0; right: 0; top: 516px; text-align: center; }
.foot__word { position: absolute; left: 50%; top: 668px; width: min(996px, 90%); margin-left: calc(min(996px, 90%) / -2); height: auto; --mx: 50%; --my: 50%; --lamp: 0; }
.foot__word img { display: block; width: 100%; height: auto; }
.foot__word-dim { display: none; }
.foot__word-lit { position: absolute; left: 0; top: 0; }
/* Cursor lamp: a dim ghost of the logotype, lit by a soft pool of light that follows the cursor. */
.foot__word.is-lamp .foot__word-dim { display: block; opacity: .12; }
.foot__word.is-lamp .foot__word-lit {
  -webkit-mask-image: radial-gradient(ellipse 700px 600px at var(--mx) var(--my), rgb(0 0 0 / var(--lamp)) 0%, rgb(0 0 0 / calc(var(--lamp) * .6)) 32%, rgb(0 0 0 / calc(var(--lamp) * .18)) 62%, rgb(0 0 0 / 0) 100%);
          mask-image: radial-gradient(ellipse 700px 600px at var(--mx) var(--my), rgb(0 0 0 / var(--lamp)) 0%, rgb(0 0 0 / calc(var(--lamp) * .6)) 32%, rgb(0 0 0 / calc(var(--lamp) * .18)) 62%, rgb(0 0 0 / 0) 100%);
}
/* Top-left corner sits on the intersection of the right rail and the lower hairline (1px past each), as the hero arc does. */
.foot__arc { position: absolute; left: calc(100% + 16px - var(--rail)); top: 834px; width: min(calc(var(--rail) - 16px), 104px); height: 114px; }
.foot__arc img { width: 100%; height: 100%; }
.foot__legal { position: absolute; left: 0; right: 0; bottom: 36px; padding-inline: calc(var(--rail) + 24px - 16px); display: flex; justify-content: space-between; gap: 48px; align-items: center; }
.foot__legal p { max-width: 768px; font-size: 11px; line-height: 1.44; color: var(--ink-3); }
.foot__legal nav { display: flex; gap: 20px; font-size: 13px; white-space: nowrap; }

/* ==========================================================================
   Responsive (the mockup is desktop-first; this keeps it usable down to phones)
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__links { gap: 22px; }
  .exp__side { position: static; margin-top: 24px; width: auto; max-width: 420px; }
  .exp { height: auto; padding-bottom: 120px; }
}
@media (max-width: 900px) {
  :root { --rail: 20px; --nav-h: 68px; }
  .nav__in { top: 12px; }
  .nav__links { display: none; }
  .theme { margin-left: auto; margin-right: 14px; }
  .hero { height: calc(100svh + 200svh + 100svh); }
  .hero__stage { --win-h: min(30svh, 260px); --win-w: min(calc(var(--win-h) * 1.4305), 82vw); }
  .hero__title { font-size: min(9.4vw, 8.6svh); }
  .logo { transform: scale(.8); transform-origin: 0 50%; margin-right: -40px; }
  .foot__arc { display: none; }
  .g3 { grid-template-columns: 1fr; row-gap: 24px; }
  .g3-lines, .svc__cols, .reach__gut { display: none; }
  .aud__head, .exp__head { padding-left: 24px; }
  .aud-card { min-height: 440px; }
  .about { height: auto; padding-bottom: 80px; }
  .about .row { position: relative; top: 0; height: auto; margin-top: 64px; }
  .about__cells { grid-template-columns: 1fr; width: auto; margin-inline: var(--rail); }
  .route { min-height: 300px; }
  .svc { padding-top: 96px; padding-bottom: 96px; }
  .svc__head .label, .svc__head .h2 { grid-column: 1; }
  .svc__grid { margin-top: 56px; }
  .svc__grid .scard:nth-child(2), .svc__grid .scard:nth-child(5) { margin: 0; }
  .scard { height: auto; min-height: 340px; gap: 56px; }
  .reach__cols { grid-template-columns: 1fr; padding-bottom: 300px; }
  .reach__r { margin-top: 56px; }
  .xcard { height: auto; gap: 56px; }
  .rp__grid { grid-template-rows: auto; }
  .portrait { grid-column: 1; grid-row: auto; min-height: 420px; }
  .quote, .rcard { grid-column: 1; grid-row: auto; }
  .grp__tile { min-height: 200px; }
  .grp__card { grid-column: 1; margin: 0; min-height: 360px; gap: 40px; }
  .form__row { grid-template-columns: 1fr; }
  .form__foot { flex-direction: column; align-items: flex-start; }
  .form__note { text-align: left; }
  .foot { height: auto; min-height: 980px; }
  .foot__links { flex-wrap: wrap; gap: 18px 28px; padding-inline: 24px; }
  .foot__legal { flex-direction: column; align-items: flex-start; gap: 16px; padding-inline: 24px; }
  .foot__legal nav { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}


/* ==== Airy spacing (was styles-airy.css) ==== */
/* Airy variant: the same page with far more vertical space between and inside sections.
   Loaded after styles.css by index-humanised-airy.html. Hero and footer are left as designed. */

@media (min-width: 901px) {
  /* Audiences */
  .aud { padding-top: 260px; padding-bottom: 300px; }
  .aud__head .h2 { margin-top: 48px; }
  .aud .row { margin-top: 220px; }
  .aud-card { min-height: 560px; }

  /* About: fixed-height block with an absolutely placed row, so the numbers move together */
  .about { padding-top: 240px; height: 1800px; }   /* +360: the paragraph takes centre stage before the cards (Dom, 15 Oct) */
  .about__lead { margin-top: 72px; }
  .about__sub { margin-top: 72px; }
  .about .row { top: 1160px; }

  /* Services */
  .svc { padding-top: 320px; padding-bottom: 480px; }
  .svc__cols { top: 234px; }
  .svc__head .h2 { margin-top: 44px; }
  .svc__grid { margin-top: 340px; row-gap: 56px; }
  .scard { height: 520px; }
  .scard p { margin-top: 40px; }
  .svc__grid .scard:nth-child(2), .svc__grid .scard:nth-child(5) { margin-top: 120px; margin-bottom: -120px; }

  /* Expertise: top padding and min-height grow together so the bottom rule keeps its place */
  .reach { padding-top: 300px; min-height: 1110px; }
  .reach__l .h2 { margin-top: 80px; }
  .reach__l p.body { margin-top: 64px; }

  /* Experience */
  .exp { padding-top: 300px; height: 1440px; }
  .exp__head .h2 { margin-top: 80px; }
  .exp .row { margin-top: 200px; }
  .xcard { height: 480px; }

  /* Richard, group, contact */
  .rp { padding-block: 300px; }
  .grp { padding-block: 300px; }
  .contact { padding-top: 300px; padding-bottom: 380px; }
  .contact h2 { margin-top: 100px; }
  .contact__links { margin-top: 72px; gap: 56px; }
  .contact .row { margin-top: 220px; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .exp { height: auto; padding-bottom: 300px; }
}

@media (max-width: 900px) {
  .aud { padding-top: 160px; padding-bottom: 180px; }
  .aud .row { margin-top: 112px; }
  .about { padding-top: 160px; padding-bottom: 180px; }
  .about__lead, .about__sub { margin-top: 56px; }
  .svc { padding-top: 180px; padding-bottom: 200px; }
  .svc__grid { margin-top: 112px; row-gap: 40px; }
  .reach { padding-top: 180px; }
  .exp { padding-top: 180px; padding-bottom: 200px; }
  .exp .row { margin-top: 112px; }
  .rp { padding-block: 180px; }
  .grp { padding-block: 180px; }
  .contact { padding-top: 180px; padding-bottom: 220px; }
}


/* ==== Mobile pass (theme build) ==== */
@media (max-width: 900px) {
  /* Phones widen the layout viewport by 1px for a wide, clipped line of text; clip it at the root */
  html { overflow-x: clip; }

  /* Header: one row, with the Contact arrow kept whole */
  .nav .btn--sky { flex: none; gap: 8px; padding: 4px 4px 4px 14px; font-size: 13px; }
  .nav .btn--sky .btn__arrow { width: 28px; height: 28px; }
  .theme { margin-right: 10px; }

  /* Expertise: the large mark sits under the copy instead of over it */
  .reach__hl { display: none; }
  .reach__cols { padding-bottom: 120px; }
  .reach__mark { position: relative; margin-top: 56px; height: 200px; }
  .reach__mark img { width: 436px; height: 200px; }
  .pa li { height: auto; min-height: 80px; padding-bottom: 22px; }

  /* Footer: a shorter link row so it clears the address */
  .foot__links { font-size: 20px; gap: 10px 22px; }
}
@media (max-width: 380px) {
  .logo { transform: scale(.7); margin-right: -60px; }
  .theme { margin-right: 6px; }
  .nav .btn--sky { padding-left: 12px; }
}
@media (max-width: 340px) {
  .logo { transform: scale(.58); margin-right: -86px; }
  .theme { margin-right: 4px; }
  .nav .btn--sky { padding-left: 10px; gap: 6px; }
}

/* Contact form honeypot: kept off-screen, never shown to visitors */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Grid and lamp (Dom, 15 Oct 2026; tuned in Brand/Motion/grid-lamp-tool.html)
   initGrid() in main.js adds .gl-on on fine pointers without reduced motion; elsewhere the
   page is as before. Construction lines rest at a low opacity (--gl-floor, set per section
   after the lines draw in) and a soft lamp (190px) lifts them back to full (--gl-lamp, with
   each line's --lx/--ly). A barely visible 6-column grid is drawn inside each section and
   each painted block, above its fill and under its content; lines sit above every fill.
   Masked blocks (GL.masks in main.js) have no grid of their own, and those without a fill
   get the colour behind them below, so the grid and lamp pass behind them.
   ========================================================================== */
@property --gl-floor { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --gl-lamp { syntax: '<number>'; inherits: true; initial-value: 0; }

.gl-on .cl, .gl-on .rail {
  -webkit-mask-image: radial-gradient(circle 190px at var(--lx, -9999px) var(--ly, -9999px),
    rgb(0 0 0 / calc(var(--gl-floor) + (1 - var(--gl-floor)) * var(--gl-lamp))) 0,
    rgb(0 0 0 / calc(var(--gl-floor) + (1 - var(--gl-floor)) * var(--gl-lamp) * .45)) 85.5px,
    rgb(0 0 0 / var(--gl-floor)) 190px);
          mask-image: radial-gradient(circle 190px at var(--lx, -9999px) var(--ly, -9999px),
    rgb(0 0 0 / calc(var(--gl-floor) + (1 - var(--gl-floor)) * var(--gl-lamp))) 0,
    rgb(0 0 0 / calc(var(--gl-floor) + (1 - var(--gl-floor)) * var(--gl-lamp) * .45)) 85.5px,
    rgb(0 0 0 / var(--gl-floor)) 190px);
}
.gl-host { isolation: isolate; }
.gl-on .gl-host .cl, .gl-on .gl-host .rail { z-index: 50; }
.gl-grid { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.gl-grid__frame {
  position: absolute; top: 0; bottom: 0; background-repeat: no-repeat;
  -webkit-mask-image: radial-gradient(circle 190px at var(--gx, -9999px) var(--gy, -9999px), rgb(0 0 0 / calc(var(--gf) + (1 - var(--gf)) * var(--gl-lamp))) 0, rgb(0 0 0 / var(--gf)) 190px);
          mask-image: radial-gradient(circle 190px at var(--gx, -9999px) var(--gy, -9999px), rgb(0 0 0 / calc(var(--gf) + (1 - var(--gf)) * var(--gl-lamp))) 0, rgb(0 0 0 / var(--gf)) 190px);
}

/* Comets: one fixed canvas over the page, under the nav (z 100). */
.gl-comets { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 95; }

/* Masks: blocks without a fill of their own take the colour behind them (with GL.masks in main.js). */
.gl-on .about .route, .gl-on .xcard, .gl-on #enquiry .field { background-color: var(--bg); }
.gl-on .rcard { background-color: var(--surface-2); }
.gl-on .reach__r { background-color: var(--navy); }

/* About: the two cards rise in on their own once the paragraph has had the stage. */
.js .about .route { opacity: 0; transform: translateY(56px); transition: opacity 1.2s var(--e-out) var(--rise-d, 0ms), transform 1.6s var(--e-out) var(--rise-d, 0ms); }
.js .about .route.is-in { opacity: 1; transform: none; }
