/* Graylark Technologies — www.graylarktechnologies.com
 *
 * One stylesheet for the whole site. The first version replicated the
 * Squarespace site (kept as reference/site-v1.css); this is the redesign.
 *
 * Layout model, in brief:
 *   section.band.band-*       full-width band of colour (new pages)
 *     .wrap                   centred, max 1200px, fluid gutters
 *   section.section.theme-*   the older full-width band (pages not yet re-laid)
 *     .container > .grid > .cell   the 24-column grid those pages are drawn on
 */

/* ------------------------------------------------------------------ fonts */

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('/assets/fonts/poppins-300.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 300; font-display: swap; src: url('/assets/fonts/poppins-300-italic.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/poppins-700.woff2') format('woff2'); }

/* ----------------------------------------------------------------- tokens */

:root {
  /* Brand palette */
  --slate: #495a58;        /* brand green-grey: dark bands, primary surfaces */
  --slate-deep: #3f4a49;
  --ink: #263130;          /* the darkest brand tone: header, product chapter, footer text */
  --ink-2: #1c2423;
  --sand: #dcd9d0;         /* brand sand: bands, map land */
  --sand-2: #e9e7e0;       /* lighter sand: quiet bands, rules */
  --paper: #f4f3ee;        /* page background */
  --white: #ffffff;
  --clay: #d4967d;         /* the accent: primary button, live markers */
  --clay-deep: #c4826a;
  --clay-soft: #ecc9b8;    /* links on dark */
  --rust: #9c5a40;         /* links on light (clay is too pale for text) */
  --navy: #272f3b;         /* the product's own chrome, used in the drawn screens */
  --mint: #9fb3ad;         /* map tint: countries with bodies */
  --moss: #6b8e7a;         /* status: ready */
  --amber: #d9a85c;        /* status: in progress */
  --fg: var(--ink);
  --fg-2: #5c6967;         /* muted text */

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Type scale (base 17px, ratio ~1.25) */
  --fs-0: 0.875rem;
  --fs-1: 1.0625rem;
  --fs-2: 1.3125rem;
  --fs-3: 1.625rem;
  --fs-4: 2.125rem;
  --fs-5: clamp(2rem, 1.3rem + 2.1vw, 3rem);
  --fs-6: clamp(2.4rem, 1.5rem + 3.1vw, 4.1rem);
  --lh-body: 1.6;
  --track: -0.022em;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* The older pages' grid (scripts/site_shell.py's README explains --d / --m) */
  --site-max: 1500px;
  --col-gap: 11px;
  --container: min(var(--site-max), calc(100vw - 2 * var(--gutter)));
  --row: calc(var(--container) * 0.0215);
  --fs-h1: var(--fs-5);
  --fs-h2: var(--fs-4);
  --fs-h3: var(--fs-3);
  --fs-h4: 1.25rem;
  --text: var(--fs-1);
  --text-small: var(--fs-0);
}

@media (max-width: 767px) {
  :root { --header-h: 60px; --row: 24px; }
}

/* ------------------------------------------------------------------- base */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-1);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { margin: 0 0 1.25rem; font-weight: 600; letter-spacing: var(--track); text-wrap: balance; }
h1 { font-size: var(--fs-6); line-height: 1.04; }
h2 { font-size: var(--fs-5); line-height: 1.1; }
h3 { font-size: var(--fs-3); line-height: 1.2; }
/* h4 is large, light text on the older pages (the old site's "h4" was a big
   paragraph), so it stays a paragraph weight. */
h4 { font-size: 1.25rem; line-height: 1.5; font-weight: 400; letter-spacing: 0; text-wrap: pretty; }
h1:last-child, h2:last-child, h3:last-child, h4:last-child { margin-bottom: 0; }
.as-h1 { font-size: var(--fs-5); line-height: 1.1; font-weight: 600; letter-spacing: var(--track); }
.as-h2 { font-size: var(--fs-4); line-height: 1.15; font-weight: 600; letter-spacing: var(--track); }

p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 600; }

a { color: var(--link, var(--rust)); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: color 0.15s; }
a:hover { color: var(--fg); }

ul, ol { padding-left: 1.4em; margin: 0 0 1rem; }
li { margin: 0.3em 0; padding-left: 0.1em; }
li p { margin: 0; }
ul li::marker { color: var(--clay); }

hr { border: 0; border-top: 1px solid currentColor; opacity: 0.2; margin: 2rem 0; }

table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95em; }
th, td { text-align: left; vertical-align: top; padding: 0.75rem; border-bottom: 1px solid rgba(38, 49, 48, 0.18); }
th { font-weight: 600; }

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

[hidden] { display: none !important; }

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

.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--white); color: var(--ink); padding: 0.5rem 1rem; border-radius: var(--radius-s); }

::selection { background: var(--clay-soft); color: var(--ink); }

/* ------------------------------------------------------------ text styles */

.ta-center { text-align: center; }
.ta-right { text-align: right; }
.large { font-size: 1.125rem; }
.small { font-size: var(--fs-0); line-height: 1.6; }
/* The old site turned "small" paragraphs into display text, sitewide. */
p.small { font-size: var(--fs-5); line-height: 1.1; font-weight: 600; letter-spacing: var(--track); }
.h1-83 :is(h1, .as-h1) { font-size: var(--fs-5); }
.c-accent { color: var(--clay); }
.c-dark { color: var(--slate); }
.c-black { color: var(--ink); }
.c-light { color: var(--sand); }
.c-white { color: var(--white); }
.lede { font-size: var(--fs-2); line-height: 1.45; font-weight: 400; max-width: 34em; }
.muted { color: var(--fg-2); }
.prose { max-width: 38em; }
.prose-wide { max-width: 46em; }

/* The hand-drawn underline under a key phrase. */
.mark {
  font-weight: 600;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 80 8, 200 6, 397 13' fill='none' stroke='%23d4967d' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left bottom / 100% 0.45em;
  padding-bottom: 0.15em;
}

/* ----------------------------------------------------------------- themes
 * Every band declares a theme; everything inside takes its colours from these
 * variables. The names are the older pages'; the colours are the redesign's. */

.theme-default, .theme-light-bold, .band-paper {
  --bg: var(--paper); --h1: var(--ink); --h2: var(--ink); --h3: var(--ink); --h4: var(--fg);
  --pl: var(--fg); --pm: var(--fg); --ps: var(--fg-2); --link: var(--rust);
  --btn-bg: var(--clay); --btn-fg: var(--ink); --btn2-bg: var(--ink); --btn2-fg: var(--white); --btn3-bg: var(--clay); --btn3-fg: var(--ink);
}
.theme-white, .band-white {
  --bg: var(--white); --h1: var(--ink); --h2: var(--ink); --h3: var(--ink); --h4: var(--fg);
  --pl: var(--fg); --pm: var(--fg); --ps: var(--fg-2); --link: var(--rust);
  --btn-bg: var(--clay); --btn-fg: var(--ink); --btn2-bg: var(--ink); --btn2-fg: var(--white); --btn3-bg: var(--clay); --btn3-fg: var(--ink);
}
.theme-white-bold { --bg: var(--white); --h1: var(--ink); --h2: var(--ink); --h3: var(--ink); --h4: var(--fg); --pl: var(--fg); --pm: var(--fg); --ps: var(--fg-2); --link: var(--rust); --btn-bg: var(--clay); --btn-fg: var(--ink); --btn2-bg: var(--ink); --btn2-fg: var(--white); --btn3-bg: var(--clay); --btn3-fg: var(--ink); }
.theme-light, .theme-bright-inverse, .band-sand {
  --bg: var(--sand-2); --h1: var(--ink); --h2: var(--ink); --h3: var(--ink); --h4: var(--fg);
  --pl: var(--fg); --pm: var(--fg); --ps: var(--fg-2); --link: var(--rust);
  --btn-bg: var(--clay); --btn-fg: var(--ink); --btn2-bg: var(--ink); --btn2-fg: var(--white); --btn3-bg: var(--clay); --btn3-fg: var(--ink);
}
.band-sand-deep { --bg: var(--sand); --h1: var(--ink); --h2: var(--ink); --h3: var(--ink); --h4: var(--fg); --pl: var(--fg); --pm: var(--fg); --ps: var(--fg-2); --link: var(--rust); --btn-bg: var(--clay); --btn-fg: var(--ink); --btn2-bg: var(--ink); --btn2-fg: var(--white); --btn3-bg: var(--clay); --btn3-fg: var(--ink); }
/* The clay bands of the old site are now slate: same contrast, calmer. */
.theme-bright, .theme-dark, .band-slate {
  --bg: var(--slate); --h1: var(--white); --h2: var(--white); --h3: var(--white); --h4: var(--white);
  --pl: var(--white); --pm: var(--white); --ps: rgba(255, 255, 255, 0.8); --link: var(--clay-soft);
  --btn-bg: var(--clay); --btn-fg: var(--ink); --btn2-bg: var(--white); --btn2-fg: var(--ink); --btn3-bg: var(--white); --btn3-fg: var(--ink);
}
.theme-dark-bold, .theme-black-bold, .band-ink {
  --bg: var(--ink); --h1: var(--white); --h2: var(--white); --h3: var(--white); --h4: var(--sand);
  --pl: var(--sand); --pm: var(--sand); --ps: rgba(220, 217, 208, 0.75); --link: var(--clay-soft);
  --btn-bg: var(--clay); --btn-fg: var(--ink); --btn2-bg: var(--white); --btn2-fg: var(--ink); --btn3-bg: var(--white); --btn3-fg: var(--ink);
}

