/* ==========================================================================
   bAWARE website v3 — clickable prototype, design system v1.3 ("Field Journal")
   Tokens, type scale, spacing and components follow research/04 §4.2–4.7,
   revised after the 2026-09-29 design and compliance reviews (README §10).
   Light mode only (04 §4.9). No gradients, no shadows except hover/modal.
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* surfaces */
  --canvas: #FBFAF6;
  --surface: #F4F1EA;
  --surface-2: #ECE7DC;
  --card: #FFFFFF;

  /* ink */
  --ink: #1A1814;
  --body: #3D3A33;
  --muted: #6B655A;
  --placeholder: #8A8377;
  --hairline: #E3DDD0;
  --hairline-strong: #948A79;

  /* brand gold (= "warning") */
  --gold-900: #5C4310;
  --gold-700: #8A6520;
  --gold-600: #A8781E;
  --gold-500: #C6952F;
  --gold-400: #D9B25A;
  --gold-200: #F0DFAE;
  --gold-100: #F8F0DC;

  /* semantic: green = verified status only; signal = hazard / errors only; sky = information / external data */
  --green-700: #2F5D33;
  --green-600: #3E6B3A;
  --green-100: #E4EEE1;
  --signal-700: #9A3A17;
  --signal-600: #B4451F;
  --signal-100: #F9E3D8;
  --sky-700: #2C567F;
  --sky-600: #3B6FA0;
  --sky-100: #E1EBF5;

  /* shape: three radii only (v1.3) — 6 inputs / 12 cards, media / pill buttons, badges */
  --radius-sm: 6px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  /* depth (only hover + modal) */
  --shadow-hover: 0 4px 16px rgba(26, 24, 20, .06);
  --shadow-modal: 0 1px 2px rgba(26, 24, 20, .06), 0 12px 32px -8px rgba(26, 24, 20, .16);

  /* motion (v1.3): hover 150 · state 200 · enter 360 · drawer 240 · diagram 900 total */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
  --dur-fast: 150ms;
  --dur-base: 200ms;
  --dur-enter: 360ms;
  --dur-drawer: 240ms;

  /* type families (Google Fonts in the prototype; self-hosted WOFF2 in production) */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  /* type scale (v1.3, after the design review) */
  --display-xl: clamp(2.25rem, 1.4rem + 3vw, 3.5rem);        /* 36 → 56, opsz 72, lh 1.06, ls -0.022em */
  --display-lg: clamp(2rem, 1.45rem + 2vw, 2.75rem);         /* 32 → 44, opsz 60, lh 1.1,  ls -0.018em */
  --display-md: clamp(1.625rem, 1.35rem + 1vw, 2.125rem);    /* 26 → 34, wght 450, lh 1.18 */
  --title-lg: 1.375rem;                                      /* 22, Inter 600, lh 1.3 (fixed) */
  --title-md: 1.125rem;                                      /* 18, Inter 600 */
  --lead: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);          /* 17 → 19 */
  --body-lg: 1.0625rem;                                      /* 17, lh 1.62, measure 66ch */
  --caption: .8125rem;                                       /* 13, lh 1.45, muted */
  --eyebrow: .75rem;                                         /* 12, Inter 500, ls .08em, muted */

  /* layout */
  --container: 1200px;
  --prose: 720px;
  --wide: 1400px;
  --gutter: 24px;
  --section: 96px;
  --section-tablet: 64px;
  --header-h: 64px;
}

@media (max-width: 1023px) { :root { --section: 64px; } }
@media (max-width: 767px) { :root { --gutter: 16px; --section: 56px; } }

/* The marketing site has one mode. Re-assert the light palette so a dark-OS visitor
   sees exactly the same page (04 §4.9). */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light;
    --canvas: #FBFAF6; --surface: #F4F1EA; --surface-2: #ECE7DC; --card: #FFFFFF;
    --ink: #1A1814; --body: #3D3A33; --muted: #6B655A; --placeholder: #8A8377;
    --hairline: #E3DDD0; --hairline-strong: #948A79;
  }
}

/* 2. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font: 400 16px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.has-drawer { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; } /* the hidden attribute wins over component display values (form success state) */

a { color: var(--gold-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--gold-900); }

:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; font-weight: 400; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: 32px 0; }
strong { font-weight: 600; color: var(--ink); }
small { font-size: 13px; }
sup { line-height: 0; }
sup a { text-decoration: none; color: var(--gold-700); font-weight: 500; }

::selection { background: var(--gold-200); color: var(--ink); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; }

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

