/* --- Self-hosted faces ----------------------------------------------------
   Poppins and JetBrains Mono are served from this origin, not Google. Google
   Fonts sees a visitor's IP on every page load, before any consent choice
   exists; self-hosting removes that third party rather than gating it, which
   would have left first-time visitors in fallback type until they accepted.

   Latin subset only, carrying Google's own unicode-range verbatim. That range
   covers U+2191 and U+2193 but not U+2192, and no geometric shapes — so the
   arrow glyph and the gold triangle were ALREADY falling back to a system font
   before this change. Keeping the range identical is what guarantees they
   still look exactly the same. Provenance: public/assets/fonts/README.md.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/poppins-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/poppins-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/poppins-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ==========================================================================
   AgentAligned — site styles
   Ported from the Claude Design prototypes. Values are the design's, not
   guesses: Gold #CC9E00, Coal #101010, Bone #F6F6F6, 1240px measure,
   20px cards, 9999px pills, Poppins 400/500/600, JetBrains Mono labels.
   ========================================================================== */

:root {
  /* Palette */
  --gold: #CC9E00;
  --gold-lit: #E3B211;
  --gold-deep: #B88E00;
  --gold-ink: #8A6B00;       /* small gold text on light, >=4.5:1 on bone */
  --coal: #101010;
  --bone: #F6F6F6;
  --white: #ffffff;
  --error: #A33A00;
  --error-lit: #FF9A6B;      /* error text on coal, >=4.5:1 */

  /* Coal at opacity — the prototypes' most repeated values */
  --ink-90: rgba(16, 16, 16, 0.9);
  --ink-86: rgba(16, 16, 16, 0.86);
  --ink-82: rgba(16, 16, 16, 0.82);
  --ink-78: rgba(16, 16, 16, 0.78);
  --ink-76: rgba(16, 16, 16, 0.76);
  --ink-72: rgba(16, 16, 16, 0.72);
  --ink-70: rgba(16, 16, 16, 0.7);
  --ink-62: rgba(16, 16, 16, 0.62);
  --ink-55: rgba(16, 16, 16, 0.55);
  --ink-50: rgba(16, 16, 16, 0.5);
  --ink-45: rgba(16, 16, 16, 0.45);
  --ink-42: rgba(16, 16, 16, 0.42);
  --rule: rgba(16, 16, 16, 0.14);
  --rule-soft: rgba(16, 16, 16, 0.1);
  --rule-strong: rgba(16, 16, 16, 0.28);

  /* Bone at opacity — dark surfaces */
  --bone-86: rgba(246, 246, 246, 0.86);
  --bone-76: rgba(246, 246, 246, 0.76);
  --bone-72: rgba(246, 246, 246, 0.72);
  --bone-62: rgba(246, 246, 246, 0.62);
  --bone-55: rgba(246, 246, 246, 0.55);
  --bone-50: rgba(246, 246, 246, 0.5);
  --bone-rule: rgba(246, 246, 246, 0.16);

  /* Type */
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --measure: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-pad: clamp(64px, 8vw, 108px);

  /* Radii */
  --r-input: 12px;
  --r-acc: 14px;
  --r-card-sm: 16px;
  --r-card: 20px;
  --r-panel: 30px;
  --r-pill: 9999px;

  /* Shadows + motion */
  --shadow-paper: 0 1px 0 rgba(26, 23, 20, .04), 0 8px 24px -12px rgba(26, 23, 20, .18);
  --shadow-pop: 0 12px 32px -8px rgba(242, 193, 46, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bone);
  color: var(--coal);
  overflow-x: hidden;
}

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

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

a { color: var(--coal); }
a:hover { color: var(--gold-ink); }

img { max-width: 100%; }

summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

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

.skip-link {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 40;
  transform: translateY(-140%);
  background: var(--coal);
  color: var(--bone);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.16s var(--ease);
}
.skip-link:focus { transform: translateY(0); color: var(--bone); }

/* --- Layout -------------------------------------------------------------- */

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
}

.section { border-top: 1px solid var(--rule-soft); }
.section > .wrap { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.section--bone { background: var(--bone); }
.section--tint { background: rgba(16, 16, 16, 0.025); }
.section--coal { background: var(--coal); color: var(--bone); }
.section--coal h2, .section--coal h3 { color: var(--bone); }

/* --- Typography ---------------------------------------------------------- */

.eyebrow {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.eyebrow .ast { color: var(--gold); font-size: 14px; }
.section--coal .eyebrow { color: var(--bone-55); }

.h1 {
  margin: 0 0 22px;
  font-size: clamp(32px, 5.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.032em;
  font-weight: 600;
}

.h2 {
  margin: 0 0 20px;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-weight: 600;
}

.h3 {
  margin: 0 0 18px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.lead {
  margin: 0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  color: var(--ink-78);
  max-width: 68ch;
  text-wrap: pretty;
}

.body-copy {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.65;
  color: var(--ink-78);
  max-width: 68ch;
  text-wrap: pretty;
}
.section--coal .body-copy { color: var(--bone-76); }

.prose p { font-size: 16px; line-height: 1.7; color: var(--ink-78); max-width: 68ch; }
.prose h2 { margin: clamp(36px, 4vw, 52px) 0 16px; font-size: clamp(23px, 2.8vw, 30px); font-weight: 600; letter-spacing: -0.02em; }
.prose h3 { margin: clamp(26px, 3vw, 34px) 0 12px; font-size: clamp(19px, 2.2vw, 22px); font-weight: 600; letter-spacing: -0.015em; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; max-width: 68ch; }
.prose li { font-size: 16px; line-height: 1.7; color: var(--ink-78); margin-bottom: 8px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-45);
}

/* --- Buttons ------------------------------------------------------------- */
/* One physical language, taken from the machined-gold footer CTA the system
   already owns: a vertical ramp with a light catch on the top edge, the pop
   shadow on hover with a 1px lift, and mass on press (translateY(1px)
   scale(.98), 80ms). Colour-shift or transform only — never opacity fades. */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); transition-duration: 80ms; }

/* Arrow glyphs lean into the action on hover; the sheen layer sits out */
.btn span[aria-hidden]:not(.catch) { transition: transform 0.2s var(--ease); }
.btn:hover span[aria-hidden]:not(.catch) { transform: translateX(3px); }

/* Loading ("Sending…") and disabled: mass without response */
.btn[disabled] { cursor: progress; transform: none; }

.btn--primary {
  background: linear-gradient(180deg, #2A2A2A 0%, var(--coal) 55%, #060606 100%);
  color: var(--bone);
  font-weight: 500;
  border: 0;
  box-shadow: 0 10px 24px -12px rgba(16, 16, 16, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn--primary:hover {
  background: linear-gradient(180deg, var(--gold-lit) 0%, var(--gold) 58%, var(--gold-deep) 100%);
  color: var(--coal);
  box-shadow: var(--shadow-pop), inset 0 1px 0 rgba(255, 236, 170, 0.8);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(1px) scale(0.98); }
.btn--primary[disabled] {
  background: var(--ink-45);
  box-shadow: none;
  color: var(--bone);
}

.btn--outline {
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--coal);
}
.btn--outline:hover {
  background: var(--white);
  border-color: var(--coal);
  color: var(--coal);
  box-shadow: var(--shadow-paper);
  transform: translateY(-1px);
}
.btn--outline:active { transform: translateY(1px) scale(0.98); }

/* Hero secondary sits over imagery, so it carries its own translucent ground */
.btn--outline-solid {
  border: 1px solid var(--rule-strong);
  background: rgba(255, 255, 255, 0.7);
  color: var(--coal);
}
.btn--outline-solid:hover {
  background: var(--white);
  border-color: var(--coal);
  color: var(--coal);
  box-shadow: var(--shadow-paper);
  transform: translateY(-1px);
}
.btn--outline-solid:active { transform: translateY(1px) scale(0.98); }

.btn--ghost {
  min-height: 44px;
  padding: 12px 22px;
  border: 1px solid rgba(16, 16, 16, 0.24);
  font-size: 15.5px;
  color: var(--coal);
  background: transparent;
}
.btn--ghost:hover {
  background: linear-gradient(180deg, #2A2A2A 0%, var(--coal) 55%, #060606 100%);
  border-color: var(--coal);
  color: var(--bone);
  box-shadow: 0 10px 24px -12px rgba(16, 16, 16, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn--sm { min-height: 44px; padding: 12px 22px; font-size: 15.5px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Thumb-first on phones: CTA rows become full-width stacked targets */
@media (max-width: 480px) {
  .btn-row .btn, .form__actions .btn { flex: 1 1 100%; justify-content: center; }
  .btn span[aria-hidden]:not(.catch) { margin-left: auto; }
  .btn--gold { width: 100%; justify-content: center; }
  .btn--gold .coin { margin-left: auto; }
}

/* Footer CTA — machined gold pill. The label must never wrap into a tall
   blob, and hover must not move the element or swap the gradient: a
   translated button slides out from under a cursor resting on its edge and
   re-triggers hover in a loop (visible flicker), and gradients cannot
   transition, so the old flat-fill swap popped. Hover is shadow + brightness
   only — no layout or hit-area change. */
.btn--gold {
  position: relative;
  min-height: 52px;
  padding: 15px 26px;
  gap: 12px;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--gold-lit) 0%, var(--gold) 58%, var(--gold-deep) 100%);
  color: var(--coal);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255, 224, 130, 0.55);
  box-shadow: var(--shadow-pop), inset 0 1px 0 rgba(255, 236, 170, 0.8);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s var(--ease), filter 0.2s;
}
.btn--gold:hover {
  box-shadow: 0 16px 40px -8px rgba(242, 193, 46, 0.55), inset 0 1px 0 rgba(255, 236, 170, 0.9);
  filter: brightness(1.05);
  color: var(--coal);
}
.btn--gold:active { transform: translateY(1px) scale(0.98); }
.btn--gold .catch {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 120% at 50% -30%, rgba(255, 244, 200, 0.55) 0%, rgba(255, 244, 200, 0) 60%);
  pointer-events: none;
}
.btn--gold .coin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--r-pill);
  background: var(--coal);
  color: var(--gold-lit);
  font-size: 14px;
  line-height: 1;
}

.link-underline {
  color: var(--coal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold);
}

.link-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--coal);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--gold);
}

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

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(246, 246, 246, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
  transition: background-color 0.24s, border-color 0.24s;
}