[class*='theme-'], [class*='band-'] { background-color: var(--bg); color: var(--pm); }
:is([class*='theme-'], [class*='band-']) :is(h1, .as-h1) { color: var(--h1); }
:is([class*='theme-'], [class*='band-']) :is(h2, .as-h2) { color: var(--h2); }
:is([class*='theme-'], [class*='band-']) h3 { color: var(--h3); }
:is([class*='theme-'], [class*='band-']) h4 { color: var(--h4); }
:is([class*='theme-'], [class*='band-']) .large { color: var(--pl); }
:is([class*='theme-'], [class*='band-']) .small { color: var(--ps); }
:is([class*='theme-'], [class*='band-']) .muted { color: var(--ps); }
:is(.theme-bright, .theme-dark, .theme-dark-bold, .theme-black-bold, .band-slate, .band-ink) .c-dark,
:is(.theme-bright, .theme-dark, .theme-dark-bold, .theme-black-bold, .band-slate, .band-ink) .c-black { color: var(--white); }
:is(.theme-bright, .theme-dark, .theme-dark-bold, .theme-black-bold, .band-slate, .band-ink) :is(th, td) { border-color: rgba(255, 255, 255, 0.2); }
:is(.theme-bright, .theme-dark, .theme-dark-bold, .theme-black-bold, .band-slate, .band-ink) a:hover { color: var(--white); }

/* ---------------------------------------------------------------- buttons */

.actions { margin: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.actions.ta-center { justify-content: center; }
.actions.ta-right { justify-content: flex-end; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.4rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 500 0.9375rem/1.2 var(--font); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.18s var(--ease);
}
.btn:hover { opacity: 1; }
.btn:active { transform: translateY(1px); }
.btn-primary   { background: var(--btn-bg, var(--clay)); color: var(--btn-fg, var(--ink)); border-color: var(--btn-bg, var(--clay)); }
.btn-secondary { background: var(--btn2-bg, var(--ink)); color: var(--btn2-fg, var(--white)); border-color: var(--btn2-bg, var(--ink)); }
.btn-tertiary  { background: var(--btn3-bg, var(--clay)); color: var(--btn3-fg, var(--ink)); border-color: var(--btn3-bg, var(--clay)); }
.btn-primary:hover, .btn-tertiary:hover { background: var(--clay-deep); border-color: var(--clay-deep); color: var(--ink); }
.btn-secondary:hover { background: var(--slate); border-color: var(--slate); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: var(--slate); border-color: var(--slate); color: var(--white); }
.btn-white { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-white:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn-outline { background: transparent; color: inherit; border-color: currentColor; }
.btn-outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
:is(.theme-bright, .theme-dark, .theme-dark-bold, .theme-black-bold, .band-slate, .band-ink, .hero) .btn-outline:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-block { width: 100%; }
.btn-quiet { background: transparent; color: inherit; border-color: rgba(255, 255, 255, 0.5); }
.btn-quiet:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* A link styled as a quiet action. */
.link-more { font-weight: 500; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 0.1em; }
.link-more:hover { border-color: transparent; }

/* The older pages placed buttons in grid cells; they no longer stretch. */
.cell > .actions { display: flex; }
.cell > .actions .btn { width: auto; min-width: 0; }

@media (max-width: 767px) {
  .actions .btn { width: 100%; }
}

/* ----------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--white);
  transition: background-color 0.3s;
}
.has-hero .site-header { position: fixed; left: 0; right: 0; background: rgba(38, 49, 48, 0); }
.has-hero.is-scrolled .site-header { background: rgba(38, 49, 48, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.has-hero.menu-open .site-header { background: var(--ink); }
.site-header .inner {
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.site-header .logo { display: inline-flex; }
.site-header .logo img { width: 150px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: 0.25rem; }
.site-header nav > a, .nav-folder > button {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.55rem 0.8rem; border-radius: 999px;
  color: var(--white); text-decoration: none; font-size: 0.9375rem; font-weight: 500; line-height: 1;
  background: none; border: 0; font-family: inherit; cursor: pointer; transition: background-color 0.15s;
}
.site-header nav > a:hover, .nav-folder > button:hover, .nav-folder.open > button { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.site-header nav > a[aria-current], .nav-folder > button.active { box-shadow: inset 0 -2px 0 var(--clay); border-radius: 999px 999px 0 0; }
.nav-folder > button::after {
  content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); opacity: 0.8; transition: transform 0.2s;
}
.nav-folder.open > button::after { transform: translateY(1px) rotate(225deg); }
.site-header .nav-cta { margin-left: 0.75rem; background: var(--clay); color: var(--ink); padding: 0.7rem 1.2rem; }
.site-header .nav-cta:hover { background: var(--clay-deep); color: var(--ink); }

/* Drop-down menus */
.nav-folder { position: relative; }
.nav-folder .menu {
  display: none; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 300px; padding: 0.5rem; margin: 0;
  background: var(--white); color: var(--ink); border-radius: var(--radius-m);
  box-shadow: 0 24px 60px -20px rgba(28, 36, 35, 0.5), 0 0 0 1px rgba(38, 49, 48, 0.08);
  animation: menu-in 0.18s var(--ease);
}
.nav-folder .menu::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav-folder.open .menu, .nav-folder:focus-within .menu { display: block; }
@media (hover: hover) { .nav-folder:hover .menu { display: block; } }
@keyframes menu-in { from { opacity: 0; transform: translateX(-50%) translateY(-4px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.menu, .menu ul { list-style: none; }
.menu ul { margin: 0; padding: 0; }
.menu li { margin: 0; padding: 0; }
.menu a { display: block; padding: 0.55rem 0.8rem; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; line-height: 1.3; font-size: 0.9375rem; }
.menu a:hover { background: var(--sand-2); color: var(--ink); }
.menu a small { display: block; color: var(--fg-2); font-size: 0.8125rem; margin-top: 0.1rem; }
.menu .menu-title { padding: 0.5rem 0.8rem 0.25rem; font-size: 0.8125rem; color: var(--fg-2); }
.menu.mega { min-width: min(940px, calc(100vw - 2rem)); display: none; grid-template-columns: 3fr 1fr; gap: 0.5rem; padding: 0.75rem; }
.menu.mega .modules { display: grid; grid-template-columns: 1fr 1fr; align-content: start; }
@media (min-width: 1100px) and (max-width: 1279px) { .menu.mega { min-width: 820px; } }
.nav-folder.open .menu.mega, .nav-folder:focus-within .menu.mega { display: grid; }
@media (hover: hover) { .nav-folder:hover .menu.mega { display: grid; } }
.menu.mega .modules a { display: grid; grid-template-columns: 36px 1fr; gap: 0.8rem; align-items: start; padding: 0.6rem 0.8rem; }
.menu.mega .modules svg { width: 36px; height: 36px; color: var(--slate); }
.menu.mega .modules strong { display: block; font-weight: 600; }
.menu.mega .aside { background: var(--sand-2); border-radius: var(--radius-s); padding: 0.5rem; align-self: stretch; }
.menu.mega .aside a { padding: 0.5rem 0.8rem; }
.menu.mega .aside a:hover { background: var(--white); }
.menu.cols { min-width: 560px; display: none; grid-template-columns: 1fr 1fr; gap: 0.25rem; padding: 0.75rem; }
.nav-folder.open .menu.cols, .nav-folder:focus-within .menu.cols { display: grid; }
@media (hover: hover) { .nav-folder:hover .menu.cols { display: grid; } }

.menu-toggle { display: none; }

@media (max-width: 1099px) {
  .site-header .logo img { width: 128px; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; margin-right: -10px;
  }
  .menu-toggle span { display: block; height: 1.5px; background: var(--white); transition: transform 0.2s; }
  .site-header nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 1rem var(--gutter) 3rem; background: var(--ink);
  }
  .has-hero.menu-open .site-header, .menu-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--ink); }
  .menu-open .site-header nav { display: flex; }
  .menu-open { overflow: hidden; }
  .menu-open .menu-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .site-header nav > a, .nav-folder > button { width: 100%; justify-content: space-between; padding: 1rem 0.25rem; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); font-size: 1.125rem; }
  .site-header nav > a:hover, .nav-folder > button:hover, .nav-folder.open > button { background: none; }
  .site-header nav > a[aria-current], .nav-folder > button.active { box-shadow: none; color: var(--clay-soft); }
  .nav-folder .menu, .nav-folder .menu.mega, .nav-folder .menu.cols {
    position: static; transform: none; display: none; min-width: 0; grid-template-columns: 1fr; box-shadow: none; animation: none;
    background: transparent; color: var(--white); padding: 0.25rem 0 0.75rem; border-radius: 0;
  }
  .nav-folder.open .menu, .nav-folder.open .menu.mega, .nav-folder.open .menu.cols { display: grid; }
  .nav-folder:focus-within .menu { display: none; }
  .nav-folder.open:focus-within .menu { display: grid; }
  .menu a, .menu .menu-title { color: var(--white); }
  .menu a:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
  .menu a small, .menu .menu-title { color: rgba(255, 255, 255, 0.6); }
  .menu.mega .modules { grid-template-columns: 1fr; }
  .menu.mega .modules svg { color: var(--clay-soft); }
  .menu.mega .aside { background: rgba(255, 255, 255, 0.06); }
  .site-header .nav-cta { margin: 1.25rem 0 0; justify-content: center; }
}

/* ------------------------------------------------------------- new bands */

.band { padding-block: clamp(4rem, 8vw, 7.5rem); position: relative; }
.band-tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; }
.band-head { max-width: 46em; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.band-head h2 { margin-bottom: 1rem; }
.rule-top { border-top: 1px solid rgba(38, 49, 48, 0.15); padding-top: 1.5rem; }
:is(.band-slate, .band-ink) .rule-top { border-color: rgba(255, 255, 255, 0.18); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.align-start { align-items: start; }
.split > .media img { width: 100%; height: auto; border-radius: var(--radius-m); }
@media (max-width: 899px) { .split, .hero-split, .form-split, .module .module-head { grid-template-columns: 1fr; } }

/* A list of features: ruled rows, not cards. */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.feature-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid li { margin: 0; padding: 1.25rem 0 0; border-top: 1px solid rgba(38, 49, 48, 0.18); }
:is(.band-slate, .band-ink) .feature-grid li { border-color: rgba(255, 255, 255, 0.2); }
.feature-grid h3 { font-size: var(--fs-2); margin-bottom: 0.5rem; }
.feature-grid p { margin: 0; }
.feature-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 2rem; }
@media (max-width: 899px) { .feature-grid, .feature-grid.two, .feature-grid.four { grid-template-columns: 1fr; gap: 1.5rem; } }

/* The proof strip on the solution pages (content/includes/proof-strip.html): shorter than a band. */
.proof-strip { padding-block: clamp(3rem, 6vw, 5rem); }
.proof-strip .band-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.proof-strip .band-head h2 { font-size: var(--fs-4); }
.proof-strip .feature-grid h3 { font-size: var(--fs-1); }
.proof-strip .feature-grid p { font-size: var(--fs-0); }
.proof-strip .rule-top { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.see-it .band-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.videos .text { scroll-margin-top: calc(var(--header-h) + 1rem); }
.videos .text p:not(:first-of-type) { color: var(--fg-2); }

/* A stepped process, which is a sequence, so it is numbered. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { margin: 0; padding: 1.5rem 0 0; position: relative; border-top: 2px solid rgba(38, 49, 48, 0.15); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; top: -1.1rem; left: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--clay); color: var(--ink); font-weight: 600; font-size: 0.9375rem; }
.steps h3 { font-size: var(--fs-2); margin: 0.75rem 0 0.5rem; }
.steps p { margin: 0; }
@media (max-width: 899px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .steps { grid-template-columns: 1fr; } }

/* A big statement, standing alone, with its subject changing. */
.quote-band { text-align: center; padding-block: clamp(5rem, 10vw, 9rem); }
.quote-band blockquote { margin: 0 auto; max-width: 62rem; }
.quote-band blockquote p { font-size: var(--fs-5); line-height: 1.1; font-weight: 600; letter-spacing: var(--track); text-wrap: balance; }
.quote-band .rotor { margin-bottom: 0.08em; }
.quote-band blockquote footer { margin-top: 2.25rem; font-size: var(--fs-2); font-weight: 400; color: var(--sand); }
.quote-band blockquote footer::before { content: ''; display: block; width: 44px; height: 3px; border-radius: 2px; background: var(--clay); margin: 0 auto 1.25rem; }

/* A timeline: dates on a line, the present marked in clay. */
.timeline { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: rgba(38, 49, 48, 0.2); }
.timeline li { margin: 0; padding: 1.75rem 0.5rem 0 0; position: relative; }
.timeline li::before { content: ''; position: absolute; top: 0; left: 0; width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box; background: var(--sand-2); border: 2px solid var(--ink); }
.timeline li.past::before { background: var(--ink); }
.timeline li.now::before { background: var(--clay); border-color: var(--clay); }
.js .timeline.in-view li.now::before { animation: timeline-now 1.6s var(--ease) 2; }
@keyframes timeline-now { from { box-shadow: 0 0 0 0 rgba(212, 150, 125, 0.6); } to { box-shadow: 0 0 0 18px rgba(212, 150, 125, 0); } }
.timeline .when { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.timeline li.now .when { color: var(--rust); }
.timeline p { margin: 0; font-size: var(--fs-0); line-height: 1.5; color: var(--fg-2); }
@media (max-width: 1099px) {
  .timeline { grid-template-columns: 1fr; gap: 1.5rem; padding-left: 2rem; }
  .timeline::before { left: 8px; right: auto; top: 4px; bottom: 4px; width: 2px; height: auto; }
  .timeline li { padding: 0; }
  .timeline li::before { left: -2rem; top: 3px; }
}

/* Figures with a word and a sentence each: what the platform is today. */
.figures { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.figures li { margin: 0; padding: 1.25rem 0 0; border-top: 1px solid rgba(38, 49, 48, 0.18); }
.figures strong { display: block; font-size: var(--fs-6); line-height: 1; font-weight: 600; letter-spacing: var(--track); color: var(--slate); }
.figures h3 { font-size: var(--fs-2); margin: 0.35rem 0 0.6rem; }
.figures p { margin: 0; color: var(--fg-2); }
/* The figures arrive one after another when the band comes into view: the
   numbers count up (site.js), the words rise in letter by letter. */
.js .figures.reveal { opacity: 1; transform: none; }
.js .figures li { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--i, 0) * 160ms); }
.js .figures.in-view li { opacity: 1; transform: none; }
.figures .letters { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.figures .letters span { display: inline-block; }
.js .figures .letters span { transform: translateY(110%); transition: transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 160ms + var(--l, 0) * 55ms + 120ms); }
.js .figures.in-view .letters span { transform: none; }
@media (max-width: 899px) { .figures { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .figures { grid-template-columns: 1fr; } }

/* A slow line of names, as on the About page: where the team has built before. */
.marquee { margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 1px solid rgba(38, 49, 48, 0.15); }
.marquee-label { margin: 0 0 1rem; color: var(--fg-2); }
.marquee-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 36s linear infinite; }
.marquee-track .copy { display: contents; }
.marquee-track span:not(.copy) { font-size: var(--fs-4); font-weight: 600; letter-spacing: var(--track); color: var(--slate); white-space: nowrap; line-height: 1.2; padding-block: 0.25rem; }
.marquee-track .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--clay); margin: 0 2.25rem; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-viewport:hover .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .marquee-viewport { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; row-gap: 0.5rem; }
  .marquee-track .copy { display: none; }
}

