/* ==========================================================================
   aha Insights design system
   Tokens mirror theme.json. Everything else is built from these tokens.
   ========================================================================== */

@font-face { font-family: "Antipasto Pro"; src: url(../fonts/AntipastoPro-Demibold.otf) format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Antipasto Pro"; src: url(../fonts/AntipastoPro-Regular.otf) format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url(../fonts/lato-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url(../fonts/lato-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Color */
  --coral: #ff3857;          /* brand accent: large display, icons, rules */
  --coral-strong: #d92b48;   /* text links, small headings, button fills (4.78:1) */
  --coral-deep: #b81f3a;     /* hover/pressed state for coral-strong */
  --coral-tint: #fff0f2;
  --yellow: #ffad00;         /* signature brand yellow; pairs with coral. Only ink text on it (9.2:1) */
  --yellow-deep: #f09c00;    /* hover on yellow surfaces */
  --yellow-tint: #fff4d9;
  --ink-on-yellow: #2e2e40;  /* secondary text on yellow (6.1:1) */
  --amber: var(--yellow);
  --amber-tint: var(--yellow-tint);
  --sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23ff3857' stroke-width='9' stroke-linecap='round'%3E%3Cpath d='M100 58V22M58 72 36 44M142 72l22-28M44 104H10M156 104h34'/%3E%3C/g%3E%3Ccircle cx='100' cy='130' r='44' fill='%23ff3857'/%3E%3C/svg%3E");
  --teal: #11d0d6;           /* step numbers, carried from the current site */
  --teal-strong: #077a7e;    /* teal as text (4.9:1) */
  --teal-tint: #e3f9fa;
  --ink: #1a1a2e;            /* body copy (17.06:1) */
  --ink-muted: #55566a;      /* secondary copy (7.0:1 on white, 6.5:1 on surface) */
  --ink-soft: #8b8c9c;
  --shadow-on-yellow: 0 2px 4px rgba(122, 70, 0, 0.08), 0 12px 32px rgba(122, 70, 0, 0.14);       /* decorative only, never text */
  --surface: #faf7f2;        /* warm grey for alternating sections */
  --surface-2: #f2ede5;
  --surface-hover: #f9e3b5;   /* hover tint: warm yellow, clearly visible on white and on --surface */
  --white: #ffffff;
  --line: rgba(26, 26, 46, 0.1);
  --line-strong: rgba(26, 26, 46, 0.18);

  /* Type */
  --font-display: "Antipasto Pro", "Avenir Next", system-ui, sans-serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --fs-24: clamp(1.25rem, 1.12rem + 0.55vw, 1.5rem);
  --fs-32: clamp(1.625rem, 1.35rem + 1.1vw, 2rem);
  --fs-40: clamp(2rem, 1.6rem + 1.6vw, 2.5rem);
  --fs-56: clamp(2.375rem, 1.6rem + 3.2vw, 3.5rem);

  /* Space: 8px scale */
  --s-8: 0.5rem; --s-16: 1rem; --s-24: 1.5rem; --s-32: 2rem;
  --s-48: 3rem; --s-64: 4rem; --s-96: 6rem;
  --section: clamp(4rem, 2.5rem + 6vw, 6rem);
  --gutter: clamp(1rem, 0.4rem + 2.4vw, 2rem);
  --content: 1200px;

  /* Shape & depth */
  --r-sm: 8px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(26, 26, 46, 0.06), 0 2px 8px rgba(26, 26, 46, 0.04);
  --shadow-2: 0 2px 6px rgba(26, 26, 46, 0.06), 0 12px 32px rgba(26, 26, 46, 0.1);
  --shadow-3: 0 8px 24px rgba(26, 26, 46, 0.12), 0 32px 64px rgba(26, 26, 46, 0.14);

  /* Motion: critically damped feel, no overshoot for UI that wasn't flicked */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.64, 0, 0.78, 0);
  --dur-press: 100ms;
  --dur-fast: 180ms;
  --dur-med: 320ms;

  --header-h: 72px;          /* compact header, once the page scrolls; sticky offsets use this */
  --header-h-top: 84px;      /* tall header at the top of the page, with the full logo and its tagline */
  --logo-top: 78px;          /* logo image height in the tall header (tagline legible) */
  --logo-sm: 58px;           /* logo image height in the compact header (wordmark only) */
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); interpolate-size: allow-keywords; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 var(--fs-16)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--coral-strong); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--coral-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 var(--s-16); }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--coral-strong); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--ink); }

h1, h2, h3, h4, h5, .display {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 var(--s-16);
  text-wrap: balance;
  color: var(--ink);
}
/* Tracking and leading are size-specific: tight for display, looser as type shrinks */
.h-56, h1 { font-size: var(--fs-56); line-height: 1.04; letter-spacing: -0.025em; }
.h-40, h2 { font-size: var(--fs-40); line-height: 1.1; letter-spacing: -0.02em; }
.h-32 { font-size: var(--fs-32); line-height: 1.15; letter-spacing: -0.015em; }
.h-24, h3 { font-size: var(--fs-24); line-height: 1.25; letter-spacing: -0.01em; }
.h-20, h4 { font-size: var(--fs-20); line-height: 1.3; letter-spacing: -0.005em; }
.lead { font-size: var(--fs-20); line-height: 1.55; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.small { font-size: 0.875rem; line-height: 1.5; }
.wordmark { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.accent { color: var(--coral); }
.tm { font-family: var(--font-body); font-weight: 400; font-size: 0.55em; line-height: 0; vertical-align: 0.7em; letter-spacing: 0; margin-left: 0.05em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-8);
  margin: 0 0 var(--s-16);
  font: 700 0.8125rem/1.2 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-strong);
}
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--coral); }
.eyebrow--plain::before { display: none; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 1000; padding: 12px 20px; border-radius: var(--r-pill); background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 18px; height: 18px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--content) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(760px + var(--gutter) * 2); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.66); }
.section--surface { background: var(--surface); }
.section--ink { background: var(--ink); color: rgba(255, 255, 255, 0.86); }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--flush-top { padding-top: 0; }
.section--ink .eyebrow { color: #ff7389; }

/* Yellow surfaces: the brand's signature. Text is ink; coral appears as buttons, marks and figures on white cards. */
.section--yellow, .on-yellow { background: var(--yellow); color: var(--ink); }
.on-yellow .eyebrow, .section--yellow .eyebrow { color: var(--ink); }
.on-yellow .lead, .section--yellow .lead, .on-yellow .muted, .section--yellow .muted { color: var(--ink-on-yellow); }
.on-yellow a:not(.btn), .section--yellow a:not(.btn) { color: var(--ink); }
.on-yellow :focus-visible, .section--yellow :focus-visible { outline-color: var(--ink); }
.section--yellow .card { border-color: transparent; box-shadow: var(--shadow-on-yellow); }
.section--yellow .card p { color: var(--ink-muted); }
.sun-mark { position: absolute; pointer-events: none; aspect-ratio: 1; background: var(--sun) center / contain no-repeat; }

.section-head { max-width: 720px; margin-bottom: var(--s-48); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: var(--s-32); flex-wrap: wrap; }
.section-head--split > div { max-width: 640px; }
.section-head p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: var(--s-24); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.stack > * + * { margin-top: var(--s-16); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--coral-strong); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 1.0625rem/1 var(--font-display); letter-spacing: 0;
  text-transform: lowercase; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out), transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.btn:hover { --btn-bg: var(--coral-deep); color: var(--btn-fg); }
/* Feedback lives on the press and is instant; the release eases back */
.btn:active { transform: scale(0.97); transition-duration: var(--dur-press); }
.btn .icon { width: 18px; height: 18px; transition: transform var(--dur-med) var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(3px); }
/* Secondary: white with ink text, a touch darker on hover. The hairline border keeps it visible on white sections. */
.btn--secondary, .btn--light, .btn--glass { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: rgba(26, 26, 46, 0.12); }
.btn--secondary:hover, .btn--light:hover, .btn--glass:hover { --btn-bg: #ededf0; --btn-fg: var(--ink); --btn-bd: rgba(26, 26, 46, 0.16); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; text-decoration: none; color: var(--coral-strong);
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform var(--dur-med) var(--ease-out); }
.link-arrow:hover .icon, a:hover > .link-arrow .icon, .card:hover .link-arrow .icon { transform: translateX(3px); }

/* ---------- Header (translucent material, reveals on scroll-up) ----------
   Tall at the top of the page so the logo's "Insights Technology" tagline is legible; once the page
   scrolls it settles to the compact height and the logo is cropped to the wordmark. The header is
   fixed (the body reserves the tall height), so changing its height never moves the page. */
body { padding-top: var(--header-h-top); }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h-top);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), height var(--dur-med) var(--ease-out);
}
.site-header.is-compact { height: var(--header-h); }
/* Scroll edge effect instead of a hard divider: only appears once content slides under */
.site-header::after {
  content: ""; position: absolute; inset: auto 0 -12px; height: 12px; pointer-events: none;
  background: linear-gradient(rgba(26, 26, 46, 0.06), transparent);
  opacity: 0; transition: opacity var(--dur-med) var(--ease-out);
}
.site-header.is-scrolled::after { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-hidden::after { opacity: 0; }
/* The logo sits in a fixed-width box, so when it shrinks or grows the menu items never move sideways;
   everything stays vertically centred in the header. */
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--s-32); }
/* The logo PNG is 232px tall: the wordmark sits in rows 33-177 and the tagline in rows 195-215. The
   brand box crops the image's empty top and, when compact, everything below the wordmark. */