/* "over" variant — transparent across the grey hero, solid once scrolled past */
.site-header[data-variant="over"] {
  position: fixed;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: none;
}
.site-header[data-variant="over"].is-scrolled,
.site-header[data-variant="over"].is-menu-open {
  background: rgba(246, 246, 246, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}

.site-header__inner {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: max(clamp(14px, 2vw, 18px), env(safe-area-inset-top)) var(--gutter) clamp(14px, 2vw, 18px);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--coal);
}
.wordmark__name {
  font-weight: 600;
  font-size: clamp(19px, 3.6vw, 23px);
  letter-spacing: -0.02em;
}
.wordmark__ast {
  font-size: clamp(22px, 4.2vw, 27px);
  line-height: 1;
  color: var(--gold);
  user-select: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}
.nav__link {
  position: relative;
  white-space: nowrap;
  font-size: 16px;
  color: var(--coal);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav__link:hover { color: var(--gold-ink); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
}
.nav__link.is-current::after { background: var(--gold); }

.nav__cta {
  font-family: inherit;
  white-space: nowrap;
  font-size: 16px;
  color: var(--coal);
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(16, 16, 16, 0.2);
  border-radius: var(--r-pill);
  padding: 9px 18px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.nav__cta:hover { background: var(--coal); border-color: var(--coal); color: var(--bone); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--coal);
  transform-origin: center;
  transition: transform 0.24s var(--ease), opacity 0.24s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 19;
  background: rgba(246, 246, 246, 0.97);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  padding: 0 clamp(20px, 6vw, 40px);
  transition: opacity 0.24s var(--ease), visibility 0.24s;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu a[data-menu-link] {
  font-size: 28px;
  font-weight: 500;
  color: var(--coal);
  text-decoration: none;
  min-height: 44px;
}
.mobile-menu__cta {
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  color: var(--coal);
  cursor: pointer;
  background: transparent;
  border: 1.5px solid var(--coal);
  border-radius: var(--r-pill);
  padding: 12px 26px;
  min-height: 48px;
}
.mobile-menu__email {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-70);
  text-decoration: none;
}

/* Desktop nav appears at 1100px — below that the seven items can't fit one storey */
@media (max-width: 1099px) {
  .nav { display: none; }
  .hamburger { display: flex; }
}
@media (min-width: 1100px) {
  .mobile-menu { display: none; }
}

/* --- Get in touch modal -------------------------------------------------- */

.modal { position: fixed; inset: 0; z-index: 50; display: none; }
.modal.is-open { display: flex; align-items: flex-end; justify-content: center; padding: 0; }
@media (min-width: 1100px) {
  .modal.is-open { align-items: center; padding: 24px; }
}

.modal__backdrop { position: absolute; inset: 0; background: rgba(16, 16, 16, 0.44); border: 0; padding: 0; }

.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: 92svh;
  overflow: auto;
  background: var(--bone);
  border: 1px solid rgba(16, 16, 16, 0.12);
  border-radius: var(--r-card) var(--r-card) 0 0;
  box-shadow: 0 1px 0 rgba(26, 23, 20, .04), 0 24px 64px -24px rgba(16, 16, 16, .5);
  padding: clamp(22px, 4vw, 32px);
}
@media (min-width: 1100px) {
  .modal__dialog { max-height: min(86svh, 720px); border-radius: var(--r-card); }
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--coal);
  border-radius: var(--r-pill);
}
.modal__close:hover { background: rgba(16, 16, 16, 0.06); }

.modal__title {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 27px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--coal);
  padding-right: 40px;
}
.modal__desc { margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: var(--ink-72); }

.notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(16, 16, 16, 0.16);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-input);
  background: rgba(204, 158, 0, 0.08);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-82);
}

/* --- Forms --------------------------------------------------------------- */

.form { display: flex; flex-direction: column; gap: 16px; }
.field-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--coal);
}
.field label .optional { font-weight: 400; color: var(--ink-55); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-input);
  font-family: inherit;
  font-size: 15px;
  background: var(--white);
  color: var(--coal);
  box-sizing: border-box;
}
.field textarea { line-height: 1.5; resize: vertical; min-height: 0; }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--error); }

.field__error {
  display: none;
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--error);
}
.field__error.is-shown { display: block; }

.form__privacy { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-62); }
.form__actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding-top: 4px; }

.form__status { margin: 0; font-size: 14.5px; line-height: 1.6; }
.form__status[data-state="error"] { color: var(--error); }

/* --- Hero framing -------------------------------------------------------- */
/* The home hero's grey composition, reused site-wide: warm grey field, fog,
   vignette, film grain, and a translucent panel behind the copy. */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(420px, 62svh, 640px);
}

.hero__layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero__field { background: linear-gradient(180deg, #DAD8D4 0%, #CFCDC9 100%); }

.hero__fog {
  background:
    radial-gradient(ellipse 120% 100% at 50% 38%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(ellipse 140% 130% at 50% 50%, rgba(0, 0, 0, 0) 60%, rgba(96, 94, 90, 0.24) 100%);
}

.hero__grain {
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__panel {
  position: absolute;
  z-index: 0;
  left: max(calc(50% - 604px), 12px);
  top: clamp(20px, 4vh, 44px);
  bottom: clamp(20px, 4vh, 44px);
  width: min(560px, 52%);
  background: rgba(248, 247, 244, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--r-panel);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 56px 44px rgba(248, 247, 244, 0.55);
  pointer-events: none;
}
/* Article heroes centre their panel with the reading column */
.hero__panel--centred { left: 50%; transform: translateX(-50%); width: min(760px, 88%); }

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(100px, 13vh, 132px) var(--gutter) clamp(28px, 3.6vw, 44px);
  width: 100%;
}

/* Breadcrumb left, page marker right */
.hero__top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 26px;
}

.breadcrumb ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-62);
}
.breadcrumb a { color: var(--ink-70); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-ink); }
.breadcrumb [aria-current="page"] { color: var(--coal); }

.hero__marker {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-62);
}
.hero__marker .ast { color: var(--gold); font-size: 14px; }

.hero__title {
  margin: 0 0 22px;
  font-size: clamp(32px, 5.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.032em;
  font-weight: 600;
  max-width: 16ch;
}

.hero__lead {
  margin: 0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  color: var(--ink-78);
  max-width: 68ch;
  text-wrap: pretty;
}

/* --- Cards --------------------------------------------------------------- */

.card {
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-card);
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: var(--shadow-paper);
}
.card--flat { background: rgba(16, 16, 16, 0.03); border-color: var(--rule-soft); box-shadow: none; }
.card--gold-top { border-color: rgba(16, 16, 16, 0.12); border-top: 3px solid var(--gold); }

.card-grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}
.card-grid--tight { gap: clamp(16px, 2vw, 20px); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Link card — the "go deeper" pattern */
.link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--white);
  border: 1px solid rgba(16, 16, 16, 0.12);
  border-radius: var(--r-card-sm);
  text-decoration: none;
  transition: border-color 0.2s;
}
.link-card:hover { border-color: var(--coal); color: var(--coal); }
.link-card__kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.link-card__title { font-size: 17px; font-weight: 500; color: var(--coal); }
.link-card__desc { font-size: 14.5px; line-height: 1.5; color: var(--ink-70); }

.link-card-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Stage card — dashed header rule with a duration chip */
.stage-card { display: flex; flex-direction: column; gap: 14px; }
.stage-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed rgba(16, 16, 16, 0.16);
  padding-bottom: 12px;
}
.stage-card__stage {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gold-ink);
  background: rgba(204, 158, 0, 0.12);
  border-radius: var(--r-pill);
  padding: 5px 10px;
}
.stage-card h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.stage-card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-76); }