/* The investors' page: a pricing table, and notes to the editor that must be
   gone before anyone is invited. */
.pricing { margin: 0; }
.pricing th { font-weight: 600; color: var(--fg-2); font-size: var(--fs-0); }
.pricing td:last-child, .pricing th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pricing td:first-child { font-weight: 600; }
.editor-note { margin-top: clamp(2rem, 4vw, 3rem); padding: 1rem 1.25rem; border: 2px dashed var(--clay); border-radius: var(--radius-s); color: inherit; }
.editor-note strong { color: var(--rust); }
:is(.band-ink, .band-slate) .editor-note strong { color: var(--clay); }

/* ------------------------------------------------------------- rotors
 * A word in a sentence that changes while the sentence is in view (site.js):
 * the rest of the sentence stays put, the new word slides up into place and
 * the hand-drawn underline is drawn again beneath it. Without JavaScript, or
 * for anyone who prefers less motion, the sentence keeps its first word. */
.rotor {
  position: relative; display: inline-grid; grid-template-columns: 1fr; justify-items: start;
  white-space: nowrap; padding-bottom: 0.12em; transition: width 0.45s var(--ease);
  clip-path: inset(-0.12em -0.15em 0 -0.05em);
}
.rotor > span { grid-area: 1 / 1; transition: transform 0.5s var(--ease), opacity 0.4s var(--ease); }
.rotor > .is-off { visibility: hidden; }
.rotor > .is-out { transform: translateY(-70%); opacity: 0; }
.rotor > .is-in { transform: translateY(70%); opacity: 0; transition: none; }
.rotor::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 0.45em; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 80 8, 200 6, 397 13' fill='none' stroke='%23d4967d' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left bottom / 100% 100%;
  clip-path: inset(0 0 0 0); transition: clip-path 0.55s var(--ease) 0.12s;
}
.rotor.redraw::after { clip-path: inset(0 100% 0 0); transition: none; }
/* A rotor that is a line of its own (always, or on phones), so the sentence
   around it never re-wraps as the word changes. As wide as its word, so the
   underline is too; centred where the text is. */
.rotor-line { display: grid; width: fit-content; max-width: 100%; }
.ta-center .rotor-line, .quote-band .rotor-line { margin-inline: auto; }
@media (max-width: 767px) { .rotor-phone-line { display: grid; width: fit-content; max-width: 100%; } }
.hero-copy h1 .line, .chapter-title .line { display: block; }
@media (min-width: 768px) { .hero-copy h1 .line { white-space: nowrap; } }

/* The closing call to action. */
.cta-band { text-align: center; }
.cta-band .band-head { margin-inline: auto; }
.cta-band .actions { justify-content: center; margin-top: 2rem; }
.cta-band .link-list { margin: 3rem auto 0; max-width: 46em; list-style: none; padding: 1.5rem 0 0; border-top: 1px solid rgba(255, 255, 255, 0.18); display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.75rem; }
.cta-band .link-list li { margin: 0; padding: 0; }
.cta-band .link-list a { color: var(--sand); text-decoration: none; font-size: var(--fs-0); border-bottom: 1px solid rgba(220, 217, 208, 0.4); }
.cta-band .link-list a:hover { color: var(--white); border-color: var(--white); }