/* 3. Type utilities ------------------------------------------------------ */
.display-xl { font: 400 var(--display-xl)/1.06 var(--font-display); font-variation-settings: "opsz" 72; letter-spacing: -.022em; color: var(--ink); max-width: 20ch; }
.display-lg { font: 400 var(--display-lg)/1.1 var(--font-display); font-variation-settings: "opsz" 60; letter-spacing: -.018em; color: var(--ink); }
.display-md { font: 450 var(--display-md)/1.18 var(--font-display); font-variation-settings: "opsz" 36; letter-spacing: -.01em; color: var(--ink); }
.title-lg { font: 600 var(--title-lg)/1.3 var(--font-sans); letter-spacing: -.01em; color: var(--ink); }
.title-md { font: 600 var(--title-md)/1.35 var(--font-sans); color: var(--ink); }
.lead { font: 400 var(--lead)/1.5 var(--font-sans); color: var(--body); }
.body-lg { font: 400 var(--body-lg)/1.62 var(--font-sans); max-width: 66ch; }
.small { font-size: 14px; line-height: 1.5; }
.caption { font-size: var(--caption); line-height: 1.45; color: var(--muted); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.mono-label { font: 400 13px/1.5 var(--font-mono); color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }
.measure { max-width: 66ch; }

/* Eyebrow: muted, no gold dash (gold is for actions and data only) */
.eyebrow {
  display: block;
  font: 500 var(--eyebrow)/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 16px;
}

/* 4. Layout ------------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--wide { width: min(100% - 2 * var(--gutter), var(--wide)); }
.container--prose { width: min(100% - 2 * var(--gutter), var(--prose)); }

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .66); }
.section--surface { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section__head { max-width: 760px; margin-bottom: 40px; }
.section__head p { color: var(--body); }
.section__head .display-md { margin-bottom: 16px; }
.section__head .lead { margin: 0; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; } }

.grid > *, .article > *, .guide > *, .bento > *, .axis > * { min-width: 0; }

.stack > * + * { margin-top: 16px; }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* 5. Buttons ------------------------------------------------------------ */
.btn {
  --btn-h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--btn-h); padding: 0 22px; border-radius: var(--radius-pill);
  font: 500 15px/1 var(--font-sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; background: none; color: inherit;
  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-fast) var(--ease-out);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--sm { --btn-h: 36px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--primary:hover, .btn--primary.is-hover { background: #2A2620; border-color: #2A2620; color: #fff; }

.btn--brand { background: var(--gold-500); color: var(--ink); border-color: var(--gold-500); }
.btn--brand:hover, .btn--brand.is-hover { background: var(--gold-400); border-color: var(--gold-400); color: var(--ink); }

.btn--secondary { background: var(--card); color: var(--ink); border-color: var(--hairline-strong); }
.btn--secondary:hover, .btn--secondary.is-hover { background: var(--surface); color: var(--ink); }

.btn--text { color: var(--gold-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; padding-inline: 8px; white-space: normal; text-align: left; max-width: 100%; }
.btn--text:hover, .btn--text.is-hover { color: var(--gold-900); }

.btn:active, .btn.is-active { transform: translateY(1px); }
.btn:focus-visible, .btn.is-focus { outline: 2px solid var(--gold-600); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; transform: none; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; color: #fff;
  animation: spin .8s linear infinite;
}
.btn--brand.is-loading::after, .btn--secondary.is-loading::after { color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill);
  border: 0; background: none; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 22px; height: 22px; }

/* 6. Header (flat links; the mega menu is a reserved component, see components.html) ---- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--canvas); border-bottom: 1px solid var(--hairline);
  transition: background-color var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(251, 250, 246, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
@media (max-width: 479px) { .brand img { height: 34px; } }
/* The metallic-gradient PNG is flattened to ink on the light canvas until the SVG wordmark lockup exists
   (design review: no gradient logo below 48 px on paper). Same treatment in the drawer and the footer. */
.logo--ink { filter: brightness(0) saturate(100%) invert(18%) sepia(13%) saturate(1512%) hue-rotate(10deg) brightness(96%) contrast(92%); }

.nav { display: none; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__item--menu { position: relative; } /* JS hook for the reserved mega menu (hover intent, aria-expanded) */
.nav__link {
  display: inline-flex; align-items: center; gap: 5px; height: 44px; padding: 0 12px;
  border-radius: var(--radius-pill); border: 0; background: none; cursor: pointer;
  color: var(--ink); font: 500 15px/1 var(--font-sans); text-decoration: none; white-space: nowrap;
}
.nav__link:hover, .nav__item.is-open > .nav__link { background: var(--surface); color: var(--ink); }
a.nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold-500); border-radius: 0; }
.nav__chev { width: 12px; height: 12px; transition: transform var(--dur-fast) var(--ease-out); }
.nav__item.is-open .nav__chev { transform: rotate(180deg); }

.header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
@media (max-width: 559px) { .header__actions > .badge { display: none; } }
.header__cta { display: none; }
.drawer-toggle { display: inline-grid; }

@media (min-width: 1024px) {
  .nav { display: flex; flex: 1; justify-content: center; }
  .header__cta { display: inline-flex; }
  .drawer-toggle { display: none; }
}
@media (min-width: 560px) and (max-width: 1023px) {
  .header__cta { display: inline-flex; }
}

/* Mega menu — reserved component (enable when the knowledge library has 12+ pages). Opened by JS with
   hover intent (80 ms open / 200 ms close) which also keeps aria-expanded in sync; :focus-within is the
   no-JS keyboard fallback. */
.megamenu {
  position: absolute; top: calc(100% + 6px); left: 50%; z-index: 60;
  width: 580px; padding: 12px;
  display: grid; grid-template-columns: 1.25fr .85fr; gap: 12px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  opacity: 0; visibility: hidden; transform: translate(-50%, 4px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility 0s linear var(--dur-fast);
}
.nav__item:focus-within > .megamenu, .nav__item.is-open > .megamenu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s;
}
.megamenu ul { list-style: none; margin: 0; padding: 0; }
.megamenu__link {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink);
}
.megamenu__link:hover { background: var(--surface); color: var(--ink); }
.megamenu__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold-500); }
.megamenu__link strong { display: block; font-weight: 500; font-size: 14.5px; }
.megamenu__link span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.megamenu__aside { background: var(--surface); border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.megamenu__aside p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.megamenu__aside q { font: 400 italic 18px/1.35 var(--font-display); font-variation-settings: "opsz" 16; color: var(--ink); }
.megamenu__aside q::before, .megamenu__aside q::after { content: none; }
.nav--demo { display: flex; position: relative; min-height: 44px; }
.nav--demo .nav__list { gap: 4px; }
.nav--demo .megamenu { left: 0; transform: translate(0, 4px); width: min(580px, calc(100vw - 2 * var(--gutter) - 48px)); }
.nav--demo .nav__item:focus-within > .megamenu, .nav--demo .nav__item.is-open > .megamenu { transform: translate(0, 0); }
@media (max-width: 639px) { .nav--demo .megamenu { grid-template-columns: 1fr; } }
.demo-box--nav { min-height: 360px; }

/* Drawer (mobile navigation) */
.drawer {
  position: fixed; inset: 0; z-index: 70; overflow: auto;
  background: var(--canvas); padding: 10px var(--gutter) 40px;
  transform: translateX(100%); visibility: hidden;
  transition: transform var(--dur-drawer) var(--ease-out), visibility 0s linear var(--dur-drawer);
}
.drawer.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.drawer__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--hairline); margin-bottom: 8px; }
.drawer__list { list-style: none; margin: 0; padding: 0; }
.drawer__list > li { border-bottom: 1px solid var(--hairline); }
.drawer__link {
  display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 12px 0;
  font: 500 18px/1.3 var(--font-sans); color: var(--ink); text-decoration: none; cursor: pointer;
}
.drawer__link[aria-current="page"] { color: var(--gold-700); }
.drawer__foot { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }

/* 7. Hero ---------------------------------------------------------------- */
.hero { padding: 56px 0 var(--section); }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__copy .display-xl { margin: 0 0 24px; }
.hero__copy .lead { max-width: 58ch; margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__status { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.hero__media { margin: 0; }
/* 4:5 portrait crop; the focal point keeps the eagle's eye on the upper third (design review §6) */
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 42% 30%; border-radius: var(--radius-lg); background: var(--surface-2); }
.hero__media figcaption { margin-top: 10px; font-size: var(--caption); line-height: 1.45; color: var(--muted); }
.hero__media figcaption .credit { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
@media (min-width: 1024px) {
  .hero { padding-top: 72px; padding-bottom: 128px; }
  .hero__grid { grid-template-columns: 7fr 5fr; gap: 64px; }
}

/* 8. Editorial banner (the one figure), cards, bento, axis ------------------------ */
.banner { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 48px 0; }
.banner__text { font: 400 var(--display-lg)/1.15 var(--font-display); font-variation-settings: "opsz" 60; letter-spacing: -.018em; color: var(--ink); margin: 0 0 12px; max-width: 26ch; text-wrap: balance; }
.banner__num { font: 500 .96em/1 var(--font-mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--gold-700); white-space: nowrap; }
.banner__source { margin: 0; font-size: var(--caption); line-height: 1.45; color: var(--muted); max-width: 70ch; }

.card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 24px;
}
.card--surface { background: var(--surface); }
.card--link { display: block; text-decoration: none; color: inherit; transition: box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.card--link:hover { box-shadow: var(--shadow-hover); border-color: var(--hairline-strong); color: inherit; transform: translateY(-1px); }
.card__arrow { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--gold-700); font-weight: 500; font-size: 14px; }
.card__arrow svg { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease-out); }
.card--link:hover .card__arrow svg { transform: translateX(2px); }