/* --- Use-case definition grid (Problem / System / Human control / Measure) - */

.usecase-dl {
  margin: 0;
  display: grid;
  gap: 18px 32px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.usecase-dl dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 7px;
}
.usecase-dl dd {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-78);
}

.usecase-article {
  border-top: 1px solid var(--rule);
  padding: clamp(22px, 3vw, 32px) 0;
}
.usecase-article__num {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.usecase-article h2 {
  margin: 0 0 20px;
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Callout — gold left rule */
.callout {
  margin: 0;
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: rgba(204, 158, 0, 0.08);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-76);
  max-width: 72ch;
}
.callout--plain {
  background: transparent;
  padding: 0 0 0 18px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-76);
  max-width: 70ch;
}
.section--coal .callout--plain { color: var(--bone-72); }
.section--coal .callout--plain a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }

/* --- Tabs / accordion (Use cases) ---------------------------------------- */

.tablist {
  display: none;
  gap: 10px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
}
.tab {
  min-height: 44px;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 15.5px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  border: 1px solid rgba(16, 16, 16, 0.2);
  background: transparent;
  color: var(--coal);
}
.tab[aria-selected="true"] { background: var(--coal); color: var(--bone); border-color: var(--coal); }

.acc-header {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: var(--r-acc);
  background: var(--white);
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  color: var(--coal);
}
.acc-header__glyph { color: var(--gold); font-size: 20px; }

.panel { display: none; padding-top: 4px; }
.panel.is-open { display: block; }

.cluster-stack { display: flex; flex-direction: column; gap: 12px; }

@media (min-width: 900px) {
  .tablist { display: flex; }
  .acc-header { display: none; }
  .panel { padding-top: 0; }
}

/* --- FAQ ----------------------------------------------------------------- */

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  font-size: clamp(17px, 1.9vw, 19px);
  font-weight: 500;
  min-height: 44px;
}
.faq summary .glyph { color: var(--gold); font-size: 20px; line-height: 1; }
.faq details[open] summary .glyph::before { content: "\2212"; }
.faq details:not([open]) summary .glyph::before { content: "+"; }
.faq p { margin: 0 0 24px; font-size: 15.5px; line-height: 1.65; color: var(--ink-76); max-width: 68ch; }

/* --- Split grids --------------------------------------------------------- */

.split { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(220px, 320px) 1fr; }
  .split--cluster { grid-template-columns: minmax(200px, 260px) 1fr; }
}

.cluster-row {
  display: grid;
  gap: clamp(16px, 3vw, 40px);
  grid-template-columns: 1fr;
  padding: clamp(26px, 3.4vw, 40px) 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 860px) {
  .cluster-row { grid-template-columns: minmax(200px, 260px) 1fr; }
}
.cluster-row__num {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-42);
}
.cluster-row h3 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 600;
  letter-spacing: -0.018em;
}

/* --- Governance tiles (coal) --------------------------------------------- */

.tile-grid {
  margin: 0 0 clamp(28px, 3vw, 36px);
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  background: var(--bone-rule);
  border: 1px solid var(--bone-rule);
  border-radius: var(--r-card);
  overflow: hidden;
}
.tile-grid li {
  background: var(--coal);
  padding: clamp(20px, 2.2vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tile-grid .code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.tile-grid .label { font-size: 16.5px; line-height: 1.45; }

/* --- Measurement figure -------------------------------------------------- */

.figure-card {
  margin: 0;
  border: 1px solid rgba(16, 16, 16, 0.12);
  border-radius: var(--r-card);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-paper);
}
.figure-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 2.2vw, 26px);
  border-bottom: 1px solid rgba(16, 16, 16, 0.12);
  background: rgba(16, 16, 16, 0.02);
}
.figure-card__head .title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-62);
}
.figure-card ul {
  margin: 0;
  padding: clamp(18px, 2.2vw, 26px);
  list-style: none;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.figure-card li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 16px;
  border: 1px dashed rgba(16, 16, 16, 0.18);
  border-radius: var(--r-input);
  font-size: 15.5px;
}
.figure-card li .ast { color: var(--gold); font-size: 13px; }
.figure-card figcaption {
  padding: 0 clamp(18px, 2.2vw, 26px) clamp(18px, 2.2vw, 26px);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-62);
}

/* --- Bullet lists -------------------------------------------------------- */

.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 11px; font-size: 15.5px; line-height: 1.55; color: var(--ink-72); }
.ticks li .mark { color: rgba(16, 16, 16, 0.35); }
.ticks--gold li { color: var(--ink-86); }
.ticks--gold li .mark { color: var(--gold); }

/* --- Insights list ------------------------------------------------------- */

.insight-list { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.insight-item {
  display: grid;
  gap: 8px 32px;
  grid-template-columns: 1fr;
  padding: clamp(24px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
@media (min-width: 860px) {
  .insight-item { grid-template-columns: minmax(160px, 200px) 1fr; }
}
.insight-item:hover .insight-item__title { color: var(--gold-ink); }
.insight-item__cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.insight-item__title {
  margin: 0 0 8px;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--coal);
  transition: color 0.2s;
}
.insight-item__desc { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-72); max-width: 68ch; }
.insight-item__meta { margin: 10px 0 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-50); }

/* --- Article ------------------------------------------------------------- */

.article-body { max-width: 760px; margin: 0 auto; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 18px 0;
  margin: 0 0 clamp(28px, 3.4vw, 40px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-62);
  list-style: none;
}
.article-meta strong { font-weight: 500; color: var(--coal); }

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

.site-footer { background: var(--coal); color: var(--bone); }
.site-footer__grid {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 76px) var(--gutter) clamp(28px, 3vw, 40px);
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.site-footer__brand { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.site-footer__brand .name { font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.site-footer__brand .ast { font-size: 25px; line-height: 1; color: var(--gold); }
.site-footer p { margin: 0 0 6px; font-size: 15px; line-height: 1.6; color: var(--bone-72); }
.site-footer__email {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--gold);
}
.site-footer nav { display: flex; flex-direction: column; gap: 12px; }
.site-footer__heading {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-50);
}
.site-footer nav a { font-size: 15px; color: var(--bone-86); text-decoration: none; }
.site-footer nav a:hover { color: var(--gold); }
.site-footer__legal { border-top: 1px solid rgba(246, 246, 246, 0.14); }
.site-footer__legal-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
}
.site-footer__legal p { margin: 0; font-size: 13.5px; color: var(--bone-62); }
.site-footer__legal a { color: rgba(246, 246, 246, 0.92); text-decoration: underline; text-underline-offset: 3px; }

/* Legal links sit between the TIM Africa line and the copyright. Stacked on a
   phone, one row once there is width for it. The button is styled as a link
   because it reads as one in the row, but stays a button for what it does.

   Scoped under .site-footer__legal deliberately: this is a <nav> inside
   .site-footer, so the column layout at `.site-footer nav` and the touch-target
   padding at `.site-footer nav a` both match it at (0,1,1) and would otherwise
   win. These selectors sit at (0,2,1) so they hold regardless of source order. */
.site-footer__legal .site-footer__legal-nav {
  display: flex;
  flex-direction: column;
  gap: 2px 20px;
  font-size: 13.5px;
}
.site-footer__legal .site-footer__legal-nav a,
.site-footer__legal .site-footer__legal-btn {
  font-size: 13.5px;
  color: rgba(246, 246, 246, 0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px 0;
  margin: 0;
}
.site-footer__legal .site-footer__legal-btn {
  font-family: inherit;
  background: none;
  border: 0;
  padding-left: 0;
  padding-right: 0;
  text-align: left;
  cursor: pointer;
}
.site-footer__legal .site-footer__legal-nav a:hover,
.site-footer__legal .site-footer__legal-btn:hover { color: var(--gold); }

/* Below 640px the whole bar is a single stack; above it, three groups on a row. */
@media (max-width: 639.98px) {
  .site-footer__legal-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
@media (min-width: 640px) {
  .site-footer__legal .site-footer__legal-nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }
  .site-footer__legal .site-footer__legal-nav a,
  .site-footer__legal .site-footer__legal-btn { padding: 0; }
}
.site-footer__copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--bone-50);
}

/* --- Cookie consent ------------------------------------------------------- */
/* Reuses the site's .modal shell — bottom sheet on a phone, centred at
   >=1100px — so this reads as the same kind of surface as the enquiry modal
   rather than a second modal look. Only the consent-specific bits live here. */

.consent { z-index: 55; }               /* above the enquiry modal, never behind */
.consent [data-consent-view][hidden] { display: none; }

/* The heading is focused programmatically so the dialog is announced. It is
   tabindex="-1" and never keyboard reachable, so a focus ring there points at
   something the visitor cannot act on. Every real control keeps its ring. */
.consent [data-consent-heading]:focus,
.consent [data-consent-heading]:focus-visible { outline: none; }

/* A quieter tertiary action: "Cookie settings" and "Back" are ways through the
   panel, not decisions, so they must not compete with Accept and Reject. */