.brand {
  display: block; flex: none; overflow: hidden;
  width: calc(var(--logo-top) * 354 / 232);   /* logo PNG is 354x232: box keeps the tall logo's width */
  height: calc(var(--logo-top) * 0.82);
  transition: height var(--dur-med) var(--ease-out);
}
.brand img { display: block; height: var(--logo-top); width: auto; max-width: none; margin-top: calc(var(--logo-top) * -0.13); transition: height var(--dur-med) var(--ease-out), margin-top var(--dur-med) var(--ease-out); }
.site-header.is-compact .brand { height: calc(var(--logo-sm) * 0.67); }
.site-header.is-compact .brand img { height: var(--logo-sm); margin-top: calc(var(--logo-sm) * -0.13); }

.primary-nav { flex: 1; height: 100%; }
.primary-nav > ul { list-style: none; display: flex; align-items: center; height: 100%; gap: 2px; }
.nav-item { position: relative; display: flex; align-items: center; height: 100%; }
.nav-link {
  display: flex; align-items: center; height: 40px; padding: 0 12px;
  border-radius: var(--r-pill);
  font: 600 1.0625rem/1 var(--font-display); text-transform: lowercase;
  color: var(--ink); text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.nav-item.has-panel .nav-link { padding-right: 2px; border-radius: var(--r-pill) 0 0 var(--r-pill); }
/* Items with a panel: link and chevron share one hover pill, so the chevron is never left outside it. */
.nav-link:hover,
.nav-item.has-panel:hover .nav-link, .nav-item.has-panel:hover .nav-toggle,
.nav-item.is-open .nav-link, .nav-item.is-open .nav-toggle { background: var(--surface-hover); color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--coral-strong); }
.nav-toggle {
  display: grid; place-items: center; width: 30px; height: 40px; padding-right: 4px;
  border: 0; background: none; cursor: pointer; border-radius: 0 var(--r-pill) var(--r-pill) 0; color: var(--ink-muted);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.nav-toggle .icon { width: 14px; height: 14px; stroke-width: 2.25; transition: transform var(--dur-med) var(--ease-out); }
.nav-item.is-open .nav-toggle .icon { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: var(--s-16); margin-left: auto; }
.study-login { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); background: var(--yellow); font: 600 1rem/1 var(--font-display); text-transform: lowercase; color: var(--ink); text-decoration: none; transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-med) var(--ease-out); }
.study-login:hover { background: var(--yellow-deep); color: var(--ink); }
.study-login:active { transform: scale(0.97); transition-duration: var(--dur-press); }
.study-login .icon { width: 16px; height: 16px; }

/* Mega panel: anchored to its trigger, materializes (scale + blur + fade) rather than just fading */
.mega {
  position: absolute; top: calc(100% - 6px); left: -24px;
  width: min(680px, calc(100vw - 48px));
  padding: var(--s-24);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-24);
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  transform-origin: 64px 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); filter: blur(4px);
  transition: opacity var(--dur-fast) var(--ease-in), transform var(--dur-fast) var(--ease-in),
              filter var(--dur-fast) var(--ease-in), visibility 0s linear var(--dur-fast);
}
.nav-item.is-open .mega {
  opacity: 1; visibility: visible; transform: none; filter: none;
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out),
              filter var(--dur-med) var(--ease-out), visibility 0s;
}
.mega-links { list-style: none; display: grid; gap: 2px; }
.mega-links a {
  display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; align-items: start;
  padding: 10px 12px; border-radius: var(--r-md); text-decoration: none; color: var(--ink);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.mega-links a:hover, .mega-links a:focus-visible { background: var(--surface-hover); color: var(--ink); }
.mega-links .icon-chip { grid-row: span 2; }
.mega-links strong { font-size: 0.9375rem; line-height: 1.3; }
.mega-links span.small { color: var(--ink-muted); }
.mega-hub { display: inline-flex; margin: 8px 12px 0; font-size: 0.875rem; }
.mega-feature {
  display: flex; flex-direction: column; justify-content: end; gap: 6px;
  min-height: 220px; padding: var(--s-24); border-radius: var(--r-md);
  color: #fff; text-decoration: none; position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink);
}
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 600ms var(--ease-out); }
.mega-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 20%, rgba(26, 26, 46, 0.9)); }
.mega-feature:hover { color: #fff; }
.mega-feature:hover img { transform: scale(1.04); }
.mega-feature--yellow { background: var(--yellow); color: var(--ink); }
.mega-feature--yellow::before { inset: -40px -2px auto auto; width: 150px; aspect-ratio: 1; background: var(--sun) center / contain no-repeat; transform: rotate(180deg); }
.mega-feature--yellow:hover { color: var(--ink); background: var(--yellow-deep); }
.mega-feature--yellow .small { color: var(--ink-on-yellow); }
.mega-feature .mega-stat { font-size: 2.75rem; line-height: 1; letter-spacing: -0.025em; color: var(--coral-strong); background: #fff; align-self: flex-start; padding: 8px 14px; border-radius: 12px; box-shadow: var(--shadow-on-yellow); margin: 4px 0 6px; }
.mega-feature .tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.mega-feature strong { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; }

.icon-chip { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--coral-tint); color: var(--coral-strong); }
.icon-chip .icon { width: 18px; height: 18px; }

.menu-button { display: none; width: 44px; height: 44px; border: 0; border-radius: var(--r-pill); background: transparent; cursor: pointer; place-items: center; }
.menu-button:active { transform: scale(0.94); }

/* Mobile sheet: enters from the top and leaves the same way */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--dur-fast) var(--ease-in), transform var(--dur-fast) var(--ease-in), visibility 0s linear var(--dur-fast);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), visibility 0s; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h-top); padding-inline: var(--gutter); flex: none; }
.mobile-menu__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-8) var(--gutter) var(--s-32); }
.mobile-menu__foot { flex: none; padding: var(--s-16) var(--gutter) calc(var(--s-16) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; background: #fff; }
.mobile-menu__foot .btn { width: 100%; }
.m-group { border-bottom: 1px solid var(--line); }
.m-group summary, .m-link {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; font: 600 1.5rem/1 var(--font-display); letter-spacing: -0.01em; text-transform: lowercase;
  color: var(--ink); text-decoration: none; list-style: none; cursor: pointer;
}
.m-group summary::-webkit-details-marker { display: none; }
.m-group summary .icon { transition: transform var(--dur-med) var(--ease-out); }
.m-group[open] summary .icon { transform: rotate(180deg); }
.m-group ul { list-style: none; padding: 0 0 var(--s-16); display: grid; gap: 2px; }
.m-group li a { display: block; padding: 10px 0; color: var(--ink-muted); text-decoration: none; font-size: 1.0625rem; }
.m-group li a.m-hub { color: var(--coral-strong); font-weight: 700; }

@media (max-width: 1180px) {
  :root { --header-h-top: 78px; --logo-top: 72px; }
}
@media (max-width: 1080px) {
  :root { --header-h-top: 72px; --logo-top: 66px; }
  .primary-nav, .header-actions .study-login, .header-actions .btn { display: none; }
  .menu-button { display: grid; }
}
@media (max-width: 1180px) and (min-width: 1081px) {
  .header-inner { gap: var(--s-16); }
  .nav-link { padding: 0 9px; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92svh, 820px);
  margin-top: calc(var(--header-h-top) * -1);
  padding-top: var(--header-h-top);
  display: flex; flex-direction: column;
  background: var(--ink); color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media video { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms var(--ease-out); }
.hero__media video.is-playing { opacity: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 70% at 50% 45%, rgba(26, 26, 46, 0.25), rgba(26, 26, 46, 0.7)),
    linear-gradient(rgba(26, 26, 46, 0.45), transparent 30%, transparent 55%, rgba(26, 26, 46, 0.92));
}
.hero__content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: var(--s-96) var(--s-64); }
.hero h1 { color: #fff; max-width: 24ch; margin-bottom: var(--s-24); font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); line-height: 1.06; }
.hero h1 .kicker { display: block; margin-bottom: var(--s-16); font: 700 0.875rem/1.2 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.hero .lead { color: rgba(255, 255, 255, 0.9); max-width: 46rem; font-size: var(--fs-18); margin-inline: auto; margin-bottom: var(--s-32); }
.hero .btn-row { justify-content: center; }
.hero__tags { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: var(--s-32); }
.hero__tags li {
  padding: 6px 14px; border-radius: var(--r-pill);
  font-size: 0.875rem; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.play-film { display: inline-flex; align-items: center; gap: 12px; color: #fff; background: none; border: 0; cursor: pointer; font-weight: 700; padding: 4px 8px 4px 4px; border-radius: var(--r-pill); }
.play-film__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform var(--dur-med) var(--ease-out), background-color var(--dur-fast); }
.play-film:hover .play-film__icon { background: rgba(255, 255, 255, 0.3); transform: scale(1.06); }
.play-film:active .play-film__icon { transform: scale(0.94); transition-duration: var(--dur-press); }
.play-film .icon { width: 18px; height: 18px; fill: #fff; stroke: none; margin-left: 3px; }

/* ---------- Logo strip (CSS marquee) ---------- */
.logo-strip { position: relative; padding-block: var(--s-32); }
.logo-strip__label { text-align: center; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); margin-bottom: var(--s-24); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__set { list-style: none; display: flex; align-items: center; gap: clamp(2.5rem, 5vw, 4.5rem); padding-right: clamp(2.5rem, 5vw, 4.5rem); }
.marquee__set img { height: 30px; width: auto; max-width: 150px; object-fit: contain; opacity: 0.9; }
.marquee__set img.tall { height: 40px; }
.logo-strip--light .logo-strip__label { color: var(--ink-muted); }
.logo-strip--light .marquee__set img { filter: brightness(0); opacity: 0.55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--yellow); padding-block: var(--s-48) var(--section); position: relative; overflow: hidden; isolation: isolate; }
.page-hero .eyebrow { color: var(--ink); }
.page-hero :focus-visible { outline-color: var(--ink); }
.page-hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-64); align-items: center; }
.page-hero__grid--solo { grid-template-columns: minmax(0, 820px); }
.page-hero h1 { margin-bottom: var(--s-24); }
.page-hero .answer { font-size: var(--fs-20); line-height: 1.6; color: var(--ink); margin-bottom: var(--s-32); max-width: 40rem; }
.page-hero__media { position: relative; }
.page-hero__media img { border-radius: var(--r-lg); box-shadow: var(--shadow-on-yellow), var(--shadow-3); width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; padding: 4%; }
.page-hero__media::before { content: ""; position: absolute; width: 46%; aspect-ratio: 1; right: -10%; top: -26%; background: var(--sun) center / contain no-repeat; z-index: 0; }
.page-hero__media > * { position: relative; }
@media (max-width: 900px) { .page-hero__grid { grid-template-columns: 1fr; gap: var(--s-48); } }
.page-hero:has(.page-hero__grid--solo)::after {
  content: ""; position: absolute; z-index: 0; right: max(-40px, calc((100vw - var(--content)) / 2 - 40px)); bottom: -120px;
  width: min(40vw, 460px); aspect-ratio: 1; pointer-events: none;
  background: var(--sun) center / contain no-repeat;
}
@media (max-width: 900px) { .page-hero:has(.page-hero__grid--solo)::after { width: 220px; right: -50px; bottom: -90px; opacity: 0.35; } }
.page-hero > .container { position: relative; z-index: 1; }

.breadcrumbs { margin-bottom: var(--s-32); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.875rem; color: var(--ink-on-yellow); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--ink-on-yellow); opacity: 0.6; }
.breadcrumbs a { color: var(--ink-on-yellow); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Local (in-page) navigation ---------- */
.local-nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  transition: top var(--dur-med) var(--ease-out);
}
body:has(.site-header:not(.is-hidden)) .local-nav { top: var(--header-h); }
.local-nav ul { list-style: none; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; scroll-snap-type: x proximity; }
.local-nav ul::-webkit-scrollbar { display: none; }
.local-nav a { display: block; white-space: nowrap; padding: 8px 14px; border-radius: var(--r-pill); font-size: 0.9375rem; font-weight: 700; color: var(--ink-muted); text-decoration: none; scroll-snap-align: start; transition: background-color var(--dur-fast), color var(--dur-fast); }
.local-nav a:hover { color: var(--ink); background: var(--surface-hover); }
.local-nav a.is-active { color: #fff; background: var(--ink); }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  padding: var(--s-32); border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med);
}
.card h3, .card h4 { margin-bottom: var(--s-8); }
.card p { color: var(--ink-muted); }
.card > :last-child { margin-bottom: 0; }
.card .link-arrow { margin-top: auto; padding-top: var(--s-16); }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: transparent; }
.card--link:active { transform: translateY(-1px) scale(0.99); transition-duration: var(--dur-press); }
/* Whole card is clickable via its one descriptive link */
.card--link .stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--link a.stretched { color: inherit; text-decoration: none; }
.card--surface { background: var(--surface); border-color: transparent; }
.card--flat { border: 0; padding: 0; background: none; }