/* Two columns of plain lists (what the work includes / what teams can do). */
.lists-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; }
.lists-2 ul { margin: 0; padding-left: 1.2em; }
.lists-2 li { margin: 0.5em 0; }
@media (max-width: 767px) { .lists-2 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- the hero
 * A full-height scene with the product rising out of it as the page scrolls.
 * The section is taller than the screen; the stage sticks while --p, set by
 * site.js from the scroll position, runs from 0 to 1. The device sits at the
 * bottom of the stage: at --p 0 it peeks out below the copy, at --p 1 it fills
 * the screen below the header. site.js measures the copy and the device and
 * sets --s0 (the scale at 0), --s1 (the scale at 1, so that it fits) and
 * --ty0 (how far down it starts), so this works on every screen height. */

.hero { position: relative; height: 240vh; background: var(--ink); color: var(--white); --p: 0; --s0: 0.78; --s1: 1; --ty0: 30%; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; z-index: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(calc(1 + 0.14 * var(--p))); transform-origin: 50% 60%; }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(28, 36, 35, 0.72) 0%, rgba(28, 36, 35, 0.45) 40%, rgba(28, 36, 35, 0.3) 65%, rgba(28, 36, 35, 0.8) 100%); }
.hero-shade::after { content: ''; position: absolute; inset: 0; background: var(--ink); opacity: calc(var(--p) * 1.15); }
.hero-copy { position: relative; z-index: 2; padding-top: calc(var(--header-h) + clamp(1.5rem, 6vh, 5rem)); padding-bottom: 1.5rem; opacity: calc(1 - var(--p) * 2.4); transform: translateY(calc(var(--p) * -60px)); }
.hero-copy h1 { color: var(--white); max-width: none; }
.hero-copy .lede { color: rgba(255, 255, 255, 0.92); max-width: 30em; margin-bottom: 1.75rem; }
.hero-copy .actions { gap: 0.75rem; }
.hero .btn-outline { color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
/* Shorter screens: the copy takes less of them. */
@media (min-width: 900px) and (max-height: 820px) {
  .hero-copy { padding-top: calc(var(--header-h) + 1.25rem); padding-bottom: 1rem; }
  .hero-copy h1 { font-size: var(--fs-5); margin-bottom: 0.75rem; }
  .hero-copy .lede { font-size: var(--fs-1); margin-bottom: 1rem; max-width: 40em; }
  .hero-copy .btn { min-height: 44px; }
}

.device {
  position: absolute; z-index: 3; left: 50%; bottom: 0;
  width: min(1120px, 92vw);
  transform-origin: 50% 100%;
  transform: translateX(-50%) translateY(calc(var(--ty0) * (1 - var(--p)))) scale(calc(var(--s0) + (var(--s1) - var(--s0)) * var(--p)));
  will-change: transform;
}
.device-frame {
  background: #1b2221; border-radius: 18px 18px 6px 6px; padding: 10px 10px 0;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
/* The screen is as tall as what it shows, so nothing is cut off at the bottom. */
.device-screen { background: var(--paper); border-radius: 10px 10px 0 0; overflow: hidden; }
.device-base { height: 12px; margin: 0 -2.5%; background: linear-gradient(#2a3231, #151b1a); border-radius: 0 0 14px 14px; }
.hero-end { height: 1px; }

/* Phones and tablets held upright, and anyone who prefers less motion: the
   scene is a normal section, with the device below the copy, in full. */
@media (max-width: 899px) {
  .hero { height: auto; }
  .hero-stage { position: relative; height: auto; padding-bottom: 2.5rem; }
  .hero-copy { opacity: 1; transform: none; padding-bottom: 2rem; }
  .device { position: relative; left: auto; bottom: auto; transform: none; width: min(100%, 700px); margin: 0 auto; }
  .hero-shade::after { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero-stage { position: relative; height: auto; padding-bottom: 2.5rem; }
  .hero-copy { opacity: 1; transform: none; padding-bottom: 2rem; }
  .hero-photo img { transform: none; }
  .hero-shade::after { opacity: 0; }
  .device { position: relative; left: auto; bottom: auto; transform: none; margin: 0 auto; }
}

/* -------------------------------------------------- the product chapter
 * Three claims on the left stay in view while the drawn screens scroll past. */

.chapter { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.chapter-claims { position: sticky; top: calc(var(--header-h) + 3rem); list-style: none; margin: 0; padding: 0; }
.chapter-claims li { margin: 0; padding: 1.25rem 0 1.25rem 1.5rem; border-left: 2px solid rgba(255, 255, 255, 0.15); transition: border-color 0.3s, opacity 0.3s; opacity: 0.45; }
.chapter-claims li.is-active { opacity: 1; border-color: var(--clay); }
.chapter-claims h3 { font-size: var(--fs-3); margin-bottom: 0.5rem; }
.chapter-claims p { margin: 0; color: var(--sand); }
.chapter-claims p + p { margin-top: 0.75rem; }
.chapter-panels { display: grid; gap: clamp(3rem, 8vh, 7rem); }
.chapter-panels > section { scroll-margin-top: calc(var(--header-h) + 2rem); }
.chapter-panels .panel-title { display: none; }
@media (max-width: 899px) {
  .chapter { grid-template-columns: 1fr; }
  .chapter-claims { display: none; }
  .chapter-panels .panel-title { display: block; margin-bottom: 1rem; }
  .chapter-panels .panel-title h3 { font-size: var(--fs-3); }
  .chapter-panels .panel-title p { color: var(--sand); }
}

/* ------------------------------------------------------ drawn screens
 * Faithful, simplified drawings of the product's screens, in the brand's
 * colours, filled with the figures from the demo tenant. */

.panel { background: var(--paper); color: var(--ink); border-radius: var(--radius-m); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06); font-size: 13px; line-height: 1.35; }
.device-screen .panel { border-radius: 0; box-shadow: none; }
.panel-bar { display: flex; align-items: center; gap: 1.25rem; padding: 0.7rem 1rem; background: var(--navy); color: var(--white); font-weight: 500; overflow: hidden; }
.panel-bar .wm { font-weight: 600; letter-spacing: -0.01em; font-size: 14px; }
.panel-bar .tabs { display: flex; gap: 0.25rem; margin-left: auto; flex-wrap: nowrap; overflow: hidden; }
.panel-bar .tabs span { padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 12px; opacity: 0.75; white-space: nowrap; }
.panel-bar .tabs .on { background: rgba(255, 255, 255, 0.14); opacity: 1; }
.panel-body { padding: 1rem; display: grid; gap: 1rem; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.panel-head h4 { font-size: 15px; font-weight: 600; margin: 0; color: var(--ink); }
.panel-head .sub { color: var(--fg-2); font-size: 12px; }
.pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.6rem; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--sand-2); color: var(--ink); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--moss); }
.pill.warn .dot { background: var(--amber); }

/* Landscape: map and figures */
.p-landscape .panel-body { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.map-card { background: var(--ink); border-radius: 10px; padding: 0.75rem; display: grid; gap: 0.5rem; }
.map-card .map-head { display: flex; justify-content: space-between; align-items: center; color: var(--sand); font-size: 12px; }
.map-card .map-head .tabs { display: flex; gap: 0.2rem; }
.map-card .map-head .tabs span { padding: 0.2rem 0.5rem; border-radius: 6px; opacity: 0.7; }
.map-card .map-head .tabs .on { background: rgba(255, 255, 255, 0.12); opacity: 1; }
.map { width: 100%; height: auto; display: block; }
.map .land path { fill: var(--sand); stroke: var(--ink); stroke-width: 0.8; stroke-linejoin: round; transition: fill 0.6s var(--ease); }
.map path[data-c].lit { fill: var(--mint); }
.map path[data-c].lit.hot { fill: var(--clay); }
.map-europe { aspect-ratio: 1000 / 913; }
.map-world { aspect-ratio: 1000 / 591; }
.map-card .scale { display: flex; align-items: center; gap: 0.5rem; color: var(--sand); font-size: 11px; }
.map-card .scale i { flex: 1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--sand), var(--mint), var(--clay)); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; align-content: start; }
.tiles .tile-label { grid-column: 1 / -1; color: var(--fg-2); font-size: 11px; letter-spacing: 0.02em; margin-top: 0.25rem; }
.tile { background: var(--navy); color: var(--white); border-radius: 8px; padding: 0.6rem 0.7rem; display: grid; gap: 0.2rem; }
.tile .lbl { font-size: 11px; opacity: 0.8; }
.tile .num { font-size: 22px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }

/* Change proposals: the board and the country map */
.p-proposals .panel-body { grid-template-columns: minmax(0, 1fr); }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; }
.kpi { border-radius: 8px; padding: 0.6rem 0.7rem; color: var(--white); display: grid; gap: 0.15rem; }
.kpi .lbl { font-size: 11px; opacity: 0.85; }
.kpi .num { font-size: 22px; font-weight: 600; line-height: 1; }
.kpi.k1 { background: #5f6494; } .kpi.k2 { background: #8a9aa5; } .kpi.k3 { background: #0f6f78; } .kpi.k4 { background: #6a6fa0; } .kpi.k5 { background: #4f5b73; }
.board { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.table-card { background: var(--white); border-radius: 10px; border: 1px solid var(--sand); overflow: hidden; }
.table-card header { background: var(--navy); color: var(--white); padding: 0.5rem 0.75rem; font-weight: 500; display: flex; justify-content: space-between; }
.table-card table { margin: 0; font-size: 12px; }
.table-card th, .table-card td { padding: 0.45rem 0.6rem; border-color: var(--sand-2); }
.table-card th { color: var(--fg-2); font-weight: 500; font-size: 11px; }
.table-card .due { color: #b3261e; font-weight: 500; }
.table-card .tag { display: inline-block; padding: 0.1rem 0.45rem; border-radius: 999px; background: var(--sand-2); font-size: 11px; }
.table-card .tag.high { background: #e9d7cf; }
.heat .map .land path { stroke-width: 0.6; }
.heat .map path[data-c].ready { fill: var(--moss); }
.heat .map path[data-c].busy { fill: var(--amber); }
.heat .map path[data-c].late { fill: #c96b55; }
.legend { display: grid; gap: 0.35rem; font-size: 12px; }
.legend li { list-style: none; margin: 0; padding: 0.3rem 0.5rem; border-radius: 6px; background: var(--white); border: 1px solid var(--sand-2); display: flex; align-items: center; gap: 0.5rem; }
.legend ul { margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.legend .sw { width: 10px; height: 10px; border-radius: 50%; }
.legend .n { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.legend .total { font-weight: 600; justify-content: space-between; }

/* EWC: tiles, budget and the current step */
.p-ewc .panel-body { grid-template-columns: minmax(0, 1fr); }
.p-ewc .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.p-ewc .tile.t1 { background: #6e5a7a; } .p-ewc .tile.t2 { background: #4b5572; } .p-ewc .tile.t3 { background: #2c8a6a; } .p-ewc .tile.t4 { background: #c88a2a; } .p-ewc .tile.t5 { background: #607890; }
.budget { background: var(--white); border: 1px solid var(--sand); border-radius: 10px; padding: 0.75rem; display: grid; gap: 0.6rem; }
.budget .row { display: grid; grid-template-columns: 7.5em 1fr 5em; align-items: center; gap: 0.75rem; font-size: 12px; }
.budget .bar { height: 8px; border-radius: 4px; background: var(--sand-2); overflow: hidden; }
.budget .bar i { display: block; height: 100%; width: calc(var(--w) * 1%); background: var(--navy); border-radius: 4px; transform-origin: left; transition: transform 1s var(--ease); }
.budget .bar.spend i { background: var(--clay); }
.budget .amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.step-card { background: var(--white); border: 1px solid var(--sand); border-left: 4px solid var(--navy); border-radius: 10px; padding: 0.75rem 1rem; display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1.5rem; align-items: center; }
.step-card .tags { display: flex; gap: 0.35rem; font-size: 11px; }
.step-card .tags span { padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--navy); color: var(--white); }
.step-card .tags span.warm { background: #a9683f; }
.step-card h5 { margin: 0.15rem 0 0; font-size: 14px; font-weight: 600; }
.step-card p { margin: 0; color: var(--fg-2); font-size: 12px; }
.step-card .progress { grid-row: 1 / 4; width: 120px; height: 8px; border-radius: 4px; background: var(--sand-2); overflow: hidden; }
.step-card .progress i { display: block; height: 100%; width: 50%; background: var(--navy); transform-origin: left; transition: transform 1s var(--ease); }

/* Animation of the drawn screens, once they come into view (site.js adds .in-view). */
.panel .map path[data-c].lit, .panel .map path[data-c].ready, .panel .map path[data-c].busy, .panel .map path[data-c].late { transition-delay: calc(var(--i, 0) * 70ms); }
.js .panel:not(.in-view) .map path[data-c] { fill: var(--sand) !important; }
.js .panel:not(.in-view) .budget .bar i, .js .panel:not(.in-view) .step-card .progress i { transform: scaleX(0); }
.panel .counter { font-variant-numeric: tabular-nums; }

@media (max-width: 767px) {
  .panel { font-size: 12px; }
  .step-card { grid-template-columns: 1fr; }
  .step-card .tags { flex-wrap: wrap; }
  .step-card .progress { grid-row: auto; width: 100%; margin-top: 0.5rem; }
  .p-landscape .panel-body { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .board { grid-template-columns: 1fr; }
  .p-ewc .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panel-bar .tabs { display: none; }
}

/* ----------------------------------------------------- page layouts
 * The re-laid pages: a hero band, then bands of text with a figure or a form. */

.page-hero { padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem); }
.page-hero h1 { font-size: var(--fs-5); max-width: 14em; }
.page-hero .lede { margin-bottom: 1.5rem; }
.page-hero .hero-text > p:not(.lede):not(.actions) { max-width: 36em; color: var(--sand); }
.page-hero .actions { margin-top: 1.75rem; }
.page-hero .hero-text a:not(.btn) { overflow-wrap: anywhere; }
.page-hero .btn-outline { color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.hero-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
.hero-solo { max-width: 46em; }
.hero-centred .hero-solo { margin-inline: auto; text-align: center; }
.hero-centred .hero-solo .lede { margin-inline: auto; }
.hero-centred .hero-solo .actions { justify-content: center; }

.still { margin: 0; }
.still img { width: 100%; height: auto; border-radius: var(--radius-m); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08); background: var(--paper); }
.still figcaption { margin-top: 0.85rem; font-size: var(--fs-0); color: var(--fg-2); }
:is(.band-ink, .band-slate) .still figcaption { color: var(--sand); opacity: 0.85; }
.photo { margin: 0; }
.photo img { width: 100%; height: auto; border-radius: var(--radius-m); }
.split.alt > :first-child { order: 2; }
.stills-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
@media (max-width: 767px) { .stills-2 { grid-template-columns: 1fr; } .split.alt > :first-child { order: 0; } }

/* Long text: an article-like column with its own heading rhythm. */
.longform { max-width: 46em; }
.longform :is(h2, h3) { margin: 2.25rem 0 0.75rem; }
.longform h2 { font-size: var(--fs-4); line-height: 1.15; }
.longform h3 { font-size: var(--fs-3); }
.longform > :first-child { margin-top: 0; }
.longform p { margin: 0 0 1rem; }
.longform ul, .longform ol { margin: 0 0 1rem; }
.longform .actions { margin-top: 2rem; }
.longform .as-h1 { font-size: var(--fs-4); display: block; margin: 2.25rem 0 0.75rem; }

/* The kicker above a module's heading. */
.kicker { font-weight: 600; color: var(--clay); margin: 0 0 0.5rem; font-size: var(--fs-1); }
:is(.band-paper, .band-sand, .band-white) .kicker { color: var(--rust); }

/* The modules page: a sticky list of the modules under the header. */
.subnav { position: sticky; top: var(--header-h); z-index: 30; background: rgba(38, 49, 48, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.subnav ul { list-style: none; margin: 0; padding: 0.6rem 0; display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
.subnav li { margin: 0; padding: 0; flex: none; }
.subnav a { display: inline-block; padding: 0.45rem 0.7rem; border-radius: 999px; color: var(--white); text-decoration: none; font-size: 0.8125rem; font-weight: 500; white-space: nowrap; }
.subnav a:hover, .subnav a.is-current { background: rgba(255, 255, 255, 0.12); color: var(--white); }
@media (max-width: 1279px) { .subnav ul { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent); padding-right: 3rem; } }
.module { scroll-margin-top: calc(var(--header-h) + 3.5rem); }
.module .module-head { align-items: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.module .module-head .actions { margin-top: 1.5rem; }
.module .feature-grid.icons li { padding-top: 1.25rem; }
.module .feature-grid.icons svg { width: 28px; height: 28px; color: var(--clay); margin-bottom: 0.6rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:is(.band-paper, .band-sand) .module .feature-grid.icons svg { color: var(--slate); }
.module .module-head:not(.split) .hero-text { max-width: 46em; }
/* What a module reads from the rest of the platform and what it hands on. */
.connects { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 3rem; margin: 0 0 clamp(2rem, 4vw, 3rem); padding: 1.1rem 1.4rem; border-radius: var(--radius-m); background: rgba(38, 49, 48, 0.06); }
:is(.band-ink, .band-slate) .connects { background: rgba(255, 255, 255, 0.08); }
.connects div { display: grid; grid-template-columns: 7.5em 1fr; gap: 0.75rem; align-items: baseline; }
.connects dt { font-size: var(--fs-0); font-weight: 600; color: var(--rust); }
:is(.band-ink, .band-slate) .connects dt { color: var(--clay); }
.connects dd { margin: 0; font-size: var(--fs-0); }
@media (max-width: 767px) { .connects { grid-template-columns: 1fr; } .connects div { grid-template-columns: 1fr; gap: 0.1rem; } }
.module-note, .module-more { margin: clamp(1.75rem, 3vw, 2.5rem) 0 0; font-size: var(--fs-0); max-width: 60em; }
.module-note { color: var(--fg-2); }
:is(.band-ink, .band-slate) .module-note { color: var(--sand); opacity: 0.85; }
.module-note + .module-more { margin-top: 0.75rem; }

/* Forms on a band. */
.form-card { background: var(--white); color: var(--ink); border-radius: var(--radius-m); padding: clamp(1.25rem, 3vw, 2rem); --link: var(--rust); }
.form-card .form { max-width: none; }
.form-card .form .status.error { color: #b3261e; font-weight: 500; }
.form-split { align-items: start; }
@media (max-width: 899px) { .hero-split, .form-split { grid-template-columns: 1fr; } .page-hero .still, .page-hero .photo { max-width: 560px; } }
.form-split + .photo { margin-top: clamp(2rem, 4vw, 3rem); }
.form-split + .photo img { max-height: 420px; object-fit: cover; }
.videos { display: grid; gap: 2.5rem; }
.videos h2 { font-size: var(--fs-3); margin: 0 0 0.75rem; }
.videos figure { margin: 0; }

/* ------------------------------------------------------ older layout
 * The pages not yet re-laid use the Squarespace-era grid, kept as it was. */

.section {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad, 0) 0;
  min-height: var(--min-h, 0);
}
.h-large  { --pad: 8vmax; --min-h: 80vh; }
.h-medium { --pad: 6vmax; --min-h: 50vh; }
.h-small  { --pad: 3.3vmax; --min-h: 30vh; }
.h-custom { --pad: 0px; }

.section-bg { position: absolute; inset: 0; z-index: -1; }
.section-bg img { width: 100%; height: 100%; object-fit: cover; }
.section-bg .overlay { position: absolute; inset: 0; background: var(--bg); }

.container { width: var(--container); margin: 0 auto; position: relative; }

.grid {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows), minmax(var(--row), auto));
  gap: var(--col-gap);
  padding-block: var(--col-gap);
}
.cell { grid-area: var(--d); position: relative; min-width: 0; display: flex; flex-direction: column; justify-content: flex-start; }
.cell.v-center { justify-content: center; }
.cell.v-end { justify-content: flex-end; }
.cell > .media { flex: 1 1 auto; }
.text > :first-child { margin-top: 0; }
.text > :last-child { margin-bottom: 0; }
.text :is(h2:not(.as-h1), h3, h4, .as-h2):not(:first-child) { margin-top: 1.5rem; }
.text h4 + h4 { margin-top: 0.75rem; }

.shape { display: none; }
.shape.c-darkAccent { background: var(--slate); }
.shape.c-lightAccent { background: var(--sand); }
.shape.c-white { background: var(--white); }
.shape.c-black { background: var(--slate-deep); }

.media { margin: 0; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.contain img { object-fit: contain; }
.media.rounded { border-radius: var(--radius-m); }
.media.circle { border-radius: var(--radius-m); }
.cell > .media.circle, .cell > .media[class*='mask-'] { flex: none; align-self: center; margin-block: auto; height: auto; }
.media.mask-tv { border-radius: var(--radius-m); }

figure:not(.media) { margin: 0; }
figure:not(.media) img { border-radius: var(--radius-s); }
figcaption { margin-top: 0.75rem; font-size: 0.9rem; opacity: 0.85; }

@media (max-width: 767px) {
  .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(var(--m-rows), minmax(var(--row), auto)); }
  .cell { grid-area: var(--m); }
  .h-large, .h-medium { --min-h: 0; }
  .table-scroll { overflow-x: auto; }
}

/* A card list: the "4 step process" band on older pages. */
.list-section { --pad: 0px; --min-h: 0; }
.list-section .container { padding-block: 3.3vmax; text-align: center; }
.list-section h2 { margin-bottom: 2.5rem; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.cards li { margin: 0; padding: 0; }
.cards h3 { font-size: var(--fs-2); margin-bottom: 0.5rem; }
.cards p { margin: 0; }

/* ----------------------------------------------------------------- footer */

.site-footer { --link: var(--ink); background: var(--sand-2); color: var(--ink); padding: 0 0 2.5rem; }
.site-footer .signup {
  max-width: var(--wrap); margin: 0 auto; padding: 3rem var(--gutter) 2.5rem;
  border-bottom: 1px solid rgba(38, 49, 48, 0.15);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem 4rem; align-items: start;
}
.site-footer .signup h2 { font-size: var(--fs-3); margin: 0 0 0.5rem; }
.site-footer .signup h2 a { color: inherit; text-decoration: none; }
.site-footer .signup .text p { margin: 0; }
.site-footer .signup .form { gap: 0.6rem; max-width: none; }
.site-footer .signup .row { display: flex; gap: 0.6rem; }
.site-footer .signup .row input { flex: 1 1 auto; min-width: 0; }
.site-footer .signup .btn { --btn-bg: var(--ink); --btn-fg: var(--white); min-height: 0; padding-block: 0; }
.site-footer .signup .hint { font-size: var(--fs-0); color: var(--fg-2); }
.site-footer .cols {
  max-width: var(--wrap); margin: 0 auto; padding: 3rem var(--gutter) 2rem;
  display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 2rem 2.5rem;
}
.site-footer .cols h2 { font-size: 0.9375rem; font-weight: 600; margin: 0 0 0.75rem; }
.site-footer .cols ul { list-style: none; margin: 0; padding: 0; }
.site-footer .cols li { margin: 0 0 0.45rem; padding: 0; font-size: 0.9375rem; }
.site-footer .cols a { text-decoration: none; color: var(--fg-2); }
.site-footer .cols a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .brand .logo img { width: 170px; }
.site-footer .brand p { margin: 1rem 0 0; max-width: 20em; font-size: 0.9375rem; color: var(--fg-2); }
.site-footer .foot {
  max-width: var(--wrap); margin: 0 auto; padding: 1.5rem var(--gutter) 0; border-top: 1px solid rgba(38, 49, 48, 0.15);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
}
.site-footer .legal { font-size: var(--fs-0); color: var(--fg-2); margin: 0; }
.site-footer .social { display: flex; gap: 0.75rem; }
.site-footer .social a { color: var(--ink); display: inline-flex; }
.site-footer .social svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 899px) {
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .site-footer .signup { grid-template-columns: 1fr; }
  .site-footer .signup .row { flex-direction: column; }
  .site-footer .signup .btn { min-height: 48px; }
}

/* ------------------------------------------------------------------ forms */

.form { display: grid; gap: 1.25rem; max-width: 720px; }
/* The bot check (site.js) is out of the layout and invisible, so adds no gap and
   can overlay nothing, until it needs a click; then it takes its place in the form. */
.form .turnstile:not(.shown) { position: absolute; width: 0; height: 0; overflow: hidden; }
.form .turnstile.shown { min-height: 65px; }
.form .field { display: grid; gap: 0.4rem; }
.form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form .form-section { font-size: 1.4rem; margin: 1rem 0 0; }
@media (max-width: 767px) { .form .field-row { grid-template-columns: 1fr; } }
.form label, .form legend { font-weight: 500; font-size: 0.95rem; }
.form .req { color: var(--clay); }
.form input:not([type='checkbox']):not([type='radio']), .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--white); border: 1px solid rgba(38, 49, 48, 0.3); border-radius: var(--radius-s);
  padding: 0.8rem 1rem; min-height: 48px;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--slate); outline: 2px solid rgba(73, 90, 88, 0.25); outline-offset: 0; }
.form textarea { min-height: 9rem; resize: vertical; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.form .choice { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.95rem; font-weight: 400; }
.form .hint { font-size: 0.85rem; opacity: 0.8; margin: 0; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .status { margin: 0; min-height: 1.5em; }
.form .status.error { color: #b3261e; }
:is(.theme-dark, .theme-bright, .band-slate, .band-ink) .form .status.error { color: var(--white); font-weight: 500; }
.form button[disabled] { opacity: 0.6; cursor: progress; }

/* Email-capture forms (watch a demo, download the guide) open in a dialog. */
dialog.capture {
  border: 0; padding: 0; border-radius: var(--radius-l); width: min(620px, calc(100vw - 2rem));
  background: var(--white); color: var(--ink); --link: var(--rust);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
}
dialog.capture::backdrop { background: rgba(28, 36, 35, 0.7); }
dialog.capture .inner { padding: 40px 44px 36px; }
dialog.capture h2 { font-size: var(--fs-4); margin-bottom: 0.5rem; }
dialog.capture .intro { font-size: 0.95rem; line-height: 1.5; color: var(--fg-2); margin: 0 0 1.5rem; }
dialog.capture .form input:not([type='checkbox']) { background: var(--paper); border-color: transparent; }
dialog.capture .choice { font-size: 0.85rem; }
@media (max-width: 767px) {
  dialog.capture { border-radius: var(--radius-m); }
  dialog.capture .inner { padding: 28px 22px 24px; }
}
dialog.capture .close {
  position: absolute; top: 0.75rem; right: 0.75rem; width: 40px; height: 40px;
  border: 0; background: none; font-size: 28px; opacity: 0.5; line-height: 1; cursor: pointer; color: var(--ink);
}
dialog.capture .btn { --btn-bg: var(--ink); --btn-fg: var(--white); }

/* ------------------------------------------------------------------ video */

.video { margin: 0; }
.video video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius-m); background: #000; display: block; }
.video-pending {
  aspect-ratio: 16 / 9; border-radius: var(--radius-m); display: grid; place-items: center; text-align: center;
  background: rgba(255, 255, 255, 0.08); border: 1px dashed currentColor; padding: 1rem;
}

/* --------------------------------------------------------------- articles */

.articles-index { --pad: 0px; }
.articles-index .container { padding-block: 3rem 8rem; }
.page-intro { margin-bottom: 4rem; }
.page-intro h1 { margin-bottom: 1.5rem; }

.article-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem 2.5rem;
}
.article-list li { margin: 0; padding: 0; }
.article-list a { text-decoration: none; color: inherit; }
.article-list img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; margin-bottom: 1.25rem; border-radius: var(--radius-m); }
.article-list h2 { font-size: var(--fs-2); line-height: 1.3; margin: 0 0 0.6rem; color: var(--h2); }
.article-list .meta { display: none; }
.article-list p { margin: 0; color: var(--ps); }
.article-list .read-more { display: inline-block; margin-top: 0.75rem; font-size: var(--fs-0); font-weight: 500; color: var(--link); text-decoration: underline; }

@media (max-width: 1023px) { .article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .article-list { grid-template-columns: 1fr; gap: 2.5rem; } }

.article { max-width: 760px; margin: 0 auto; padding-block: 3rem 5rem; }
.article header { margin-bottom: 1.5rem; }
.article h1 { font-size: var(--fs-5); line-height: 1.12; margin-bottom: 0.75rem; }
.article .meta { font-size: 0.85rem; opacity: 0.85; margin: 0 0 1rem; }
.article .tags { margin: 0; }
.article .tags a { color: var(--link); }
.article .article-hero { margin: 0 0 2rem; height: auto; background: none; color: inherit; }
.article .article-hero img { width: 100%; height: auto; display: block; border-radius: var(--radius-m); }
.article .article-hero figcaption { font-style: normal; opacity: 1; margin-top: 1rem; font-size: 1rem; }
.article .text p { margin: 0 0 1rem; }
.article .text :is(h2, h3, h4) { font-weight: 600; margin: 2rem 0 0.75rem; }
.article .text h2 { font-size: var(--fs-4); line-height: 1.2; }
.article .text h3 { font-size: var(--fs-3); line-height: 1.25; }
.article .text h4 { font-size: var(--fs-2); line-height: 1.35; }
.article .text figure { margin: 2rem 0; }
.article .text figure img { width: 100%; height: auto; border-radius: var(--radius-s); }
.article .text figcaption { font-style: normal; opacity: 1; font-size: 1rem; margin-top: 1rem; }
.article .text ul, .article .text ol { margin: 0 0 1rem; }
.related { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.related h2 { font-size: var(--fs-3); margin: 0 0 1.5rem; }
.related .article-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; padding: 0; }
.related .article-list h2 { font-size: 1rem; }
@media (max-width: 767px) { .related .article-list { grid-template-columns: 1fr; } }
.article-nav { display: flex; justify-content: space-between; gap: 2rem; padding-bottom: 3rem; font-size: var(--fs-2); line-height: 1.2; max-width: 760px; margin: 0 auto; }
.article-nav a { color: var(--white); text-decoration: none; max-width: 45%; }
.article-nav a span { font-size: 1.4em; vertical-align: -0.1em; }
.article-nav .older { text-align: right; margin-left: auto; }

/* --------------------------------------------- The Graylark ER Review */

.er-review-intro {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem 6rem; align-items: center;
}
.er-review-intro h1 { margin-bottom: 1.5rem; }
.er-review-intro .signup-form { max-width: 520px; }
@media (max-width: 1023px) { .er-review-intro { grid-template-columns: 1fr; } }
.er-review-issues h2 { margin-bottom: 1rem; }
.issue-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 2rem; max-width: 820px; }
.issue-list li { margin: 0; padding: 0 0 2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.issue-list .meta { font-size: 0.85rem; opacity: 0.8; margin: 0 0 0.5rem; }
.issue-list h3 { font-size: var(--fs-2); margin: 0 0 0.5rem; }
.issue-list h3 a { color: inherit; text-decoration: none; }
.issue-list p { margin: 0; }
.issue-list .has-art { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.75rem; align-items: center; }
.issue-list .art img { display: block; width: 100%; height: auto; border-radius: var(--radius-s); }
@media (max-width: 767px) { .issue-list .has-art { grid-template-columns: 1fr; gap: 1.25rem; } }

.issue { max-width: 760px; margin: 0 auto; padding-block: 3rem 4rem; }
.issue .draft-note { background: var(--clay); color: var(--ink); padding: 0.75rem 1rem; border-radius: var(--radius-s); margin: 0 0 1.5rem; }
.issue .cover { display: block; width: 100%; height: auto; border-radius: var(--radius-m); margin: 0 0 2rem; }
.issue .kicker { font-size: 0.85rem; opacity: 0.85; margin: 0 0 1rem; }
.issue .kicker a { color: inherit; text-decoration: none; }
.issue h1 { font-size: var(--fs-5); line-height: 1.12; margin-bottom: 2rem; }
.issue .text p { margin: 0 0 1rem; }
.issue .text :is(h2, h3) { font-weight: 600; margin: 2.5rem 0 1rem; }
.issue .text h2 { font-size: var(--fs-3); }
.issue .text h3 { font-size: var(--fs-2); margin-top: 2rem; }
.issue .text :is(ul, ol) { margin: 0 0 1rem; }
.issue .text li { margin: 0 0 0.75rem; }
.issue .sign-off { margin-top: 2rem; }
.issue-signup { margin-top: 3.5rem; padding: 2rem; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: var(--radius-m); }
.issue-signup h2 { font-size: var(--fs-3); margin: 0 0 0.5rem; }
.issue-signup > p { margin: 0 0 1.25rem; }
.issue-nav { display: flex; justify-content: space-between; gap: 2rem; padding-bottom: 3rem; max-width: 760px; margin: 0 auto; }
.issue-nav a { color: var(--white); text-decoration: none; }
.issue-nav span:empty { min-width: 1px; }

.manage hr { margin: 2.5rem 0 1.5rem; }

/* ---------------------------------------------------------------- utility */

.narrow { max-width: 640px; margin-inline: auto; }

/* Things that appear as they come into view (site.js adds .in-view). Used
   sparingly: the drawn screens and the figures, not every section. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .js .figures li, .js .figures .letters span { opacity: 1; transform: none; }
  .panel:not(.in-view) .map path[data-c] { fill: revert !important; }
  .panel:not(.in-view) .budget .bar i, .panel:not(.in-view) .step-card .progress i { transform: none; }
}

@view-transition { navigation: auto; }

/* ------------------------------------------------- consultation readiness */

/* The hero's map: the fifteen countries the check covers are lit and clickable
   (site.js mirrors them to the chips below); the rest of the land stays quiet. */
.readiness-map-wrap { position: relative; }
.readiness-hero .hero-split { align-items: center; }
.readiness-hero .map { max-height: min(70vh, 640px); width: auto; max-width: 100%; margin: 0 auto; }
.readiness-hero .map .land path { fill: var(--slate-deep); stroke: var(--ink-2); stroke-width: 0.8; stroke-linejoin: round; transition: fill 0.25s var(--ease); }
.readiness-hero .map path[data-c].lit { fill: var(--mint); cursor: pointer; }
.readiness-hero .map path[data-c].lit:hover { fill: #bdd0ca; }
.readiness-hero .map path[data-c].lit.on { fill: var(--clay); }
.readiness-hero .map path[data-c].lit.on:hover { fill: var(--clay-soft); }
.readiness-hero .map-hint { margin: 0.75rem 0 0; text-align: center; font-size: var(--fs-0); color: var(--sand); }
@media (max-width: 899px) { .readiness-hero .map { max-height: 60vh; } }

.step-title { margin-top: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; }
.hint-line { margin-top: 1rem; font-size: var(--fs-0); color: var(--fg-2); max-width: 46em; }

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip, .chip-radio span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 1.1rem; border-radius: 999px;
  border: 1.5px solid rgba(38, 49, 48, 0.35); background: transparent; color: var(--ink);
  font: inherit; font-size: 0.95rem; font-weight: 500; line-height: 1.2; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover, .chip-radio:hover span { border-color: var(--ink); }
.chip[aria-pressed='true'], .chip-radio:has(input:checked) span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip-radio { position: relative; display: inline-flex; }
.chip-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-radio:has(input:focus-visible) span { outline: 2px solid var(--clay); outline-offset: 3px; }

.choice-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.choice-card {
  position: relative; display: block; padding: 1.1rem 1.25rem; border-radius: var(--radius-m); cursor: pointer;
  border: 1.5px solid rgba(38, 49, 48, 0.2); background: var(--white); transition: border-color 0.15s, box-shadow 0.15s;
}
.choice-card:hover { border-color: var(--ink); }
.choice-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.choice-card:has(input:focus-visible) { outline: 2px solid var(--clay); outline-offset: 3px; }
.choice-card strong { display: block; margin-bottom: 0.3rem; font-size: var(--fs-1); line-height: 1.3; }
.choice-card small { display: block; font-size: var(--fs-0); line-height: 1.45; color: var(--fg-2); }
@media (max-width: 899px) { .choice-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .choice-cards { grid-template-columns: 1fr; } }

.readiness-results .band-head { max-width: none; }
.results-summary { font-size: var(--fs-2); line-height: 1.4; max-width: 40em; }
.across { max-width: 50em; color: var(--fg-2); }
.floor-note { max-width: 50em; color: var(--fg-2); margin-top: 1em; }
.country-cards { display: grid; gap: 1.5rem; }
.country-card {
  background: var(--white); border-radius: var(--radius-m); padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 1.25rem 3rem; align-items: start;
}
.country-card h3 { font-size: var(--fs-3); margin-bottom: 0.6rem; }
.country-card .bodies { margin: 0; font-size: var(--fs-0); line-height: 1.55; color: var(--fg-2); }
.country-card .guide-link { margin: 0.75rem 0 0; font-size: var(--fs-0); }
.country-card .change dl { margin: 0; display: grid; gap: 1.1rem; }
.country-card dt { font-weight: 600; margin-bottom: 0.2rem; }
.country-card dd { margin: 0; }
.country-card .sources { grid-column: 1 / -1; font-size: var(--fs-0); color: var(--fg-2); border-top: 1px solid rgba(38, 49, 48, 0.12); padding-top: 0.9rem; }
.country-card .sources summary { cursor: pointer; font-weight: 500; }
.country-card .sources ul { margin: 0.5rem 0 0; }
.ewc-card { background: var(--sand-2); }
.results-note { margin-top: clamp(1.5rem, 3vw, 2.5rem); max-width: 50em; font-size: var(--fs-0); line-height: 1.6; color: var(--fg-2); }
/* The redundancy count: one unit, looked up in the product's own table (site/assets/thresholds.mjs). */
.count-result { margin-top: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1rem; }
.count-result[hidden] { display: none; }
.count-finding { background: var(--paper); border-radius: var(--radius-m); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 0.9rem; }
.count-state { margin: 0; padding-left: 1rem; border-left: 4px solid var(--fg-2); }
.count-state strong { display: block; font-size: var(--fs-2); line-height: 1.3; margin-bottom: 0.2rem; }
.count-state.met { border-left-color: var(--rust); }
.count-state.near { border-left-color: var(--amber); }
.count-state.none { border-left-color: var(--moss); }
.count-note { margin: 0; font-size: var(--fs-0); color: var(--fg-2); }
.count-finding dl { margin: 0; display: grid; gap: 0.9rem; }
.count-finding dt { font-weight: 600; margin-bottom: 0.2rem; }
.count-finding dd { margin: 0; }
.count-unit { margin: 0; font-size: var(--fs-0); color: var(--fg-2); }
.count-result .sources { font-size: var(--fs-0); color: var(--fg-2); }
.count-result .sources summary { cursor: pointer; font-weight: 500; }
.count-result .sources ul { margin: 0.5rem 0 0; }
.count-result .sources p { margin: 0.5rem 0 0; max-width: 70em; }
.count-result .sources li { overflow-wrap: anywhere; }
/* The guides at /guides (scripts/build-guides.py): long reference pages with tables. */
.guide-body { max-width: 52em; }
/* Statute names are single long words (Betriebsverfassungsgesetz); on a phone a heading must break inside one. */
.guide-body :is(h2, h3, h4, th, td) { overflow-wrap: break-word; }
.guide-body h4 { margin: 1.5rem 0 0.5rem; }
.guide-body blockquote { margin: 1.25rem 0; padding: 0.25rem 0 0.25rem 1.1rem; border-left: 4px solid var(--clay); }
.table-scroll { overflow-x: auto; }
.guide-body .table-scroll { margin: 1.5rem 0; }
.guide-body .table-scroll table { margin: 0; }
.guide-body th { text-align: left; }
.guide-body th, .guide-body td { padding: 0.5rem 0.75rem 0.5rem 0; vertical-align: top; border-bottom: 1px solid rgba(38, 49, 48, 0.12); }
/* The world map on /guides: the product's Region Landscape map in the site's flat style. Countries with a guide are
   links, coloured by the product's complexity rating on its four-step ramp. */
.guide-map-wrap { margin-top: clamp(1.5rem, 3vw, 2.5rem); --s1: #6f807c; --s2: var(--mint); --s3: var(--clay-soft); --s4: var(--clay); }
.guide-map-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; margin-bottom: 0.75rem; }
.guide-map-label { margin: 0; font-size: var(--fs-1); min-height: 1.6em; }
.guide-map-legend { margin: 0; display: flex; align-items: center; gap: 0.6rem; font-size: var(--fs-0); color: var(--sand); }
.guide-map-ramp { display: inline-flex; border-radius: 999px; overflow: hidden; }
.guide-map-ramp i { display: block; width: 1.4rem; height: 0.5rem; }
.guide-map-ramp .s1 { background: var(--s1); } .guide-map-ramp .s2 { background: var(--s2); }
.guide-map-ramp .s3 { background: var(--s3); } .guide-map-ramp .s4 { background: var(--s4); }
.guide-map-regions { margin-bottom: 1rem; }
.guide-map-regions .chip { background: transparent; color: var(--sand); border-color: rgba(220, 217, 208, 0.35); }
.guide-map-regions .chip:hover { border-color: var(--sand); }
.guide-map-regions .chip[aria-pressed='true'] { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.guide-map { width: 100%; height: auto; }
.guide-map .land path { fill: var(--slate-deep); stroke: var(--ink-2); stroke-width: 0.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.guide-map-label a { color: var(--clay-soft); }
.guide-map a :is(path, circle) { transition: fill 0.2s var(--ease); cursor: pointer; }
.guide-map a.s1 :is(path, circle) { fill: var(--s1); } .guide-map a.s2 :is(path, circle) { fill: var(--s2); }
.guide-map a.s3 :is(path, circle) { fill: var(--s3); } .guide-map a.s4 :is(path, circle) { fill: var(--s4); }
.guide-map .dots circle { stroke: var(--ink-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.guide-map a:is(:hover, :focus-visible) :is(path, circle) { fill: var(--paper); }
.guide-map a:focus-visible { outline: none; }
.guide-map-note { margin: 0.75rem 0 0; font-size: var(--fs-0); color: var(--sand); max-width: 50em; }
.guide-groups { display: grid; gap: 2.5rem; }
.guide-group-title { font-size: var(--fs-3); line-height: 1.25; margin: 0; }
.guide-list { list-style: none; margin: 0.75rem 0 0; padding: 0; columns: 3 14em; column-gap: 2rem; }
.guide-list li { margin: 0 0 0.5rem; break-inside: avoid; }
.page-hero .eyebrow { margin: 0 0 0.75rem; font-size: var(--fs-0); }
.page-hero .eyebrow a { color: var(--clay-soft); }
/* Beside the count: what a general check gives, and what the platform gives. */
.platform-compare { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 1.25rem; }
.platform-compare .compare-head { grid-column: 1 / -1; max-width: 46em; }
.platform-compare .compare-head :is(h2, h3) { font-size: var(--fs-3); line-height: 1.25; margin: 0 0 0.4rem; }
.platform-compare .compare-head p { margin: 0; font-size: var(--fs-2); line-height: 1.4; }
.compare-side { border-radius: var(--radius-m); padding: clamp(1.25rem, 3vw, 2rem); }
.compare-side :is(h3, h4) { margin: 0 0 0.8rem; font-size: var(--fs-1); line-height: 1.4; font-weight: 500; }
.compare-side ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.7rem; }
.compare-check { background: var(--paper); color: var(--fg-2); }
.compare-check :is(h3, h4) { color: var(--fg-2); }
.compare-platform { background: var(--ink); color: var(--sand); }
.compare-platform :is(h3, h4) { color: var(--white); }
.compare-platform .actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.compare-platform .compare-link { color: var(--clay-soft); }
.count-bridge { margin: 0; font-size: var(--fs-0); color: var(--fg-2); }
@media (max-width: 767px) { .platform-compare { grid-template-columns: 1fr; } }
.js .country-card:not(.on), .js .change:not(.on), .js .across:not(.on), .js .ewc-block:not(.on) { display: none; }
@media (max-width: 767px) { .country-card { grid-template-columns: 1fr; gap: 1rem; } }

.band-slate .feature-grid li { border-top-color: rgba(255, 255, 255, 0.18); }
.questions { grid-template-columns: 1fr; gap: 1.25rem; }
.questions h3 { font-size: var(--fs-1); margin-bottom: 0.3rem; }
.questions p { color: var(--sand); font-size: var(--fs-0); }
.pack-selection { padding: 1rem 1.25rem; border-left: 3px solid var(--clay); background: rgba(255, 255, 255, 0.5); border-radius: 0 var(--radius-s) var(--radius-s) 0; }

.longform :is(h2, h3)[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* Free calculators: one line per country (redundancy), a grid of countries (EWC eligibility). */
.form .calc-row { grid-template-columns: 2fr 1fr 1fr; align-items: end; }
@media (max-width: 767px) { .form .calc-row { grid-template-columns: 1fr; } }
.calc-summary, .calc-ewc { margin: 0; }
.calc-ewc { background: var(--paper); border-radius: var(--radius-m); padding: 1rem 1.25rem; }
.calc-country { display: grid; gap: 0.9rem; }
.calc-country h3 { margin: 0.5rem 0 0; }
.ewc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem 1rem; }
@media (max-width: 900px) { .ewc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ewc-grid { grid-template-columns: 1fr; } }
.ewc-uk { margin-top: 1rem; max-width: 22rem; }
.form .calc-row + .calc-row { margin-top: 0.75rem; }

/* Calculator pages: the thresholds table, the worked examples and the questions. */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 0.65rem 0.75rem; border-bottom: 1px solid rgba(38, 49, 48, 0.15); }
.data-table thead th { font-weight: 600; border-bottom: 2px solid rgba(38, 49, 48, 0.3); }
.data-table tbody th { font-weight: 600; white-space: nowrap; }
.faq-list { display: grid; gap: 0.75rem; max-width: 52rem; }
.faq { background: var(--white); border-radius: var(--radius-m); padding: 1rem 1.25rem; }
.faq summary { cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { display: inline; font-size: var(--fs-2); margin: 0; }
.faq p { margin: 0.75rem 0 0; }
.steps { display: grid; gap: 0.9rem; padding-left: 1.25rem; }

/* AI rollout consultation map */
.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.75rem; }
.ai-golive { max-width: 16rem; margin-top: 1rem; }
.start-lines li { margin: 0; }
.ai-act p { margin: 0 0 0.6rem; }
.ai-panel { margin-top: 1.25rem; padding: 1.25rem; background: var(--white); border-radius: var(--radius-m); display: grid; gap: 1rem; }
.ai-panel[hidden] { display: none; }
.ai-panel h3 { margin: 0; }
.ai-points { display: grid; gap: 0.75rem; padding-left: 1.25rem; }
.recast-form { display: grid; gap: 2rem; }
.recast-form .recast-part { display: grid; gap: 1.5rem; }
.recast-form .recast-part + .recast-part { padding-top: 1.5rem; border-top: 1px solid var(--sand); }
.recast-form .recast-part[hidden], .recast-form fieldset[hidden] { display: none; }
.recast-form .recast-part h3 { margin: 0; }
.recast-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.recast-form legend { font-weight: 600; margin-bottom: 0.4rem; padding: 0; }
.recast-hint { margin: 0; color: var(--fg-2); font-size: 0.9rem; }
.recast-result { display: grid; gap: 1rem; margin-top: 1.5rem; }
.recast-result h3 { margin: 1rem 0 0; }
.recast-finding { padding: 0.9rem 1.2rem; border-left: 4px solid var(--fg-2); border-radius: var(--radius-m); background: var(--paper); }
.recast-finding.act { border-left-color: var(--rust); }
.recast-finding.prepare { border-left-color: var(--amber); }
.recast-finding.ready { border-left-color: var(--moss); }
.recast-finding h4 { margin: 0.2rem 0 0.4rem; }
.recast-finding p { margin: 0 0 0.4rem; }
.recast-level { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-2); }