.consent__link {
  margin-top: 16px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink-72);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.consent__link:hover { color: var(--gold-ink); }

.consent .btn-row { margin-top: 4px; }

/* --- Category rows -------------------------------------------------------- */

.consent-row { margin-bottom: 18px; }

.consent-row__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--coal);
  cursor: pointer;
}
.consent-row__label input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--gold);
  cursor: pointer;
}
.consent-row__label input:disabled { cursor: default; opacity: 0.5; }
.consent-row__label:has(input:disabled) { cursor: default; }

.consent-row__note {
  margin: 6px 0 0 28px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-62);
}
.consent-row__note code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-72);
}

/* --- Footer mailing list -------------------------------------------------- */
/* Sits between the footer grid and the legal bar. Mobile stacks intro over
   form; the row goes side-by-side once there is room for a 52px pill beside
   the input. Works without JavaScript: the endpoint 303s back to #subscribed
   or #subscribe-failed and :target reveals the matching line. */

.site-footer__subscribe { border-top: 1px solid rgba(246, 246, 246, 0.14); }
.site-footer__subscribe-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(28px, 3.5vw, 44px) var(--gutter);
  display: grid;
  gap: clamp(20px, 3vw, 48px);
}
.subscribe__lead {
  margin: 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--bone-72);
}

.subscribe { display: flex; flex-direction: column; gap: 10px; }
.subscribe[hidden] { display: none; }
.subscribe__row { display: flex; flex-direction: column; gap: 10px; }
.subscribe__field { flex: 1 1 auto; min-width: 0; }

.subscribe__field input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  box-sizing: border-box;
  border: 1px solid rgba(246, 246, 246, 0.24);
  border-radius: var(--r-input);
  background: rgba(246, 246, 246, 0.06);
  font-family: inherit;
  font-size: 15px;
  color: var(--bone);
  transition: border-color 0.2s, background 0.2s;
}
.subscribe__field input::placeholder { color: var(--bone-50); }
.subscribe__field input:hover { border-color: rgba(246, 246, 246, 0.38); }
.subscribe__field input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: transparent;
  background: rgba(246, 246, 246, 0.1);
}
.subscribe__field input[aria-invalid="true"] { border-color: var(--error-lit); }

.subscribe__btn { flex: 0 0 auto; justify-content: center; }

.subscribe__error { color: var(--error-lit); }
.subscribe__status { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--bone-86); }
.subscribe__status[data-state="error"] { color: var(--error-lit); }
.subscribe__privacy { margin: 0; font-size: 13px; line-height: 1.55; color: var(--bone-62); }
.subscribe__privacy a { color: var(--bone-86); text-decoration: underline; text-underline-offset: 3px; }
.subscribe__privacy a:hover { color: var(--gold); }

/* Confirmation lines: hidden until :target (no-JS) or .is-shown (JS). */
.subscribe__result { display: none; margin: 0; font-size: 15px; line-height: 1.6; }
.subscribe__result:target,
.subscribe__result.is-shown { display: block; }
.subscribe__result--ok { color: var(--bone); }
.subscribe__result--ok::before { content: "\25B2"; margin-right: 8px; color: var(--gold); font-size: 11px; vertical-align: 1px; }
.subscribe__result--bad { color: var(--error-lit); }
.subscribe__result--bad a { color: inherit; text-underline-offset: 3px; }

@media (min-width: 620px) {
  .subscribe__row { flex-direction: row; align-items: flex-start; }
  .subscribe__btn { min-width: 168px; }
}

@media (min-width: 960px) {
  .site-footer__subscribe-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}

/* --- Home hero (video) --------------------------------------------------- */

.home-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 104px var(--gutter) calc(clamp(36px, 5vw, 56px) + env(safe-area-inset-bottom));
}
@media (min-width: 768px) { .home-hero { justify-content: center; } }

.home-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  z-index: 0;
}

.home-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(246, 246, 246, 0.62) 0%, rgba(246, 246, 246, 0) 16%),
    linear-gradient(180deg, rgba(246, 246, 246, 0) 34%, rgba(246, 246, 246, 0.58) 70%, rgba(246, 246, 246, 0.85) 100%);
}
@media (min-width: 768px) {
  .home-hero__scrim {
    background:
      linear-gradient(180deg, rgba(246, 246, 246, 0.55) 0%, rgba(246, 246, 246, 0) 15%),
      radial-gradient(90% 80% at 22% 55%, rgba(246, 246, 246, 0.6) 0%, rgba(246, 246, 246, 0) 62%);
  }
}

.home-hero__content { position: relative; z-index: 2; width: 100%; max-width: var(--measure); margin: 0 auto; }
.home-hero__copy { position: relative; max-width: 640px; }
.home-hero__halo {
  position: absolute;
  inset: -18px -22px;
  pointer-events: none;
  background: rgba(246, 246, 246, 0.6);
  border-radius: 26px;
  box-shadow: 0 0 52px 44px rgba(246, 246, 246, 0.6);
}
.home-hero__eyebrow {
  margin: 0 0 clamp(16px, 2.4vw, 22px);
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-62);
}
.home-hero__eyebrow .ast { color: var(--gold); font-size: 15px; }
.home-hero h1 {
  position: relative;
  margin: 0 0 clamp(16px, 2.4vw, 22px);
  font-size: clamp(30px, 5.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 600;
  color: var(--coal);
}
.home-hero h1 .ghost { visibility: hidden; }
.home-hero h1 .typed { position: absolute; inset: 0; }
.home-hero__sub {
  margin: 0 0 clamp(24px, 3vw, 32px);
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.6;
  color: var(--ink-82);
  max-width: 54ch;
}
.home-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  transition: opacity 0.48s var(--ease), transform 0.48s var(--ease);
  opacity: 0;
  transform: translateY(10px);
}
.home-hero__ctas.is-revealed { opacity: 1; transform: translateY(0); }
.home-hero__note {
  margin: clamp(22px, 2.6vw, 28px) 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 14px;
  color: var(--ink-70);
}

.caret {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--gold);
  vertical-align: baseline;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* --- Use-cases 3D scene -------------------------------------------------- */

.scene {
  position: absolute;
  inset: 0 -16% 0 30%;
  z-index: 0;
  pointer-events: none;
  transform: translateY(15px);
  opacity: 0;
  transition: opacity 0.8s var(--ease);
  mix-blend-mode: multiply;
  display: none;
}
.scene.is-live { opacity: 1; }
.scene canvas { width: 100%; height: 100%; display: block; }
.scene-scrim {
  display: none;
  background: linear-gradient(90deg, rgba(246, 246, 246, 0.94) 0%, rgba(246, 246, 246, 0.72) 36%, rgba(246, 246, 246, 0) 64%);
}
@media (min-width: 900px) {
  .has-scene .scene, .has-scene .scene-scrim { display: block; }
  .has-scene .hero__lead { max-width: min(42ch, 480px); }
}

/* --- Reveal on scroll ---------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.48s var(--ease), transform 0.48s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* --- Reduced motion ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .home-hero__ctas { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .scene { display: none !important; }
  .caret { display: none; }
}

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

.svc-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(108px, 14vh, 140px) var(--gutter) clamp(56px, 9vh, 88px);
}
.svc-hero__content { position: relative; z-index: 1; width: 100%; max-width: var(--measure); margin: 0 auto; }

.svc-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 5.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.032em;
  font-weight: 600;
}
.svc-hero__lead {
  margin: 0 0 22px;
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.6;
  color: var(--ink-78);
  text-wrap: pretty;
}
.svc-hero__def {
  margin: 0 0 clamp(32px, 5vh, 48px);
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  background: rgba(204, 158, 0, 0.07);
  border-radius: 0 var(--r-input) var(--r-input) 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-78);
}

/* Word-by-word rise on the phase heading */
.word-rise {
  margin: 0 0 clamp(22px, 3.4vh, 30px);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--coal);
}
.word-rise span {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.22, 1, .36, 1), transform 0.7s cubic-bezier(.22, 1, .36, 1);
}
.word-rise.is-in span { opacity: 1; transform: translateY(0); }
.word-rise span:nth-child(1) { transition-delay: 0.10s; }
.word-rise span:nth-child(2) { transition-delay: 0.18s; }
.word-rise span:nth-child(3) { transition-delay: 0.26s; }
.word-rise span:nth-child(4) { transition-delay: 0.34s; }
.word-rise span:nth-child(5) { transition-delay: 0.42s; }
.word-rise span:nth-child(6) { transition-delay: 0.50s; }

.svc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(16px, 2vw, 20px);
  align-items: stretch;
}
.svc-card {
  background: rgba(246, 246, 246, 0.4);
  border: 1px solid rgba(16, 16, 16, 0.18);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 16px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.22, 1, .36, 1), transform 0.7s cubic-bezier(.22, 1, .36, 1);
}
.svc-card.is-in { opacity: 1; transform: translateY(0); }
.svc-card:nth-child(1) { transition-delay: 0.40s; }
.svc-card:nth-child(2) { transition-delay: 0.55s; }
.svc-card:nth-child(3) { transition-delay: 0.70s; }
.svc-card__media { width: 100%; aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.svc-card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-card__body { padding: 24px 28px 28px; }
.svc-card__body h3 { margin: 0 0 14px; font-size: 18px; font-weight: 600; color: var(--coal); letter-spacing: -0.01em; }
.svc-card__body p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-72); }