.icon-badge { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--s-24); border-radius: 14px; background: var(--coral-tint); color: var(--coral); }
.icon-badge .icon { width: 26px; height: 26px; }
.icon-badge--amber, .icon-badge--yellow { background: var(--yellow); color: var(--ink); }
.icon-badge--teal { background: var(--teal-tint); color: var(--teal-strong); }
.section--ink .icon-badge { background: rgba(255, 255, 255, 0.08); color: var(--coral); }

/* Pillars + plan card (home) */
.pillars { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--s-24); align-items: stretch; }
.pillars__list { display: grid; gap: var(--s-16); }
.pillar { display: grid; grid-template-columns: auto 1fr; gap: var(--s-24); align-items: start; padding: var(--s-24) var(--s-32); }
.pillar .icon-badge { margin: 0; }
.plan-promo {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: end;
  min-height: 420px; padding: var(--s-32); border-radius: var(--r-lg);
  color: var(--ink); background: var(--amber);
}
.plan-promo img { position: absolute; inset: 0; width: 100%; height: 64%; object-fit: cover; object-position: center 30%; z-index: -1; }
.plan-promo__panel { background: var(--amber); margin: 0 calc(var(--s-32) * -1) calc(var(--s-32) * -1); padding: var(--s-32); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.plan-promo h3 { margin-bottom: 4px; }
.plan-promo p { font-family: var(--font-display); font-size: var(--fs-24); margin-bottom: var(--s-24); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } .pillar { padding: var(--s-24); } }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--s-24); position: relative; }
.steps > li { counter-increment: step; position: relative; padding-top: 72px; }
.steps > li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  font: 600 1.25rem/1 var(--font-display); color: var(--ink); background: var(--yellow); box-shadow: 0 0 0 4px var(--yellow-tint);
}
.steps > li::after { content: ""; position: absolute; top: 24px; left: 64px; right: calc(var(--s-24) * -1 + 16px); height: 2px; background: repeating-linear-gradient(90deg, var(--coral) 0 6px, transparent 6px 12px); opacity: 0.5; }
.steps > li:last-child::after { display: none; }
.steps h3 { font-size: var(--fs-20); margin-bottom: var(--s-8); }
.steps p { color: var(--ink-muted); margin: 0; }
.steps--vertical { grid-template-columns: 1fr; gap: 0; max-width: 760px; }
.steps--vertical > li { padding: 0 0 var(--s-32) 80px; min-height: 80px; }
.steps--vertical > li::after { top: 56px; left: 23px; right: auto; bottom: 8px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--coral) 0 6px, transparent 6px 12px); opacity: 0.5; }
@media (max-width: 720px) { .steps > li::after { display: none; } .steps--vertical > li::after { display: block; } }
/* Entrance (aha.js): each circle rolls out from behind the one before it, its dotted line growing behind
   it, and its text fades up once it lands. Only while .is-armed; afterwards the plain styles apply. */
.steps.is-armed > li::before { translate: var(--cx, 0px) 0; z-index: var(--z, 1); }
.steps.is-armed > li::after { clip-path: inset(0 calc(100% - var(--reveal, 0px)) 0 0); }
.steps.is-armed > li > * { opacity: 0; translate: 0 12px; transition: opacity 450ms var(--ease-out), translate 450ms var(--ease-out); }
.steps.is-armed > li.is-landed > * { opacity: 1; translate: 0 0; }
.steps.is-armed > li.is-landed > p { transition-delay: 90ms; }
/* The dotted lines keep flowing from step to step (static with reduced motion, via the global rule). */
.steps > li::after { animation: steps-flow 900ms linear infinite; }
.steps--vertical > li::after { animation-name: steps-flow-down; }
@keyframes steps-flow { from { background-position: 0 0; } to { background-position: 12px 0; } }
@keyframes steps-flow-down { from { background-position: 0 0; } to { background-position: 0 12px; } }

/* ---------- Media + text ---------- */
.media-text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.media-text + .media-text { margin-top: var(--section); }
.media-text--flip .media-text__media { order: 2; }
.media-text__media img { width: 100%; max-height: 480px; object-fit: contain; }
.media-text__media--photo img { border-radius: var(--r-lg); aspect-ratio: 5 / 4; object-fit: cover; box-shadow: var(--shadow-2); max-height: none; }
.media-text__body > :last-child { margin-bottom: 0; }
@media (max-width: 860px) { .media-text { grid-template-columns: 1fr; } .media-text--flip .media-text__media { order: 0; } }

.checklist { list-style: none; display: grid; gap: 12px; margin-bottom: var(--s-24); }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.checklist li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--coral-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d92b48' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checklist--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); column-gap: var(--s-32); }
.section--ink .checklist li::before { background-color: rgba(255, 255, 255, 0.1); }

/* ---------- Key facts ---------- */
.facts { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.facts caption { text-align: left; font: 600 var(--fs-24)/1.25 var(--font-display); letter-spacing: -0.01em; padding-bottom: var(--s-16); }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 32%; font-weight: 700; font-size: 0.9375rem; color: var(--ink-muted); background: rgba(250, 247, 242, 0.6); }
@media (max-width: 640px) { .facts th, .facts td { display: block; width: 100%; } .facts th { padding-bottom: 4px; border-bottom: 0; background: none; } .facts td { padding-top: 0; } }