/* Bento: 2 × 2 text blocks, no icons (v1.3) */
.bento { display: grid; gap: 16px; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bento__item { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.bento__step { font: 500 13px/1 var(--font-mono); color: var(--muted); letter-spacing: .02em; }
.bento__item h3 { margin: 2px 0 0; font: 600 20px/1.3 var(--font-sans); }
.bento__item p { margin: 0; font-size: 15px; line-height: 1.55; }

/* Distance axis (home): ∞ → outer zone → inner zone → 0, release as the off-axis end */
.axis { position: relative; margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 24px; }
.axis__track { display: flex; justify-content: space-between; align-items: center; font: 500 13px/1 var(--font-mono); color: var(--muted); letter-spacing: .02em; }
.axis__track::before, .axis__track::after { content: ""; }
.axis__line { flex: 1; height: 1px; background: var(--hairline-strong); margin: 0 12px; position: relative; }
.axis__line::after { content: ""; position: absolute; right: -1px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--signal-600); }
.axis__steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.axis__step { position: relative; padding-left: 40px; }
.axis__step::before { content: attr(data-n); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--font-sans); color: #fff; background: var(--ink); }
.axis__step--outer::before { background: var(--gold-500); color: var(--ink); }
.axis__step--inner::before { background: var(--gold-700); }
.axis__step--end::before { background: var(--card); color: var(--ink); border: 1px dashed var(--hairline-strong); }
.axis__zone { display: block; font: 500 12px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.axis__step h3 { margin: 0 0 6px; font: 600 18px/1.35 var(--font-sans); }
.axis__step p { margin: 0; font-size: 15px; line-height: 1.55; max-width: 44ch; }
@media (min-width: 900px) {
  .axis__steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
  .axis__step { padding-left: 0; padding-top: 44px; }
  .axis__step--end { border-left: 1px dashed var(--hairline-strong); padding-left: 24px; }
  .axis__step--end::before { left: 24px; }
}

/* Audience index (home): one real link + rows in preparation, no cards */
.audience-index { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hairline); }
.audience-index > li { border-bottom: 1px solid var(--hairline); }
.audience-index__row { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; padding: 20px 0; align-items: start; color: var(--ink); text-decoration: none; }
a.audience-index__row:hover h3 { color: var(--gold-900); }
.audience-index__n { font: 400 13px/1.6 var(--font-mono); color: var(--muted); }
.audience-index__row h3 { margin: 0 0 4px; font: 450 24px/1.2 var(--font-display); font-variation-settings: "opsz" 24; letter-spacing: -.01em; }
.audience-index__row p { margin: 0; font-size: 15px; color: var(--body); max-width: 60ch; }
.audience-index__meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.audience-index__row--soon h3 { color: var(--body); }
@media (min-width: 768px) {
  .audience-index__row { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .audience-index__meta { margin-top: 4px; }
}

/* Two-column "opposite blind spots" */
.compare { display: grid; gap: 16px; }
@media (min-width: 768px) { .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.compare__col { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 24px; }
.compare__col h3 { font: 450 22px/1.25 var(--font-display); font-variation-settings: "opsz" 22; margin: 0 0 16px; }
.compare__col dl { margin: 0; display: grid; grid-template-columns: 104px 1fr; gap: 10px 12px; font-size: 15px; }
.compare__col dt { color: var(--muted); font-size: 13px; padding-top: 2px; }
.compare__col dd { margin: 0; color: var(--ink); }
.compare__col--bird { border-color: var(--gold-400); }

/* 9. Badges, callouts ----------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px;
  border-radius: var(--radius-pill); font: 500 12px/1 var(--font-sans); letter-spacing: .04em;
  text-transform: uppercase; white-space: nowrap; vertical-align: middle;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge--proto { background: var(--surface-2); color: var(--ink); }                 /* "Works in prototype": ink on surface-2, solid dot */
.badge--proven { background: var(--green-100); color: var(--green-700); }          /* reserved for peer-reviewed / verified external evidence */
.badge--pending { background: var(--gold-100); color: var(--gold-700); }           /* pending: gold text on gold-100, hollow dot */
.badge--pending::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.badge--na { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--hairline-strong); }  /* not claimed / not yet: muted, hairline ring */
.badge--na::before { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.badge--hazard { background: var(--signal-100); color: var(--signal-700); }
.badge--info { background: var(--sky-100); color: var(--sky-700); }
.badge--long { height: auto; min-height: 22px; padding: 3px 10px; text-transform: none; letter-spacing: 0; white-space: normal; line-height: 1.3; }

.callout {
  border-left: 3px solid var(--sky-600); background: var(--sky-100);
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 24px 0;
}
.callout--note { border-left-color: var(--hairline-strong); background: var(--surface-2); }   /* company statements ("Where we stand"): no icon */
.callout--warning { border-left-color: var(--gold-500); background: var(--gold-100); }        /* real warnings only */
.callout--hazard { border-left-color: var(--signal-600); background: var(--signal-100); }
.callout__title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 600 15px/1.3 var(--font-sans); color: var(--ink); }
.callout__title svg { width: 18px; height: 18px; flex: none; }
.callout--info .callout__title svg, .callout .callout__title svg { color: var(--sky-700); }
.callout--warning .callout__title svg { color: var(--gold-700); }
.callout--hazard .callout__title svg { color: var(--signal-700); }
.callout p { margin: 0; font-size: 15px; line-height: 1.55; }
.callout p + p { margin-top: 8px; }

/* 10. Timeline + "what we do not claim yet" -------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: var(--hairline-strong); }
.timeline__item { position: relative; padding: 0 0 32px 36px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--gold-500); box-shadow: 0 0 0 3px var(--canvas);
}
.timeline__item--pending::before { border-color: var(--hairline-strong); border-style: dashed; }
.section--surface .timeline__item::before { box-shadow: 0 0 0 3px var(--surface); }
.timeline__date { font: 400 13px/1.6 var(--font-mono); color: var(--muted); margin: 0 0 4px; }
.timeline__title { font: 600 18px/1.35 var(--font-sans); color: var(--ink); margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.timeline__body { margin: 0 0 6px; font-size: 15px; line-height: 1.55; max-width: 60ch; }
.timeline__source { font-size: 13px; color: var(--muted); margin: 0; }
@media (min-width: 768px) {
  .timeline__item { display: grid; grid-template-columns: 88px 1fr; column-gap: 24px; }
  .timeline__date { padding-top: 3px; }
  .timeline__item > :not(.timeline__date) { grid-column: 2; }
}

.notclaim { margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--hairline); max-width: 860px; }
.notclaim h3 { font: 600 16px/1.3 var(--font-sans); margin: 0 0 12px; }
.notclaim ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.notclaim li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.55; max-width: 66ch; }
.notclaim li::before { content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border-radius: 50%; border: 1px dashed var(--hairline-strong); }
.notclaim li strong { font-weight: 600; }

/* 11. Evidence cards, figures, video facade ------------------------------- */
.evidence { display: grid; gap: 16px; }
@media (min-width: 768px) { .evidence { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.evidence__card { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.evidence__claim { font: 450 22px/1.3 var(--font-display); font-variation-settings: "opsz" 22; color: var(--ink); margin: 0; letter-spacing: -.01em; }
.evidence__text { margin: 0; font-size: 15px; line-height: 1.5; }
.evidence__source { font-size: 13px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.evidence__meta { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font: 400 12px/1.4 var(--font-mono); color: var(--muted); }

.figure { margin: 32px 0; }
.figure img { width: 100%; border-radius: var(--radius-lg); background: var(--surface-2); }
.figure figcaption { margin-top: 10px; font-size: var(--caption); line-height: 1.45; color: var(--muted); }
.figure__tag { display: block; margin: 0 0 6px; font: 500 12px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.figure__credit { display: block; font: 400 12px/1.5 var(--font-sans); color: var(--muted); margin-top: 2px; }

.video-facade {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9;
  background: var(--surface-2); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--ink);
}
.video-facade__play {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(26, 24, 20, .88); color: #fff;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.video-facade__play svg { width: 24px; height: 24px; margin-left: 3px; }
.video-facade:hover .video-facade__play { background: var(--ink); }
.video-facade__label { position: absolute; left: 16px; bottom: 14px; right: 16px; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }

/* 12. Logo row, CTA band ------------------------------------------------- */
.logos { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; margin: 0; padding: 0; list-style: none; }
.logos a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font: 500 15px/1 var(--font-sans); letter-spacing: .01em; }
.logos a:hover { color: var(--ink); text-decoration: underline; }
/* Real logos, once the written permissions exist: 28 px tall, greyscale at .72, restored on hover */
.logos img { height: 28px; width: auto; filter: grayscale(1) contrast(.9); opacity: .72; transition: filter var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out); }
.logos a:hover img { filter: none; opacity: 1; }

/* White band (not --surface) so a page never shows more than two surface bands */
.cta-band { background: var(--card); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: var(--section) 0; }
.cta-band__inner { display: grid; gap: 24px; align-items: center; }
.cta-band .display-md { margin: 0 0 12px; max-width: 22ch; }
.cta-band p { margin: 0; max-width: 56ch; }
.cta-band p + p { margin-top: 8px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1024px) {
  .cta-band__inner { grid-template-columns: 1.4fr 1fr; }
  .cta-band__actions { justify-content: flex-end; }
}

/* 13. Footer ---------------------------------------------------------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--hairline); padding: 64px 0 32px; font-size: 14px; }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); } }
.footer__brand img { height: 48px; width: auto; margin-bottom: 16px; }
.footer__brand p { max-width: 34ch; color: var(--muted); margin: 0; line-height: 1.5; }
.footer__col h2 { font: 600 12px/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin: 0 0 10px; }
.footer__col a { color: var(--body); text-decoration: none; }
.footer__col a:hover { color: var(--ink); text-decoration: underline; }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; max-width: 70ch; }
.social { display: flex; gap: 8px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--hairline); border-radius: 50%; color: var(--ink); background: var(--card); }
.social a:hover { border-color: var(--hairline-strong); }
.social svg { width: 18px; height: 18px; }
.footer__proto { font: 400 12px/1.5 var(--font-sans); color: var(--muted); margin: 16px 0 0; }

/* 14. Page header, breadcrumb, article + TOC, prose ----------------------- */
.page-head { padding: 48px 0 40px; }
.page-head .display-lg { margin: 0 0 16px; max-width: 20ch; }
.page-head .lead { max-width: 60ch; margin: 0; }
@media (min-width: 1024px) { .page-head { padding: 64px 0 48px; } }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; font-size: 13px; color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--hairline-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* 12-column thinking: prose 8 cols, one empty col, TOC 3 cols (design review §4) */
.article { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .article { grid-template-columns: minmax(0, 8fr) 1fr 3fr; } .article > .toc { grid-column: 3; } }
.toc { font-size: 14px; }
.toc summary { list-style: none; cursor: pointer; font: 500 12px/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 0; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary svg { width: 16px; height: 16px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--hairline); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--gold-700); border-left-color: var(--gold-500); }
@media (min-width: 1024px) {
  .toc { position: sticky; top: calc(var(--header-h) + 24px); }
  .toc summary { pointer-events: none; }
  .toc summary svg { display: none; }
}
@media (max-width: 1023px) {
  .toc { order: -1; border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 0 16px; background: var(--card); }
  .toc ol { border: 0; padding-bottom: 12px; }
  .toc a { padding-left: 0; border-left: 0; margin: 0; }
  .toc details[open] summary svg { transform: rotate(180deg); }
}

.prose { font-size: var(--body-lg); line-height: 1.62; color: var(--body); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.25em; max-width: 66ch; }
.prose h2 { font: 450 var(--display-md)/1.18 var(--font-display); font-variation-settings: "opsz" 36; letter-spacing: -.01em; margin: 2em 0 .6em; }
.prose h3 { font: 600 20px/1.35 var(--font-sans); margin: 1.6em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.25em; max-width: 66ch; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--gold-600); }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 20px; border-left: 3px solid var(--gold-500); font: 400 italic 1.25em/1.4 var(--font-display); font-variation-settings: "opsz" 16; color: var(--ink); max-width: 40ch; }
.prose blockquote p { margin: 0; }
.prose blockquote cite { display: block; margin-top: .5em; font: 400 13px/1.4 var(--font-sans); color: var(--muted); }
.prose .answer { font-size: 1.05em; color: var(--ink); }
.prose .figure { margin: 2em 0; }
.prose .callout { margin: 1.5em 0; }
.prose .callout p { font-size: 15px; }
.prose [id] { scroll-margin-top: calc(var(--header-h) + 24px); }

.sources { font-size: 13px; line-height: 1.5; color: var(--muted); }
.sources ol { padding-left: 1.5em; }
.sources li { margin-bottom: .6em; overflow-wrap: anywhere; }
.sources a { color: var(--muted); }

.quote { margin: 24px 0 0; padding: 0 0 0 20px; border-left: 3px solid var(--gold-500); }
.quote p { margin: 0 0 8px; font: 400 italic 1.125rem/1.45 var(--font-display); font-variation-settings: "opsz" 16; color: var(--ink); max-width: 44ch; }
.quote cite { font: 400 13px/1.4 var(--font-sans); color: var(--muted); font-style: normal; }

/* 15. Table (MethodsTable, generic) ----------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.table th { background: var(--surface-2); text-align: left; padding: 12px 14px; font: 600 12.5px/1.3 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.table td { padding: 14px; border-top: 1px solid var(--hairline); vertical-align: top; line-height: 1.45; }
.table--zebra tbody tr:nth-child(even) td { background: var(--surface); }
.table td:first-child { font-weight: 600; color: var(--ink); }
.table td:first-child .small { font-weight: 400; color: var(--muted); display: block; margin-top: 2px; }
.table th.is-sorted { color: var(--gold-700); }
.table th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.table th button svg { width: 12px; height: 12px; }
.table tfoot td { background: var(--surface); font-size: 13px; color: var(--muted); border-top: 1px solid var(--hairline-strong); }
.table--methods { table-layout: fixed; min-width: 640px; }
.table--methods col:nth-child(1) { width: 17%; }
.table--methods col:nth-child(2) { width: 23%; }
.table--methods col:nth-child(3) { width: 14%; }
.table--methods col:nth-child(4) { width: 14%; }
.table--methods col:nth-child(5) { width: 32%; }
@media (max-width: 767px) { .table--methods { table-layout: auto; min-width: 0; } }
.table tfoot td strong { color: var(--body); }

/* Tri-state marks: geometric SVG (solid disc / half disc / thin ring), never a tick */
.tri { display: inline-flex; align-items: flex-start; gap: 7px; font-weight: 500; }
.tri svg { width: 14px; height: 14px; flex: none; margin-top: 3px; }
.tri--full svg { color: var(--ink); }
.tri--half svg { color: var(--gold-700); }
.tri--ring svg { color: var(--muted); }

@media (max-width: 767px) {
  .table--fold, .table--fold tbody, .table--fold tfoot, .table--fold tr, .table--fold td { display: block; }
  .table--fold thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap--fold { border: 0; background: none; overflow: visible; }
  .table--fold tr { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 8px 16px 12px; margin-bottom: 12px; }
  .table--zebra.table--fold tbody tr:nth-child(even) td { background: transparent; }
  .table--fold td { display: grid; grid-template-columns: 104px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--hairline); }
  .table--fold td::before { content: attr(data-label); font: 500 11px/1.4 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
  .table--fold td:first-child { display: block; border-top: 0; font-size: 18px; padding: 10px 0 6px; }
  .table--fold td:first-child::before { content: none; }
  .table--fold tfoot tr { background: var(--surface); }
  .table--fold tfoot td { display: block; border-top: 0; }
  .table--fold tfoot td::before { content: none; }
}

/* 16. FAQ accordion ---------------------------------------------------------- */
.faq { border-top: 1px solid var(--hairline); }
.faq__item { border-bottom: 1px solid var(--hairline); scroll-margin-top: calc(var(--header-h) + 24px); }
.faq__item summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px; padding: 16px 0; cursor: pointer; font: 500 17px/1.4 var(--font-sans); color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold-900); }
.faq__icon { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--hairline-strong); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--ink); transition: transform var(--dur-base) var(--ease-out); }
.faq__icon::before { width: 10px; height: 1.5px; transform: translate(-50%, -50%); }
.faq__icon::after { width: 1.5px; height: 10px; transform: translate(-50%, -50%); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__body { padding: 0 40px 20px 0; max-width: 66ch; font-size: 16px; line-height: 1.55; }
.faq__body p:last-child { margin-bottom: 0; }
.faq__anchor { font-size: 12px; color: var(--muted); text-decoration: none; margin-left: 8px; }
.faq__anchor:hover { text-decoration: underline; }

/* 17. Forms ------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
@media (min-width: 640px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form__full { grid-column: 1 / -1; } }
.field label, .field .label { display: block; font: 500 14px/1.4 var(--font-sans); color: var(--ink); margin-bottom: 6px; }
.field .hint { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.req { color: var(--signal-600); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--hairline-strong); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink); font: 400 16px/1.4 var(--font-sans);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.textarea { min-height: 128px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--placeholder); }
.input:focus, .select:focus, .textarea:focus, .input.is-focus { outline: none; border-color: var(--gold-600); box-shadow: 0 0 0 2px var(--gold-600); }
.input:disabled, .select:disabled { background: var(--surface); color: var(--muted); cursor: not-allowed; }
.select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233D3A33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.field--error .input, .field--error .select, .field--error .textarea { border-color: var(--signal-600); }
.field--error .input:focus { box-shadow: 0 0 0 2px var(--signal-600); }
.field__error { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--signal-700); }
.field__error svg { width: 14px; height: 14px; flex: none; }
.field__error:empty { display: none; }
.form__privacy { margin: 0; font-size: 14px; line-height: 1.5; color: var(--body); }

.check, .field .check { display: flex; gap: 10px; align-items: flex-start; font: 400 14px/1.5 var(--font-sans); color: var(--body); cursor: pointer; padding: 4px 0; margin: 0; }
.check input { appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1px solid var(--hairline-strong); border-radius: 4px; background: var(--card); cursor: pointer; display: inline-grid; place-content: center; vertical-align: -3px; transition: background var(--dur-fast), border-color var(--dur-fast); }
.check input::before { content: ""; width: 10px; height: 10px; transform: scale(0); transition: transform var(--dur-fast) var(--ease-out); background: #fff; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::before { transform: scale(1); }
.check input[type="radio"], .check input[type="radio"]::before { border-radius: 50%; clip-path: none; }
.check input[type="radio"]::before { width: 8px; height: 8px; }
.check input:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 2px; }
.check--error input { border-color: var(--signal-600); }

.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; color: var(--body); min-height: 44px; }
.switch input { appearance: none; position: relative; width: 40px; height: 22px; margin: 0; border-radius: var(--radius-pill); background: var(--hairline-strong); cursor: pointer; transition: background var(--dur-fast) var(--ease-out); flex: none; }
.switch input::before { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform var(--dur-fast) var(--ease-out); }
.switch input:checked { background: var(--gold-500); }
.switch input:checked::before { transform: translateX(18px); }
.switch input:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 2px; }
.switch input:disabled { opacity: .4; cursor: not-allowed; }

.notice { border-radius: var(--radius-lg); padding: 20px 24px; border: 1px solid; display: flex; gap: 12px; align-items: flex-start; }
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.notice--success { background: var(--green-100); border-color: var(--green-600); color: var(--green-700); }
.notice h3 { margin: 0 0 4px; font: 600 17px/1.3 var(--font-sans); color: inherit; }
.notice p { margin: 0; font-size: 15px; color: var(--body); }

/* 18. Tabs, tooltip, pagination, skeleton, toast, dialog ------------------- */
.tabs__list { display: flex; gap: 2px; border-bottom: 1px solid var(--hairline); overflow-x: auto; }
.tab { position: relative; flex: none; min-height: 44px; padding: 10px 14px; border: 0; background: none; cursor: pointer; font: 500 15px/1 var(--font-sans); color: var(--muted); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold-500); }
.tabpanel { padding: 20px 0 0; font-size: 15px; }
.tabpanel[hidden] { display: none; }