@media (prefers-reduced-motion: reduce) {
  .word-rise span, .svc-card { opacity: 1; transform: none; }
}

/* --- Stage rows ---------------------------------------------------------- */

.stage-row {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(52px, 6vw, 84px) var(--gutter);
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 860px) {
  .stage-row { grid-template-columns: minmax(180px, 260px) 1fr; }
}
.stage-row__kicker {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.stage-row__num {
  margin: 0 0 14px;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: rgba(16, 16, 16, 0.14);
}
.stage-row__chip {
  margin: 0;
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--gold-ink);
  background: rgba(204, 158, 0, 0.12);
  border-radius: var(--r-pill);
  padding: 6px 12px;
}
.stage-row h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.024em;
  font-weight: 600;
}
.stage-row__intro {
  margin: 0 0 26px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-78);
  max-width: 66ch;
  text-wrap: pretty;
}

.output-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.output-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 13px 16px;
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-input);
  font-size: 15px;
  line-height: 1.5;
}
.output-list .ast { color: var(--gold); font-size: 12px; }

/* --- Evaluation chain (coal) --------------------------------------------- */

.eval-chain {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}
.eval-chain li {
  flex: 1 1 190px;
  border: 1px solid rgba(246, 246, 246, 0.2);
  border-radius: var(--r-acc);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.eval-chain li.arrow {
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(246, 246, 246, 0.4);
  font-size: 18px;
}
.eval-chain li.is-final { background: rgba(204, 158, 0, 0.12); border-color: rgba(204, 158, 0, 0.5); }
.eval-chain .code { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--gold); }
.eval-chain .label { font-size: 16px; line-height: 1.4; }

/* --- Numbered fit list --------------------------------------------------- */

.fit-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.fit-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 17px;
  line-height: 1.5;
}
.fit-list .num { font-family: var(--font-mono); font-size: 11px; color: var(--gold-ink); }

.split--fit { grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .split--fit { grid-template-columns: minmax(260px, 420px) 1fr; }
}

/* --- About hero: the heart sandwich -------------------------------------- */
/* Line 1 sits behind the artwork, lines 2–3 in front, both copies sharing
   identical geometry so the overlap registers exactly. Box geometry is
   measured in site.js — see measureArt(). */

.about-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(16px, 3vh, 32px);
  overflow: hidden;
  background: var(--bone);
  color: var(--coal);
  padding: clamp(88px, 11vh, 128px) var(--gutter) clamp(24px, 4vh, 44px);
}
.about-hero__ground {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 84% 76% at 52% 46%, #FFFFFF 0%, #F1F0EE 46%, #DCDAD6 100%);
}
.about-hero__pool {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 46% 54% at 28% 52%, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0) 72%);
}
.about-hero__row {
  position: relative;
  z-index: 6;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: baseline;
  justify-content: space-between;
}
.about-hero__foot {
  position: relative;
  z-index: 6;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}
.about-hero__foot p {
  margin: 0;
  font-size: clamp(14px, 1.5vw, 16.5px);
  line-height: 1.55;
  color: var(--ink-72);
  max-width: 44ch;
  text-wrap: pretty;
}

.heart-canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  min-height: 0;
}

/* Both headline layers share these values exactly */
.heart-headline {
  position: absolute;
  left: 50%;
  top: var(--headline-top, 254px);
  transform: translate(-50%, -50%);
  width: 100%;
  margin: 0;
  color: var(--coal);
  font-size: clamp(32px, calc(8.4vw + 2px), 120px);
  line-height: 0.9;
  letter-spacing: -0.034em;
  font-weight: 600;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 0 clamp(14px, 3.4vw, 44px) rgba(246, 246, 246, 0.92);
}
.heart-headline span { display: block; white-space: nowrap; }
.heart-headline .l1 { margin-left: 3%; }
.heart-headline .l2 { margin-left: 12%; }
.heart-headline .l3 { margin-left: 22%; }
.heart-headline--back { z-index: 1; }
.heart-headline--back .l2,
.heart-headline--back .l3 { visibility: hidden; }
.heart-headline--front { z-index: 3; }
.heart-headline--front .l1 { visibility: hidden; }

.heart-figure {
  position: absolute;
  z-index: 2;
  left: var(--art-left, 22%);
  top: var(--art-top, 50%);
  width: var(--art-width, 26%);
  height: var(--art-height, 116%);
  transform: translateY(-50%);
  margin: 0;
  pointer-events: none;
}
.heart-glow {
  position: absolute;
  inset: -40%;
  transform: translate(var(--glow-x, 0px), var(--glow-y, 0px));
  background: radial-gradient(circle 22vmin at var(--gx, 50%) var(--gy, 50%), rgba(204, 158, 0, 0.16) 0%, rgba(204, 158, 0, 0.06) 46%, rgba(204, 158, 0, 0) 72%);
  transition: background 220ms var(--ease);
}
.heart-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  /* Owner-positioned offsets, chosen against the 1240px canvas. site.js
     scales them down with the canvas so the heart stays behind line 1 on
     narrow screens instead of drifting over the lower lines. */
  left: var(--img-off-x, 96px);
  top: var(--img-off-y, 138px);
}
/* Ceramic layer over the lit one; the pointer punches a feathered hole */
.heart-figure .heart-ceramic {
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: -webkit-mask-image 200ms var(--ease), mask-image 200ms var(--ease);
}

.heart-hint {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(16, 16, 16, 0.68);
  pointer-events: none;
}
.heart-hint .arrow { color: var(--gold-ink); }

/* No cursor to track: show the lit heart outright */
.about-hero.is-still .heart-ceramic { opacity: 0; }
.about-hero.is-still .heart-hint { display: none; }

@media (prefers-reduced-motion: reduce) {
  .heart-figure .heart-ceramic { transition: none; }
}

/* --- About pillars + closing --------------------------------------------- */

.pillar-grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.pillar {
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-card);
  padding: clamp(22px, 2.6vw, 30px);
  box-shadow: var(--shadow-paper);
}
.pillar__code { margin: 0 0 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--gold-ink); }
.pillar h2 { margin: 0 0 12px; font-size: 22px; font-weight: 600; letter-spacing: -0.018em; }
.pillar p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-76); }

.btn--on-dark {
  border: 1px solid rgba(246, 246, 246, 0.3);
  color: var(--bone);
  background: transparent;
}
.btn--on-dark:hover {
  background: var(--bone);
  color: var(--coal);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
  transform: translateY(-1px);
}
.btn--on-dark:active { transform: translateY(1px) scale(0.98); }

/* Same machined-gold pill as the footer CTA, minus the coin */
.btn--gold-flat {
  background: linear-gradient(180deg, var(--gold-lit) 0%, var(--gold) 58%, var(--gold-deep) 100%);
  color: var(--coal);
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255, 224, 130, 0.55);
  box-shadow: var(--shadow-pop), inset 0 1px 0 rgba(255, 236, 170, 0.8);
}
.btn--gold-flat:hover {
  background: var(--gold);
  color: var(--coal);
  box-shadow: 0 16px 40px -8px rgba(242, 193, 46, 0.55), inset 0 1px 0 rgba(255, 236, 170, 0.9);
  transform: translateY(-1px);
}
.btn--gold-flat:active { transform: translateY(1px) scale(0.98); }

.about-close { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .about-close { grid-template-columns: 1fr auto; } }

/* --- Contact: Bottleneck Assessment -------------------------------------- */

.assess {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) var(--gutter) clamp(64px, 8vw, 104px);
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .assess { grid-template-columns: minmax(240px, 320px) 1fr; }
  .assess__aside { position: sticky; top: 96px; }
}

.assess__aside p.kicker {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.assess__steps { margin: 0 0 24px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.assess__steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-55); }
.assess__steps .num {
  font-family: var(--font-mono);
  font-size: 11px;
  width: 26px;
  height: 26px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-55);
  flex: 0 0 auto;
}
.assess__steps li[data-state="current"] { color: var(--coal); }
.assess__steps li[data-state="current"] .num { border-color: var(--coal); background: var(--coal); color: var(--bone); }
.assess__steps li[data-state="done"] { color: var(--ink-72); }
.assess__steps li[data-state="done"] .num { border-color: var(--gold); background: var(--gold); color: var(--coal); }
.assess__aside .helper { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(16, 16, 16, 0.66); max-width: 34ch; }

.assess__card {
  background: var(--white);
  border: 1px solid rgba(16, 16, 16, 0.12);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-paper);
  overflow: hidden;
}
.assess__head {
  padding: 18px clamp(20px, 3vw, 32px);
  border-bottom: 1px solid rgba(16, 16, 16, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
}
.assess__head .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-62);
}
.assess__bars { display: flex; gap: 6px; }
.assess__bars span { width: 34px; height: 4px; border-radius: var(--r-pill); background: var(--rule); transition: background-color 0.2s; }
.assess__bars span.is-on { background: var(--gold); }