.answer-block { border-left: 3px solid var(--coral); padding-left: var(--s-24); }
.answer-block p { font-size: var(--fs-20); line-height: 1.6; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9375rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead td { background: var(--surface); }
.compare thead th { font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface); position: sticky; top: 0; }
.compare tbody th { font-weight: 700; }
.compare tbody th a { color: var(--ink); text-decoration: none; }
.compare tbody th a:hover { color: var(--coral-strong); text-decoration: underline; }
.compare tr:last-child > * { border-bottom: 0; }
.compare .is-highlight { background: rgba(255, 56, 87, 0.04); }
.compare thead .is-highlight { background: var(--coral-tint); color: var(--coral-strong); }
.compare td.center, .compare th.center { text-align: center; }
.yes, .no, .opt { display: inline-grid; place-items: center; }
.compare--compact { min-width: 0; }
@media (max-width: 640px) {
  .compare th, .compare td { padding: 14px 12px; }
  .compare--compact thead th { font-size: 0.6875rem; letter-spacing: 0.04em; }
  .compare--compact tbody th { font-size: 0.875rem; }
  .table-wrap:has(.compare:not(.compare--compact))::after { content: "Scroll sideways to see more"; display: block; position: sticky; left: 0; padding: 10px 12px; font-size: 0.8125rem; color: var(--ink-muted); border-top: 1px solid var(--line); }
}
.yes .icon { color: var(--coral-strong); stroke-width: 2.5; width: 20px; height: 20px; margin-inline: auto; }
.opt { font-size: 0.8125rem; font-weight: 700; color: var(--teal-strong); background: var(--teal-tint); padding: 3px 10px; border-radius: var(--r-pill); }
.no { color: var(--ink-soft); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill); font-size: 0.8125rem; font-weight: 700; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.pill--coral { background: var(--coral-tint); color: var(--coral-strong); }
.pill--teal { background: var(--teal-tint); color: var(--teal-strong); }
.pill--amber, .pill--yellow { background: var(--yellow); color: var(--ink); }

/* ---------- Stats & proof ---------- */
.proof { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-64); align-items: center; }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 var(--s-32); font: 600 var(--fs-32)/1.25 var(--font-display); letter-spacing: -0.015em; color: #fff; text-wrap: pretty; }
.quote blockquote::before { content: "\201C"; display: block; font-family: Georgia, serif; font-size: 5rem; line-height: 0.7; color: var(--coral); margin-bottom: var(--s-16); }
.quote figcaption { display: flex; align-items: center; gap: var(--s-16); }
.quote figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.quote figcaption strong { display: block; color: #fff; }
.quote figcaption span { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.72); }
.section:not(.section--ink) .quote blockquote { color: var(--ink); }
.section:not(.section--ink) .quote figcaption strong { color: var(--ink); }
.section:not(.section--ink) .quote figcaption span { color: var(--ink-muted); }

.stats { list-style: none; display: grid; gap: 1px; background: rgba(255, 255, 255, 0.12); border-radius: var(--r-lg); overflow: hidden; }
.stats li { padding: var(--s-24) var(--s-32); background: var(--ink); }
.stats .figure { display: block; font: 600 var(--fs-40)/1 var(--font-display); letter-spacing: -0.02em; color: var(--coral); margin-bottom: 6px; }
.stats .label { color: rgba(255, 255, 255, 0.8); font-size: 0.9375rem; }
.stats-source { margin-top: var(--s-16); font-size: 0.8125rem; color: rgba(255, 255, 255, 0.6); }
.stats-source a { color: #fff; }
.stat-cards { list-style: none; display: grid; gap: var(--s-16); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stat-cards li { padding: var(--s-24); border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-on-yellow); }
.stat-cards .figure { display: block; font: 600 clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem)/1 var(--font-display); letter-spacing: -0.025em; color: var(--coral); margin-bottom: 10px; }
.stat-cards .label { display: block; color: var(--ink); font-size: 0.9375rem; line-height: 1.45; }
.stats-source--dark { color: var(--ink-on-yellow); }
.stats-source--dark a { color: var(--ink); }
.stats--light { background: var(--line); }
.stats--light li { background: #fff; }
.stats--light .figure { color: var(--coral-strong); }
.stats--light .label { color: var(--ink-muted); }
@media (max-width: 900px) { .proof { grid-template-columns: 1fr; gap: var(--s-48); } }

/* ---------- Security band ---------- */
.security-band { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-48); align-items: center; padding: var(--s-48); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.security-band img { width: 128px; height: 128px; }
.security-band h2 { font-size: var(--fs-32); margin-bottom: var(--s-8); }
.security-band p { margin: 0; color: var(--ink-muted); }
.security-band .checklist { margin: var(--s-16) 0 0; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); column-gap: var(--s-24); font-size: 0.9375rem; }
@media (max-width: 900px) { .security-band { grid-template-columns: 1fr; padding: var(--s-32); gap: var(--s-24); } .security-band img { width: 96px; height: 96px; } }

/* ---------- Post cards (horizontal scroll-snap on small screens) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-24); }
.post-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.post-card:active { transform: translateY(-1px) scale(0.99); transition-duration: var(--dur-press); }
.post-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.post-card:hover .post-card__img img { transform: scale(1.03); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--s-24); }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 12px; font-size: 0.8125rem; color: var(--ink-muted); }
/* Date and reading time stay together: if they don't fit beside the topic pill, both move down a line. */
.post-card__when { display: inline-flex; gap: 12px; white-space: nowrap; }
.post-card h3 { font-size: var(--fs-20); line-height: 1.3; margin-bottom: 12px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { color: var(--ink-muted); font-size: 0.9375rem; }
.post-card__author { margin-top: auto; padding-top: var(--s-16); display: flex; align-items: center; gap: 10px; font-size: 0.875rem; font-weight: 700; }
.post-card__author img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.post-card__author .avatar-fallback { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--coral-tint); color: var(--coral-strong); font-size: 0.75rem; }
@media (max-width: 900px) {
  .post-grid--scroll { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82%, 340px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .post-grid--scroll::-webkit-scrollbar { display: none; }
  .post-grid--scroll > * { scroll-snap-align: start; }
  .post-grid:not(.post-grid--scroll) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
}

.post-featured { display: grid; grid-template-columns: 1.25fr 1fr; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); position: relative; transition: box-shadow var(--dur-med) var(--ease-out); }
.post-featured:hover { box-shadow: var(--shadow-2); }
.post-featured .post-card__img { aspect-ratio: auto; min-height: 320px; }
.post-featured .post-card__body { padding: var(--s-48); justify-content: center; }
/* The featured title can be an H2 or H3 depending on the page; either way it reads in ink and the
   whole card is the link. */
.post-featured :is(h2, h3) { font-size: var(--fs-32); }
.post-featured :is(h2, h3) a { color: var(--ink); text-decoration: none; }
.post-featured :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 860px) { .post-featured { grid-template-columns: 1fr; } .post-featured .post-card__img { min-height: 0; aspect-ratio: 16 / 9; } .post-featured .post-card__body { padding: var(--s-32); } }

