/* ==========================================================
   Trestle & Board, v3
   Style: Swiss Modernism 2.0 + exaggerated minimalism
   Type: Rig Sans throughout
   Palette: the Trestle & Board Co accessible palette (sampled from the
   Transparent and Intentional engravings), on Marshmallow White
   ========================================================== */
:root {
  /* Side padding of the page's content: 32px on phones, growing to 80px:
     the navigation bar's edge plus 32px, so text lines up with the logo
     and the "Book a free call" button inside the bar. */
  --gutter: clamp(32px, 5.56vw, 80px);
  /* Where page content starts, measured from the edge of a full-width
     element: the same edge as .container's content at every width. */
  --content-edge: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  /* Accessible palette. Ratios are on Marshmallow White (#FFFFFF), WCAG
     relative luminance; AA is 4.5:1 for text, 3:1 for large text and UI.
     The old token names are kept so the rest of the stylesheet doesn't
     change: "coral" is the accent slot, "sea" the primary button. */
  --ink: #262626;        /* Greyscale 100: text; 15.1:1 on white */
  --ink-2: #11353F;      /* Dark Slate Teal 100; 13.2:1 */
  --coral: #303642;      /* Blue 100: links, buttons; 12.1:1 on white, white text on it 12.1:1 */
  --sun: #6599B0;        /* Deep Teal Blue 70: fills and rules, text on the charcoal bands (4.9:1); never text on white */
  --coral-red: #236D8E;  /* Deep Teal Blue 100: accent words in headings; 5.8:1 on white */
  --ochre-text: #236D8E; /* Deep Teal Blue 100: accent text and icons; 5.8:1 */
  --mint: #BDD3DD;       /* Deep Teal Blue 30: panels and tags (Greyscale 100 text on it 10.4:1) */
  --teal: #303642;       /* Slate Blue */
  --pewter: #C1C3C6;     /* Dusty Grey-Blue: panels and dividers; decorative (2.5:1) */
  --paper: #FFFFFF;      /* Marshmallow White */
  --bone: #C1C3C6;       /* Dusty Grey-Blue, quiet details */
  --parchment: #FFFFFF;  /* the Approach band */
  --sea: #303642;        /* Blue 100: primary buttons, the feature package card */
  --sea-deep: #454A55;   /* Blue 90: button hover */
  /* Status, each always paired with an icon and words */
  --success: #238E56;    /* Success 100: icons and large text (4.1:1 on white) */
  --alert-fill: #D3B833; /* Warning 100: fills, with Greyscale 100 text (7.7:1) */
  --alert-text: #262626; /* Greyscale 100: warning text, beside a Warning fill */
  --error: #C13A3A;      /* Error 100; 5.3:1 */
  /* Roles */
  --bg: #FFFFFF;             /* page background: white */
  --surface: #EAEBEC;        /* Blue 10: cards and quiet panels */
  --text: var(--ink);
  --muted: #595E68;          /* Blue 80: secondary text; 6.4:1 */
  --line: rgba(38, 38, 38, 0.18);
  --line-strong: var(--ink);
  --accent-text: var(--coral-red);   /* accent words */
  --label-text: var(--coral);        /* small uppercase labels; 6.8:1 */
  --body-text: #454A55;      /* Blue 90: running text (paragraphs, lists); 8.9:1 on white */
  --label: #303642;          /* Blue 100: section labels; 12.1:1 */
  --bg-illustration: #FFFFFF;        /* the Approach band, behind the illustrations */
  --focus: var(--coral);
  /* Type */
  /* Headings: Rig Sans (Adobe Fonts kit linked in the page <head>), Bold,
     with its true italic for accent words. --serif is the display role
     (h1, h2, large statements, scrolling bands) and --heading the smaller
     headings (h3, h4); both use it. Body and UI text (--sans) use it too. */
  --serif: "rig-sans", system-ui, sans-serif;
  --heading: "rig-sans", system-ui, sans-serif;
  /* Rig Sans weights in the kit: 200 Thin, 400 Regular, 700 Bold and
     800 Extrabold, each with an italic. Text asking for 500 gets 400 and
     600 gets 700, by the browser's normal font matching. */
  --weight-display: 800;     /* the biggest lines: hero headline, closing call to action, scrolling bands */
  --heading-weight: 800;     /* section headings, statements and smaller headings (the heaviest in the kit) */
  --sans: "rig-sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Type scale. Big editorial display: 48-128px Bold with very
     tight tracking for the hero and closing line, 40-96px for section
     headings; subheads 24-36px; body 16-22px; UI, captions and labels
     12-14px, with a touch of extra tracking below 14px. */
  --fs-display-xl: clamp(3rem, 1rem + 6.5vw, 8rem);        /* 48-128px */
  --fs-display: clamp(2.5rem, 1rem + 5vw, 6rem);           /* 40-96px */
  --fs-display-sm: clamp(2rem, 1rem + 2.8vw, 3.75rem);     /* 32-60px */
  --fs-sub: clamp(1.5rem, 1.1rem + 1.1vw, 2.25rem);        /* 24-36px */
  --fs-sub-sm: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);     /* 20-24px */
  --fs-body-lg: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);  /* 18-22px */
  --fs-body: 1rem;                                          /* 16px: every paragraph */
  --fs-ui: 0.875rem;                                        /* 14px */
  --fs-caption: 0.8125rem;                                  /* 13px */
  --fs-label: 0.75rem;                                      /* 12px */
  --fs-title: 1.125rem;                                     /* 18px: small headings in cards, indexes and tooltips */
  --fs-price-lg: clamp(2.25rem, 1rem + 2.6vw, 3.5rem);      /* 36-56px: prices on cards and posters */
  --fs-price: 1.375rem;                                     /* 22px: prices in compare cards, strips and the spec sheet */
  /* Tracking: three values. Display and big prices, subheads and small
     prices, labels. Small UI text may take a touch of extra space. */
  --track-display: -0.045em;
  --track-head: -0.045em;
  --track-sub: -0.02em;
  --track-label: 0.14em;
  --track-small: 0.01em;
  /* Line height: one per text size. */
  --lh-body: 1.7;   /* 16px */
  --lh-lg: 1.6;     /* 18-22px */
  --lh-ui: 1.5;     /* 13-14px */
  /* Mono: the wireframe and spec voice (step numbers, badges, spec sheet
     and skeleton labels, code). 12px minimum; 600 for labels, 700 for badges. */
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Spacing (4px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --section-y: clamp(96px, 13vw, 176px);

  /* Palette additions (December 2026). Kāpiti Sand: a warm neutral for
     paper-like sections. Emerald: defined for later; not used yet. */
  --sand-100: #7D7262; --sand-90: #8A8072; --sand-80: #978E81; --sand-70: #A49C91; --sand-30: #D8D5D0; --sand-20: #E5E3E0; --sand-10: #F2F1EF;
  --emerald-100: #0F4A37; --emerald-90: #275C4B; --emerald-80: #3F6E5F; --emerald-70: #578073; --emerald-30: #B7C9C3; --emerald-20: #CFDBD7; --emerald-10: #E7EDEB;
  --max: 1440px;   /* with the 80px gutter, content is 1280px wide, set 32px inside the floating navigation bar's edges */
  --header-gap: 12px;   /* space around the floating navigation bar */
  --header-bar: 72px;
  --header-h: calc(var(--header-bar) + 2 * var(--header-gap));   /* 96px */
  --radius: 4px;
  --radius-xl: 32px;   /* the Design principles panels' top corners */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --curve: clamp(28px, 5vw, 88px);   /* height of the arched section tops */
  --shadow: 0 1px 2px rgba(38, 38, 38, .06), 0 20px 48px -20px rgba(38, 38, 38, .25);

  --z-header: 50;
  --z-skip: 60;

  color-scheme: light;
}

/* Dark mode follows the device setting unless the visitor picks a theme with
   the switch in the navigation (data-theme on <html>, set in js/main.js and
   restored before first paint by the inline script in <head>). Each dark rule
   is written twice: for the device setting, and for a chosen dark theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #262626;             /* Greyscale 100 */
    --surface: #3C3C3C;        /* Greyscale 90: cards */
    --text: #FFFFFF;           /* white; 15.1:1 */
    --body-text: var(--text);
    --muted: #C1C3C6;          /* Blue 30; 9.6:1 */
    --line: rgba(255, 255, 255, 0.16);
    --line-strong: #FFFFFF;
    --accent-text: #6599B0;    /* Deep Teal Blue 70; 4.9:1 */
    --label-text: #C1C3C6;     /* Blue 30 */
    --label: #6599B0;          /* Deep Teal Blue 70; 4.9:1 */
    --coral: #C1C3C6;          /* Blue 30: links in dark mode; 8.6:1 */
    --coral-red: #6599B0;      /* Deep Teal Blue 70; 4.9:1 */
    --ochre-text: #6599B0;
    --success: #65B089;        /* Success 70; 5.9:1 */
    --error: #ECC4C4;          /* Error 30; 9.6:1 */
    --alert-text: #D3B833;     /* Warning 100; 7.7:1 */
    --focus: #6599B0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 20px 48px -20px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #262626;             /* Greyscale 100 */
  --surface: #3C3C3C;        /* Greyscale 90: cards */
  --text: #FFFFFF;           /* white; 15.1:1 */
  --body-text: var(--text);
  --muted: #C1C3C6;          /* Blue 30; 9.6:1 */
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: #FFFFFF;
  --accent-text: #6599B0;    /* Deep Teal Blue 70; 4.9:1 */
  --label-text: #C1C3C6;     /* Blue 30 */
  --label: #6599B0;          /* Deep Teal Blue 70; 4.9:1 */
  --coral: #C1C3C6;          /* Blue 30: links in dark mode; 8.6:1 */
  --coral-red: #6599B0;      /* Deep Teal Blue 70; 4.9:1 */
  --ochre-text: #6599B0;
  --success: #65B089;        /* Success 70; 5.9:1 */
  --error: #ECC4C4;          /* Error 30; 9.6:1 */
  --alert-text: #D3B833;     /* Warning 100; 7.7:1 */
  --focus: #6599B0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 20px 48px -20px rgba(0, 0, 0, .6);
  color-scheme: dark;
  }

/* ---------- Base ---------- */

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

button, input, select, textarea { font: inherit; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
/* While the cookie banner is open (js/analytics.js), the page ends that much
   lower, and focused controls stop above the banner rather than under it. */
html.consent-open { scroll-padding-bottom: var(--consent-h, 0px); }
html.consent-open .site-footer { padding-bottom: calc(var(--consent-h, 0px) + var(--s5)); }

/* While ScrollSmoother runs (html.has-smoother, js/main.js) it does the
   easing itself, so the browser's own smooth scrolling is switched off. */
html.has-smoother { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: var(--heading-weight);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: var(--fs-display); letter-spacing: var(--track-head); line-height: 0.98; }
h3, h4 { font-family: var(--heading); }
h3 { font-size: var(--fs-sub); letter-spacing: var(--track-sub); line-height: 1.25; }
h4 { font-size: var(--fs-sub-sm); letter-spacing: var(--track-sub); line-height: 1.3; }

h1 em, h2 em, .outcome-text em {
  font-style: italic;
  font-weight: inherit;
  color: var(--accent-text);
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Section labels, the design system's `label` style everywhere: 12px
   bold capitals (700), spaced 0.14em, line height 1.4, in the `label`
   colour (Slate Blue; Mustard on dark grounds and on the charcoal bands).
   The other small labels (principles intro, Gestalt, process steps, the
   product meta line) take the same style in their own rules. */
.label {
  margin-bottom: var(--s5);
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}
.label-light { color: var(--label); }
/* Labels on the dark package cards (Greyscale 90) take Gold 30: Gold 70 is
   only 3.6:1 there. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pkg { --label: #BDD3DD; } }
:root[data-theme="dark"] .pkg { --label: #BDD3DD; }

.icon {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: absolute;
  left: var(--s4); top: -100px;
  z-index: var(--z-skip);
  padding: var(--s3) var(--s4);
  background: var(--ink); color: var(--paper);
  font-size: var(--fs-ui);
  font-weight: 400;
}
.skip-link:focus { top: var(--s4); }

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

/* ---------- Buttons: Speculum ----------
   From the Speculum design system (Documents/Design system,
   src/components/atoms/Button): a pill with a 1.5px border, weight 600,
   and four variants. Primary is the solid button, secondary the outlined
   one, ghost the quiet one, accent the one colour. The site's class names
   map onto them: .btn-primary and .btn-dark are primary, .btn-ghost is
   secondary, .btn-link is ghost. Buttons are magnetic, and pressing one
   squashes and settles it with a burst of confetti (js/main.js). Sizes keep a 44px minimum so
   they're easy to tap. */
:root {
  /* Speculum's grey scale, rebuilt warm: steps from Marshmallow White to
     Charcoal Ink. 500 is the lightest that passes for text (4.5:1+). */
  --sp-gray-0: #FFFFFF;   --sp-gray-50: #E9E9E9;  --sp-gray-100: #E9E9E9;
  --sp-gray-200: #D4D4D4; --sp-gray-300: #BEBEBE; --sp-gray-500: #676767;
  --sp-gray-700: #515151; --sp-gray-800: #3C3C3C; --sp-gray-900: #262626;
  --sp-ease: cubic-bezier(0.2, 0, 0, 1);
  --sp-fast: 200ms;
  /* Roles, swapped for dark mode below */
  --btn-primary-bg: #11353F;  --btn-primary-fg: #FFFFFF;  --btn-primary-hover: #294952;   /* Dark Slate Teal 100, hover 90; white text 12.9:1 */
  --btn-secondary-bg: var(--sp-gray-0);  --btn-secondary-fg: var(--sp-gray-900);
  --btn-secondary-line: var(--sp-gray-300); --btn-secondary-hover-line: var(--sp-gray-900);
  --btn-ghost-fg: var(--sp-gray-700);    --btn-ghost-hover: var(--sp-gray-100);
  /* Confetti: Speculum's ink, mid and soft greys */
  --confetti-1: var(--sp-gray-900); --confetti-2: var(--sp-gray-500); --confetti-3: var(--sp-gray-300);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --btn-primary-bg: #6599B0;  --btn-primary-fg: #262626; --btn-primary-hover: #BDD3DD;
    --btn-secondary-bg: var(--sp-gray-900); --btn-secondary-fg: var(--sp-gray-0);
    --btn-secondary-line: var(--sp-gray-700); --btn-secondary-hover-line: var(--sp-gray-0);
    --btn-ghost-fg: var(--sp-gray-200);  --btn-ghost-hover: var(--sp-gray-800);
    --confetti-1: var(--sp-gray-0); --confetti-2: var(--sp-gray-300);
  }
}
:root[data-theme="dark"] {
  --btn-primary-bg: #6599B0;  --btn-primary-fg: #262626; --btn-primary-hover: #BDD3DD;
  --btn-secondary-bg: var(--sp-gray-900); --btn-secondary-fg: var(--sp-gray-0);
  --btn-secondary-line: var(--sp-gray-700); --btn-secondary-hover-line: var(--sp-gray-0);
  --btn-ghost-fg: var(--sp-gray-200);  --btn-ghost-hover: var(--sp-gray-800);
  --confetti-1: var(--sp-gray-0); --confetti-2: var(--sp-gray-300);
}

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 44px;
  padding: var(--s2) var(--s4);
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: var(--fs-ui);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--sp-fast) var(--sp-ease), border-color var(--sp-fast), color var(--sp-fast);
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn .icon { width: 1.1em; height: 1.1em; }
.fx-layer { position: fixed; inset: 0; z-index: 9999; overflow: hidden; pointer-events: none; }
.fx-confetti { position: absolute; left: 0; top: 0; width: 10px; height: 10px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }

.btn-sm { padding: var(--s1) var(--s3); font-size: var(--fs-ui); }
.btn-lg { min-height: 52px; padding: var(--s3) var(--s5); font-size: 1rem; }