.assess__form { padding: clamp(22px, 3vw, 34px); }

.assess-step { display: none; }
.assess-step.is-active { display: block; }
.assess-step h2 { margin: 0 0 8px; font-size: clamp(21px, 2.6vw, 26px); font-weight: 600; letter-spacing: -0.02em; }
.assess-step .prompt { margin: 0 0 26px; font-size: 15.5px; line-height: 1.6; color: var(--ink-70); }

.error-summary {
  display: none;
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid var(--error);
  border-left: 3px solid var(--error);
  border-radius: var(--r-input);
  background: rgba(163, 58, 0, 0.06);
  font-size: 15px;
  line-height: 1.55;
  color: #7A2C00;
}
.error-summary.is-shown { display: block; }

.assess fieldset { margin: 0 0 26px; padding: 0; border: 0; }
.assess legend {
  padding: 0;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.assess legend.plain { font-family: inherit; font-size: 15px; font-weight: 500; letter-spacing: normal; text-transform: none; color: var(--coal); }

.choice-stack { display: flex; flex-direction: column; gap: 8px; }
.choice-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid rgba(16, 16, 16, 0.16);
  border-radius: var(--r-input);
  font-size: 15.5px;
  cursor: pointer;
}
.choice:hover { background: rgba(16, 16, 16, 0.03); }
.choice input { accent-color: var(--gold); width: 18px; height: 18px; }
.choice--pill { border-radius: var(--r-pill); padding: 11px 18px; gap: 10px; }
.choice--block { align-items: flex-start; padding: 16px; line-height: 1.6; font-size: 15px; }
.choice--block input { margin-top: 3px; }

.assess-field { display: block; }
.assess-field + .assess-field { margin-top: 20px; }
.assess-field label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 500; }
.assess-field label .optional { color: var(--ink-55); font-weight: 400; }
.assess-field input,
.assess-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 15px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-input);
  font-family: inherit;
  font-size: 15.5px;
  background: var(--white);
  color: var(--coal);
  box-sizing: border-box;
}
.assess-field textarea { padding: 13px 15px; line-height: 1.5; resize: vertical; min-height: 0; }
.assess-field input[aria-invalid="true"], .assess-field textarea[aria-invalid="true"] { border-color: var(--error); }
.assess-field .field__error, .assess fieldset .field__error { margin: 8px 0 0; font-size: 14px; }

.assess-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.assess-grid .assess-field + .assess-field { margin-top: 0; }

.assess__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(16, 16, 16, 0.12);
}
.assess__controls [hidden] { display: none; }

/* --- Numbered step list (coal) ------------------------------------------- */

.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(246, 246, 246, 0.18);
}
.step-list li {
  display: grid;
  gap: 10px 28px;
  grid-template-columns: 1fr;
  padding: 22px 0;
  border-bottom: 1px solid rgba(246, 246, 246, 0.18);
}
@media (min-width: 860px) {
  .step-list li { grid-template-columns: minmax(90px, 130px) 1fr; }
}
.step-list__num { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--gold); }
.step-list__text { font-size: 17px; line-height: 1.55; color: rgba(246, 246, 246, 0.9); }

/* --- Legal disclaimer + review date -------------------------------------- */

.disclaimer {
  margin: 0 0 34px;
  padding: clamp(20px, 2.4vw, 26px);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-acc);
  background: var(--white);
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(16, 16, 16, 0.8);
  max-width: 78ch;
}
.reviewed {
  margin: 0 0 34px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-55);
}

/* --- Insights hub -------------------------------------------------------- */

.post-grid { display: grid; gap: clamp(14px, 2vw, 20px); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 980px; }
.post-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.4vw, 26px);
  background: var(--white);
  border: 1px solid rgba(16, 16, 16, 0.12);
  border-radius: var(--r-card);
  text-decoration: none;
  box-shadow: var(--shadow-paper);
  transition: border-color 0.2s;
}
.post-card:hover { border-color: var(--coal); color: var(--coal); }
.post-card__cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.post-card__title { font-size: clamp(19px, 2.2vw, 23px); font-weight: 600; letter-spacing: -0.018em; color: var(--coal); line-height: 1.25; }
.post-card__desc { font-size: 15px; line-height: 1.6; color: var(--ink-72); }
.post-card__meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--ink-55); }

.lane-grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: start; }
.lane { border-top: 3px solid var(--gold); padding-top: 16px; }
.lane h2 { margin: 0 0 12px; font-size: 18px; font-weight: 600; letter-spacing: -0.014em; }
.lane ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lane li { font-size: 14.5px; line-height: 1.55; color: var(--ink-70); }

.kicker-label { margin: 0 0 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-50); }

/* --- Article ------------------------------------------------------------- */

.article-wrap { max-width: 760px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) var(--gutter) clamp(48px, 6vw, 72px); }
.article-lede { margin: 0 0 28px; font-size: clamp(17.5px, 2vw, 19.5px); line-height: 1.65; color: var(--ink-86); text-wrap: pretty; }
.article-wrap h2 { margin: clamp(40px, 5vw, 56px) 0 16px; font-size: clamp(21px, 2.6vw, 27px); letter-spacing: -0.018em; font-weight: 600; scroll-margin-top: 96px; }
.article-wrap p { margin: 0 0 24px; font-size: clamp(16px, 1.3vw, 17.5px); line-height: 1.65; color: rgba(16, 16, 16, 0.82); text-wrap: pretty; }
.article-wrap ul:not([class]) { margin: 0 0 24px; padding-left: 22px; }
.article-wrap ul:not([class]) li { font-size: clamp(16px, 1.3vw, 17.5px); line-height: 1.65; color: rgba(16, 16, 16, 0.82); margin-bottom: 8px; }
.article-wrap a:not(.btn):not(.post-card) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.article-byline { margin: 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.05em; line-height: 1.7; color: var(--ink-70); }
.article-byline a { color: var(--coal); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.article-cat { margin: 0 0 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }

.numbered { margin: 0 0 28px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.numbered li { display: flex; gap: 14px; align-items: baseline; font-size: 16px; line-height: 1.65; color: var(--ink-82); }
.numbered .num { font-family: var(--font-mono); font-size: 11px; color: var(--gold-ink); flex-shrink: 0; }
.numbered strong { font-weight: 600; }

.pull {
  margin: 0 0 28px;
  padding: clamp(18px, 2.4vw, 24px);
  border: 1px solid rgba(16, 16, 16, 0.12);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-input);
  background: var(--white);
}
.pull p { margin: 0; font-size: 15.5px; line-height: 1.7; color: rgba(16, 16, 16, 0.8); }

/* Markdown-sourced articles: bare elements the hand-built pages never used. */
.article-wrap h3 { margin: 28px 0 12px; font-size: clamp(17.5px, 1.8vw, 20px); letter-spacing: -0.014em; font-weight: 600; }
.article-wrap h4 { margin: 24px 0 10px; font-size: clamp(16px, 1.5vw, 17.5px); letter-spacing: -0.01em; font-weight: 600; }
.article-wrap ol:not([class]) { margin: 0 0 24px; padding-left: 22px; }
.article-wrap ol:not([class]) li { font-size: clamp(16px, 1.3vw, 17.5px); line-height: 1.65; color: rgba(16, 16, 16, 0.82); margin-bottom: 8px; }
.article-wrap code { font-family: var(--font-mono); font-size: 0.9em; background: rgba(16, 16, 16, 0.06); border-radius: 4px; padding: 1px 5px; }
.article-wrap pre { margin: 0 0 24px; padding: 14px 18px; background: var(--white); border: 1px solid var(--rule-soft); border-radius: var(--r-input); overflow-x: auto; }
.article-wrap pre code { background: none; padding: 0; font-size: 13.5px; line-height: 1.6; }
.article-wrap hr { margin: 32px 0; border: 0; border-top: 1px solid var(--rule); }

/* --- POPIA pillar -------------------------------------------------------- */

.answer-h2 { margin: 0 0 16px; font-size: clamp(22px, 3vw, 30px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; max-width: 30ch; }
.answer-p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.7; color: rgba(16, 16, 16, 0.8); max-width: 70ch; text-wrap: pretty; }

.compare-grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); align-items: start; }
.compare {
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-card);
  padding: clamp(20px, 2.4vw, 28px);
}
.compare__head { margin: 0 0 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.compare ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.compare li { display: flex; gap: 10px; font-size: 15.5px; line-height: 1.55; }

.plane-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  background: var(--bone-rule);
  border: 1px solid var(--bone-rule);
  border-radius: var(--r-card);
  overflow: hidden;
}
.plane { background: var(--coal); padding: clamp(20px, 2.4vw, 28px); }
.plane__code { margin: 0 0 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--gold); }
.plane__title { margin: 0 0 12px; font-size: 17px; font-weight: 500; color: var(--bone); }
.plane__desc { margin: 0; font-size: 15px; line-height: 1.65; color: var(--bone-72); }