.filter-bar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: var(--s-32); }
.filter-bar::-webkit-scrollbar { display: none; }
/* Pill rows that scroll sideways fade out at whichever edge has more pills behind it (aha.js sets the classes). */
@property --fade-start { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fade-end { syntax: "<length>"; inherits: false; initial-value: 0px; }
.filter-bar, .local-nav ul {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent);
  transition: --fade-start var(--dur-med) var(--ease-out), --fade-end var(--dur-med) var(--ease-out);
}
.filter-bar.has-more-start, .local-nav ul.has-more-start { --fade-start: 56px; }
.filter-bar.has-more-end, .local-nav ul.has-more-end { --fade-end: 56px; }
.filter-bar a { flex: none; padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: 0.9375rem; font-weight: 700; color: var(--ink); text-decoration: none; transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.filter-bar a:hover { border-color: var(--ink); }
.filter-bar a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-bar a:active { transform: scale(0.97); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: var(--s-48); list-style: none; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; min-width: 44px; height: 44px; padding: 0 14px; border-radius: var(--r-pill); font-weight: 700; text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.pagination [aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .icon { width: 16px; height: 16px; }
.pagination .icon--back { transform: rotate(180deg); }

/* ---------- Video cards (facade) ---------- */
.video-card { position: relative; border-radius: var(--r-md); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.video-card button, .video-card a { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; }
.video-card button:focus-visible, .video-card a:focus-visible { outline: 3px solid var(--coral-strong); outline-offset: -3px; }
.video-card__thumb { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; transition: transform 700ms var(--ease-out), opacity var(--dur-med); }
.video-card:hover .video-card__thumb img { transform: scale(1.04); opacity: 1; }
.video-card__play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-2); transition: transform var(--dur-med) var(--ease-out); }
.video-card__play .icon { fill: var(--coral-strong); stroke: none; width: 20px; height: 20px; margin-left: 3px; }
.video-card:hover .video-card__play { transform: scale(1.08); }
.video-card a:active .video-card__play, .video-card button:active .video-card__play { transform: scale(0.94); transition-duration: var(--dur-press); }
.video-card__body { padding: 16px 20px 20px; }
.video-card__body h3 { font-size: 1.0625rem; line-height: 1.35; margin: 6px 0 0; }

/* Modal: dim to focus; the dialog materializes from slightly smaller */
.modal { border: 0; padding: 0; background: transparent; width: min(1100px, calc(100vw - 32px)); max-height: none; overflow: visible; }
.modal::backdrop { background: rgba(10, 10, 20, 0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in var(--dur-med) var(--ease-out); }
.modal[open]::backdrop { animation: fade-in var(--dur-med) var(--ease-out); }
.modal__frame { aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #000; box-shadow: var(--shadow-3); }
.modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__close { position: absolute; top: -56px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.16); color: #fff; display: grid; place-items: center; cursor: pointer; }
.modal__close:hover { background: rgba(255, 255, 255, 0.28); }
@keyframes modal-in { from { opacity: 0; transform: scale(0.96); filter: blur(6px); } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--s-64); align-items: start; }
.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; gap: var(--s-32); } .faq-layout .section-head { position: static; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-24);
  padding: 22px 0; cursor: pointer; list-style: none;
  font: 600 var(--fs-20)/1.35 var(--font-display); letter-spacing: -0.005em;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: inherit; margin: 0; letter-spacing: inherit; }
.faq summary:hover { color: var(--coral-strong); }
.faq__icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); transition: background-color var(--dur-fast), transform var(--dur-med) var(--ease-out); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform var(--dur-med) var(--ease-out); }
.faq__icon::after { transform: rotate(90deg); }
.faq details[open] .faq__icon { background: var(--coral-tint); transform: rotate(180deg); }
.faq details[open] .faq__icon::after { transform: rotate(0deg); }
.faq summary:active .faq__icon { transform: scale(0.9); transition-duration: var(--dur-press); }
.faq__answer { padding: 0 56px 24px 0; color: var(--ink-muted); }
.faq__answer p:last-child { margin: 0; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size var(--dur-med) var(--ease-out), content-visibility var(--dur-med) allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.section--surface .faq__icon { background: #fff; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(3rem, 2rem + 4vw, 5rem) clamp(1.5rem, 1rem + 4vw, 5rem);
  border-radius: var(--r-lg); background: var(--yellow); color: var(--ink);
  display: grid; grid-template-columns: 1.4fr auto; gap: var(--s-32); align-items: center;
}
.cta-band::before { content: ""; position: absolute; z-index: -1; width: 300px; aspect-ratio: 1; right: -40px; bottom: -120px; background: var(--sun) center / contain no-repeat; }
.cta-band h2 { color: var(--ink); margin-bottom: var(--s-16); }
.cta-band p { color: var(--ink-on-yellow); }
.cta-band h2 a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.cta-band h2 { max-width: 22ch; }
.cta-band:has(h2 a) h2 { font-size: var(--fs-32); max-width: 30ch; }
.cta-band :focus-visible { outline-color: var(--ink); }
.cta-band p { margin: 0; font-size: var(--fs-18); max-width: 36rem; }
.cta-band .btn-row { justify-content: flex-end; }
.cta-band .contact-line { margin-top: var(--s-16); font-size: 0.9375rem; }
.cta-band .contact-line a { color: var(--ink); font-weight: 700; }
@media (min-width: 861px) { .cta-band .btn-row { position: relative; z-index: 1; margin-right: 140px; } }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--s-24); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: var(--s-32); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.plan--featured { border: 2px solid var(--coral-strong); box-shadow: var(--shadow-2); }
.plan__badge { position: absolute; top: -13px; left: var(--s-32); }
.plan h3 { font-size: var(--fs-24); margin-bottom: 4px; }
.plan__for { color: var(--ink-muted); font-size: 0.9375rem; min-height: 3em; }
.plan__price { margin: var(--s-16) 0 var(--s-24); padding: var(--s-16) 0; border-block: 1px solid var(--line); }
.plan__price strong { display: block; font: 600 var(--fs-32)/1.1 var(--font-display); letter-spacing: -0.015em; }
.plan__price span { font-size: 0.875rem; color: var(--ink-muted); }
.plan .checklist { font-size: 0.9375rem; flex: 1; }
.plan .btn { width: 100%; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--s-32) var(--s-24); list-style: none; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); margin-bottom: var(--s-16); background: var(--surface-2); }
.person h3 { font-size: var(--fs-20); margin-bottom: 2px; }
.person p { color: var(--ink-muted); font-size: 0.9375rem; margin: 0; }
/* Bios: first 15 words, then Read more (aha_bio + aha.js) */
.person .bio { margin-top: var(--s-16); }
.person .bio p { color: var(--ink); font-size: 0.9375rem; line-height: 1.55; }
.leader .bio p { margin: 0 0 var(--s-16); }
.leader .bio .bio__excerpt { margin-bottom: 0; }
.bio__full:not([hidden]) { animation: bio-in var(--dur-med) var(--ease-out); }
@keyframes bio-in { from { opacity: 0; transform: translateY(-4px); } }
.bio__toggle {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 0;
  border: 0; background: none; cursor: pointer;
  font: 700 0.9375rem/1.4 var(--font-body); color: var(--coral-strong);
}
.bio__toggle:hover { color: var(--coral-deep); text-decoration: underline; text-underline-offset: 3px; }
.bio__toggle .icon { width: 14px; height: 14px; stroke-width: 2.25; transition: transform var(--dur-med) var(--ease-out); }
.bio__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.leader { display: grid; grid-template-columns: 280px 1fr; gap: var(--s-48); align-items: start; margin-bottom: var(--s-64); }
.leader img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); }
@media (max-width: 760px) { .leader { grid-template-columns: 1fr; gap: var(--s-24); } .leader img { max-width: 240px; } }

/* ---------- Timeline: a carousel of years (render.php + aha.js) ----------
   The track scrolls natively with snap points (touch, trackpad, keyboard); aha.js adds mouse drag,
   arrows and the focus effect. --d is each card's distance from the centre (0 = centred, 1 = one
   card away), so cards fade and settle continuously as the track moves rather than switching. */
.tl { --tl-card: clamp(272px, 80vw, 360px); --tl-gap: clamp(16px, 3vw, 40px); --tl-bg: #fff; position: relative; margin-top: var(--s-16); }
.section--surface .tl { --tl-bg: var(--surface); }
.section--yellow .tl { --tl-bg: var(--yellow); }
.tl__viewport {
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; outline: none;
}
.tl__viewport::-webkit-scrollbar { display: none; }
.tl__viewport:focus-visible { box-shadow: inset 0 0 0 3px var(--coral-strong); border-radius: var(--r-lg); }
.tl__track {
  position: relative; display: flex; gap: var(--tl-gap); width: max-content; margin: 0;
  list-style: none; padding: 4px calc(50% - var(--tl-card) / 2) var(--s-48);
}
/* The dashed rail the years sit on */
.tl__track::before { content: ""; position: absolute; left: 0; right: 0; top: 24px; border-top: 2px dashed var(--line-strong); }
.tl__item {
  --d: 0; --sd: 0;
  translate: calc(var(--sd) * var(--spread, 0px)) 0;
  flex: 0 0 var(--tl-card); scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: center;
  user-select: none; -webkit-user-select: none;
}
.tl__year {
  position: relative; padding: 0 14px; background: var(--tl-bg);
  font: 600 var(--fs-32)/40px var(--font-display); letter-spacing: -0.015em;
  color: var(--ink-soft); transition: color var(--dur-med) var(--ease-out);
}
.tl__card {
  position: relative; width: 100%; margin-top: 36px; padding: 8px;
  border: 2px solid transparent; border-radius: 30px; background: var(--surface-2);
  text-align: center; transform-origin: 50% 0;
  opacity: calc(1 - var(--d) * 0.5);
  transform: scale(calc(1 - var(--d) * 0.06));
  transition: background-color var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.section--surface .tl__card { background: #ece4d6; }
/* The pin where the card hangs from the rail */
.tl__card::before {
  content: ""; position: absolute; top: -13px; left: 50%; width: 24px; height: 24px; margin-left: -12px;
  border-radius: 50%; background: var(--tl-bg); border: 7px solid var(--line-strong);
  transition: border-color var(--dur-med) var(--ease-out);
}
.tl__title {
  margin: 0; padding: 26px 20px 22px;
  font: 600 var(--fs-24)/1.15 var(--font-display); letter-spacing: -0.01em; text-wrap: balance;
  color: var(--ink-muted); transition: color var(--dur-med) var(--ease-out);
}
.tl__points { list-style: none; margin: 0; padding: 4px 22px; background: #fff; border-radius: 22px; }
.tl__points li { padding: 16px 0; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-muted); text-wrap: pretty; transition: color var(--dur-med) var(--ease-out); }
.tl__points li + li { border-top: 1.5px dashed var(--line-strong); }

/* The centred year */
.tl__item.is-active .tl__year { color: var(--ink); }
/* Shadow kept close and centred under the card: the scrolling track clips anything past its padding. */
.tl__item.is-active .tl__card { background: var(--ink); border-color: var(--coral); box-shadow: 0 0 0 5px rgba(255, 56, 87, 0.14), 0 2px 6px rgba(26, 26, 46, 0.08), 0 10px 28px -6px rgba(26, 26, 46, 0.22); }
.tl__item.is-active .tl__card::before { border-color: var(--coral); }
.tl__item.is-active .tl__title { color: #fff; }
.tl__item.is-active .tl__points li { color: var(--ink); }
.tl__item:not(.is-active) .tl__card { cursor: pointer; }

/* Arrows and progress */
.tl__controls { display: flex; align-items: center; justify-content: center; gap: var(--s-24); margin-top: 0; }
.tl__controls[hidden] { display: none; }
.tl__arrow {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), opacity var(--dur-fast), transform var(--dur-press) var(--ease-out);
}
.tl__arrow:hover:not(:disabled) { background: var(--surface-hover); }
.tl__arrow:active:not(:disabled) { transform: scale(0.94); }
.tl__arrow:disabled { opacity: 0.35; cursor: default; }
.tl__arrow:focus-visible { outline: 3px solid var(--coral-strong); outline-offset: 2px; }
.tl__arrow .icon { width: 20px; height: 20px; }
.tl__arrow--prev .icon { transform: rotate(180deg); }
.tl__progress { width: min(220px, 36vw); height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.tl__progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--coral); transition: width var(--dur-med) var(--ease-out); }

/* Mouse users get a "drag" pill that follows the pointer over the track */
.tl__cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .tl.is-ready .tl__viewport { cursor: none; }
  .tl__cursor {
    position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
    display: flex; align-items: center; gap: 6px; padding: 12px 18px; border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-2);
    font: 600 1rem/1 var(--font-display); text-transform: lowercase; color: var(--ink);
    opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) translate(-50%, -50%) scale(0.6);
    transition: opacity var(--dur-fast) var(--ease-out), scale var(--dur-med) var(--ease-out);
    will-change: transform;
  }
  .tl__cursor .icon { width: 14px; height: 14px; stroke-width: 2.25; transform: rotate(90deg); }
  .tl__cursor .icon:last-child { transform: rotate(-90deg); }
  .tl.is-hovering .tl__cursor { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) translate(-50%, -50%) scale(1); }
  .tl.is-dragging .tl__cursor { transform: translate3d(var(--x, 0), var(--y, 0), 0) translate(-50%, -50%) scale(0.88); }
}
@media (prefers-reduced-motion: reduce) {
  .tl__card { transform: none; }
}