.tip { position: relative; display: inline-flex; align-items: center; }
.tip__bubble {
  position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 20; transform: translateX(-50%);
  background: var(--ink); color: #fff; font: 400 13px/1.4 var(--font-sans); padding: 6px 10px; border-radius: var(--radius-sm);
  white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out), visibility 0s linear var(--dur-fast);
}
.tip__bubble::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ink); }
.tip:hover .tip__bubble, .tip:focus-within .tip__bubble, .tip.is-show .tip__bubble { opacity: 1; visibility: visible; transition-delay: 0s; }
.tip__trigger { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--hairline-strong); background: var(--card); color: var(--muted); font: 600 12px/1 var(--font-sans); cursor: help; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: var(--radius-sm); text-decoration: none; color: var(--body); font-size: 14px; font-variant-numeric: tabular-nums; }
.pagination a:hover { background: var(--surface); color: var(--ink); }
.pagination [aria-current="page"] { background: var(--ink); color: #fff; }
.pagination .is-disabled { color: var(--placeholder); }
.pagination svg { width: 16px; height: 16px; }

.skeleton { background: var(--surface-2); border-radius: var(--radius-sm); animation: pulse 1.4s ease-in-out infinite; }
.skeleton--text { height: 14px; }
.skeleton--title { height: 22px; width: 60%; }
.skeleton--media { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); }
.skeleton--circle { width: 44px; height: 44px; border-radius: 50%; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

.toast {
  display: flex; gap: 12px; align-items: flex-start; max-width: 380px;
  background: var(--card); border: 1px solid var(--hairline); border-left: 3px solid var(--green-600);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-modal); padding: 14px 16px;
}
.toast--info { border-left-color: var(--sky-600); }
.toast--warning { border-left-color: var(--gold-500); }
.toast--error { border-left-color: var(--signal-600); }
.toast svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--green-700); }
.toast--info svg { color: var(--sky-700); }
.toast--warning svg { color: var(--gold-700); }
.toast--error svg { color: var(--signal-700); }
.toast__title { font: 600 14.5px/1.35 var(--font-sans); color: var(--ink); margin: 0 0 2px; }
.toast__text { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.45; }
.toast .icon-btn { width: 32px; height: 32px; margin: -6px -8px -6px auto; }
.toast .icon-btn svg { width: 16px; height: 16px; color: var(--muted); margin: 0; }
.toast-region { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: grid; gap: 10px; }
.toast-region .toast { animation: toast-in var(--dur-enter) var(--ease-out) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.dialog-demo { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-modal); padding: 28px; max-width: 460px; }
.dialog-demo__scrim { background: rgba(26, 24, 20, .4); padding: 40px 24px; border-radius: var(--radius-lg); display: grid; place-items: center; }