.qa-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); max-width: 860px; }
.qa-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1.55;
}
.qa-list .num { font-family: var(--font-mono); font-size: 11px; color: var(--gold-ink); }

.source-list { margin: 0 0 34px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.source-list li { font-size: 15.5px; line-height: 1.6; }

/* --- Use-case landing pages ---------------------------------------------- */

.two-col { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.three-col { display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }

.col-label {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.col-copy { margin: 0; font-size: 16px; line-height: 1.7; color: rgba(16, 16, 16, 0.8); text-wrap: pretty; }

.spec-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.spec-list li { display: flex; gap: 10px; font-size: 15px; line-height: 1.55; color: rgba(16, 16, 16, 0.8); }
.spec-list .mark { color: var(--gold); }
.spec-list--dot .mark { color: rgba(16, 16, 16, 0.35); }

.system-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(14px, 1.8vw, 18px);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.system-steps li {
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-card-sm);
  padding: 20px;
}
.system-steps .code { margin: 0 0 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--gold-ink); }
.system-steps p:last-child { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-82); }

.measure-pills { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.measure-pills li {
  border: 1px dashed rgba(246, 246, 246, 0.32);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  font-size: 15px;
}

.related-list { margin: 0 0 32px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.related-list li { font-size: 15.5px; }

/* --- Touch-target extensions (visual size unchanged) ---------------------- */

.breadcrumb a { display: inline-block; padding: 12px 4px; margin: -12px -4px; }
.wordmark { padding: 10px 6px; margin: -10px -6px; }
.site-footer nav a { padding: 8px 0; margin: -2px 0; }
.site-footer__email, .mobile-menu__email { padding: 10px 0; }
.link-underline { text-underline-offset: 3px; }
.related-list li a, .source-list li a { display: inline-block; padding: 6px 0; margin: -6px 0; }

/* --- Button physics for the remaining controls ---------------------------- */

.nav__cta, .mobile-menu__cta, .tab, .acc-header, .modal__close, .hamburger {
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.nav__cta:active, .mobile-menu__cta:active, .tab:active,
.acc-header:active, .modal__close:active { transform: translateY(1px) scale(0.98); transition-duration: 80ms; }
.hamburger:active { transform: scale(0.92); transition-duration: 80ms; }

.nav__cta:hover {
  background: linear-gradient(180deg, #2A2A2A 0%, var(--coal) 55%, #060606 100%);
  border-color: var(--coal);
  color: var(--bone);
  box-shadow: 0 10px 24px -12px rgba(16, 16, 16, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.mobile-menu__cta:hover {
  background: linear-gradient(180deg, #2A2A2A 0%, var(--coal) 55%, #060606 100%);
  border-color: var(--coal);
  color: var(--bone);
}

/* Selected tab carries the machined-coal ground of the primary pill */
.tab:hover { background: rgba(16, 16, 16, 0.04); }
.tab[aria-selected="true"] {
  background: linear-gradient(180deg, #2A2A2A 0%, var(--coal) 55%, #060606 100%);
  color: var(--bone);
  border-color: var(--coal);
  box-shadow: 0 8px 20px -10px rgba(16, 16, 16, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.tab[aria-selected="true"]:hover { background: linear-gradient(180deg, #2A2A2A 0%, var(--coal) 55%, #060606 100%); }

.acc-header:hover { background: rgba(16, 16, 16, 0.03); border-color: var(--rule-strong); box-shadow: var(--shadow-paper); }

/* Assessment/next controls in the stepper are .btn already; the glyph in the
   accordion answers the state change */
.acc-header__glyph { transition: transform 0.24s var(--ease); }
.acc-header[aria-expanded="true"] .acc-header__glyph { transform: rotate(180deg); }

/* --- Provider grid (home: model / platform optionality) ------------------ */

.provider-grid {
  margin: 0 0 clamp(24px, 3vw, 32px);
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) {
  .provider-grid { grid-template-columns: repeat(4, 1fr); }
}

.provider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #2A2A2A;
}
.provider__mark { width: clamp(40px, 5vw, 56px); height: clamp(40px, 5vw, 56px); flex: 0 0 auto; }
.provider__name { display: flex; flex-direction: column; gap: 2px; }
.provider__name .brand { font-size: clamp(15px, 1.8vw, 19px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.provider__name .product { font-size: clamp(14px, 1.7vw, 18px); font-weight: 400; color: var(--ink-72); line-height: 1.25; }

.provider-note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-55);
  max-width: 78ch;
}

/* --- Homepage refinement (2026-08) ---------------------------------------- */

/* Qualifier line: the engagement promise, set in the mono label voice */
.qualifier {
  margin: clamp(18px, 2.2vw, 24px) 0 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.qualifier--dark { margin: 0; }
.qualifier--on-coal { color: var(--gold); }

/* Stage cards: outcome row under a dashed rule */
.stage-card__outcome {
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(16, 16, 16, 0.16);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-76);
}
.stage-card__outcome .label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
/* The outcome row sits on the card floor so the three cards align */
.stage-card { height: 100%; }
.stage-card__outcome { margin-top: auto; }

/* Governance grid: balanced 3x2 desktop / 2x3 tablet / 1x6 mobile */
.tile-grid--balanced { grid-template-columns: 1fr; }
@media (min-width: 640px) { .tile-grid--balanced { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tile-grid--balanced { grid-template-columns: repeat(3, 1fr); } }
.tile-grid--balanced li {
  min-height: 148px;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.tile-grid--balanced .label { font-weight: 500; }
.tile-grid--balanced .desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--bone-62);
}
/* Hover/focus: inset gold hairline + lift in tone — no layout movement */
.tile-grid--balanced li:hover,
.tile-grid--balanced li:focus-visible {
  background: #1A1A1A;
  box-shadow: inset 0 0 0 1px rgba(204, 158, 0, 0.55);
  outline: none;
}

/* Deliverables grid: visually lighter than governance */
.deliverable-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .deliverable-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .deliverable-grid { grid-template-columns: repeat(3, 1fr); } }
.deliverable-grid li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-card-sm);
}
.deliverable-grid .code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--gold-ink);
}
.deliverable-grid .label { font-size: 15.5px; line-height: 1.5; color: var(--ink-86); }

/* Method preview cards stretch so the outcome rows sit on one line */
.card-grid--tight { align-items: stretch; }

/* --- Brand lockup: triangle mark ------------------------------------------ */

.wordmark__mark { width: clamp(22px, 4vw, 27px); height: auto; flex: 0 0 auto; color: var(--coal); }
.site-footer__mark { width: 24px; height: auto; flex: 0 0 auto; color: var(--bone); }

/* --- Triangle accent glyph ------------------------------------------------ */
/* The mark's apex, distilled: a single gold triangle wherever the asterisk
   accent used to sit. Sized down so it reads as punctuation, not an icon. */

.tri { font-size: 10px !important; }
.ticks li, .spec-list li { align-items: baseline; }

/* --- Hero copy panel ------------------------------------------------------ */
/* The translucent panel now hugs the text block exactly, like the home halo,
   instead of floating at a fixed width behind it. */

.hero__copy { position: relative; max-width: 680px; }
.hero__copy::before {
  content: "";
  position: absolute;
  inset: -22px -26px;
  background: rgba(248, 247, 244, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--r-panel);
  box-shadow: 0 0 56px 44px rgba(248, 247, 244, 0.55);
  pointer-events: none;
}
.hero__copy > * { position: relative; }
@media (max-width: 640px) {
  .hero__copy::before { inset: -14px -16px; border-radius: 22px; }
}

/* --- About hero: stacked mobile ------------------------------------------- */
/* Below 860px the sandwich unstacks: full headline, then the lit heart,
   no overlap and no stretched empty band. site.js skips the measured
   geometry in this mode. */

@media (max-width: 859px) {
  .about-hero {
    min-height: 0;
    grid-template-rows: auto auto auto;
    gap: clamp(20px, 4vw, 28px);
    padding-top: 96px;
  }
  .heart-canvas { display: flex; flex-direction: column; }
  .heart-headline--front { display: none; }
  .heart-headline--back {
    position: static;
    transform: none;
    width: auto;
    font-size: clamp(34px, 10vw, 56px);
  }
  .heart-headline--back .l2,
  .heart-headline--back .l3 { visibility: visible; }
  .heart-headline--back .l1 { margin-left: 0; }
  .heart-headline--back .l2 { margin-left: 6%; }
  .heart-headline--back .l3 { margin-left: 12%; }
  .heart-figure {
    --img-off-x: 0px;
    --img-off-y: 0px;
    /* relative, not static: the images inside position against the figure.
       The measured left/top offsets must clear too — as relative offsets
       they shift the box visually even though it is in flow. */
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: min(62vw, 280px);
    height: auto;
    aspect-ratio: 537 / 819;
    margin: clamp(20px, 5vw, 32px) auto 0;
  }
  .heart-hint { display: none; }
}

/* --- Featured cross-industry use case (use-cases page) -------------------- */

.featured-case { padding: clamp(24px, 3vw, 36px); }
.featured-case__cat {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.featured-case__title {
  margin: 0 0 22px;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
/* Four equal columns desktop, 2x2 tablet, single column mobile */
.usecase-dl--featured { grid-template-columns: 1fr; }
@media (min-width: 640px) { .usecase-dl--featured { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .usecase-dl--featured { grid-template-columns: repeat(4, 1fr); } }

.cluster-intro { margin-bottom: clamp(24px, 3vw, 32px); }
.cluster-intro h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.cluster-intro p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-72);
  max-width: 62ch;
}

/* Cross-industry section: shared num label + divider between examples */
.featured-case__num {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.featured-case__divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: clamp(26px, 3.4vw, 40px) 0;
}

/* --- Article: comparison strip, TOC, table, author footer ----------------- */

.compare-strip {
  margin: 0 0 26px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-input);
  background: var(--white);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.compare-strip p { margin: 0 !important; font-size: 15.5px !important; line-height: 1.6 !important; }
.compare-strip strong { font-weight: 600; }

.toc {
  margin: 0 0 8px;
  border: 1px solid var(--rule);
  border-radius: var(--r-acc);
  background: rgba(16, 16, 16, 0.02);
}
.toc summary {
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-62);
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toc summary::after { content: "+"; color: var(--gold); font-size: 16px; margin-left: auto; font-family: var(--font-sans); }
.toc details[open] summary::after { content: "\2212"; }
.toc ol {
  margin: 0;
  padding: 0 18px 16px 18px;
  list-style: none;
  display: grid;
  gap: 6px 24px;
}
@media (min-width: 640px) { .toc ol { grid-template-columns: 1fr 1fr; } }
.toc a {
  font-size: 15px;
  line-height: 1.5;
  color: var(--coal);
  text-decoration: none;
  display: inline-block;
  padding: 3px 0;
}
.toc a:hover { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }

.eval-table-wrap { margin: 0 0 24px; }
.eval-table-wrap > figcaption {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-62);
}
.eval-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--r-acc);
  background: var(--white);
}
.eval-table { border-collapse: collapse; width: 100%; min-width: 640px; }
.eval-table th, .eval-table td {
  padding: 12px 16px;
  font-size: 14.5px;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule-soft);
}
.eval-table thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
  background: rgba(16, 16, 16, 0.02);
  border-bottom: 1px solid var(--rule);
}
.eval-table tbody th { font-weight: 500; color: var(--coal); }
.eval-table tbody td { color: var(--ink-78); }
.eval-table tbody tr:last-child th, .eval-table tbody tr:last-child td { border-bottom: 0; }

.article-author {
  margin: clamp(36px, 4.4vw, 52px) 0 0;
  padding: clamp(18px, 2.4vw, 24px);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-card-sm);
  background: var(--white);
}
.article-author p:last-child { margin: 0 !important; font-size: 15.5px !important; }

.related { margin-top: clamp(32px, 4vw, 44px); }
.related .kicker-label { margin-bottom: 14px; }

/* --- POPIA article components -------------------------------------------- */
h2[id], h3[id], [id].notice { scroll-margin-top: 96px; }

.answer-box {
  margin: 0 0 18px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-card-sm);
  max-width: 74ch;
}
.answer-box p { margin: 0; font-size: 16.5px; line-height: 1.68; color: var(--ink-82); text-wrap: pretty; }