/* ---------- Article ---------- */
.article-head { padding-block: var(--s-48) var(--s-48); background: var(--surface); }
.article-head h1 { font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem); max-width: 20ch; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-16) var(--s-32); margin-top: var(--s-32); }
.byline { display: flex; align-items: center; gap: 12px; }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.byline strong { display: block; line-height: 1.3; }
.byline strong a { color: var(--ink); text-decoration: none; }
.byline strong a:hover { color: var(--coral-strong); text-decoration: underline; }
.byline span { font-size: 0.875rem; color: var(--ink-muted); }
.article-dates { display: flex; gap: var(--s-24); font-size: 0.875rem; color: var(--ink-muted); }
.article-cover { margin-top: calc(var(--s-48) * -1 + var(--s-48)); }
.article-cover img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--shadow-2); }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: var(--s-64); justify-content: center; padding-block: var(--s-64) var(--section); }
.toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; font-size: 0.9375rem; }
.toc p { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-muted); text-decoration: none; line-height: 1.35; transition: color var(--dur-fast), border-color var(--dur-fast); }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--coral-strong); border-left-color: var(--coral-strong); font-weight: 700; }
.summary-answer { padding: var(--s-24) var(--s-32); border-radius: var(--r-md); background: var(--coral-tint); margin-bottom: var(--s-48); }
.summary-answer p:first-child { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral-strong); margin-bottom: 8px; }
.summary-answer p:last-child { margin: 0; font-size: var(--fs-18); }
.prose { font-size: 1.125rem; line-height: 1.75; }
.prose h2 { font-size: var(--fs-32); margin: var(--s-48) 0 var(--s-16); }
.prose p { margin-bottom: var(--s-24); }
.prose blockquote { margin: var(--s-32) 0; padding: var(--s-8) 0 var(--s-8) var(--s-24); border-left: 3px solid var(--coral); font: 600 var(--fs-24)/1.4 var(--font-display); letter-spacing: -0.01em; }
.callout { display: grid; grid-template-columns: auto 1fr; gap: var(--s-16); padding: var(--s-24); border-radius: var(--r-md); background: var(--surface); margin: var(--s-32) 0; font-size: 1rem; line-height: 1.6; }
.callout .icon { color: var(--teal-strong); margin-top: 2px; }
.callout strong { display: block; margin-bottom: 4px; }
.callout p { margin: 0; }
.author-box { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-24); padding: var(--s-32); border-radius: var(--r-lg); background: var(--surface); margin-top: var(--s-64); }
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.author-box h2 { font-size: var(--fs-24); margin: 0 0 2px; }
.author-box .role { color: var(--ink-muted); font-size: 0.9375rem; margin-bottom: var(--s-16); }
.author-box p { font-size: 1rem; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 720px); } .toc { position: static; padding: var(--s-24); border-radius: var(--r-md); background: var(--surface); } }
@media (max-width: 560px) { .author-box { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-24); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-24); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 700; font-size: 0.9375rem; }
.field .req { color: var(--coral-strong); }
.field .hint { font-size: 0.875rem; color: var(--ink-muted); margin: 0; }
.input, .textarea, .select {
  width: 100%; min-height: 52px; padding: 14px 16px;
  border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.textarea { min-height: 140px; resize: vertical; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--ink-soft); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--coral-strong); box-shadow: 0 0 0 4px rgba(217, 43, 72, 0.15); }
.field.has-error .input, .field.has-error .textarea { border-color: var(--coral-strong); }
.field .error { display: none; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 700; color: var(--coral-strong); }
.field.has-error .error { display: flex; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.segmented legend { margin-bottom: 8px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); font-weight: 700; transition: all var(--dur-fast) var(--ease-out); }
.segmented input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--coral-strong); outline-offset: 2px; }
.segmented label:active span { transform: scale(0.97); }
.form-success { display: none; padding: var(--s-24); border-radius: var(--r-md); background: var(--teal-tint); color: var(--ink); }
.form-success.is-visible { display: flex; gap: 12px; animation: modal-in var(--dur-med) var(--ease-out); }
.form-success .icon { color: var(--teal-strong); }

.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-64); align-items: start; }
.contact-aside { display: grid; gap: var(--s-24); position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } .contact-aside { position: static; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); padding-top: var(--s-96); font-size: 0.9375rem; }
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: var(--s-32); padding-bottom: var(--s-64); }
.footer-brand img { height: 52px; width: auto; margin-bottom: var(--s-24); }
.footer-brand p { color: var(--ink-muted); max-width: 22rem; }
.footer-col h2 { font: 700 0.8125rem/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--s-16); }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--ink); text-decoration: none; }
.footer-col a:hover { color: var(--coral-strong); text-decoration: underline; }
.newsletter { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--s-48); align-items: center; padding: var(--s-32); margin-bottom: var(--s-32); border-radius: var(--r-lg); background: var(--yellow); }
.newsletter .input { border-color: transparent; }
.newsletter a { color: var(--ink); }
.newsletter h2 { font-size: var(--fs-24); margin-bottom: 4px; }
.newsletter p { margin: 0; color: var(--ink-on-yellow); }
.newsletter form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.newsletter .input { min-height: 48px; padding: 10px 16px; }
.newsletter .small { grid-column: 1 / -1; margin: 4px 0 0; color: var(--ink-on-yellow); }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-24); padding: var(--s-24) 0; border-top: 1px solid var(--line); }
.trust-row__left { display: flex; align-items: center; gap: var(--s-16); }
.trust-row__left img { width: 64px; height: 64px; }
.trust-row__left strong { display: block; }
.trust-row__left a { font-size: 0.875rem; }
.socials { display: flex; gap: 8px; list-style: none; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); border: 1px solid var(--line); transition: background-color var(--dur-fast), color var(--dur-fast), transform var(--dur-med) var(--ease-out); }
.socials a:hover { background: var(--ink); color: #fff; }
.socials a:active { transform: scale(0.92); transition-duration: var(--dur-press); }
.socials .icon { width: 18px; height: 18px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-16); padding: var(--s-24) 0 var(--s-32); border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-muted); }
.legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-24); }
.legal a { color: var(--ink-muted); }
@media (max-width: 1000px) { .footer-top { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } .newsletter { grid-template-columns: 1fr; gap: var(--s-24); } }
@media (max-width: 600px) { .newsletter form { grid-template-columns: 1fr; } }

/* ---------- Content-pack components ---------- */
/* Long SEO H1s ("Topic: longer explanation") keep one H1 but read as headline + subhead */
.h1-sub { display: block; margin-top: 0.5em; font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem); line-height: 1.25; letter-spacing: -0.01em; font-weight: 400; max-width: 30ch; }
.page-hero .answer + .answer { margin-top: calc(var(--s-16) * -1); }
.page-hero p.support { color: var(--ink-on-yellow); max-width: 40rem; margin-bottom: var(--s-32); }