/* primary */
.btn-primary, .btn-dark { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.btn-primary:hover, .btn-dark:hover { background: var(--btn-primary-hover); color: var(--btn-primary-fg); }
/* secondary */
.btn-ghost { background: var(--btn-secondary-bg); border-color: var(--btn-secondary-line); color: var(--btn-secondary-fg); }
.btn-ghost:hover { border-color: var(--btn-secondary-hover-line); }
/* ghost */
.btn-link { background: transparent; color: var(--btn-ghost-fg); }
.btn-link:hover { background: var(--btn-ghost-hover); }

/* ---------- Header ---------- */

/* Navigation: Speculum's ExpandNav (Documents/Design system,
   src/components/organisms/ExpandNav.module.scss), glass tone. The header is
   a transparent sticky strip that takes no space (its negative margin lets
   the page run underneath); the frosted shell floats 12px in from the edges
   and expands into the full menu (js/expandnav.js). */
.xnav {
  --xnav-bg: color-mix(in srgb, var(--bg) 58%, transparent);
  --xnav-ink: var(--text);
  --xnav-muted: var(--muted);
  --xnav-rule: var(--line);
  --xnav-hover: color-mix(in srgb, var(--bg) 60%, transparent);
  --xnav-rim: rgba(255, 255, 255, 0.6);
  --xnav-rim-top: rgba(255, 255, 255, 0.9);
  --xnav-scrim: rgba(38, 38, 38, 0.18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .xnav { --xnav-rim: rgba(255, 255, 255, 0.08); --xnav-rim-top: rgba(255, 255, 255, 0.14); --xnav-scrim: rgba(0, 0, 0, 0.4); }
}
:root[data-theme="dark"] .xnav { --xnav-rim: rgba(255, 255, 255, 0.08); --xnav-rim-top: rgba(255, 255, 255, 0.14); --xnav-scrim: rgba(0, 0, 0, 0.4); }
/* No blur support: a near-solid surface so text stays readable. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .xnav { --xnav-bg: color-mix(in srgb, var(--bg) 94%, transparent); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  margin-bottom: calc(-1 * var(--header-h));
  padding: var(--header-gap);
  pointer-events: none;            /* only the shell (and the open scrim) take clicks */
}

.xnav__scrim {
  position: fixed;
  inset: 0;
  background: var(--xnav-scrim);
  pointer-events: auto;
}
.xnav[data-phase="closed"] .xnav__scrim { visibility: hidden; }

.xnav__shell {
  position: relative;
  max-width: 1344px;   /* the content width (--max less the gutters) */
  margin-inline: auto;
  border-radius: 12px;
  background: var(--xnav-bg);
  color: var(--xnav-ink);
  /* Own compositing layer so the blur isn't recomputed with the rest of the page. */
  isolation: isolate;
  transform: translateZ(0);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 40px -18px rgba(0, 0, 0, 0.28), inset 0 0 0 1px var(--xnav-rim), inset 0 1px 0 var(--xnav-rim-top);
  pointer-events: auto;
}

/* ── Bar: logo · menu button · call to action ── */
.xnav__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s4);
  min-height: var(--header-bar);
  padding-inline: clamp(16px, 2.5vw, 32px);
}
.xnav__bar .brand { justify-self: start; border-radius: 8px; }
/* The logo in the navigation is Blue 100 (12.1:1 on the white glass). In
   dark mode it stays white: Blue 100 would vanish on the dark glass. */
/* The logo changes colour as each section passes under the header
   (js/main.js sets data-logo on the header: 0 to 3, in turn). Light mode
   steps through the 100s of Blue, Deep Teal Blue and Dark Slate Teal, and
   Deep Teal Blue 80; dark mode through white and their light tints. */
.xnav__bar .brand { --logo-0: #303642; --logo-1: #236D8E; --logo-2: #11353F; --logo-3: #4F8AA5; color: var(--logo-0); transition: color 700ms var(--ease); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .xnav__bar .brand { --logo-0: var(--xnav-ink); --logo-1: #BDD3DD; --logo-2: #B8C2C5; --logo-3: #6599B0; } }
:root[data-theme="dark"] .xnav__bar .brand { --logo-0: var(--xnav-ink); --logo-1: #BDD3DD; --logo-2: #B8C2C5; --logo-3: #6599B0; }
.xnav[data-logo="1"] .xnav__bar .brand { color: var(--logo-1); }
.xnav[data-logo="2"] .xnav__bar .brand { color: var(--logo-2); }
.xnav[data-logo="3"] .xnav__bar .brand { color: var(--logo-3); }
@media (prefers-reduced-motion: reduce) { .xnav__bar .brand { transition: none; } }
.xnav__toggle {
  position: relative;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--xnav-ink);
  cursor: pointer;
  transition: background 160ms var(--ease);
}
.xnav__toggle:hover { background: var(--xnav-hover); }
.xnav__line {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  border-radius: 4px;
  background: currentColor;
}
.xnav__line:nth-child(1) { top: calc(50% - 4.75px); }
.xnav__line:nth-child(2) { top: calc(50% + 3.25px); }

/* The field around the pill is the magnet's reach. */
.xnav__cta-field {
  justify-self: end;
  display: inline-flex;
  padding: var(--s3) var(--s4);
  margin: calc(var(--s3) * -1) calc(var(--s4) * -1);
}
.xnav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--s3) var(--s5);
  border-radius: 999px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  font-size: var(--fs-ui);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  will-change: transform;
  transition: background 160ms var(--ease), box-shadow 240ms var(--ease);
}
.xnav__cta:hover { background: var(--btn-primary-hover); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45); }
.xnav__cta-text { display: inline-block; }
@media (max-width: 420px) {
  .xnav__bar { gap: var(--s2); }
  .xnav__cta { padding-inline: var(--s4); font-size: var(--fs-caption); }
}
/* The smallest phones: a smaller logo and no extra magnet zone, so the bar fits. */
@media (max-width: 360px) {
  .xnav__bar .brand-logo { height: 32px; }
  .xnav__cta-field { padding: 0; margin: 0; }
  .xnav__cta { padding-inline: var(--s3); }
}

/* ── Expanded body ── */
.xnav__body { height: 0; overflow: hidden; }
.xnav.is-open .xnav__body { height: auto; }          /* without GSAP */
.xnav__scroll {
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.xnav__rule {
  display: block;
  height: 1px;
  margin: 0 clamp(16px, 2.5vw, 32px);
  background: linear-gradient(90deg, transparent, var(--xnav-rule) 15%, var(--xnav-rule) 85%, transparent);
}
.xnav__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
  padding: var(--s6) clamp(16px, 2.5vw, 32px);
}
@media (min-width: 768px) { .xnav__grid { grid-template-columns: 1.15fr 1fr; } }
@media (min-width: 1024px) { .xnav__grid { grid-template-columns: 1.25fr 0.85fr 1fr; gap: var(--s7); } }

.xnav__links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.xnav__links a {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s4);
  color: var(--xnav-ink);
  text-decoration: none;
  border-radius: 8px;
}
.xnav__mask { display: inline-block; overflow: hidden; padding-bottom: 0.08em; }
.xnav__label {
  display: inline-block;
  font-family: var(--serif);
  font-size: var(--fs-sub);
  font-weight: var(--heading-weight);
  line-height: 1.1;
  letter-spacing: var(--track-sub);
  transition: color 160ms var(--ease);
}
/* Index tree: pages are the large items; the home page's sections hang
   off "Home" on connector lines (├ and └), smaller and quieter, so it's
   clear which links scroll within the home page and which open a page. */
.xnav__tree {
  --tree-line: color-mix(in srgb, var(--xnav-ink) 32%, transparent);
  list-style: none;
  display: grid;
  margin: var(--s2) 0 var(--s1) 0.5em;
  padding: 0;
}
.xnav__tree li { position: relative; padding: 3px 0 3px 26px; }
.xnav__tree li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1.5px solid var(--tree-line); }
.xnav__tree li:last-child::before { bottom: auto; height: 50%; }
.xnav__tree li::after { content: ""; position: absolute; left: 0; top: 50%; width: 16px; border-top: 1.5px solid var(--tree-line); }
.xnav__tree a { color: var(--xnav-muted); }
.xnav__tree .xnav__label {
  font-size: var(--fs-sub-sm);
  font-weight: var(--heading-weight);
  letter-spacing: var(--track-sub);
}
.xnav__tree .xnav__char:last-child { color: var(--xnav-ink); }

/* Rolling text: the twin under each letter takes the accent colour, so the roll reads. */
.xnav__label.is-rolling .xnav__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.xnav__roll { display: inline-flex; white-space: nowrap; --roll-h: 1.15em; line-height: var(--roll-h); }
.xnav__col { display: inline-block; height: var(--roll-h); overflow: hidden; clip-path: inset(0); vertical-align: top; }
.xnav__reel { display: flex; flex-direction: column; align-items: center; }
.xnav__char { display: block; height: var(--roll-h); }
.xnav__char:last-child { color: var(--xnav-muted); }
html.cms-editing .xnav__label.is-rolling .xnav__text { position: static; width: auto; height: auto; clip-path: none; }
html.cms-editing .xnav__roll { display: none; }
.xnav__links a[aria-current="page"] .xnav__label { font-style: italic; }

.xnav__info { display: grid; align-content: start; gap: var(--s5); }
.xnav__group { display: grid; gap: var(--s2); }
.xnav__group-title { font-size: var(--fs-caption); color: var(--xnav-muted); }
.xnav__item, .xnav__large {
  width: fit-content;
  color: var(--xnav-ink);
  text-decoration: none;
  font-size: var(--fs-ui);
  border-radius: 8px;
}
a.xnav__item:hover, a.xnav__large:hover { text-decoration: underline; text-underline-offset: 3px; }
.xnav__large { font-size: var(--fs-sub-sm); font-weight: var(--heading-weight); letter-spacing: var(--track-sub); overflow-wrap: anywhere; }

.xnav__media {
  position: relative;
  display: none;
  margin: 0;
  min-height: 280px;
  border-radius: 12px;
  overflow: hidden;
}
@media (min-width: 1024px) { .xnav__media { display: block; } }
.xnav__art { position: absolute; inset: 0; }
.xnav__art img { width: 100%; height: 100%; object-fit: cover; }
.xnav__caption-mask { position: absolute; left: var(--s4); right: var(--s4); bottom: var(--s4); overflow: hidden; }
.xnav__caption {
  display: inline-block;
  max-width: 28ch;
  padding: var(--s2) var(--s3);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  color: var(--text);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: var(--fs-ui);
  line-height: 1.35;
}

.xnav__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s4) clamp(16px, 2.5vw, 32px);
  font-size: var(--fs-caption);
  color: var(--xnav-muted);
}
.xnav__status { display: inline-flex; align-items: center; gap: var(--s2); }
.xnav__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--xnav-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--xnav-ink) 18%, transparent); }
.xnav__where { display: inline-flex; gap: var(--s3); }
.xnav__clock { font-variant-numeric: tabular-nums; color: var(--xnav-ink); }

/* Reduced motion: open without the timeline. */
.xnav.is-static .xnav__body { height: auto !important; }
.xnav.is-static :is([data-scrim], [data-info], [data-media], [data-foot], [data-label], [data-caption]) { opacity: 1 !important; visibility: inherit !important; transform: none !important; }
.xnav.is-static [data-line1] { transform: translateY(4px) rotate(45deg) !important; }
.xnav.is-static [data-line2] { transform: translateY(-4px) rotate(-45deg) !important; }

/* Without JS the menu sits open in the page flow. */
html:not(.js) .site-header { position: static; height: auto; margin-bottom: 0; }
html:not(.js) .xnav__body { height: auto; }
html:not(.js) .xnav__toggle { visibility: hidden; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  min-height: 44px;
  font-family: var(--serif);
  font-weight: var(--heading-weight);
  font-size: var(--fs-sub-sm);
  letter-spacing: var(--track-sub);
  text-decoration: none;
  color: var(--text);
}
/* Navigation logo: inline SVG drawn in currentColor, so the scroll script can
   shift it through colours sampled from the hero image. */
.brand--nav { color: var(--text); }
.brand-logo {
  display: block;
  height: 46px;
  width: auto;                     /* keeps the logo's 170:72 ratio */
}
@media (max-width: 600px) {
  .brand-logo { height: 38px; }
}

.brand--footer .brand-logo { height: 56px; }

.footer-nav a {
  font-size: var(--fs-ui);
  font-weight: 400;
  text-decoration: none;
  padding-block: var(--s2);
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size 280ms var(--ease);
}
.footer-nav a:hover { background-size: 100% 1px; }


/* ---------- Hero ---------- */

/* ---------- Hero image ----------
   The engraving closes the page, just above the footer. It runs the full
   width of the viewport (100%, not 100vw, so a desktop scrollbar never
   pushes it into a sideways scroll) at its 2000:1116 ratio; the white band
   is exactly the picture's height. It fades in as it arrives (js/main.js). */
.hero-image {
  position: relative;
  overflow: clip;
  z-index: 0;            /* under the nav (z 50) */
  background: var(--bg); /* the engraving's paper is transparent, so it sits on the page colour */
}
.hero-image__frame {
  position: relative;
  width: 100%;
}
.hero-image__frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Intro, in two halves. The compass illustration fills the left half (its
   paper is transparent, so it sits on the page colour); the logo,
   headline, lede and actions sit in the right half. */
.hero {
  position: relative;
  z-index: 1;           /* above the hero image, which slides under it */
  background: var(--bg);
  /* Always clear the floating menu, so the compass is never under it. */
  padding-block: max(calc(var(--header-h) + var(--s4)), clamp(64px, 8vw, 128px)) clamp(64px, 8vw, 128px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);   /* the same content edge as every section */
}
.intro-art { margin: 0; }
.intro-art__stage { position: relative; max-width: 840px; }
.intro-art img { display: block; width: 100%; height: auto; }
/* The opening sequence's overlay (js/main.js), exactly over the picture.
   Both parts are invisible until the sequence runs, and gone after. */
.intro-art__fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.intro-art__spark { opacity: 0; mix-blend-mode: multiply; }
.intro-art__trace {
  fill: none;
  stroke: #6599B0;
  stroke-width: 3.5;
  stroke-linecap: round;
  opacity: 0;
}
/* The drawing point: a short bright stretch leading the gold line. */
.intro-art__nib {
  fill: none;
  stroke: #F2EAC2;
  stroke-width: 7;
  stroke-linecap: round;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(173, 158, 69, 0.9));
}
.hero-copy { max-width: 52rem; color: var(--ink); }

.hero h1 {
  font-size: var(--fs-display-sm);   /* 32-60px */
  font-weight: var(--heading-weight);
  line-height: 1.06;
  letter-spacing: var(--track-head);
  text-wrap: pretty;
}
.hero h1 em { font-style: normal; color: var(--coral-red); }