.terms-dl { margin: 6px 0 0; display: flex; flex-direction: column; max-width: 860px; border-top: 1px solid var(--rule); }
.terms-dl > div { display: grid; gap: 4px 28px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 720px) { .terms-dl > div { grid-template-columns: 220px 1fr; } }
.terms-dl dt { font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; }
.terms-dl dd { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-76); max-width: 66ch; }

.scope-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px 28px;
  max-width: 860px;
}
@media (min-width: 640px) { .scope-list { grid-template-columns: 1fr 1fr; } }
.scope-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-78);
}
.scope-list li::before {
  content: "\25B2";
  position: absolute;
  left: 0;
  top: 0.35em;
  font-size: 7px;
  color: var(--gold-deep);
}

.qa-h3 {
  margin: clamp(26px, 3.4vw, 36px) 0 4px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.callout--limit {
  margin-top: clamp(24px, 3vw, 32px);
  background: rgba(246, 246, 246, 0.06);
  border-left: 3px solid var(--gold);
  color: var(--bone);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 76ch;
}

.plane-notes {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 76ch;
}
.plane-notes li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--bone-72);
}
.plane-notes li::before {
  content: "\25B2";
  position: absolute;
  left: 0;
  top: 0.4em;
  font-size: 7px;
  color: var(--gold);
}

.src-tag {
  display: block;
  margin: 0 0 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.source-list li + li { margin-top: 6px; }

/* Forced-colours: keep card and plane boundaries visible when backgrounds drop. */
@media (forced-colors: active) {
  .plane, .answer-box, .notice, .toc, .compare, .article-author, .post-card, .btn { border: 1px solid CanvasText; }
  .callout, .callout--limit { border-left: 3px solid CanvasText; }
}

/* The cursor hint describes a hover interaction; never show it to a device
   that cannot perform it (belt-and-braces alongside the JS is-still class,
   and it also covers the no-JS case). */
@media (hover: none), (pointer: coarse) {
  .heart-hint { display: none; }
}

/* --- B-BBEE & ESD page components ---------------------------------------- */
.step-list__text strong { display: block; margin-bottom: 4px; color: var(--bone); font-weight: 600; letter-spacing: -0.01em; }

.incl-grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}
.incl {
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-card-sm);
  padding: clamp(20px, 2.4vw, 26px);
}
.incl h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.014em; }
.incl p:last-child { margin: 0; font-size: 15px; line-height: 1.62; color: var(--ink-76); }

.faq { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.faq details {
  border: 1px solid var(--rule);
  border-radius: var(--r-acc);
  background: var(--white);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  min-height: 44px;
}
.faq summary h3 { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: -0.012em; line-height: 1.4; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 18px; font-family: var(--font-sans); flex-shrink: 0; }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq__a { margin: 0; padding: 0 18px 16px; font-size: 15.5px; line-height: 1.65; color: var(--ink-76); max-width: 72ch; }

.review-list {
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--ink-70);
}

/* --- Bottleneck Assessment refinements ------------------------------------ */
.assess__card { scroll-margin-top: 84px; }

.field-hint { margin: -2px 0 8px; font-size: 13.5px; line-height: 1.55; color: var(--ink-62); max-width: 62ch; }

.notice--field { margin: 10px 0 0; padding: 10px 14px; font-size: 13.5px; line-height: 1.55; }

.error-summary h3 { margin: 0 0 8px; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; color: inherit; }
.error-summary ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.error-summary a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.reveal-field { margin-top: 12px; }
.reveal-field input { max-width: 480px; }

.assess-privacy { margin: 22px 0 14px; font-size: 14px; line-height: 1.6; color: var(--ink-70); max-width: 62ch; }

/* Selection is shown by the control mark AND the row treatment; keyboard focus
   rings the whole row. */
.choice:has(input:checked) { border-color: var(--gold-deep); background: rgba(204, 158, 0, 0.07); }
.choice:has(input:focus-visible) { outline: 2px solid var(--gold-ink); outline-offset: 2px; }

/* Completed steps in the side rail are revisitable */
.assess__steps li[data-state="done"] { cursor: pointer; }
.assess__steps li[data-state="done"]:hover .step-name { text-decoration: underline; text-underline-offset: 3px; }
.assess__steps li[data-state="done"]:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 4px; }

/* Mobile keeps the compact "Step X of 4" head; the labelled rail is desktop */
@media (max-width: 899px) {
  .assess__steps { display: none; }
}

/* --- Offices ------------------------------------------------------------- */
/* Used by the two office pages and the "Our offices" section on Contact. */

.office-card { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.office-card__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.office-card__country {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-ink);
  background: rgba(204, 158, 0, 0.12);
  border-radius: var(--r-pill);
  padding: 4px 9px;
}
.office-card__place {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.office-card h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.018em; }
.office-card .btn-row { margin-top: auto; padding-top: 4px; }

/* Address / phone / email pairs. A description list, because that is what
   these are — not a table and not a paragraph. */
.office-dl { margin: 0; display: grid; gap: 16px; }
.office-dl > div { display: grid; gap: 4px; }
.office-dl dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.office-dl dd { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-82); }
.office-dl dd a { color: var(--coal); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.office-dl dd a:hover { text-decoration-color: var(--coal); }
.office-dl address { font-style: normal; }
.section--coal .office-dl dt { color: var(--bone-55); }
.section--coal .office-dl dd { color: var(--bone-76); }
.section--coal .office-dl dd a { color: var(--bone); }

/* The base .measure-pills border is bone, for coal sections. The office pages
   use the same component on a light ground, so it needs an ink border. */
.measure-pills--light li { border-color: rgba(16, 16, 16, 0.28); color: var(--ink-82); }