/* "Start with your business question": each row is one big tap target per destination */
.q-list { list-style: none; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; }
.q-list li { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-16) var(--s-32); align-items: center; padding: 20px var(--s-32); border-bottom: 1px solid var(--line); transition: background-color var(--dur-fast) var(--ease-out); }
.q-list li:last-child { border-bottom: 0; }
.q-list li:hover { background: var(--yellow-tint); }
.q-list .q { margin: 0; font: 600 var(--fs-20)/1.3 var(--font-display); letter-spacing: -0.005em; }
.q-list .a { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.q-list .a a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 0.9375rem; text-decoration: none; transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-med) var(--ease-out); }
.q-list .a a:hover { background: var(--yellow-deep); }
.q-list .a a:active { transform: scale(0.97); transition-duration: var(--dur-press); }
.q-list .a .icon { width: 16px; height: 16px; transition: transform var(--dur-med) var(--ease-out); }
.q-list .a a:hover .icon { transform: translateX(3px); }
.q-list__head { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-32); padding: 14px var(--s-32); background: var(--surface); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.q-list__head span:last-child { text-align: right; }
.q-list__head { border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
@media (min-width: 761px) { .q-list--headed { border-top-left-radius: 0; border-top-right-radius: 0; } }
@media (max-width: 760px) { .q-list li { grid-template-columns: 1fr; padding: 20px var(--s-24); } .q-list .a { justify-content: flex-start; } .q-list__head { display: none; } }

/* Gaps the client still has to fill: visible in the mockup, never styled as real copy */
.pill--confirm { background: transparent; color: var(--coral-strong); border: 1.5px dashed var(--coral-strong); padding: 2px 10px; }
.confirm-note { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: var(--s-24); border-radius: var(--r-md); border: 1.5px dashed var(--coral-strong); background: var(--coral-tint); color: var(--ink); }
.confirm-note .icon { color: var(--coral-strong); margin-top: 2px; }
.confirm-note strong { display: block; margin-bottom: 2px; color: var(--coral-strong); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; }
.confirm-note p { margin: 0; }

.checklist li strong { font-weight: 700; }
.steps--5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.more-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--s-24) var(--s-48); }
.more-list h4 { font-size: 1.125rem; margin-bottom: 4px; }
.more-list p { margin: 0; color: var(--ink-muted); font-size: 0.9375rem; }
.tech-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px var(--s-32); }
.tech-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 14px 18px; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-on-yellow); font-weight: 700; font-size: 0.9375rem; }
.tech-list li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-24); }
.duo .card { padding: var(--s-48); }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } .duo .card { padding: var(--s-32); } }

/* ---------- Results & case studies ---------- */
.results { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--s-64); align-items: center; }
.results__panel { position: relative; isolation: isolate; overflow: hidden; padding: var(--s-48) var(--s-32) var(--s-32); border-radius: var(--r-lg); background: var(--yellow); }
.results__panel .sun-mark { width: 200px; right: -36px; bottom: -80px; z-index: -1; }
.results__panel .stat-cards { grid-template-columns: 1fr 1fr; }
.results__panel .stat-cards li:first-child { grid-column: 1 / -1; }
@media (max-width: 520px) { .results__panel .stat-cards { grid-template-columns: 1fr; } }
.results__panel .client-logo { height: 44px; width: auto; margin-bottom: var(--s-24); filter: brightness(0); opacity: 0.85; }
.results .quote blockquote { color: var(--ink); font-size: var(--fs-24); }
@media (max-width: 900px) { .results { grid-template-columns: 1fr; gap: var(--s-32); } .results__panel { padding: var(--s-32) var(--s-24) var(--s-24); } }

.case-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out); }
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.case-card:active { transform: translateY(-1px) scale(0.99); transition-duration: var(--dur-press); }
.case-card__top { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-24); min-height: 200px; padding: var(--s-24); background: var(--yellow); }
.case-card__top .sun-mark { width: 150px; right: -34px; bottom: -58px; z-index: -1; }
.case-card__top img { height: 40px; width: auto; filter: brightness(0); opacity: 0.85; align-self: flex-start; }
.case-card__client { font: 600 var(--fs-24)/1.1 var(--font-display); letter-spacing: -0.01em; }
.case-card__stat { align-self: flex-start; display: inline-flex; align-items: baseline; gap: 10px; padding: 12px 16px; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-on-yellow); }
.case-card__stat strong { font: 600 var(--fs-32)/1 var(--font-display); letter-spacing: -0.02em; color: var(--coral); }
.case-card__stat span { font-size: 0.875rem; line-height: 1.3; max-width: 16ch; }
.case-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--s-24); }
.case-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.case-card h3 { font-size: var(--fs-20); line-height: 1.3; margin-bottom: 8px; }
.case-card h3 a { color: var(--ink); text-decoration: none; }
.case-card h3 a::after { content: ""; position: absolute; inset: 0; }
.case-card p { color: var(--ink-muted); font-size: 0.9375rem; }
.case-card .link-arrow { margin-top: auto; padding-top: var(--s-8); }
.case-card--placeholder { border: 2px dashed var(--line-strong); background: transparent; justify-content: center; align-items: flex-start; padding: var(--s-32); }
.case-card--placeholder:hover, .case-card--static:hover { transform: none; box-shadow: none; }
.case-card--static:active { transform: none; }
.case-featured { display: grid; grid-template-columns: 1fr 1.1fr; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); position: relative; }
.case-featured .case-card__top { min-height: 100%; padding: var(--s-48); gap: var(--s-32); }
.case-featured .case-card__top .sun-mark { width: 280px; right: -60px; bottom: -110px; }
.case-featured .case-card__body { padding: var(--s-48); justify-content: center; }
.case-featured h2 { font-size: var(--fs-32); }
.case-featured h2 a { color: var(--ink); text-decoration: none; }
.case-featured h2 a::after { content: ""; position: absolute; inset: 0; }
.case-featured:hover { box-shadow: var(--shadow-2); }
@media (max-width: 900px) { .case-featured { grid-template-columns: 1fr; } .case-featured .case-card__top, .case-featured .case-card__body { padding: var(--s-32); } }

.cs-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: var(--s-16); margin: 0; padding: var(--s-24); border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-on-yellow); }
.cs-meta dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 4px; }
.cs-meta dd { margin: 0; font-weight: 700; line-height: 1.35; }
.cs-story { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-48); }
.cs-story + .cs-story { margin-top: var(--s-64); padding-top: var(--s-64); border-top: 1px solid var(--line); }
.cs-story__label { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.cs-story__label .num { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--s-16); border-radius: 50%; background: var(--yellow); font: 600 1.25rem/1 var(--font-display); }
.cs-story__label p { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral-strong); margin: 0; }
.cs-story h3, .cs-story h4 { font-size: var(--fs-24); margin-top: var(--s-32); }
.cs-story h3:first-child, .cs-story h4:first-child { margin-top: 0; }
@media (max-width: 860px) { .cs-story { grid-template-columns: 1fr; gap: var(--s-16); } .cs-story__label { position: static; display: flex; align-items: center; gap: 12px; } .cs-story__label .num { margin: 0; } }
.outcomes { list-style: none; display: grid; gap: 12px; margin: var(--s-16) 0 var(--s-24); }
.outcomes li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 16px 20px; border-radius: var(--r-md); background: var(--yellow-tint); }
.outcomes li::before { content: ""; width: 28px; height: 28px; border-radius: 50%; background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- Misc ---------- */
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-list a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 0.9375rem; text-decoration: none; transition: border-color var(--dur-fast), transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med); }
.chip-list a:hover { border-color: var(--coral-strong); color: var(--coral-strong); box-shadow: var(--shadow-1); }
.chip-list a:active { transform: scale(0.97); transition-duration: var(--dur-press); }
.chip-list .icon { width: 16px; height: 16px; }

.split-choice { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-24); }
.split-choice .card { padding: var(--s-48); }
@media (max-width: 800px) { .split-choice { grid-template-columns: 1fr; } .split-choice .card { padding: var(--s-32); } }

.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--s-32) var(--s-48); list-style: none; }
.feature-row li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-16); }
.feature-row .icon-chip { width: 40px; height: 40px; }
.feature-row h3 { font-size: 1.125rem; margin: 6px 0 4px; }
.feature-row p { color: var(--ink-muted); margin: 0; font-size: 0.9375rem; }

.divider-note { display: flex; align-items: center; gap: var(--s-16); color: var(--ink-muted); font-size: 0.875rem; }

.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-48 { margin-top: var(--s-48); } .mt-32 { margin-top: var(--s-32); } .mt-24 { margin-top: var(--s-24); }
.center { text-align: center; }

/* ==========================================================================
   WordPress theme additions (not in the static mockup)
   ========================================================================== */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Admin bar: keep the sticky header and in-page nav below it */
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.admin-bar .local-nav { top: var(--wp-admin--admin-bar--height, 32px); }
body.admin-bar:has(.site-header:not(.is-hidden)) .local-nav { top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 32px)); }
@media (max-width: 600px) { .admin-bar .site-header, .admin-bar .local-nav { top: 0; } }

/* Section head modifiers used by blocks */
.section-head--flush { margin-bottom: 0; }
.section-head--wide { max-width: 860px; }
.section--flush-bottom { padding-bottom: 0; }
.section--flush-bottom + .section { padding-top: var(--s-48); }
.section--feature + .section--feature:not(.section--surface):not(.section--yellow) { padding-top: 0; }
.section--surface.section--feature + .section--surface.section--feature, .section--yellow.section--feature + .section--yellow.section--feature { padding-top: 0; }
.media-text--top { align-items: start; }
.media-text__copy > :last-child, .prose > :last-child, .faq__answer > :last-child { margin-bottom: 0; }
.media-text__copy + .link-arrow { margin-top: var(--s-16); }
.prose--compact { font-size: 1.0625rem; }
.container--narrow-wide { max-width: calc(860px + var(--gutter) * 2); }
.container--article { max-width: calc(1024px + var(--gutter) * 2); }

/* Cards */
.card-list { list-style: none; }
.card--compact { padding: var(--s-24); }
.card--compact .icon-badge { margin-bottom: var(--s-16); }
.card--compact .h-20 { margin-bottom: 0; }
.duo .card .h-32 { margin-bottom: var(--s-16); }
.duo .card__lead { color: var(--ink); }