/* 19. People (Who we are) ------------------------------------------------------ */
.person { display: grid; gap: 24px; align-items: start; }
.person__photo { margin: 0; }
.person__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-lg); background: var(--surface-2); }
.person__photo figcaption { font: 400 12px/1.5 var(--font-sans); color: var(--muted); margin-top: 8px; }
.person__name { font: 450 var(--title-lg)/1.2 var(--font-display); font-variation-settings: "opsz" 24; letter-spacing: -.01em; margin: 0 0 4px; }
.person__role { display: block; font: 500 13px/1.4 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.person__bio { margin: 0 0 12px; max-width: 60ch; }
.person--founder .person__name { font-size: var(--display-md); font-variation-settings: "opsz" 36; }
.person--founder .person__bio { font-size: var(--body-lg); line-height: 1.55; }
@media (min-width: 768px) {
  .person { grid-template-columns: 240px 1fr; gap: 40px; }
  .person--founder { grid-template-columns: 360px 1fr; gap: 56px; }
}
.credit-line { max-width: 66ch; }
.credit-line p { font-size: var(--body-lg); line-height: 1.55; margin: 0; }
.team { display: grid; gap: 16px; }
@media (min-width: 640px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.team .card { display: flex; flex-direction: column; gap: 6px; }
.team .person__name { font-size: 22px; }
.team p { margin: 0; font-size: 15px; }
.partners { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
@media (min-width: 640px) { .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.partners .card h3 { margin: 0 0 6px; }
.partners .card p { margin: 0; font-size: 15px; }
.partners .card p + p { margin-top: 8px; }

/* 20. Diagram (HowItWorksDiagram) -------------------------------------------- */
.diagram { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 20px 20px 8px; overflow: hidden; }
.diagram svg { width: 100%; height: auto; }
.diagram .num { font-family: var(--font-sans); font-weight: 600; font-size: 14px; fill: #fff; }
.diagram .num--ink { fill: var(--ink); }
.diagram .draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
/* One 900 ms sequence, played once when 50 % of the diagram is in view: wires → outer band → inner band → flight path → chips */
.diagram--animate .draw { animation: draw 420ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
.diagram--animate .fade { animation: fade var(--dur-base) var(--ease-out) both; animation-delay: var(--d, 0ms); }
.diagram__legend { display: grid; gap: 12px 24px; padding: 16px 4px 12px; margin: 0; }
@media (min-width: 768px) { .diagram__legend { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.diagram__legend > div { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; }
.diagram__legend .num-chip { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--font-sans); color: #fff; background: var(--ink); }
.diagram__legend .num-chip--outer { background: var(--gold-500); color: var(--ink); }
.diagram__legend .num-chip--inner { background: var(--gold-700); }
.diagram__legend .mono { color: var(--ink); font-weight: 500; }
.diagram__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 0 4px 8px; }
.diagram__note { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 0; }
.diagram__replay { --btn-h: 32px; font-size: 13px; }
@media (max-width: 767px) { .diagram { padding: 12px 12px 4px; } .diagram .num { font-size: 20px; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* 21. Style guide helpers (components.html) ------------------------------------ */
.guide { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .guide { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; } }
.guide__nav { position: sticky; top: calc(var(--header-h) + 24px); font-size: 14px; }
.guide__nav ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--hairline); }
.guide__nav a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.guide__nav a:hover, .guide__nav a.is-active { color: var(--ink); border-left-color: var(--gold-500); }
@media (max-width: 1023px) { .guide__nav { position: static; } .guide__nav ol { display: flex; flex-wrap: wrap; gap: 4px; border: 0; } .guide__nav a { border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 6px 12px; margin: 0; } }
.guide__section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--hairline); }
.guide__section:last-child { border: 0; }
.guide__section h2 { font: 450 var(--display-md)/1.18 var(--font-display); font-variation-settings: "opsz" 36; margin: 0 0 8px; scroll-margin-top: calc(var(--header-h) + 24px); }
.guide__section > p { color: var(--muted); max-width: 64ch; }
.guide__section h3 { font: 600 14px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 32px 0 14px; }
.swatches { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.swatch { border: 1px solid var(--hairline); border-radius: var(--radius-sm); overflow: hidden; background: var(--card); }
.swatch__color { height: 72px; border-bottom: 1px solid var(--hairline); }
.swatch__meta { padding: 10px 12px; font: 400 11.5px/1.5 var(--font-mono); color: var(--muted); }
.swatch__meta strong { display: block; font-family: var(--font-sans); font-size: 13px; color: var(--ink); font-weight: 500; }
.specimen { display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid var(--hairline); align-items: baseline; }
.specimen:last-child { border-bottom: 1px solid var(--hairline); }
@media (min-width: 768px) { .specimen { grid-template-columns: 200px 1fr; gap: 24px; } }
.specimen__meta { font: 400 12px/1.6 var(--font-mono); color: var(--muted); }
.specimen__meta strong { display: block; font-family: var(--font-sans); font-weight: 500; color: var(--ink); font-size: 13px; }
.state-row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--hairline); }
.state-row > span:first-child { flex-basis: 100%; font: 500 13px/1.3 var(--font-sans); color: var(--ink); }
.state { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.state > small { font: 500 11px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-left: 4px; }
.demo-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.demo-box { background: var(--surface); border: 1px dashed var(--hairline-strong); border-radius: var(--radius-lg); padding: 24px; }

/* 22. Scroll-in reveal: one per section, 8 px, no stagger (CSS scroll-driven, progressive) ---- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 20%; }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 23. Reduced motion ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .diagram .draw, .diagram .fade, .diagram--animate .draw, .diagram--animate .fade { animation: none !important; }
  .diagram__replay { display: none; }
  .skeleton { animation: none; }
  .drawer { transform: none; opacity: 0; transition: opacity var(--dur-drawer) var(--ease-out), visibility 0s linear var(--dur-drawer); }
  .drawer.is-open { opacity: 1; }
}

/* 24. Print ---------------------------------------------------------------------- */
@media print {
  .site-header, .drawer, .cta-band, .toast-region, .skip-link, .diagram__replay { display: none !important; }
  .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
  body { background: #fff; }
}

/* 23. Placeholder images (v1.3.2): pictures from baware.ai / the bAWARE image library, each marked until credit and rights are confirmed ---- */
.ph-tag { display: block; font: 400 12px/1.5 var(--font-sans); color: var(--muted); margin-top: 4px; letter-spacing: 0; text-transform: none; }
.band { margin: 0; }
.band img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 60%; border-radius: var(--radius-lg); background: var(--surface-2); }
.band figcaption { margin-top: 10px; font-size: var(--caption); line-height: 1.45; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; }
.band figcaption .ph-tag { margin-top: 0; }
.grid--media { display: grid; gap: 32px; }
@media (min-width: 1024px) { .grid--media { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; align-items: start; } }
.figure--tall img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 50%; }
.figure--crop32 img { aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 50%; }
.video-facade--poster { display: block; }
.video-facade__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-facade--poster .video-facade__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.video-facade--poster .video-facade__label { background: rgba(251, 250, 246, .9); color: var(--ink); padding: 6px 10px; border-radius: 6px; left: 12px; right: 12px; bottom: 12px; }
.logos--img a { gap: 10px; }
.logos--img img { height: 36px; }