.lede {
  margin-top: clamp(32px, 4vw, 72px);
  max-width: 36rem;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* Dark theme: the compass swaps to its version drawn on charcoal, cropped
   to the same framing so the opening sequence still lands on the red mark
   and the blue circle; the section takes that same charcoal (#262626) so
   the picture has no visible edge. The spark glows (screen) instead of
   staining (multiply). Only the picture in use loads. */
.intro-art .intro-art__dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero { background: #262626; }
  :root:not([data-theme="light"]) .hero-copy { color: var(--text); }
  :root:not([data-theme="light"]) .hero h1 em { color: var(--accent-text); }
  :root:not([data-theme="light"]) .intro-art .intro-art__light { display: none; }
  :root:not([data-theme="light"]) .intro-art .intro-art__dark { display: block; }
  :root:not([data-theme="light"]) .intro-art__spark { mix-blend-mode: screen; }
}
:root[data-theme="dark"] .hero { background: #262626; }
:root[data-theme="dark"] .hero-copy { color: var(--text); }
:root[data-theme="dark"] .hero h1 em { color: var(--accent-text); }
:root[data-theme="dark"] .intro-art .intro-art__light { display: none; }
:root[data-theme="dark"] .intro-art .intro-art__dark { display: block; }
:root[data-theme="dark"] .intro-art__spark { mix-blend-mode: screen; }

/* How the work is made: a quieter note in the disclaimer, with the AI tools named */
.ai-note {
  margin-top: var(--s6);
  max-width: 40rem;
  padding-left: var(--s5);
  border-left: 2px solid var(--line);
}
.ai-note__text { font-size: var(--fs-body); line-height: 1.7; color: var(--muted); }
.ai-tools {
  list-style: none;
  margin: var(--s4) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  font-size: var(--fs-ui);
  font-weight: 400;
}
.ai-tools li { display: inline-flex; align-items: center; gap: var(--s2); }
.ai-tools__logo { width: 24px; height: 24px; flex: none; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4) var(--s6);
  margin-top: clamp(40px, 5vw, 96px);
}

/* The isolation effect: a full-screen field of alike dots on charcoal, one lit
   like a small sun. js/main.js draws the dots to fit the section and leaves
   out the ones behind the copy. Hovering or tapping a dot lights it instead;
   the light returns to its home dot when the pointer leaves. */
.section.isolation {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + var(--s8)) calc(68px + var(--curve) + var(--s5));
  background: var(--ink);
  color: #FFFFFF;
  overflow: hidden;
  isolation: isolate;
}
.dot-field { position: absolute; inset: 0; z-index: 0; }
.iso-svg { display: block; width: 100%; height: 100%; }
.iso-dot { fill: #587279; }
.iso-burst {
  opacity: 0;
  transform: scale(0.35);
  transform-box: fill-box;
  transform-origin: center;
  mix-blend-mode: screen;
  pointer-events: none;
  transition:
    opacity 420ms ease,
    transform 560ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.iso-burst.is-lit {
  opacity: 1;
  transform: scale(1);
  animation: iso-turn 48s linear infinite;
}
@keyframes iso-turn { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .iso-burst { transform: none; transition: opacity 200ms ease; }
  .iso-burst.is-lit { animation: none; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .section.isolation { background: #262626; } }
:root[data-theme="dark"] .section.isolation { background: #262626; }

.section.isolation, .section.gestalt-slide { grid-template-columns: minmax(0, 1fr); }   /* the container fills the width, like every section */
.isolation-inner { position: relative; z-index: 1; width: 100%; pointer-events: none; }
.isolation-copy { max-width: 46rem; pointer-events: auto; }
/* Sized so "The isolation effect." always sits on one line: 28px on a
   small phone up to 60px from tablet width up (the line is about 8.6 times
   the font size wide). */
.isolation-copy h2 {
  font-size: var(--fs-display-sm);
  letter-spacing: var(--track-head);
  line-height: 1;
  white-space: nowrap;
  color: #FFFFFF;
}
.isolation-copy .isolation-lede {
  margin-top: var(--s4);
  max-width: 34rem;
  font-family: var(--sans);
  font-size: var(--fs-body-lg);
  font-weight: 400;
  line-height: var(--lh-lg);
  color: rgba(255, 255, 255, 0.84);
}
/* ---------- Gestalt principles of perception ----------
   gestalt.html, built on Speculum's LateralPinIndicator (bar indicator):
   an index beside eight large cards, one per principle. The bar slides to
   the label of the card crossing the middle of the screen; clicking a
   label brings its card there (js/gestalt.js). Each card is a charcoal
   panel with a soft shadow, holding the drawing that responds to the
   pointer, a tap or "Show me": the isolation effect first (js/main.js),
   then seven more (js/gestalt.js). */
.gestalt {
  --g-base: rgba(255, 255, 255, 0.34);
  --g-hi: #BDD3DD;                 /* Deep Teal Blue 30 */
  --g-line: rgba(255, 255, 255, 0.55);
  --g-card: #262626;               /* Greyscale 100 */
  --g-ground: var(--g-card);       /* the figure and ground drawing turns to the card's colour */
  --g-shadow: 0 2px 6px rgba(38, 38, 38, 0.06), 0 32px 72px -28px rgba(38, 38, 38, 0.38);
  --g-idle: #676767;               /* Greyscale 70; 5.7:1 on white */
  position: relative;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gestalt { --g-card: #3C3C3C; --g-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 32px 72px -28px rgba(0, 0, 0, 0.8); --g-idle: #BEBEBE; }
}
:root[data-theme="dark"] .gestalt { --g-card: #3C3C3C; --g-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 32px 72px -28px rgba(0, 0, 0, 0.8); --g-idle: #BEBEBE; }

/* The layout: the index in a narrow column, the cards in the wide one,
   inside the one content width. */
.gpin {
  display: grid;
  grid-template-columns: minmax(200px, 17rem) minmax(0, 1fr);
  column-gap: clamp(var(--s6), 4vw, var(--s8));
  width: 100%;                     /* the page's full width, so the cards run wide */
  padding: calc(var(--header-h) + var(--s5)) var(--gutter) var(--s9);
}
.gpin__aside {
  position: sticky;
  top: var(--header-h);
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s6);
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
}
html.has-smoother .gpin__aside { position: relative; top: auto; }
html.has-smoother .gpin__nav { top: auto; }
.gpin__nav { position: relative; z-index: 5; }
.gestalt-title.gestalt-title {
  margin: 0;
  max-width: 16rem;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}
.gpin__list { position: relative; padding-left: var(--s5); }
.gpin__list ol { display: grid; margin: 0; padding: 0; list-style: none; }
.gpin__track { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.gpin__indicator { position: absolute; left: -1px; top: 0; width: 3px; height: 0; border-radius: 3px; background: var(--label); will-change: transform; }
.gpin__label {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  padding: 6px 0;
  font-size: var(--fs-title);
  font-weight: var(--heading-weight);
  letter-spacing: var(--track-sub);
  line-height: 1.25;
  color: var(--g-idle);
  text-decoration: none;
  transition: color 240ms var(--ease), transform 450ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gpin__label:hover { color: var(--text); }
.gpin__label[aria-current="true"] { color: var(--text); transform: translateX(4px); }
.gpin__label:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.gpin__num { flex: none; font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track-label); font-variant-numeric: tabular-nums; }

/* The cards: large, charcoal, with a soft shadow. Each is as tall as the
   screen allows below the header, and becomes active as it crosses the
   middle. */
.gpin__content { display: grid; gap: var(--s7); padding-block: calc(16svh - var(--header-h) / 2) 16svh; }
.gpin .section.gestalt-panel {
  position: relative;
  display: grid;
  align-items: center;
  /* Wide and short of the screen, so the cards above and below show,
     faded (js/gestalt.js). */
  min-height: 520px;
  height: min(68vh, 760px);
  height: min(68svh, 760px);
  padding: clamp(var(--s6), 4vw, var(--s8));
  border-radius: var(--radius-xl);
  background: var(--g-card);
  box-shadow: var(--g-shadow);
  color: #FFFFFF;
  overflow: hidden;
  isolation: isolate;
  scroll-margin-block: calc(var(--header-h) + var(--s5)) var(--s5);
}
.gpin .section.gestalt-panel::before { display: none; }
.gpin .gestalt-panel { --label: #BDD3DD; --focus: #BDD3DD; }   /* Deep Teal Blue 30 on the card: 10.4:1 on Greyscale 100, 7.6:1 on Greyscale 90 */
.gpin .gestalt-panel:focus { outline: none; }
.gpin .gestalt-panel:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.gpin .gestalt-panel > .container { max-width: none; padding-inline: 0; }

/* Phones: the title sits above, the labels become a row across the top
   that stays under the site menu, and the bar runs under the active label. */
@media (max-width: 899px) {
  .gpin { grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--header-h) + var(--s4)); }
  .gpin__aside { display: contents; }
  .gestalt-title.gestalt-title { max-width: none; margin-bottom: var(--s4); }
  .gpin__nav {
    position: sticky;
    top: var(--header-h);
    z-index: 5;
  }
  /* The row's backing runs out to the screen edges. */
  .gpin__nav::before {
    content: "";
    position: absolute;
    inset: 0 calc(-1 * var(--gutter));
    z-index: -1;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .gpin__list { padding: 0; }
  .gpin__list ol { display: flex; gap: var(--s5); overflow-x: auto; scrollbar-width: none; }
  .gpin__list ol::-webkit-scrollbar { display: none; }
  .gpin__track { top: auto; bottom: 0; left: 0; right: 0; width: auto; height: 1px; }
  .gpin__indicator { top: auto; bottom: -1px; left: 0; height: 3px; width: 0; }
  .gpin__label { flex: none; min-height: 48px; align-items: center; padding: 0; font-size: var(--fs-body); white-space: nowrap; }
  .gpin__label[aria-current="true"] { transform: none; }
  .gpin__content { gap: var(--s5); padding-block: var(--s5) 20svh; }
  .gpin .section.gestalt-panel {
    align-items: end;
    min-height: 560px;
    height: min(calc(100svh - var(--header-h) - 48px - var(--s8)), 680px);
    padding: 260px var(--s5) var(--s5);
    border-radius: 24px;
    scroll-margin-block: calc(var(--header-h) + 48px + var(--s4)) var(--s4);
  }
}
html:not(.js) .gpin__indicator { display: none; }

.gestalt-eyebrow {
  margin: 0 0 var(--s3);
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}
.section.gestalt-slide {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + var(--s8)) calc(68px + var(--curve) + var(--s5));
  background: var(--ink);
  color: #FFFFFF;
  overflow: hidden;
  isolation: isolate;
}
.section.gestalt-slide::before { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .section.gestalt-slide { background: #262626; } }
:root[data-theme="dark"] .section.gestalt-slide { background: #262626; }
/* The pattern fills the section behind the copy, as the isolation dots do. */
.gestalt-field { position: absolute; inset: 0; z-index: 0; }
.gestalt-svg { display: block; width: 100%; height: 100%; }
/* Narrow screens: the copy fills the width, so every principle sets it low
   and the drawing gets a clear band of its own above it, under the title,
   instead of slivers around the text. The band is at least 220px, so on a
   short phone the section grows a little rather than losing the drawing.
   The text steps down a size to give the band more room. */
@media (max-width: 899px) {
  .section.gestalt-slide,
  .section.isolation {
    align-items: end;
    padding-top: calc(var(--header-h) + var(--s7) + 220px);
  }
  .gestalt-slide .gestalt-copy .gestalt-lede,
  .isolation-copy .isolation-lede { font-size: var(--fs-body); }
  .gestalt-slide .gestalt-copy .gestalt-use { margin-top: var(--s3); }
  .section.gestalt-slide .gestalt-try { margin-top: var(--s4); }
}
.gestalt-slide__inner { position: relative; z-index: 1; width: 100%; pointer-events: none; }
.gestalt-copy { max-width: 34rem; pointer-events: auto; }
.gestalt-copy h2 {
  margin: 0;
  font-size: var(--fs-display-sm);
  letter-spacing: var(--track-head);
  line-height: 1;
  color: #FFFFFF;
}
.gestalt-copy .gestalt-lede {
  margin-top: var(--s4);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-lg);
  color: rgba(255, 255, 255, 0.84);
}
.gestalt-copy .gestalt-use {
  margin-top: var(--s4);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: #C1C3C6;                  /* Blue 30; 9.6:1 */
}
.gestalt-use strong { color: #FFFFFF; font-weight: 700; }
.gestalt-try { margin-top: var(--s5); }
.section.gestalt-slide .gestalt-try {
  --btn-secondary-bg: transparent; --btn-secondary-fg: #FFFFFF;
  --btn-secondary-line: rgba(255, 255, 255, 0.4); --btn-secondary-hover-line: #FFFFFF;
}
.gestalt-try[aria-pressed="true"] { border-color: var(--g-hi); color: var(--g-hi); }

/* Pattern pieces. The base shapes match the isolation dots (Sepia Brown on
   Charcoal); the principle lights them in Ochre Gold. */
.g-shape { fill: #587279; transition: fill 300ms var(--ease); }
.g-shape.is-hi { fill: var(--g-hi); }
.g-pac { fill: #587279; }
/* The single large examples: a quieter panel, and solid light shapes. */
.g-fg--one .g-tile { fill: rgba(255, 255, 255, 0.06); }
.g-fg--one .g-vase { fill: #BDD3DD; }
[data-gestalt="closure"] .g-pac { fill: #FFFFFF; }
.g-fg .g-tile { fill: transparent; transition: fill 450ms var(--ease); }
.g-fg .g-vase { fill: #587279; transition: fill 450ms var(--ease); }
/* Flipped: the tile lights and the vase takes the ground's colour, so the
   two light faces either side of it become the figure. */
.g-fg.is-flipped .g-tile { fill: #FFFFFF; }
.g-fg.is-flipped .g-vase { fill: var(--g-ground, #262626); }
.g-region { fill: rgba(255, 255, 255, 0.06); stroke: var(--g-line); stroke-width: 1.5; }
.g-line { fill: none; stroke: var(--g-hi); stroke-width: 2; stroke-linecap: round; }
.g-pill { fill: transparent; stroke: #587279; stroke-width: 1.5; transition: fill 300ms var(--ease), stroke 300ms, opacity 300ms; }
.g-pill.is-hi { fill: var(--g-hi); stroke: var(--g-hi); }
.g-pill.is-dim { opacity: 0.45; }

@media (prefers-reduced-motion: reduce) {
  .g-shape, .g-fg .g-tile, .g-fg .g-vase, .g-pill { transition: none; }
}

.section.disclaimer { min-height: 0; }

/* Disclaimer: how the work is made, below the isolation effect. */
.disclaimer-inner { display: grid; gap: var(--s5); justify-items: start; }
.disclaimer-inner > * { max-width: 52rem; }   /* the container is full width; the text keeps a reading measure */
.disclaimer h2 { font-size: var(--fs-display-sm); letter-spacing: var(--track-head); line-height: 1; }
.disclaimer .ai-note { margin-top: 0; }

/* ---------- Approach ---------- */

/* Three columns, one per pillar: picture above, text below. Each pillar
   spans two rows of the list (subgrid), so the pictures share one row and
   the headings all start on the same line, whatever each picture's shape.
   Narrower screens: one pillar under another. */
.approach {
  padding-block: var(--section-y);
  background: var(--bg-illustration);   /* the illustrations sit on it seamlessly */
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .approach { background: #262626; } }
:root[data-theme="dark"] .approach { background: #262626; }
/* Tinted sections (light mode): Our approach and the Disclaimer sit on
   Kāpiti Sand 10, a warm paper tone, alternating with the white ones
   (Packages and services stays white).
   Setting --bg as well carries the tint into anything inside that fades to
   the page colour. Dark mode keeps the one charcoal ground. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) :is(.approach, .section.disclaimer) { --bg: #F2F1EF; --bg-illustration: #F2F1EF; background: #F2F1EF; }
}
:root[data-theme="light"] :is(.approach, .section.disclaimer) { --bg: #F2F1EF; --bg-illustration: #F2F1EF; background: #F2F1EF; }
.approach-bar .label { margin: 0; }

.pillars {
  list-style: none;
  max-width: var(--max);
  margin: var(--s6) auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 64px);
  row-gap: var(--s6);
}
.pillar {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: var(--s6);
}
.pillar-art { align-self: center; display: grid; place-items: center; margin: 0; }
.pillar-art img { display: block; width: 100%; height: auto; }
/* Dark theme: each engraving swaps to its version drawn on charcoal, and
   the band takes that charcoal (#262626), so the pictures have no edge.
   Only the picture in use loads. */
.pillar-art .is-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pillar-art .is-light { display: none; }
  :root:not([data-theme="light"]) .pillar-art .is-dark { display: block; }
}
:root[data-theme="dark"] .pillar-art .is-light { display: none; }
:root[data-theme="dark"] .pillar-art .is-dark { display: block; }
.pillar-text { display: grid; gap: var(--s4); align-content: start; }
.pillar-text h3 { font-size: var(--fs-sub); letter-spacing: var(--track-sub); line-height: 1.1; }
.pillar-text > p { font-size: var(--fs-body); color: var(--muted); }

@media (max-width: 860px) {
  .pillars { grid-template-columns: minmax(0, 1fr); row-gap: var(--s8); }
  .pillar { grid-row: auto; grid-template-rows: auto; }
  .pillar-art { max-width: 520px; }
}

/* The notes: a short list under the text, each with a small rule. */
/* The client's question each pillar answers, right under its name. */
.pillar-text > .pillar-q {
  margin-top: calc(-1 * var(--s2));
  font-size: var(--fs-sub-sm);     /* 20-24px */
  font-weight: var(--heading-weight);
  line-height: 1.3;
  letter-spacing: var(--track-sub);
  color: var(--accent-text);       /* Deep Teal Blue 100: 4.8:1 on the tint, 5.8:1 on white; large text */
}
/* What we do for it, as tags: Dark Slate Teal 20 with Dark Slate Teal 100
   text (10.6:1); in dark mode Dark Slate Teal 90 with white (9.7:1). */
.pillar-notes {
  list-style: none;
  margin: var(--s2) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  font-size: var(--fs-ui);
  font-weight: 400;
}
.pillar-notes li {
  padding: 6px 14px;
  border-radius: 999px;
  background: #CFD7D9;
  color: #11353F;
  line-height: 1.4;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pillar-notes li { background: #294952; color: #FFFFFF; } }
:root[data-theme="dark"] .pillar-notes li { background: #294952; color: #FFFFFF; }

/* ---------- Design principles ---------- */

/* This section borrows the visual identity of Humane by Design
   (humanebydesign.com/principles), whose principles we work by: one colour
   per principle, on a light ground, with an engraving for each principle. In dark
   mode the ground and engravings switch to their charcoal versions. Text 18.2:1 and secondary 6.4:1 on white. The principle colours are
   kept as tokens for Humane by Design accents; several are below 3:1 on
   white, so never use them for text. */
:root {
  --hbd-ground: #FFFFFF;
  --hbd-card: #FFFFFF;
  --hbd-text: #262626;
  --hbd-muted: #595E68;
  --hbd-line: rgba(38, 38, 38, 0.12);
  --hbd-resilient: #676767;
  --hbd-empowering: #515151;
  --hbd-finite: #676767;
  --hbd-inclusive: #BEBEBE;
  --hbd-intentional: #BEBEBE;
  --hbd-respectful: #676767;
  --hbd-transparent: #676767;
}
.section.hbd {
  --text: var(--hbd-text);
  --muted: var(--hbd-muted);
  --accent-text: var(--hbd-text);
  --line: var(--hbd-line);
  --line-strong: var(--hbd-text);
  --coral: var(--hbd-text);
  --focus: var(--hbd-text);
  background: var(--hbd-ground);
  color: var(--text);
}
.hbd ::selection { background: var(--hbd-finite); color: #FFFFFF; }
/* The ground stays white in dark mode, so the Speculum controls in it keep
   their light roles too (they come later in this file, so the weight here
   is raised to win). */
.section.hbd .sp-tabs.sp-tabs { --tabs-track: transparent; --tabs-indicator: var(--sp-gray-200); --tabs-fg: var(--sp-gray-500); --tabs-fg-active: var(--sp-gray-900); }
.section.hbd {
  --btn-secondary-bg: var(--sp-gray-0); --btn-secondary-fg: var(--sp-gray-900);
  --btn-secondary-line: var(--sp-gray-300); --btn-secondary-hover-line: var(--sp-gray-900);
}
/* Dark mode: the section takes the charcoal the dark engravings are drawn
   on (#262626), so each picture sits on it with no visible edge, and its
   controls go back to their dark roles. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --hbd-ground: #262626; --hbd-card: #262626; --hbd-text: #FFFFFF; --hbd-muted: #C1C3C6; --hbd-line: rgba(255, 255, 255, 0.14); }
  :root:not([data-theme="light"]) .section.hbd .sp-tabs.sp-tabs { --tabs-indicator: var(--sp-gray-800); --tabs-fg: var(--sp-gray-300); --tabs-fg-active: var(--sp-gray-0); }
  :root:not([data-theme="light"]) .section.hbd { --btn-secondary-bg: transparent; --btn-secondary-fg: #FFFFFF; --btn-secondary-line: rgba(255, 255, 255, 0.4); --btn-secondary-hover-line: #FFFFFF; }
}
:root[data-theme="dark"] { --hbd-ground: #262626; --hbd-card: #262626; --hbd-text: #FFFFFF; --hbd-muted: #C1C3C6; --hbd-line: rgba(255, 255, 255, 0.14); }
:root[data-theme="dark"] .section.hbd .sp-tabs.sp-tabs { --tabs-indicator: var(--sp-gray-800); --tabs-fg: var(--sp-gray-300); --tabs-fg-active: var(--sp-gray-0); }
:root[data-theme="dark"] .section.hbd { --btn-secondary-bg: transparent; --btn-secondary-fg: #FFFFFF; --btn-secondary-line: rgba(255, 255, 255, 0.4); --btn-secondary-hover-line: #FFFFFF; }
/* White ground: the arch needs only a faint shadow, in both themes. */
/* Flat top: no arch, so the intro's background film meets the section above
   with a straight edge. */
.section.hbd::before { display: none; }

.hbd-link .icon { width: 1em; height: 1em; }

/* Link preview: a small card above the button, like a peek at the page it
   opens, saying where you're going. One card, moved between buttons by
   js/main.js. */
.link-preview-pos { position: fixed; left: 0; top: 0; z-index: 9000; pointer-events: none; }
.link-preview {
  width: 320px;
  padding: 0 0 var(--s4);
  border: 1px solid rgba(38, 38, 38, 0.12);
  border-radius: 12px;
  background: #FFFFFF;
  color: #262626;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 24px 48px -16px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  font-family: var(--sans);
}
.link-preview__bar {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid rgba(38, 38, 38, 0.08);
  background: #E9E9E9;
}
.link-preview__dots { display: flex; gap: 4px; flex: none; }
.link-preview__dots i { width: 7px; height: 7px; border-radius: 50%; background: #BEBEBE; }
.link-preview__url {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.6875rem;
  color: #676767;
}
/* The page itself, live: drawn at 1280px wide and scaled to the card. */
.link-preview__frame { position: relative; height: 200px; overflow: hidden; background: #FFFFFF; }
.link-preview__frame iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 1280px;
  height: 800px;
  border: 0;
  transform: scale(0.25);
  transform-origin: 0 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms;
}
.link-preview__frame iframe.is-loaded { opacity: 1; }
.link-preview__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: #676767;
  background: linear-gradient(90deg, #E9E9E9 0%, #E9E9E9 50%, #E9E9E9 100%) 0 0 / 200% 100%;
  animation: link-preview-shimmer 1.2s linear infinite;
}
.link-preview__loading[hidden] { display: none; }
@keyframes link-preview-shimmer { to { background-position: -200% 0; } }
.link-preview__tab { display: flex; align-items: center; gap: 6px; margin: var(--s2) var(--s4) 0; font-size: 0.75rem; color: #676767; }
.link-preview__tab .icon { width: 13px; height: 13px; }
.link-preview__text { margin: var(--s3) var(--s4) 0; font-size: 0.8125rem; line-height: 1.45; color: #595E68; }
.link-preview__text strong { display: block; margin-top: 2px; font-size: 0.9375rem; color: #262626; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .link-preview { background: #3C3C3C; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.12); }
  :root:not([data-theme="light"]) .link-preview__bar { background: #262626; border-color: rgba(255, 255, 255, 0.08); }
  :root:not([data-theme="light"]) .link-preview__text { color: #C1C3C6; }
  :root:not([data-theme="light"]) .link-preview__text strong { color: #FFFFFF; }
}
:root[data-theme="dark"] .link-preview { background: #3C3C3C; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.12); }
:root[data-theme="dark"] .link-preview__bar { background: #262626; border-color: rgba(255, 255, 255, 0.08); }
:root[data-theme="dark"] .link-preview__text { color: #C1C3C6; }
:root[data-theme="dark"] .link-preview__text strong { color: #FFFFFF; }

/* Speculum atoms (Documents/Design system, src/components/atoms/Text):
   Heading is weight 700 with tight tracking; Text is body copy. */
.sp-heading { margin: 0; font-weight: var(--heading-weight); letter-spacing: var(--track-sub); line-height: 1.1; }
.sp-text { margin: 0; color: var(--text); }

/* Speculum Tabs (src/components/molecules/Tabs), with no track and no side
   padding, so the row lines up with the heading; the chosen tab sits on a
   grey chip (the indicator). js/principles.js slides the indicator
   with Speculum's GSAP motion: it squashes, skews in the direction of
   travel, then settles. The track scrolls sideways when it's wider than
   the screen. Roles swap for dark mode. */
.sp-tabs {
  --tabs-track: transparent;
  --tabs-indicator: var(--sp-gray-200);
  --tabs-fg: var(--sp-gray-500);
  --tabs-fg-active: var(--sp-gray-900);
  position: relative;
  display: inline-flex;
  max-width: 100%;
  padding: 4px 0;
  border-radius: 999px;
  background: var(--tabs-track);
  overflow-x: auto;
  scrollbar-width: none;
}
.sp-tabs::-webkit-scrollbar { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sp-tabs { --tabs-track: transparent; --tabs-indicator: var(--sp-gray-800); --tabs-fg: var(--sp-gray-300); --tabs-fg-active: var(--sp-gray-0); }
}
:root[data-theme="dark"] .sp-tabs { --tabs-track: transparent; --tabs-indicator: var(--sp-gray-800); --tabs-fg: var(--sp-gray-300); --tabs-fg-active: var(--sp-gray-0); }
.sp-tabs__indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--tabs-indicator);
}
.sp-tabs__tab {
  position: relative;
  flex: none;
  min-height: 40px;
  padding: var(--s2) var(--s4);
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: var(--fs-ui);
  font-weight: 700;
  color: var(--tabs-fg);
  cursor: pointer;
  transition: color 240ms var(--sp-ease);
}
.sp-tabs__tab:hover { color: var(--tabs-fg-active); }
.sp-tabs__tab[aria-selected="true"] { color: var(--tabs-fg-active); }
.sp-tabs__tab:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
/* Before the script places it (or without it), the chosen tab carries the look. */
.sp-tabs:not(.is-ready) .sp-tabs__tab[aria-selected="true"] { background: var(--tabs-indicator); }

/* Design principles as stacked panels (Speculum's PinnedPanels, "stack"
   effect): an intro, then one panel per principle, each a screen tall. On
   large screens with motion, js/principles.js pins each panel in turn while
   the next slides up over it, and the covered one shrinks a little and dims.
   Elsewhere the panels simply follow one another. */
.section.hbd { padding-block: 0; }
.pstack { position: relative; display: grid; }
.pstack__panel {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + var(--s5)) clamp(48px, 7svh, 88px);
  background: var(--hbd-ground);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -28px 56px -36px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
/* The intro is square at the top, flush with the section's flat edge;
   the first principle, with its rounded corners, slides up over it. */
.pstack__panel--intro { box-shadow: none; border-radius: 0; }   /* square, flush with the flat top */
.pstack__shade { position: absolute; inset: 0; z-index: 3; border-radius: inherit; background: #000; opacity: 0; pointer-events: none; }
.pstack__inner {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.35fr);
  gap: var(--s7) clamp(32px, 6vw, 96px);
  align-items: center;
}
.pstack__head { display: grid; gap: var(--s2); }
.pstack__title { font-size: var(--fs-display-sm); font-weight: var(--heading-weight); letter-spacing: var(--track-head); line-height: 1; }

/* The intro's background film, behind the text. A wash of the panel's own ground runs in from the left, so
   the text sits on a near-solid ground and the people show on the right. */
.pvideo { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; }
.pvideo__media { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.pvideo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  --wash: 255, 255, 255;
  background: linear-gradient(90deg, rgba(var(--wash), 0.96) 0%, rgba(var(--wash), 0.92) 36%, rgba(var(--wash), 0.55) 52%, rgba(var(--wash), 0.08) 72%, rgba(var(--wash), 0) 100%);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pvideo::after { --wash: 38, 38, 38; } }
:root[data-theme="dark"] .pvideo::after { --wash: 38, 38, 38; }
.pstack__panel--intro > .container { position: relative; z-index: 1; }
/* Over the film, the text keeps to a narrower column so more of it shows. */
@media (min-width: 861px) {
  .pstack__panel--intro .principles-intro__title { max-width: 14ch; }
  .pstack__panel--intro .principles-intro__body { max-width: 30rem; }
}
/* Pause and play: a round button in the bottom corner, above the wash. */
.pvideo__toggle {
  position: absolute;
  bottom: clamp(48px, 7svh, 88px);   /* level with the bottom of the panel's content area */
  right: var(--gutter);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(38, 38, 38, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 240ms var(--ease);
}
.pvideo__toggle:hover { background: rgba(38, 38, 38, 0.8); }
.pvideo__toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.pvideo__toggle .icon { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pvideo__toggle .icon--play { display: none; stroke-width: 1.5; }
.pvideo.is-paused .pvideo__toggle .icon--pause { display: none; }
.pvideo.is-paused .pvideo__toggle .icon--play { display: block; }
html:not(.js) .pvideo__toggle { display: none; }
/* Phones: the film becomes a picture across the top, above the text. */
@media (max-width: 860px) {
  .pstack__panel--intro { align-items: start; }
  .pvideo { position: relative; inset: auto; margin: 0 0 var(--s6); aspect-ratio: 4 / 3; border-radius: 0; }
  .pvideo::after { display: none; }
  .pvideo__toggle { right: var(--s3); bottom: var(--s3); }
}

.principles-intro { display: grid; gap: var(--s5); justify-items: start; max-width: var(--max); }
.principles-intro__label {
  margin: 0;
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);   /* hbd-muted: the Humane by Design section keeps its own colours */
}
.principles-intro__title { max-width: 18ch; font-size: var(--fs-display-sm); font-weight: var(--heading-weight); letter-spacing: var(--track-head); line-height: 1.02; text-wrap: balance; }
.principles-intro__title em { font-style: italic; color: var(--accent-text); }
.principles-intro__body { display: grid; gap: var(--s4); max-width: 40rem; }
.principles-intro__body p { margin: 0; font-family: var(--sans); font-size: var(--fs-body); line-height: 1.7; }
.principles-intro__body a { font-weight: 700; text-underline-offset: 3px; }
.principles-intro__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin-top: var(--s3); }
.principles-intro__next .icon { transition: transform 300ms var(--ease); }
.principles-intro__next:hover .icon { transform: translateX(4px); }

.principles__text { display: flex; flex-direction: column; gap: var(--s5); }
.principles__block { display: grid; gap: var(--s2); }
.principles__block h4 { font-size: var(--fs-sub-sm); letter-spacing: var(--track-sub); line-height: 1.2; }
.principles__block p { max-width: 44ch; font-family: var(--sans); font-size: var(--fs-body); line-height: 1.7; }
.principles__more { align-self: flex-start; margin-top: var(--s2); }
.principles__art { margin: 0; }
.principles__art img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(64svh, 600px); margin-inline: auto; }
/* Each engraving has a version drawn on charcoal for dark mode. Only the
   one in use is shown (and, being lazy, only that one loads). */
.principles__art .is-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .principles__art .is-light { display: none; }
  :root:not([data-theme="light"]) .principles__art .is-dark { display: block; }
  :root:not([data-theme="light"]) .pstack__panel { box-shadow: 0 -28px 56px -30px rgba(0, 0, 0, 0.7); }
}
:root[data-theme="dark"] .principles__art .is-light { display: none; }
:root[data-theme="dark"] .principles__art .is-dark { display: block; }
:root[data-theme="dark"] .pstack__panel { box-shadow: 0 -28px 56px -30px rgba(0, 0, 0, 0.7); }
/* The principle panels in the "plate and caption" layout (P3), without the
   plate: a large engraving on the left; on the right the number, the name
   very large, what it means as a large italic statement, then how we apply
   it and what we avoid as two short columns under a hairline, and Learn
   more. Large screens only; phones keep the stacked order below. */
@media (min-width: 861px) {
  .pstack__inner { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--s7) clamp(32px, 4vw, 64px); }
  .pstack__inner > .principles__art { order: -1; }
  .pstack__inner .principles__art img { max-height: min(70svh, 640px); width: 100%; object-fit: contain; }
  .pstack__inner .principles__text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s6); align-content: center; }
  .pstack__inner .principles__text > .pstack__head,
  .pstack__inner .principles__text > .principles__block:first-of-type,
  .pstack__inner .principles__text > .principles__more { grid-column: 1 / -1; }
  .pstack__inner .pstack__title { font-size: var(--fs-display-sm); font-weight: var(--heading-weight); letter-spacing: var(--track-head); line-height: 1; }   /* display-sm, like the section headings */
  /* What it means: the statement, in large italic; its heading stays for screen readers. */
  .pstack__inner .principles__block:first-of-type h4 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pstack__inner .principles__block:first-of-type p { max-width: 44ch; font-size: var(--fs-body); font-style: italic; line-height: 1.7; color: var(--text); }   /* paragraph size, set apart by the italic */
  /* How we apply it and what we avoid: footnotes, side by side under a hairline. */
  .pstack__inner .principles__block:not(:first-of-type) { padding-top: var(--s5); border-top: 1px solid var(--hbd-line); align-content: start; }
  .pstack__inner .principles__block:not(:first-of-type) h4 { font-size: var(--fs-body); letter-spacing: var(--track-sub); }
  .pstack__inner .principles__block:not(:first-of-type) p { font-size: var(--fs-ui); line-height: var(--lh-ui); }
  .pstack__inner .principles__more { justify-self: start; }
}

/* Short screens: a panel may run past one screen; it then scrolls to its own
   end before it pins (js/principles.js). */
@media (max-height: 760px) {
  .principles__art img { max-height: 56svh; }
}
@media (max-width: 860px) {
  .pstack__panel { min-height: 0; padding-block: var(--s8); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .pstack__panel--intro { padding-top: 0; border-radius: 0; }   /* the film runs edge to edge at the top */
  /* Phones: number and name first, then the drawing, then the text. The
     text column dissolves into the grid so its header can sit above the
     drawing (the reading order in the page stays the same). */
  .pstack__inner { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .pstack__inner > .principles__text { display: contents; }
  .pstack__head { order: -2; }
  .principles__art { order: -1; }
  .principles__art img { max-height: 44svh; }
}

/* ---------- Services ---------- */

.section { padding-block: var(--section-y); background: var(--bg); }

.section-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s5);
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.section-head h2 { grid-column: 1 / span 7; }
.section-head p { grid-column: 9 / span 4; font-size: var(--fs-body-lg); color: var(--muted); }

/* Packages: a ladder from a first review to a full identity. The coach
   offer is the featured card; add-ons sit in a two-column price list. */
.packages {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
}
/* A package card that turns over (the "Turn the card" direction, D). The
   front says who it's for and what it costs, in large type; "What's
   included" turns it over to the list and the next step (js/main.js). The
   coach card's front is Dark Slate Teal 100. Both faces share one grid cell,
   so the card is as tall as its longer side. Only the face turned up is
   seen by keyboards and screen readers (visibility). The same card, opened
   out, sits under the steps on the Packages page (.tb-card--open). */
.tb-card {
  --card-pad: clamp(22px, 2.2vw, 34px);
  --card-front-bg: #FFFFFF; --card-front-fg: #262626; --card-label: #236D8E; --card-sub: #454A55;
  --card-btn-bg: #11353F; --card-btn-fg: #FFFFFF; --card-btn-hover: #294952;
  --card-back-bg: #FFFFFF; --card-back-line: #11353F;
  position: relative;
  display: block;
  padding: 0;
  perspective: 1800px;
  list-style: none;
}
.tb-card--feature { --card-front-bg: #11353F; --card-front-fg: #FFFFFF; --card-label: #BDD3DD; --card-sub: #CFD7D9; --card-btn-bg: #BDD3DD; --card-btn-fg: #11353F; --card-btn-hover: #FFFFFF; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tb-card { --card-front-bg: #3C3C3C; --card-front-fg: #FFFFFF; --card-label: #BDD3DD; --card-sub: #C1C3C6; --card-btn-bg: #BDD3DD; --card-btn-fg: #11353F; --card-btn-hover: #FFFFFF; --card-back-bg: #3C3C3C; --card-back-line: rgba(255, 255, 255, 0.4); }
  :root:not([data-theme="light"]) .tb-card--feature { --card-front-bg: #11353F; }
}
:root[data-theme="dark"] .tb-card { --card-front-bg: #3C3C3C; --card-front-fg: #FFFFFF; --card-label: #BDD3DD; --card-sub: #C1C3C6; --card-btn-bg: #BDD3DD; --card-btn-fg: #11353F; --card-btn-hover: #FFFFFF; --card-back-bg: #3C3C3C; --card-back-line: rgba(255, 255, 255, 0.4); }
:root[data-theme="dark"] .tb-card--feature { --card-front-bg: #11353F; }
.tb-card__inner { display: grid; height: 100%; transform-style: preserve-3d; transition: transform 800ms cubic-bezier(0.34, 1.3, 0.64, 1); }
.tb-card.is-turned .tb-card__inner { transform: rotateY(180deg); }
.tb-card__face {
  grid-area: 1 / 1;
  display: flex; flex-direction: column;
  min-width: 0;
  padding: var(--card-pad);
  border-radius: 12px;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: 0 1px 2px rgba(38, 38, 38, 0.04), 0 18px 44px -22px rgba(17, 53, 63, 0.3);
  transition: visibility 0s 400ms, box-shadow 400ms var(--ease);
}
.tb-card__front { justify-content: space-between; gap: var(--s6); background: var(--card-front-bg); color: var(--card-front-fg); --body-text: currentColor; }
.tb-card__back { transform: rotateY(180deg); gap: var(--s4); background: var(--card-back-bg); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--card-back-line), 0 18px 44px -22px rgba(17, 53, 63, 0.3); }
.tb-card.is-turned .tb-card__front, .tb-card:not(.is-turned):not(.tb-card--open) .tb-card__back { visibility: hidden; }
/* Hover: a subtle 1px outline in the card's ink, with the deeper shadow. */
.tb-card { --card-hover-line: rgba(17, 53, 63, 0.28); }
.tb-card--feature { --card-hover-line: rgba(255, 255, 255, 0.4); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tb-card { --card-hover-line: rgba(255, 255, 255, 0.32); } }
:root[data-theme="dark"] .tb-card { --card-hover-line: rgba(255, 255, 255, 0.32); }
.tb-card:hover .tb-card__front, .tb-card:focus-within .tb-card__front { box-shadow: inset 0 0 0 1px var(--card-hover-line), 0 2px 6px rgba(38, 38, 38, 0.06), 0 30px 60px -26px rgba(17, 53, 63, 0.45); }
.tb-card__top { display: flex; flex-direction: column; gap: var(--s3); }
.tb-card .pkg-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; min-height: 24px; }
.tb-card .pkg-top .label, .tb-card__back > .label { margin: 0; color: var(--card-label); }
.tb-card__back > .label { color: var(--accent-text); }
.tb-card .pkg-chip { padding: 3px 10px; border-radius: 999px; background: var(--card-front-fg); color: var(--card-front-bg); font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track-small); white-space: nowrap; }
.tb-card .pkg-chip--launch { align-self: flex-start; white-space: normal; background: var(--card-label); color: #11353F; }
.tb-card h3 { margin: 0; font-size: var(--fs-sub); font-weight: var(--heading-weight); letter-spacing: var(--track-sub); line-height: 1.05; color: inherit; }
.tb-card .pkg-for { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--card-sub); }
.tb-card__bottom { display: flex; flex-direction: column; gap: var(--s4); }
.tb-card .pkg-price { font-family: var(--heading); font-size: var(--fs-price-lg); font-weight: var(--heading-weight); letter-spacing: var(--track-head); line-height: 1; font-variant-numeric: tabular-nums; }
.tb-card .pkg-unit { display: block; margin-top: var(--s2); font-family: var(--sans); font-size: var(--fs-ui); font-weight: 400; letter-spacing: 0; color: var(--card-sub); }
.tb-card__turn {
  display: inline-flex; align-items: center; gap: var(--s2); align-self: flex-start;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--card-btn-bg); color: var(--card-btn-fg);
  font: 700 var(--fs-ui)/1 var(--sans); cursor: pointer;
  transition: background-color 200ms var(--ease);
}
.tb-card__turn:hover { background: var(--card-btn-hover); }
.tb-card__turn .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 500ms var(--ease); }
.tb-card__turn:hover .icon { transform: rotate(180deg); }
.tb-card__turn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.tb-card__turn--back { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.tb-card__turn--back:hover { background: color-mix(in srgb, var(--text) 14%, transparent); }
/* The list on the back. */
.tb-card .pkg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; flex-grow: 1; align-content: start; font-size: var(--fs-body); line-height: 1.45; }
.tb-card .pkg-list li { position: relative; padding: 10px 34px 10px 0; border-bottom: 1px dashed var(--line); }
.tb-card .pkg-list li:last-child { border-bottom: 0; }
.tb-card .pkg-list li::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 20px; height: 20px; margin-top: -10px;
  background: var(--success);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m7.75 12.5 2.75 2.75 5.75-5.75'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m7.75 12.5 2.75 2.75 5.75-5.75'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tb-card .pkg-list li::after { background: #65B089; } }
:root[data-theme="dark"] .tb-card .pkg-list li::after { background: #65B089; }
.tb-card .pkg-links { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.tb-card .pkg-link { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 22px; border-radius: 999px; background: #11353F; color: #FFFFFF; font-weight: 700; font-size: var(--fs-ui); text-decoration: none; }
.tb-card .pkg-link:hover { background: #294952; color: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tb-card .pkg-link { background: #6599B0; color: #262626; } :root:not([data-theme="light"]) .tb-card .pkg-link:hover { background: #BDD3DD; color: #262626; } }
:root[data-theme="dark"] .tb-card .pkg-link { background: #6599B0; color: #262626; }
:root[data-theme="dark"] .tb-card .pkg-link:hover { background: #BDD3DD; color: #262626; }
.tb-card .pkg-link .icon { width: 18px; height: 18px; transition: transform 300ms var(--ease); }
.tb-card .pkg-link:hover .icon { transform: translateX(3px); }
.tb-card__back .pkg-links { margin-top: auto; }
.tb-card__back .tb-card__turn--back { position: absolute; top: var(--card-pad); right: var(--card-pad); min-height: 40px; padding: 0 16px; }
@media (prefers-reduced-motion: reduce) { .tb-card__inner, .tb-card__face { transition: none; } }
html:not(.js) .tb-card__turn { display: none; }
html:not(.js) .tb-card__back { position: static; transform: none; visibility: visible !important; grid-area: auto; }
html:not(.js) .tb-card__inner { display: grid; gap: var(--s3); }

/* The section's "Cards / Spec sheet" switch, beside the heading. */
#services .section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s4); flex-wrap: wrap; }
/* View switch: Speculum's IconNav (molecules/icon-nav). A knob sits behind
   the chosen icon and stretches across to the other one (js/main.js); the
   icons stay still. Each icon's name shows as a tooltip on hover and focus. */
.view-switch { --vs-track: #CFD7D9; --vs-knob: #FFFFFF; --vs-ink: #415D65; --vs-ink-on: #11353F; --vs-knob-shadow: 0 1px 3px rgba(17, 53, 63, 0.18), 0 4px 12px rgba(17, 53, 63, 0.08);
  position: relative; isolation: isolate; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--vs-track); }
.view-switch__knob { position: absolute; top: 4px; bottom: 4px; left: 0; z-index: -1; width: 0; border-radius: 999px; background: var(--vs-knob); box-shadow: var(--vs-knob-shadow); pointer-events: none; will-change: transform, width; }
.view-switch:not(.is-ready) .view-switch__knob { display: none; }
.view-switch button { position: relative; display: grid; place-items: center; min-width: 44px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: 700 0.875rem/1 var(--sans); color: var(--vs-ink); cursor: pointer; transition: color 200ms var(--ease); -webkit-tap-highlight-color: transparent; }
.view-switch button:hover, .view-switch button[aria-pressed="true"] { color: var(--vs-ink-on); }
/* Until the script places the knob (or without it), the pressed button is the white pill. */
.view-switch:not(.is-ready) button[aria-pressed="true"] { background: var(--vs-knob); box-shadow: var(--vs-knob-shadow); }
.view-switch button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.view-switch .icon { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.view-switch button::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 2; padding: 4px 8px; border-radius: 4px; background: #11353F; color: #FFFFFF; font: 600 0.75rem/1.3 var(--sans); white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, 4px); transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.view-switch button:hover::after, .view-switch button:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .view-switch button, .view-switch button::after { transition: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .view-switch { --vs-track: #3C3C3C; --vs-knob: #262626; --vs-ink: #C1C3C6; --vs-ink-on: #FFFFFF; --vs-knob-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); } :root:not([data-theme="light"]) .view-switch button::after { background: #FFFFFF; color: #262626; } }
:root[data-theme="dark"] .view-switch { --vs-track: #3C3C3C; --vs-knob: #262626; --vs-ink: #C1C3C6; --vs-ink-on: #FFFFFF; --vs-knob-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
:root[data-theme="dark"] .view-switch button::after { background: #FFFFFF; color: #262626; }
html:not(.js) .view-switch { display: none; }

/* Spec sheet: one row per package, with the five Design Thinking stages it
   covers as dots (js/main.js builds it from the cards). */
.pkg-spec { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--text); }
.pkg-spec__head, .pkg-spec__row { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.4fr) minmax(0, 1.1fr) auto; column-gap: var(--s6); align-items: center; }
.pkg-spec__head { padding: 0 var(--s5) var(--s3); font-family: var(--mono); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pkg-spec__row { padding: var(--s4) var(--s5); border-bottom: 1px dashed color-mix(in srgb, var(--text) 30%, transparent); border-radius: 8px; transition: background-color 300ms var(--ease), transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.pkg-spec__row:hover, .pkg-spec__row:focus-within { background: var(--bg-card, #FFFFFF); transform: translateX(6px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pkg-spec__row:hover, :root:not([data-theme="light"]) .pkg-spec__row:focus-within { background: #3C3C3C; } }
:root[data-theme="dark"] .pkg-spec__row:hover, :root[data-theme="dark"] .pkg-spec__row:focus-within { background: #3C3C3C; }
.pkg-spec__name { display: grid; gap: 2px; }
.pkg-spec__tier { font-family: var(--mono); font-size: var(--fs-label); font-weight: 600; color: var(--accent-text); }
.pkg-spec__name h3 { margin: 0; font-size: var(--fs-sub-sm); font-weight: var(--heading-weight); letter-spacing: var(--track-sub); line-height: 1.2; }
.pkg-spec__name p { margin: 0; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); }
.pkg-spec__dots { display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; }
.pkg-spec__dots li { width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--text); transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.pkg-spec__dots li.on { background: var(--text); }
/* Each dot has room around it to point at, and a hand cursor. */
.pkg-spec__dots { gap: 6px; }
.pkg-spec__dots li { position: relative; margin: 4px; cursor: help; }
.pkg-spec__dots li::before { content: ""; position: absolute; inset: -8px; }
.pkg-spec__dots li:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 18%, transparent); }
/* The stage card: the "Learn more" preview card, with the stage's engraving. */
.stage-tip { width: 260px; }
.stage-tip__frame { height: 150px; }
.stage-tip__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; mix-blend-mode: multiply; filter: brightness(1.05) contrast(1.04); }
.stage-tip__frame img[hidden] { display: none; }
.stage-tip__text { display: grid; gap: 2px; }
.stage-tip__num { font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: #236D8E; }
.stage-tip__text strong { margin-top: 0; font-size: var(--fs-title); }
.stage-tip__state { margin-bottom: 2px; font-weight: 700; color: #238E56; }
.stage-tip__state::before { content: ""; width: 12px; height: 7px; margin: 0 2px 3px 0; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.stage-tip__state.is-off { color: #595E68; }
.stage-tip__state.is-off::before { width: 10px; height: 0; margin: 0 2px 0 0; border-left: 0; transform: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stage-tip__num { color: #BDD3DD; } :root:not([data-theme="light"]) .stage-tip__state { color: #65B089; } :root:not([data-theme="light"]) .stage-tip__state.is-off { color: #C1C3C6; } :root:not([data-theme="light"]) .stage-tip__frame img { mix-blend-mode: normal; } }
:root[data-theme="dark"] .stage-tip__num { color: #BDD3DD; }
:root[data-theme="dark"] .stage-tip__state { color: #65B089; }
:root[data-theme="dark"] .stage-tip__state.is-off { color: #C1C3C6; }
:root[data-theme="dark"] .stage-tip__frame img { mix-blend-mode: normal; }
.pkg-spec__row:hover .pkg-spec__dots li.on { transform: scale(1.25); }
.pkg-spec__price { display: grid; gap: 2px; font-size: var(--fs-price); font-weight: var(--heading-weight); letter-spacing: var(--track-sub); font-variant-numeric: tabular-nums; }
.pkg-spec__price small { font-size: var(--fs-caption); font-weight: 400; letter-spacing: 0; color: var(--muted); }
.pkg-spec__go { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--text); color: var(--text); font-weight: 700; font-size: 0.875rem; text-decoration: none; white-space: nowrap; transition: background-color 200ms, color 200ms; }
.pkg-spec__row:hover .pkg-spec__go { background: var(--text); color: var(--bg); }
.pkg-spec__go:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
#services.is-spec .h-gallery__track, #services.is-spec .h-gallery__progress { display: none !important; }
#services:not(.is-spec) .pkg-spec-wrap { display: none; }
@media (max-width: 860px) {
  .pkg-spec__head { display: none; }
  .pkg-spec__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--s3); padding-inline: 0; }
  .pkg-spec__name { grid-column: 1 / -1; }
  .pkg-spec__row:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .pkg-spec__row, .pkg-spec__dots li { transition: none; } }

.section .pkg-note { margin-top: var(--s6); max-width: 46rem; color: var(--muted); }


/* Packages as Speculum's HorizontalGallery (Documents/Design system,
   src/components/organisms/HorizontalGallery), "scale" effect. The cards
   sit in one row. On large screens js/main.js pins the section and
   scrolling down slides the row sideways, each card growing and
   straightening as it arrives, with a progress bar below. Otherwise (phones,
   short screens, reduced motion) the row scrolls sideways by swipe, snapping
   to each card. */
#services { overflow-x: clip; }
/* Without smooth scrolling (reduced motion), the "Services" link skips the
   section's top padding, so the heading and cards land just under the header. */
#services { scroll-margin-top: calc(16px - var(--section-y)); }
.h-gallery__viewport { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.packages.h-gallery__track {
  display: flex;
  align-items: stretch;
  gap: var(--s5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  padding-bottom: var(--s3);
  overscroll-behavior-x: contain;
}
.h-gallery__track > .pkg { flex: none; width: clamp(290px, 30vw, 420px); scroll-snap-align: start; }
.packages.h-gallery__track { padding: var(--s3) var(--s2) var(--s6); margin-inline: calc(-1 * var(--s2)); scroll-padding-inline: var(--s2); }
.h-gallery__progress { display: none; height: 3px; border-radius: 4px; background: var(--line); overflow: hidden; }
.h-gallery__progress span { display: block; height: 100%; background: var(--text); transform: scaleX(0); transform-origin: left; }

/* Pinned: the row moves instead of scrolling, and fits the screen. */
.h-gallery.is-pinned .h-gallery__viewport {
  min-height: 100vh;
  align-content: center;
  gap: clamp(12px, 2.4svh, 24px);
  padding-block: var(--header-h) clamp(12px, 2.4svh, 24px);
}
/* One heading size for both views (cards, pinned, and the spec sheet), sized so the pinned row still fits the screen. */
.h-gallery .section-head h2 { font-size: var(--fs-display-sm); }   /* the same size in the cards and spec sheet views */
.h-gallery.is-pinned .section-head { margin-bottom: var(--s3); }
.h-gallery.is-pinned .packages.h-gallery__track { overflow: visible; width: max-content; padding-bottom: 0; will-change: transform; }
.h-gallery.is-pinned .h-gallery__progress { display: block; }

.tags {
  list-style: none; margin: var(--s6) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--s2);
}
.tags li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-caption);
  font-weight: 400;
  letter-spacing: var(--track-small);
}

/* ---------- Coach offer (ink band) ---------- */

.offer {
  --label: #6599B0;          /* Deep Teal Blue 70; 4.9:1 */
  padding-block: var(--section-y);
  background: var(--ink);
  color: var(--paper);
  --muted: #C1C3C6;          /* Blue 30; 9.6:1 */
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.85);
  --coral: #FFFFFF;
  --focus: #6599B0;
  --accent-text: #6599B0;    /* Deep Teal Blue 70; 4.9:1 */
  --label-text: #6599B0;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .offer { background: #262626; } }
:root[data-theme="dark"] .offer { background: #262626; }

.offer-intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s6) var(--s5);
  align-items: end;
}
.offer-intro > div:first-child { grid-column: 1 / -1; }
.offer-intro :is(h1, h2) { max-width: 16ch; }
.offer-lede { grid-column: 1 / span 7; display: grid; gap: var(--s4); max-width: 40rem; color: var(--muted); }
.offer-lede strong { color: var(--paper); font-weight: 700; }
.offer :is(h1, h2) em { color: var(--coral); }

.offer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s5);
  align-items: center;
  margin-top: clamp(64px, 9vw, 128px);
}
.offer-art { grid-column: 1 / span 6; position: relative; padding: 0 56px 72px 0; }
.offer-includes { grid-column: 8 / span 5; }

/* Coach site mock */
.coach-site {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7);
}
.coach-top { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.coach-top b { width: 22px; height: 22px; border-radius: 50%; background: var(--teal); margin-right: auto; }
.coach-top span { width: 34px; height: 5px; border-radius: 4px; background: rgba(0, 0, 0, .2); }
.coach-top .pill { width: 72px; height: 24px; border-radius: 999px; background: var(--ink); }
.coach-hero { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; padding: 26px 22px 34px; align-items: center; }
.coach-photo {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  background:
    radial-gradient(40% 32% at 50% 36%, #BEBEBE 98%, transparent 100%),
    radial-gradient(70% 45% at 50% 100%, #3C3C3C 98%, transparent 100%),
    linear-gradient(160deg, #E9E9E9, #D4D4D4);
}
.coach-copy { display: grid; gap: 10px; }
.coach-copy span { height: 13px; border-radius: 4px; background: var(--ink); }
.coach-copy .l1 { width: 94%; height: 20px; }
.coach-copy .l2 { width: 70%; height: 20px; background: var(--teal); }
.coach-copy .l3 { width: 52%; opacity: .25; margin-top: 6px; }

.booking-card {
  position: absolute;
  right: 0; bottom: 0;
  width: min(300px, 62%);
  padding: 18px;
  background: #FFFFFF;
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .65);
  border-top: 4px solid var(--ink);
}
.booking-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--fs-ui); }
.booking-title .icon { width: 18px; height: 18px; color: var(--teal); }
.booking-days, .booking-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.booking-days { margin-top: 14px; font-size: .75rem; font-weight: 700; text-align: center; color: #676767; }
.booking-grid { margin-top: 6px; }
.booking-grid i { aspect-ratio: 1; border-radius: 4px; background: var(--bone); }
.booking-grid i.on { background: var(--mint); }
.booking-grid i.sel { background: var(--teal); }
.booking-times { display: flex; gap: 6px; margin-top: 12px; }
.booking-times span { flex: 1; padding: 6px 0; text-align: center; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .2); font-size: .8125rem; font-weight: 700; }
.booking-times .sel { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Includes */
.offer-includes h3 { margin-bottom: var(--s5); }
.include-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--line-strong); }
.include-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s4);
  padding-block: var(--s5);
  border-bottom: 1px solid var(--line);
}
.include-list .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--coral); stroke-width: 2.5; }
.include-list strong { display: block; font-size: var(--fs-body-lg); font-weight: var(--heading-weight); letter-spacing: var(--track-sub); }
.include-list span { display: block; margin-top: var(--s1); color: var(--muted); font-size: var(--fs-body); }

/* Outcome */
.offer-outcome {
  margin-top: clamp(72px, 10vw, 144px);
  padding-block: clamp(48px, 6vw, 80px);
  border-block: 1px solid var(--line);
}
.outcome-text {
  max-width: 24ch;
  font-family: var(--serif);
  font-size: var(--fs-display);
  font-weight: var(--heading-weight);
  line-height: 0.98;
  letter-spacing: var(--track-head);
  text-wrap: balance;
}
.outcome-text em { color: var(--coral); }

/* Process */
.offer-process { margin-top: clamp(72px, 10vw, 144px); }
.process-inner { position: relative; z-index: 1; }
/* The home page's process sits on the earth at night: a dark band in both
   themes, so its text and the Blue step cards take their dark-ground roles.
   The picture is taller than the section so it can drift (js/main.js); it
   fades into the section's charcoal at the top, under the arch, and a veil
   keeps the cards and path readable over the city lights. */
.section.process {
  position: relative;
  isolation: isolate;
  background: #262626;
  color: #FFFFFF;
  --text: #FFFFFF; --body-text: currentColor; --muted: #C1C3C6; --label: #6599B0;
  --line: rgba(255, 255, 255, 0.16); --line-strong: #FFFFFF; --focus: #6599B0;
}
.section.process .waypoints { --wp-fg: #FFFFFF; --wp-card: #303642; --wp-band: #262626; --label: #D6D7D9; --muted: #C1C3C6; }
.process-bg { position: absolute; inset: 0; z-index: -1; overflow: clip; pointer-events: none; }
/* One screen tall. Without smooth scrolling (reduced motion, phones) it
   simply sticks to the top of the screen; with it, js/main.js moves it so it
   holds in view, trailing the scroll a little. */
.process-bg__frame { position: sticky; top: 0; height: 100vh; height: 100svh; will-change: transform; }
html.has-smoother .process-bg__frame { position: relative; }
.process-bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
html.has-smoother .process-bg img { position: relative; top: -7%; height: 114%; }   /* room for the slow drift (js/main.js) */
.process-bg__frame::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, #262626 0%, rgba(38, 38, 38, 0) 18%, rgba(38, 38, 38, 0) 78%, #262626 100%),
    rgba(38, 38, 38, 0.45);
}

.process-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s4) var(--s5);
  align-items: end;
  margin-bottom: var(--s7);
}
.process-head :is(h2, h3) { grid-column: 1 / span 7; font-size: var(--fs-display-sm); letter-spacing: var(--track-head); line-height: 1; }
.process-head p { grid-column: 8 / span 5; color: var(--muted); }

/* Process: MotionPathWaypoints (Speculum). Without JS it's a plain numbered
   list; js/waypoints.js lays the steps along a curved path and adds .is-ready. */
/* On a plain section it takes the page's own colours; on the coaches page's
   charcoal band (.offer) it takes the band's. */
.waypoints { position: relative; --box: 84px; --wp-fg: var(--text); --wp-card: var(--surface); --wp-band: var(--bg); }
.offer .waypoints { --wp-fg: var(--paper, #FFFFFF); --wp-card: #3C3C3C; --wp-band: var(--ink); }
:root[data-theme="dark"] .offer .waypoints { --wp-band: #262626; --wp-card: #3C3C3C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .offer .waypoints { --wp-band: #262626; --wp-card: #3C3C3C; } }
/* The process steps use the Blue scale. Light: Blue 10 cards, Blue 100
   headings, labels, boxes and path, Blue 80 text (5.6:1). Dark and on the
   charcoal coach offer: Blue 100 cards, white headings, Blue 20 labels,
   Blue 30 text (6.9:1). */
.waypoints { --wp-fg: #303642; --wp-card: #EAEBEC; --label: #303642; --muted: #595E68; }
.waypoints__card { color: var(--wp-fg); }
.offer .waypoints { --wp-fg: #FFFFFF; --wp-card: #303642; --label: #D6D7D9; --muted: #C1C3C6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .waypoints { --wp-fg: #FFFFFF; --wp-card: #303642; --label: #D6D7D9; --muted: #C1C3C6; } }
:root[data-theme="dark"] .waypoints { --wp-fg: #FFFFFF; --wp-card: #303642; --label: #D6D7D9; --muted: #C1C3C6; }
.waypoints__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s6); border-top: 1.5px solid var(--line-strong); padding-top: var(--s6); }
.waypoints__list li { display: grid; grid-template-columns: var(--box) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.waypoints__box {
  display: grid; place-items: center;
  width: var(--box); height: var(--box);
  border: 1.5px dashed var(--muted);
  position: relative;
  border-radius: 8px;
  background: var(--wp-band);
  transition: border-color .4s, background .4s, box-shadow .4s;
}
.t-step {
  font-family: var(--serif);
  font-style: italic;
  font-weight: var(--heading-weight);
  font-size: calc(var(--box) * .38);
  line-height: 1;
  color: var(--wp-fg);
}
/* Once the path is drawn the traveller lands in the box centre, so the number moves to its corner. */
.waypoints.is-ready .t-step { position: absolute; top: 7px; left: 9px; font-size: calc(var(--box) * .2); color: var(--muted); transition: color .4s; }
.waypoints.is-ready li.is-active .t-step { color: var(--wp-fg); }
.waypoints__card h4 { font-size: var(--fs-sub-sm); letter-spacing: var(--track-sub); }
.waypoints__card p { margin-top: var(--s3); color: var(--muted); font-size: var(--fs-body); }
.waypoints__card .t-what {
  margin-top: var(--s2);
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}

.waypoints.is-ready {
  border-top: 1.5px solid var(--line-strong);
  overflow: hidden;
}
.waypoints.is-ready .waypoints__list { display: block; border: 0; padding: 0; }
.waypoints.is-ready .waypoints__list li { position: absolute; display: block; width: 0; height: 0; }
.waypoints.is-ready .waypoints__box { position: absolute; left: calc(var(--box) / -2); top: calc(var(--box) / -2); }
.waypoints.is-ready .waypoints__card {
  position: absolute;
  top: calc(var(--box) / -2);
  left: calc(var(--box) / 2 + var(--s4));
  width: var(--card-w, 360px);
  padding: var(--s4) var(--s5);
  border-radius: 8px;
  background: var(--wp-card);
  transform: translateX(-8px);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s;
  z-index: 3;                      /* above the travelling marker, so it never covers the text */
}
.waypoints.is-ready li.is-left .waypoints__card { left: auto; right: calc(var(--box) / 2 + var(--s4)); transform: translateX(8px); }
.waypoints.is-ready li.is-active .waypoints__box { border-style: solid; border-color: var(--wp-fg); background: var(--wp-card); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.waypoints.is-ready .waypoints__card > * { opacity: .45; transition: opacity .45s cubic-bezier(.2,.7,.2,1); }
.waypoints.is-ready li.is-active .waypoints__card > * { opacity: 1; }
.waypoints.is-ready li.is-active .waypoints__card { transform: none; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.waypoints__paths { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.waypoints__guide { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 6; opacity: .7; }
.waypoints__trail { fill: none; stroke: var(--wp-fg); stroke-width: 2.5; stroke-linecap: round; }
.waypoints__traveller { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; z-index: 2; will-change: transform; pointer-events: none; }
.waypoints__traveller::before {
  content: ""; position: absolute; inset: 8px; transform: rotate(45deg); border-radius: 8px;
  background: var(--wp-fg); box-shadow: 0 8px 22px rgba(0,0,0,.45);
}
.waypoints.is-static li .waypoints__card, .waypoints.is-static li .waypoints__card > * { opacity: 1; transform: none; }
.waypoints.is-static .waypoints__trail, .waypoints.is-static .waypoints__traveller { display: none; }
@media (max-width: 860px) { .waypoints { --box: 60px; } .waypoints__traveller { transform-origin: center; scale: .78; } .waypoints.is-ready .waypoints__card { padding: var(--s3) var(--s4); } }

/* Details */
.offer-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  margin-top: clamp(72px, 10vw, 144px);
}
.detail {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  background: #3C3C3C;             /* Charcoal lifted; Tan Marble text on it 5.8:1 */
  border-radius: var(--radius);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .detail { background: #3C3C3C; } }
:root[data-theme="dark"] .detail { background: #3C3C3C; }
.detail h3 { margin-bottom: var(--s4); }
.detail p { color: var(--muted); }

.dash-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); color: var(--muted); }
.dash-list li { position: relative; padding-left: var(--s5); }
.dash-list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 12px; height: 1.5px; background: var(--coral); }

/* The call to action stands out from its neighbours: Ochre Gold, Charcoal text 6.1:1. */
.detail-cta { background: #6599B0; color: #262626; --focus: #262626; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .detail-cta { background: #6599B0; } }
:root[data-theme="dark"] .detail-cta { background: #6599B0; }
.detail-cta p, .detail-cta h3 { color: #262626; }
.detail-cta .btn { margin-top: auto; align-self: flex-start; }
.detail-cta p + .btn { margin-top: var(--s6); }

/* FAQ */
.faq { margin-top: clamp(72px, 10vw, 144px); max-width: 56rem; }
.faq h3 { font-size: var(--fs-display-sm); letter-spacing: var(--track-head); line-height: 1; margin-bottom: var(--s6); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1.5px solid var(--line-strong); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  min-height: 68px;
  padding-block: var(--s4);
  font-size: var(--fs-sub-sm);
  font-weight: var(--heading-weight);
  letter-spacing: var(--track-sub);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; color: var(--coral); transition: transform 280ms var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--s5); max-width: 46rem; color: var(--muted); }

/* ---------- Founder note ---------- */

.founder-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s7) var(--s5);
  align-items: center;
}
.founder-portrait { grid-column: 1 / span 5; margin: 0; overflow: hidden; }
.founder-placeholder {
  aspect-ratio: 4 / 5;
  display: grid; place-items: center;
  border: 1.5px dashed var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--fs-ui); letter-spacing: var(--track-small);
}
.founder-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.founder-copy { grid-column: 7 / span 6; }
.founder-copy :is(h1, h2) { margin-top: var(--s4); max-width: 14ch; }
.founder-copy p:not(.label) { margin-top: var(--s5); max-width: 38rem; color: var(--muted); }
.founder-copy .founder-lead { margin-top: var(--s6); font-size: var(--fs-body-lg); color: var(--text); }
.founder-sign { padding-top: var(--s5); border-top: 1.5px solid var(--line-strong); display: flex; flex-direction: column; gap: 2px; }
.founder-sign strong { color: var(--text); font-size: var(--fs-sub); }

@media (max-width: 960px) {
  .founder-portrait, .founder-copy { grid-column: 1 / -1; }
  .founder-portrait { max-width: 420px; }
}

/* ---------- CTA ---------- */

.cta {
  padding-block: clamp(96px, 12vw, 160px);
  background: var(--coral);
  color: var(--bg);
  --focus: var(--bg);
}
.cta-inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s7) var(--s5);
  align-items: end;
}
.cta h2 {
  grid-column: 1 / span 8;
  font-size: var(--fs-display-xl);
  font-weight: var(--weight-display);
  letter-spacing: var(--track-display);
  line-height: 0.96;
}
.cta h2 em { color: inherit; font-weight: inherit; }
.cta-side { grid-column: 9 / span 4; }
.cta-side p { font-size: var(--fs-body-lg); }
.cta-side .btn { margin-top: var(--s6); }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: var(--s8) var(--s7);
  color: var(--muted);
  font-size: var(--fs-ui);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s5) var(--s7);
}
/* Footer links: the menu's index tree. Home and the home page's sections
   on connector lines (├ and └), then the other pages, in bold. */
.footer-nav {
  display: grid;
  grid-template-columns: auto auto;
  align-items: start;
  gap: var(--s5) clamp(48px, 8vw, 128px);
  color: var(--text);
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav a { min-height: 40px; display: inline-flex; align-items: center; }
.footer-nav .footer-nav__page { font-weight: 700; color: var(--text); }
.footer-nav__pages { display: grid; align-content: start; }
.footer-nav__tree {
  --tree-line: color-mix(in srgb, var(--text) 30%, transparent);
  display: grid;
  margin-left: 0.35em;
}
.footer-nav__tree li { position: relative; padding-left: 22px; }
.footer-nav__tree li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1px solid var(--tree-line); }
.footer-nav__tree li:last-child::before { bottom: 50%; }
.footer-nav__tree li::after { content: ""; position: absolute; left: 0; top: 50%; width: 14px; border-top: 1px solid var(--tree-line); }
.footer-nav__tree a { color: var(--muted); }
.footer-nav__tree a:hover, .footer-nav__tree a[aria-current] { color: var(--text); }
@media (max-width: 480px) { .footer-nav { grid-template-columns: minmax(0, 1fr); } }
.footer-inner > p { flex-basis: 100%; padding-top: var(--s5); border-top: 1px solid var(--line); }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); }
.footer-legal a, .footer-legal button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.footer-legal span { margin-right: auto; }

/* Theme switch: System (follow the browser) / Light / Dark */
.theme-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.theme-switch button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--fs-caption);
  font-weight: 400;
  cursor: pointer;
  transition: background-color 220ms var(--ease), color 220ms var(--ease);
}
.theme-switch .icon { width: 15px; height: 15px; }
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* ---------- Cookie choice (js/analytics.js) ---------- */

/* A floating card in the bottom right corner, styled like the navigation
   bar. Accept and Decline carry equal weight, so declining is as easy as
   accepting. */
.consent {
  position: fixed;
  right: var(--header-gap);
  bottom: var(--header-gap);
  z-index: calc(var(--z-header) + 1);
  width: min(440px, calc(100vw - 2 * var(--header-gap)));
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.3) blur(14px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 16px 40px -16px rgba(0, 0, 0, .28);
  color: var(--text);
  font-size: var(--fs-ui);
  line-height: var(--lh-ui);
}
.consent[hidden] { display: none; }
.consent__text a { color: inherit; text-underline-offset: 3px; }
.consent__actions { display: flex; gap: var(--s3); margin-top: var(--s4); }
.consent__actions .btn { flex: 1; justify-content: center; }

/* ---------- Full-height sections with arched tops ---------- */

/* Every section fills at least the screen, content centred, and rises into
   the one above with a shallow arch and a soft shadow. The arch is the
   section's own colour (background: inherit), drawn wider than the screen
   so its ends meet the edges part-way down the curve. z-index -1 keeps it
   under this section's content; the section's own z-index lifts it over the
   previous section. */
.hero, .approach, .section, .offer, .cta {
  position: relative;
  z-index: 1;
  overflow-x: clip;        /* the arch is wider than the screen; trim its sides (not its top) */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Approach runs as long as its pillars, not a screen. */
.approach { min-height: 0; }

.hero::before, .approach::before, .section::before, .offer::before, .cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -15%;
  right: -15%;
  bottom: calc(100% - 1px);
  height: var(--curve);
  background: inherit;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  box-shadow: 0 -16px 36px -22px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}
/* On dark grounds a shadow can't be seen, so the arch gets a faint light
   rim along its top edge instead. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.hero, .approach, .section, .offer, .cta)::before {
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.12), 0 -16px 36px -22px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] :is(.hero, .approach, .section, .offer, .cta)::before {
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.12), 0 -16px 36px -22px rgba(0, 0, 0, 0.6);
}

/* ---------- Scroll animation (GSAP, js/main.js) ---------- */

/* Headings build in word by word: SplitText wraps each word in a clipping
   mask (.split-mask) and the word rises into it. Images fade and rise in as
   they arrive. Both are set up in js/main.js, and only when motion is
   allowed. */
.split-mask { padding-bottom: 0.08em; margin-bottom: -0.08em; }   /* room for descenders inside the clip */

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

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .offer-art { grid-column: 1 / -1; max-width: 620px; }
  .offer-includes { grid-column: 1 / -1; margin-top: var(--s7); }
  .offer-details { grid-template-columns: 1fr 1fr; }
  .detail-cta { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .section-head h2, .section-head p,
  .offer-intro > div:first-child, .offer-lede,
  .process-head :is(h2, h3), .process-head p,
  .cta h2, .cta-side { grid-column: 1 / -1; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
  .intro-art { max-width: 560px; }
}

@media (max-width: 600px) {
  .offer-details { grid-template-columns: 1fr; }
  .detail-cta { grid-column: auto; }
  .hero-actions .btn-primary, .cta-side .btn { width: 100%; justify-content: center; }
  .detail-cta .btn { align-self: stretch; justify-content: center; }
  .offer-art { padding: 0 16px 104px 0; }
  .booking-card { width: 80%; }
}

/* ---------- Paragraphs ---------- */

/* Every paragraph of running text is 16px Rig Sans Regular. Kept last and
   scoped to main so it wins over each section's own sizes. Not included:
   labels, the big outcome statement, the process step names, the booking
   card's title and the footer's legal line, which are type styles of
   their own rather than paragraphs. */
main p:not(.cs-lede):not(.pillar-q):not(.product-feature__meta):not(.principles-intro__label):not(.sp-text):not(.gestalt-eyebrow):not(.gestalt-lede):not(.gestalt-use):not(.contact-privacy):not(.contact-count):not(.contact-sub):not(.contact-toast__text):not(.field-error):not(.label):not(.outcome-text):not(.t-what):not(.booking-title):not(.isolation-lede):not(.founder-lead):not(.cta-note):not(.cta-alt):not(.pkg-for):not(.pstack__num) {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
}

/* Intro headline load (js/main.js): hidden until its letters animate in,
   with a fallback that shows it if the script never runs. */

/* ---------- Greyscale (November 2026) ----------
   The site is greyscale only: every colour above is the grey of the same
   brightness as the brand colour it replaced, so contrast is unchanged,
   Pictures keep their full colour, as does the gold line drawn over the
   compass engraving in the hero. */

/* ---------- Audit fixes (November 2026) ---------- */
/* Reassurance under the main buttons, and the lower-commitment option. */
.cta-note { margin-top: var(--s4); max-width: 34rem; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); }
.cta-alt { margin-top: var(--s4); font-size: var(--fs-ui); color: var(--muted); }
.cta-alt a { color: var(--text); font-weight: 700; text-underline-offset: 3px; }
/* Principles: each engraving's own link is only data for the fixed button;
   phones get one link to all seven instead. */
@media (max-width: 760px) {
  /* The headline and button on a phone's first screen: no second logo, a
     smaller compass and tighter spacing. */
  .hero { padding-block: calc(var(--header-h) + var(--s2)) var(--s7); }
  .hero-grid { gap: var(--s4); }
  .intro-art { max-width: 230px; margin-inline: auto; }
  .hero-actions { margin-top: var(--s5); }
  /* A slimmer cookie notice. */
  .consent { padding: var(--s4); font-size: 0.8125rem; line-height: 1.45; }
  .consent__actions { margin-top: var(--s3); }
  .consent__actions .btn { min-height: 44px; }
}
/* ---------- Modal (js/booking.js) ----------
   A port of Speculum's Modal molecule (Documents/Design system,
   src/components/molecules/Modal): the <dialog> fills the screen and draws
   its own backdrop and panel, so both can be animated. Used for booking. */
.modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--text);
}
.modal::backdrop { background: transparent; }
.modal:not([open]) { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 38, 38, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  max-height: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 32px 64px -24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.modal__panel:focus { outline: none; }
.modal__panel--lg { max-width: 760px; }
/* The calendar frame is as tall as Calendly says its page is (js/booking.js),
   so the modal fits it; on a short screen the body scrolls instead. */
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s5) var(--s5) var(--s4);
  border-bottom: 1px solid var(--line);
}
.modal__titles { display: grid; gap: var(--s1); min-width: 0; }
.modal__titles h2 { font-size: var(--fs-sub-sm); letter-spacing: var(--track-sub); line-height: 1.2; }
.modal__titles p { font-size: var(--fs-ui); color: var(--muted); }
.modal__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -10px -10px 0 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 200ms, color 200ms;
}
.modal__close:hover { background: var(--line); color: var(--text); }
.modal__close .icon { width: 20px; height: 20px; }
.modal__body { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; padding: var(--s5); }
.modal__body--flush { padding: 0; display: block; min-height: 240px; background: #FFFFFF; }
.modal__body iframe { flex: none; display: block; width: 100%; height: var(--frame-h, 680px); border: 0; opacity: 0; transition: opacity 300ms, height 350ms var(--ease); }
.modal__body.is-loaded iframe { opacity: 1; }
.modal__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  margin: 0;
  gap: var(--s3);
  font-size: var(--fs-ui);
  color: #595E68;
  background: #FFFFFF;
}
.modal__loading .ld { font-size: 1.75rem; color: #236D8E; }
.modal__body.is-loaded .modal__loading { display: none; }
.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: var(--s2);
  padding: var(--s2) var(--s5);
  border-top: 1px solid var(--line);
}
.modal__alt { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: var(--fs-ui); color: var(--muted); text-underline-offset: 3px; }
.modal__alt:hover { color: var(--text); }
.modal__alt .icon { width: 14px; height: 14px; }
html.modal-open { overflow: hidden; }
@media (max-width: 600px) {
  .modal { padding: 0; }
  .modal__panel, .modal__panel--lg { max-width: none; height: 100%; border-radius: 0; border: 0; }
}

/* Hero: 24px between each block (headline, intro line, buttons, note). */
.hero .lede { margin-top: var(--s5); max-width: none; }   /* as wide as the headline */
.hero-actions { margin-top: var(--s5); gap: var(--s5); }
.hero .cta-note { margin-top: var(--s5); }
.pkg-how { margin-top: var(--s6); margin-left: calc(-1 * var(--s4)); }

/* ---------- Pages of their own (coaches.html, about.html) ----------
   One section under the fixed header: its heading is the page's h1, set
   like a section heading, and it clears the header with no arch above. */
.subpage main h1 { font-size: var(--fs-display); letter-spacing: var(--track-head); line-height: 0.98; }
.subpage main > section:first-child { padding-top: calc(var(--header-h) + var(--s8)); min-height: 100svh; }
.subpage main > section:first-child::before { display: none; }
.footer-nav a[aria-current="page"] { font-weight: 700; }

/* ---------- Contact (js/contact.js) ----------
   Left: the heading and the direct ways to reach us. Right: a card with
   three steps. Choices are Speculum-style pills over real radio buttons and
   checkboxes, so they work with a keyboard and a screen reader. */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s7) var(--s5); align-items: start; }
.contact-intro { grid-column: 1 / span 5; display: grid; gap: var(--s5); }
.contact-intro .label { margin: 0; }
.contact-intro h2 { font-size: var(--fs-display-sm); max-width: 12ch; }
.contact-lede { max-width: 34rem; color: var(--muted); }
.contact-ways { margin: var(--s3) 0 0; display: grid; gap: 0; border-top: 1.5px solid var(--line-strong); }
.contact-ways > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--s4); align-items: baseline; padding-block: var(--s4); border-bottom: 1px solid var(--line); }
.contact-ways dt { margin: 0; }
.contact-ways dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.contact-ways a { text-underline-offset: 4px; }

.contact-form { grid-column: 7 / span 6; display: grid; gap: var(--s5); padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.contact-head { display: grid; gap: var(--s2); }
.contact-count { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-progress { height: 3px; border-radius: 4px; background: var(--line); overflow: hidden; }
.contact-progress span { display: block; height: 100%; background: var(--text); transform: scaleX(0.25); transform-origin: left; }
.contact-form:not(.is-stepped) .contact-head { display: none; }
.contact-step { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: var(--s4); }
.contact-step[hidden] { display: none; }
.contact-step legend { padding: 0; margin-bottom: var(--s4); font-family: var(--heading); font-size: var(--fs-sub); font-weight: var(--heading-weight); letter-spacing: var(--track-sub); line-height: 1.15; }
.contact-step legend:focus { outline: none; }
.contact-hint { margin-top: calc(-1 * var(--s3)); font-size: var(--fs-ui); color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips--stack { display: grid; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; width: 100%; min-height: 44px; padding: var(--s2) var(--s4);
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg);
  font-size: var(--fs-ui); font-weight: 700; line-height: 1.3; color: var(--text);
  transition: background-color 200ms, border-color 200ms, color 200ms;
}
.chips--stack .chip span { min-height: 52px; padding-inline: var(--s5); font-size: 1rem; }
.chip:hover span { border-color: var(--line-strong); }
.chip input:checked + span { background: var(--btn-primary-bg); border-color: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.field { display: grid; gap: var(--s2); }
.field label, .field-label { font-size: var(--fs-ui); font-weight: 700; }
.field-hint { margin-left: var(--s2); font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: var(--s3) var(--s4);
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text);
  font: inherit; font-size: 1rem;
}
.field textarea { resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--line-strong); }
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: flex-end; margin-top: var(--s2); }
/* Directly under the form card: 16px below it (the grid's row gap is 48px). */
.contact-privacy { grid-column: 7 / span 6; justify-self: end; margin: calc(var(--s4) - var(--s7)) 0 0; font-size: var(--fs-caption); line-height: var(--lh-ui); color: var(--muted); }
.contact-privacy a { color: inherit; text-underline-offset: 3px; }
.contact-done { display: grid; gap: var(--s4); }
.contact-done[hidden] { display: none; }
.contact-done__title { font-size: var(--fs-sub); letter-spacing: var(--track-sub); line-height: 1.15; }
.contact-done__title:focus { outline: none; }
.contact-done p { color: var(--muted); }
.contact-done__message { margin: 0; padding: var(--s4); border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--bg); font: var(--fs-ui)/var(--lh-ui) var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.contact-done .contact-actions { justify-content: flex-start; }
.contact-done__again { justify-self: start; margin-left: calc(-1 * var(--s4)); }
@media (max-width: 960px) {
  .contact-intro, .contact-form, .contact-privacy { grid-column: 1 / -1; }
}
/* A hollow button: outline only, for the contact form's "Next" steps. */
.btn-outline { background: transparent; border-color: var(--text); color: var(--text); }
.btn-outline:hover { background: var(--text); color: var(--bg); }
.contact-actions .btn { white-space: normal; text-align: left; }
.contact-sub { margin-top: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--line); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-step legend + .contact-sub { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- Contact: error state and toast ---------- */
.contact-form { position: relative; }
.contact-toast {
  position: absolute;
  top: var(--s4);
  left: var(--s4);
  right: var(--s4);
  z-index: 5;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 36px;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s2) var(--s3) var(--s4);
  border-radius: 12px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 18px 40px -18px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  will-change: transform, opacity;
}
.contact-toast[hidden] { display: none; }
.contact-toast__icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.contact-toast__text { margin: 0; font-size: var(--fs-ui); font-weight: 700; line-height: 1.4; }
.contact-toast__close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 999px; background: transparent; color: inherit; opacity: 0.7; cursor: pointer; }
.contact-toast__close:hover { opacity: 1; background: rgba(103, 103, 103, 0.25); }
.contact-toast__close .icon { width: 16px; height: 16px; }
.contact-toast__time { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; opacity: 0.4; transform-origin: left; }

/* Choices still needing an answer: a dashed outline round the group. */
.chips.is-invalid { padding: var(--s3); margin: calc(-1 * var(--s3)); border: 1.5px dashed var(--text); border-radius: 12px; }
/* Fields with a problem: a heavier border, and the message under them. */
.field.is-invalid input { border-color: var(--text); border-width: 2px; }
.field-error { display: flex; align-items: center; gap: var(--s2); margin: 0; font-size: var(--fs-caption); font-weight: 700; color: var(--text); }
.field-error::before { content: "!"; display: grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: 11px; font-weight: 800; line-height: 1; }
.field-error[hidden] { display: none; }
/* Contact: Back sits top left of the panel, the step count top right. */
.contact-head__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 36px; }
.contact-head__row .contact-count { margin-left: auto; }
.contact-back { min-width: 0; min-height: 36px; margin-left: calc(-1 * var(--s3)); padding-inline: var(--s3); white-space: normal; text-align: left; font-size: var(--fs-caption); font-weight: 400; }
.contact-back .icon { width: 14px; height: 14px; }
.contact-head__row .contact-count { flex: none; }
.contact-back[hidden] { display: none; }
.icon-flip { transform: scaleX(-1); }
/* Contact celebration pieces (js/contact.js) */
.contact-fx { position: fixed; inset: 0; z-index: 9998; overflow: hidden; pointer-events: none; perspective: 600px; }
.contact-fx__bit { position: absolute; left: 0; top: 0; display: block; will-change: transform, opacity; }
.contact-fx__bit--tri { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.contact-fx__bit--dot { border-radius: 50%; }
.contact-fx__bit--strip { border-radius: 4px; }
.contact-head[hidden] { display: none; }


/* ---------- Our work (home) ---------- */
.products-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s4) var(--s5); align-items: end; margin-bottom: var(--s7); }
.products-head .label, .products-head h2 { grid-column: 1 / span 7; }
.products-head h2 { max-width: 16ch; }
.products-intro { grid-column: 8 / span 5; display: grid; gap: var(--s4); }
.products-intro p { color: var(--muted); }
.products-intro p:first-child { color: var(--text); }
.product-feature { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s5); align-items: center; padding-top: var(--s5); border-top: 1.5px solid var(--line-strong); }
.product-feature__media { grid-column: 1 / span 7; display: block; overflow: hidden; border-radius: 8px; }
.product-feature__media img { display: block; width: 100%; height: auto; aspect-ratio: 1424 / 730; object-fit: cover; transition: scale .9s cubic-bezier(.2,.7,.2,1); }
/* Hover grows the picture with the separate `scale` property, so it never fights the GSAP entrance zoom (transform). */
.product-feature__media img { transform-origin: 50% 50%; }
.product-feature:hover .product-feature__media img { scale: 1.03; }
.product-feature__body { grid-column: 9 / span 4; display: grid; gap: var(--s4); justify-items: start; }
.product-feature__meta { font-size: var(--fs-label); font-weight: 700; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.product-feature h3 { font-size: var(--fs-display-sm); letter-spacing: var(--track-head); line-height: 1; }
.product-feature__body > p:not(.product-feature__meta) { color: var(--muted); }
.product-stats { display: flex; gap: var(--s6); margin: var(--s2) 0; }
.product-stats div { display: grid; gap: 2px; }
.product-stats dt { font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
.product-stats dd { margin: 0; font-family: var(--serif); font-style: italic; font-weight: var(--heading-weight); font-size: var(--fs-sub); line-height: 1; }

/* ---------- Case study (credenza.html) ---------- */
.cs-back { margin-bottom: var(--s6); }
.cs-back .icon { transform: scaleX(-1); }
.cs-hero h1 { margin-top: var(--s4); max-width: 14ch; }
.cs-intro { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s5); margin-top: var(--s7); }
.cs-lede { grid-column: 1 / span 7; font-size: var(--fs-body-lg); line-height: var(--lh-lg); }
.cs-facts { grid-column: 9 / span 4; margin: 0; display: grid; gap: var(--s4); align-content: start; }
.cs-facts div { padding-top: var(--s3); border-top: 1px solid var(--line); }
.cs-facts dt, .cs-numbers dt { font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
.cs-facts dd { margin: var(--s1) 0 0; }
.cs-figure { margin: 0; overflow: hidden; border-radius: 8px; }
.cs-figure img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.cs-figure--hero { margin-top: var(--s8); }
.cs-figure--wide { margin-top: var(--s8); }
.cs-figure figcaption { margin-top: var(--s3); font-size: var(--fs-caption); color: var(--muted); }
.cs-section { border-top: 1px solid var(--line); }
.cs-split { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s4) var(--s5); align-items: start; }
.cs-split__head { grid-column: 1 / span 5; }
.cs-split__head h2 { margin-top: var(--s3); max-width: 14ch; }
.cs-split__body { grid-column: 7 / span 6; display: grid; gap: var(--s4); }
.cs-split__body > p { color: var(--muted); }
.cs-split__body code, .cs-pillars code { font-size: .9em; }
.cs-constraints { margin: 0; padding: 0; list-style: none; counter-reset: c; display: grid; }
.cs-constraints li { counter-increment: c; display: grid; grid-template-columns: 3ch 1fr; gap: 0 var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.cs-constraints li::before { content: counter(c, decimal-leading-zero); grid-row: span 2; font-size: var(--fs-label); color: var(--muted); padding-top: .3em; }
.cs-constraints span { color: var(--muted); }
.cs-swatches { list-style: none; margin: var(--s7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s4); }
.cs-swatches li { display: grid; gap: var(--s1); font-size: var(--fs-ui); }
.cs-swatches li > span:last-child { color: var(--muted); }
.cs-swatches code { font-size: var(--fs-label); color: var(--muted); }
.cs-swatch { display: block; aspect-ratio: 4 / 5; margin-bottom: var(--s3); border-radius: 8px; background: var(--sw); border: 1px solid var(--line); }
.cs-feature { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s5); align-items: center; margin-top: var(--s8); }
.cs-feature .cs-figure { grid-column: 1 / span 7; }
.cs-feature__text { grid-column: 9 / span 4; }
.cs-feature--flip .cs-figure { grid-column: 6 / span 7; grid-row: 1; }
.cs-feature--flip .cs-feature__text { grid-column: 1 / span 4; grid-row: 1; }
.cs-feature h3, .cs-pillars h3 { font-size: var(--fs-sub-sm); letter-spacing: var(--track-sub); }
.cs-feature p, .cs-pillars p { margin-top: var(--s3); color: var(--muted); }
.cs-pillars { list-style: none; margin: var(--s7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.cs-pillars li { padding-top: var(--s5); border-top: 1.5px solid var(--line-strong); }
.cs-numbers { margin: var(--s7) 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s5); }
.cs-numbers div { padding-top: var(--s3); border-top: 1.5px solid var(--line-strong); }
.cs-numbers dd { margin: var(--s2) 0 0; font-family: var(--serif); font-style: italic; font-weight: var(--heading-weight); font-size: var(--fs-display-sm); line-height: 1; }
.cs-cta { margin-top: var(--s9); padding-top: var(--s7); border-top: 1.5px solid var(--line-strong); display: grid; gap: var(--s4); justify-items: start; }
.cs-cta h2 { max-width: 16ch; }
.cs-cta p { color: var(--muted); max-width: 36rem; }
.cs-cta__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s3); }
.subpage main > section.cs-hero:first-child { min-height: 0; }

@media (max-width: 860px) {
  .products-head .label, .products-head h2, .products-intro,
  .product-feature__media, .product-feature__body,
  .cs-lede, .cs-facts, .cs-split__head, .cs-split__body,
  .cs-feature .cs-figure, .cs-feature__text,
  .cs-feature--flip .cs-figure, .cs-feature--flip .cs-feature__text { grid-column: 1 / -1; grid-row: auto; }
  .cs-swatches { grid-template-columns: repeat(2, 1fr); }
  .cs-pillars { grid-template-columns: 1fr; }
  .cs-numbers { grid-template-columns: repeat(3, 1fr); }
  .cs-feature { margin-top: var(--s7); }
}

/* Twelve nav items: keep each on one line, and tighten the gaps on narrower desktops. */

/* Running text in Blue 90 (--body-text); headings keep --text. Bands and
   cards with their own ground (the charcoal bands, the gold pricing card,
   the blue package card, the menu, the cookie card) keep the colour they
   set, through currentColor. */
main :is(p, li, dd, blockquote, figcaption) { color: var(--body-text); }
:is(.offer, .gestalt, .section.isolation, .detail-cta, .tb-card--feature .tb-card__front, .consent, .xnav, .waypoints, .hero-image) { --body-text: currentColor; }


/* Carousels (js/main.js): a hand cursor where a row can be dragged with a
   mouse, and no text selection or link dragging mid-drag. */
.can-drag { cursor: grab; }
.can-drag.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.can-drag.is-dragging * { pointer-events: none; }
.can-drag img, .can-drag a { -webkit-user-drag: none; }

/* ---------- Loaders (Speculum: Loader, PageTransition, LazyImage) ----------
   Loader atom: a small CSS-only "working on it" mark in the text colour.
   .ld--spinner (an arc going round), .ld--dots (three dots rising in turn),
   .ld--bar (a segment sweeping a thin track). Sizes are in em. */
.ld { --ld-ink: currentColor; --ld-track: color-mix(in srgb, currentColor 18%, transparent); position: relative; display: inline-block; flex: none; vertical-align: middle; color: inherit; }
.ld--spinner { width: 1em; height: 1em; border: 0.14em solid var(--ld-track); border-top-color: var(--ld-ink); border-radius: 50%; animation: ld-spin 700ms linear infinite; }
.ld--dots { display: inline-flex; align-items: center; gap: 0.18em; height: 1em; }
.ld--dots i { width: 0.26em; height: 0.26em; border-radius: 50%; background: var(--ld-ink); animation: ld-dot 1200ms cubic-bezier(0.2, 0, 0, 1) infinite; }
.ld--dots i:nth-child(2) { animation-delay: 120ms; }
.ld--dots i:nth-child(3) { animation-delay: 240ms; }
.ld--bar { width: 3em; height: max(2px, 0.12em); overflow: hidden; border-radius: 999px; background: var(--ld-track); }
.ld--bar i { position: absolute; inset: 0; border-radius: inherit; background: var(--ld-ink); transform-origin: left; animation: ld-sweep 1200ms cubic-bezier(0.2, 0, 0, 1) infinite; }
@keyframes ld-spin { to { transform: rotate(360deg); } }
@keyframes ld-dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.35; } 30% { transform: translateY(-0.22em); opacity: 1; } }
@keyframes ld-sweep { 0% { transform: translateX(-100%) scaleX(0.4); } 60% { transform: translateX(40%) scaleX(0.6); } 100% { transform: translateX(100%) scaleX(0.4); } }
@keyframes ld-fade { from { opacity: 0.3; } to { opacity: 1; } }
/* Reduced motion: slower and calmer, but still visibly working. */
@media (prefers-reduced-motion: reduce) {
  .ld--spinner { animation-duration: 2.4s; }
  .ld--dots i { animation: none; opacity: 0.6; }
  .ld--bar i { animation: ld-fade 2s ease-in-out infinite alternate; transform: none; }
}

/* Page transition (curtain): while a page loads, a Deep Teal Blue sheet and
   a Dark Slate Teal sheet cover it, with the name and a bar loader; they
   lift away once it's ready. Following a link to another page brings them
   back up before it leaves (js/loaders.js). Shown only when scripts run
   (html.pt), and it hides itself after 4s if the script never does. */
.pt-cover { position: fixed; inset: 0; z-index: 1000; display: none; pointer-events: none; color: #FFFFFF; }
html.pt .pt-cover { display: block; animation: pt-failsafe 0s linear 4s forwards; }
html.pt .pt-cover.is-ready { animation: none; }
html.pt .pt-cover.is-done { display: none; }
.pt-part { position: absolute; inset: 0; background: #11353F; transform: translateY(0); transition: transform 700ms cubic-bezier(0.2, 0, 0, 1); will-change: transform; }
.pt-part--accent { background: #236D8E; }
.pt-brand { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; transition: opacity 400ms cubic-bezier(0, 0, 0.2, 1), transform 400ms cubic-bezier(0, 0, 0.2, 1); }
.pt-word { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: var(--heading-weight); letter-spacing: var(--track-sub); }
.pt-logo { display: block; width: clamp(150px, 14vw, 200px); height: auto; color: #FFFFFF; }   /* the header's logo drawing, reused */
.pt-brand .ld { font-size: 1.5rem; color: rgba(255, 255, 255, 0.7); }
/* Lifting: the top sheet goes first, then the accent sheet under it. */
.pt-cover.is-out { pointer-events: none; }
.pt-cover.is-out .pt-brand { opacity: 0; transform: translateY(-12px); transition-duration: 200ms; transition-timing-function: cubic-bezier(0.4, 0, 1, 1); }
.pt-cover.is-out .pt-part { transform: translateY(-100%); }
.pt-cover.is-out .pt-part:not(.pt-part--accent) { transition-delay: 100ms; }
.pt-cover.is-out .pt-part--accent { transition-delay: 190ms; }
/* Arriving (before leaving for another page): the sheets rise from below,
   accent first. */
.pt-cover.is-below .pt-part { transform: translateY(100%); transition: none; }
.pt-cover.is-below .pt-brand { opacity: 0; transition: none; }
.pt-cover.is-in { pointer-events: auto; }
.pt-cover.is-in .pt-part--accent { transition-delay: 0ms; }
.pt-cover.is-in .pt-part:not(.pt-part--accent) { transition-delay: 90ms; }
.pt-cover.is-in .pt-brand { transition-delay: 400ms; }
@keyframes pt-failsafe { to { visibility: hidden; } }
/* Reduced motion: a short fade instead of the sheets. */
@media (prefers-reduced-motion: reduce) {
  .pt-part, .pt-cover.is-below .pt-part { transform: none !important; transition: none; }
  .pt-cover { transition: opacity 200ms linear; }
  .pt-cover.is-out { opacity: 0; transition-duration: 400ms; }
  .pt-cover.is-below { opacity: 0; transition: none; }
  .pt-cover.is-in { opacity: 1; }
}

/* Images (LazyImage): a soft shimmer holds each image's place while it
   loads, then the image fades in (js/loaders.js). */
img.lz-wait { background: linear-gradient(90deg, #EAEBEC 0%, #F4F5F5 50%, #EAEBEC 100%) 0 0 / 200% 100%; animation: lz-shimmer 1.4s linear infinite; }
img.lz-in { animation: lz-in 400ms cubic-bezier(0.2, 0, 0, 1) both; }
@keyframes lz-shimmer { to { background-position: -200% 0; } }
@keyframes lz-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) img.lz-wait { background-image: linear-gradient(90deg, #303030 0%, #3C3C3C 50%, #303030 100%); } }
:root[data-theme="dark"] img.lz-wait { background-image: linear-gradient(90deg, #303030 0%, #3C3C3C 50%, #303030 100%); }
@media (prefers-reduced-motion: reduce) { img.lz-wait { animation: none; } img.lz-in { animation-duration: 1ms; } }

/* Buttons while they work: the Speculum spinner beside "Sending…". */
.btn.is-loading { cursor: progress; }
.btn.is-loading .ld { font-size: 1.1em; }