/* Page hero side card, stat and compact variant */
.hero-card { padding: var(--s-32); border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-on-yellow); }
.hero-card__intro { display: grid; grid-template-columns: auto 1fr; gap: var(--s-24); align-items: center; }
.hero-card__intro img { width: 120px; height: 120px; object-fit: contain; }
.hero-card__logo img { height: 52px; width: auto; filter: brightness(0); opacity: 0.85; margin-bottom: var(--s-24); }
.hero-card__title { font: 600 var(--fs-24)/1.25 var(--font-display); letter-spacing: -0.01em; margin: 0 0 4px; }
.hero-card__text { margin: 0; color: var(--ink-muted); }
.hero-card__details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: var(--s-16); margin: 0; }
.hero-card__intro + .hero-card__details { margin-top: var(--s-24); padding-top: var(--s-24); border-top: 1px solid var(--line); }
.hero-card__details dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 4px; }
.hero-card__details dd { margin: 0; font-weight: 700; line-height: 1.35; }
.hero-card--list .hero-card__title { font-size: var(--fs-20); margin-bottom: var(--s-16); }
.hero-card--list .checklist { gap: 14px; }
.stat-cards--single { grid-template-columns: 1fr; }

/* ---------- Big stat (Page Hero, "Large" stat): one huge figure on the yellow, label centred under it ---------- */
.big-stat { display: grid; justify-items: center; text-align: center; gap: var(--s-16); padding-inline: var(--s-16); --stat-color: var(--coral-strong); }
.big-stat--coral { --stat-color: var(--coral); }
.big-stat--deep { --stat-color: var(--coral-deep); }
.big-stat--ink { --stat-color: var(--ink); }
.big-stat__figure {
  margin: 0; color: var(--stat-color);
  font: 600 clamp(6rem, 3.4rem + 11vw, 12rem)/0.82 var(--font-display); letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.big-stat__figure .count-affix { font-size: 0.5em; letter-spacing: -0.02em; align-self: flex-start; margin-top: 0.12em; }
.big-stat__figure .count-affix:first-child { margin-right: 0.04em; }
.big-stat__figure .count-num + .count-affix { margin-left: 0.04em; }
.big-stat__label { margin: 0; max-width: 22ch; color: var(--ink); font: 600 var(--fs-24)/1.3 var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }
@media (max-width: 900px) { .big-stat { padding-block: var(--s-16) 0; } }

/* Counting figures (aha.js): the finished number reserves its width, so nothing shifts while it counts.
   The count runs right-aligned, so the digits grow out of the % rather than pushing it along. */
.count-value { display: inline-flex; align-items: baseline; }
.count-num { display: inline-grid; justify-items: end; }
.count-num > span, .count-num::after { grid-area: 1 / 1; }
.count-num::after { content: attr(data-final); visibility: hidden; }
.js [data-count]:not(.is-armed) .count-num > span { opacity: 0; }
[data-count].is-done .count-value { animation: count-land 520ms var(--ease-out); }
@keyframes count-land { 0% { transform: scale(1); } 35% { transform: scale(1.06); } 100% { transform: scale(1); } }
.confetti-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 150; }
.page-hero--compact { padding-bottom: var(--s-64); }

/* Stats panel on a yellow section: white panel, tinted cards */
.results__panel--white { background: #fff; box-shadow: var(--shadow-on-yellow); }
.results__panel--white .stat-cards li { box-shadow: none; background: var(--yellow-tint); }
.results__panel--white .stats-source--dark { color: var(--ink-muted); }

/* Quote, statement, sources, callout types */
.quote--card { margin: 0; padding: var(--s-48); }
.quote--card .link-arrow { margin-top: var(--s-24); }
@media (max-width: 600px) { .quote--card { padding: var(--s-32); } }
.statement__closing { margin: var(--s-32) 0 0; font: 600 var(--fs-24)/1.3 var(--font-display); letter-spacing: -0.01em; }
.sources__list { padding-left: 1.25rem; display: grid; gap: 8px; font-size: 0.9375rem; line-height: 1.5; }
.callout--tip .icon { color: #b87800; }
.callout--warning .icon { color: var(--coral-strong); }
.callout > div > :last-child { margin-bottom: 0; }

/* Dropdown with no featured panel */
.mega--single { grid-template-columns: 1fr; width: min(380px, calc(100vw - 48px)); }

/* Archive and article templates */
.section--archive { padding-top: var(--s-48); }
.archive-title { margin: var(--s-48) 0 var(--s-24); }
.article-cover-wrap { margin-top: var(--s-48); }
.article-cover { margin: 0; }
.article-layout--no-toc { grid-template-columns: minmax(0, 720px); }
.post-card__author img, .byline img, .author-box img { border-radius: 50%; object-fit: cover; }
.pagination .page-numbers.dots { border: 0; min-width: 0; padding: 0 4px; }

/* Contact form side steps */
.steps--small { margin-top: var(--s-16); }
.steps--small > li { padding-bottom: 20px; min-height: 0; }
.steps--small > li:last-child { padding-bottom: 0; }
.steps--small h3 { font-size: 1.0625rem; }

/* Forms from a form plugin (form block, newsletter, search): match the design system */
.form-wrap :where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="search"], textarea, select),
.newsletter__form :where(input[type="text"], input[type="email"]),
.search-form .search-field {
  width: 100%; min-height: 52px; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.form-wrap :where(input, textarea, select):focus, .newsletter__form :where(input):focus, .search-form .search-field:focus { outline: none; border-color: var(--coral-strong); box-shadow: 0 0 0 4px rgba(217, 43, 72, 0.15); }
.form-wrap label, .form-wrap legend { font-weight: 700; font-size: 0.9375rem; }
.form-wrap :where(input[type="submit"], button[type="submit"]), .newsletter__form :where(input[type="submit"], button[type="submit"]), .search-form .search-submit {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--r-pill);
  background: var(--coral-strong); color: #fff; font: 600 1.0625rem/1 var(--font-display); text-transform: lowercase; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.form-wrap :where(input[type="submit"], button[type="submit"]):hover, .newsletter__form :where(input[type="submit"], button[type="submit"]):hover, .search-form .search-submit:hover { background: var(--coral-deep); }
.form-wrap :where(input[type="submit"], button[type="submit"]):active, .search-form .search-submit:active { transform: scale(0.97); transition-duration: var(--dur-press); }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }

/* Core blocks placed directly on a block-built page sit in the reading column */
.entry-blocks > :where(:not(section, nav, .aha-block-placeholder)) { max-width: calc(760px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.entry-blocks > :where(p, ul, ol) { font-size: 1.125rem; line-height: 1.75; margin-block: 0 var(--s-24); }
.entry-blocks > :where(ul, ol) { padding-left: calc(var(--gutter) + 1.25rem); }
.entry-blocks > :where(h2, h3) { margin-top: var(--s-48); }
.entry-blocks > :where(blockquote, .wp-block-quote) { margin-block: var(--s-32); }
.entry-blocks > :where(blockquote, .wp-block-quote) > p { margin: 0; padding-left: var(--s-24); border-left: 3px solid var(--coral); font: 600 var(--fs-24)/1.4 var(--font-display); letter-spacing: -0.01em; }
.entry-blocks > :where(:not(section, nav)):first-child { margin-top: var(--section); }
.entry-blocks > section + :where(:not(section, nav)) { margin-top: var(--section); }
.entry-blocks > :where(:not(section, nav)):has(+ section) { margin-bottom: var(--section); }
.prose :where(.wp-block-image, figure) { margin: var(--s-32) 0; }
.prose :where(.wp-block-image, figure) img { border-radius: var(--r-md); }
.prose :where(ul, ol) { padding-left: 1.25rem; margin-bottom: var(--s-24); }
.prose .summary-answer p { margin-bottom: 0; }
.prose .summary-answer p:first-child { margin-bottom: 8px; }

/* ---------- Accessibility preferences ---------- */
/* ---------- Cookie Notice plugin: buttons as brand pills ---------- */
#cookie-notice .cn-buttons-container { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#cookie-notice .cn-button.cn-button-custom {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin: 0; padding: 0 20px;
  border: 0; border-radius: var(--r-pill); background: var(--coral-strong); color: #fff;
  font: 600 1rem/1 var(--font-display); text-transform: lowercase; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
#cookie-notice .cn-button.cn-button-custom:hover { background: var(--coral-deep); color: #fff; }
#cookie-notice .cn-button.cn-button-custom:active { transform: scale(0.97); transition-duration: var(--dur-press); }
#cookie-notice .cn-button.cn-button-custom:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .mega, .mobile-menu { transform: none !important; filter: none !important; }
  .site-header.is-hidden { transform: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee__track { width: auto; animation: none; justify-content: center; }
  .marquee__set { flex-wrap: wrap; justify-content: center; row-gap: var(--s-24); padding: 0; }
  .marquee__set[aria-hidden="true"] { display: none; }
  .card--link:hover, .post-card:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header, .local-nav, .mega, .mobile-menu { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero__tags li { background: rgba(26, 26, 46, 0.7); backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(26, 26, 46, 0.4); --line-strong: rgba(26, 26, 46, 0.7); --ink-muted: #2e2f40; }
  .site-header, .local-nav { background: #fff; border-bottom: 1px solid var(--ink); }
}
@media print { .site-header, .site-footer, .local-nav { display: none; } }
