/* ============================================================
   ACTUORA INC — actuora.ai
   Design system replicated from pleurat.com:
   cream ruled paper, warm black ink, amber accent, square corners,
   dotted-grid workspace panels, General Sans, wide 96vw measure.
   ============================================================ */

:root {
  /* paper stack */
  --page:      #FFFCF0;
  --sheet:     #FFFDF3;
  --paper:     #FBF7E6;
  --paper-2:   #F3EDD6;
  --tile:      #EFE9D2;

  /* ink */
  --ink:       #16140E;
  --ink-2:     #57534A;
  --ink-3:     #6B6558;   /* 5.63:1 on --page (was #8B8577 at 3.57:1) */
  --ink-4:     #7E7868;   /* 4.28:1 (was #AFA997 at 2.28:1) */

  /* amber */
  --amber:     #F3B44A;
  --amber-2:   #C77E0A;   /* graphics only — see --amber-ink for text */
  --amber-ink: #8A5A04;   /* 5.76:1 on --page; amber-2 is 3.18:1 */
  --amber-lt:  #F9CB80;

  /* ground (dark bands) */
  --ground:    #050711;
  --ground-2:  #0B0E1B;
  --on-ground: #EFEDE2;
  --on-ground-2: #B7B5AA;
  --on-ground-3: #7D7C72;

  --line:      rgba(22, 20, 14, .16);
  --line-2:    rgba(22, 20, 14, .08);
  --line-3:    rgba(22, 20, 14, .30);
  --dark-line: rgba(239, 237, 226, .15);

  --ruling:    repeating-linear-gradient(0deg, rgba(22,20,14,.05) 0 1px, transparent 1px 5px);
  --dots:      radial-gradient(circle at center, rgba(22,20,14,.16) 1.15px, transparent 1.25px);
  --dots-dark: radial-gradient(circle at center, rgba(239,237,226,.16) 1.15px, transparent 1.25px);

  --sans: "General Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  --fs-micro:   11px;
  --fs-2xs:     12.5px;
  --fs-xs:      15px;
  --fs-sm:      16px;
  --fs-md:      18px;
  --fs-lg:      21px;
  --fs-h5:      clamp(18px, 1.5vw, 21px);
  --fs-h4:      clamp(21px, 1.9vw, 26px);
  --fs-h3:      clamp(24px, 2.5vw, 34px);
  --fs-h2:      clamp(27px, 2.9vw, 42px);
  --fs-display: clamp(37px, 4.05vw, 64px);
  --fs-num:     clamp(38px, 4.6vw, 70px);
  --fs-ghost:   clamp(140px, 24vw, 360px);

  --max:      96vw;
  --gutter:   28px;
  --nav-h:    62px;
  --sp:       clamp(96px, 12vh, 152px);
  --sp-sm:    clamp(56px, 7vh, 84px);
  --measure:  62ch;

  --ease:      cubic-bezier(.2, .8, .2, 1);
  --d-1: .2s;  --d-2: .34s;  --d-3: .6s;  --d-4: .9s;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--page);
  background-image: var(--ruling);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; letter-spacing: -.03em; line-height: 1.04; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, canvas { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber-2); outline-offset: 2px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.pad  { padding-block: var(--sp); }
.pad-sm { padding-block: var(--sp-sm); }
.rule { border-top: 1px solid var(--line); }

/* ---------- micro labels ---------- */
.meta {
  font-size: var(--fs-micro); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.meta--ink { color: var(--ink-2); }
.ix { font-size: var(--fs-micro); font-weight: 500; letter-spacing: .14em; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.eyebrow { display: flex; align-items: center; gap: 10px; font-size: var(--fs-micro); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }
.eyebrow b { color: var(--ink); font-weight: 500; }
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- buttons: square, not pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding-inline: 18px; border-radius: 0;
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  border: 1px solid transparent;
  transition: background var(--d-1) var(--ease), border-color var(--d-1) var(--ease), color var(--d-1) var(--ease);
}
.btn .ar { transition: transform var(--d-2) var(--ease); font-size: .9em; }
.btn:hover .ar { transform: translate(3px, -3px); }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: var(--amber-lt); }
.btn--ghost { border-color: var(--line-3); color: var(--ink); }
.btn--ghost:hover { background: var(--paper-2); border-color: var(--ink); }
.btn--sm { height: 37px; padding-inline: 13px; font-size: var(--fs-sm); }
.btn--onground { background: var(--amber); color: var(--ink); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 60; background: var(--page); border-bottom: 1px solid transparent; transition: border-color var(--d-2) var(--ease); }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.brand { font-size: 24px; font-weight: 600; letter-spacing: -.055em; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { font-size: var(--fs-sm); color: var(--ink-2); position: relative; padding-block: 4px; transition: color var(--d-1) var(--ease); }
.nav__links a::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 4px; height: 4px; background: var(--amber); border-radius: 50%; transform: translateX(-50%) scale(0); transition: transform var(--d-2) var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: translateX(-50%) scale(1); }
.nav__right { display: flex; align-items: center; gap: 14px; }

.burger { display: none; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger i { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform var(--d-2) var(--ease), opacity var(--d-1) var(--ease); }
.burger i:last-child { width: 13px; align-self: flex-end; margin-right: 10px; }
.nav.is-open .burger i:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .burger i:nth-child(2) { opacity: 0; }
.nav.is-open .burger i:last-child { width: 20px; margin-right: 0; transform: translateY(-6.5px) rotate(-45deg); }

.mobile { display: none; flex-direction: column; padding: 4px var(--gutter) 22px; border-top: 1px solid var(--line); background: var(--page); }
.nav.is-open .mobile { display: flex; }
.mobile a { padding: 12px 0; font-size: var(--fs-lg); border-bottom: 1px solid var(--line-2); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(64px, 9vh, 116px); padding-bottom: clamp(34px, 5vh, 56px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .78fr); gap: clamp(28px, 4vw, 76px); align-items: end; }
.hero h1 { font-size: var(--fs-display); max-width: 17ch; }
.hero h1 .dim { color: var(--ink-3); }
.hero__lead { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* line-mask reveal */
.lines { display: block; }
.ln { display: block; overflow: hidden; }
.ln > span { display: block; transform: none; transition: transform 1s var(--ease); }
html.js-anim .ln > span { transform: translateY(106%); }
html.js-anim .is-in .ln > span { transform: none; }
.ln:nth-child(2) > span { transition-delay: .08s; }
.ln:nth-child(3) > span { transition-delay: .16s; }

.rv { opacity: 1; transform: none; transition: opacity var(--d-4) var(--ease), transform var(--d-4) var(--ease); }
/* elements only start hidden once JS has declared it can reveal them again */
html.js-anim .rv { opacity: 0; transform: translateY(16px); }
html.js-anim .rv.is-in { opacity: 1; transform: none; }
.rv[data-d="1"] { transition-delay: .07s; }
.rv[data-d="2"] { transition-delay: .14s; }
.rv[data-d="3"] { transition-delay: .21s; }
.rv[data-d="4"] { transition-delay: .28s; }
.rv[data-d="5"] { transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) { .rv, .ln > span { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ---------- the strip (claim population band) ---------- */
.strip { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.strip__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 10px; }
.strip__bars { position: absolute; inset: 26px 0 8px; display: flex; align-items: flex-end; gap: 2px; padding-inline: var(--gutter); pointer-events: none; }
.strip__bars i { flex: 1; background: var(--ink); opacity: .1; }
.strip__bars i.on { background: var(--amber-2); opacity: .55; }
.strip__label { position: relative; z-index: 1; }

/* ---------- the workspace panel (pleurat's signature component) ---------- */
.panel { border: 1px solid var(--line); background: var(--sheet); }
.panel__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--amber); color: var(--ink);
  padding: 7px 12px; border-bottom: 1px solid var(--line);
}
.panel__bar .meta { color: rgba(22,20,14,.72); }
.panel__dots { display: inline-flex; gap: 4px; margin-right: 8px; }
.panel__dots i { width: 6px; height: 6px; background: rgba(22,20,14,.5); }
.panel__bar-l, .panel__bar-r { display: inline-flex; align-items: center; }
.panel__bar-r .meta { display: inline-flex; align-items: center; gap: 7px; }
.panel__bar-r .meta::before { content: ""; width: 6px; height: 6px; background: var(--ink); }

.panel__body { display: grid; grid-template-columns: 246px minmax(0, 1fr); min-height: 460px; }
.panel__side { border-right: 1px solid var(--line); background: var(--paper); }
.panel__side-h { padding: 12px 16px 10px; border-bottom: 1px solid var(--line-2); }
.side-item {
  display: block; width: 100%; text-align: left;
  padding: 13px 16px; border-bottom: 1px solid var(--line-2);
  border-left: 3px solid transparent;
  transition: background var(--d-1) var(--ease), border-color var(--d-1) var(--ease);
}
.side-item strong { display: block; font-size: var(--fs-sm); font-weight: 500; letter-spacing: -.015em; }
.side-item span { display: block; margin-top: 3px; font-size: var(--fs-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.side-item:hover { background: var(--paper-2); }
.side-item.is-on { background: var(--tile); border-left-color: var(--ink); }

.panel__canvas { position: relative; background-image: var(--dots); background-size: 22px 22px; background-color: var(--sheet); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
#scene.is-ready { opacity: 1; }
.panel__tag {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--fs-micro); font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  background: var(--sheet); border: 1px solid var(--line); padding: 5px 9px; color: var(--ink-2);
}
.panel__tag--tl { top: 14px; left: 14px; }
.panel__tag--tr { top: 14px; right: 14px; }
.panel__tag i { width: 6px; height: 6px; background: var(--amber-2); animation: blink 1.9s var(--ease) infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .2; } }
.panel__cap { position: absolute; left: 14px; bottom: 14px; z-index: 2; font-size: var(--fs-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- section heads ---------- */
.shead { max-width: 76ch; margin-bottom: clamp(30px, 4vw, 52px); }
.shead h2 { font-size: var(--fs-h2); }
.shead h2 .dim { color: var(--ink-3); }
.shead p { margin-top: 16px; font-size: var(--fs-lg); color: var(--ink-2); line-height: 1.5; max-width: var(--measure); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 28px 22px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__n { font-size: var(--fs-num); font-weight: 500; letter-spacing: -.05em; line-height: .94; font-variant-numeric: tabular-nums; }
.stat__n .amb { color: var(--amber-ink); }
.stat__l { margin-top: 12px; font-size: var(--fs-2xs); color: var(--ink-2); max-width: 28ch; line-height: 1.5; }
.stat__l em { font-style: normal; color: var(--ink-3); }

/* the oversized index numeral bleeds past the section edge by design —
   clip it here so it cannot widen the document */
.has-ghost { position: relative; overflow: hidden; }

/* ---------- split / quote ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); align-items: start; }
.quote { font-size: var(--fs-h3); line-height: 1.16; letter-spacing: -.032em; max-width: 24ch; }
.quote .amb { color: var(--amber-ink); }
.ghost { position: absolute; right: -2vw; top: 50%; transform: translateY(-50%); font-size: var(--fs-ghost); font-weight: 500; letter-spacing: -.07em; line-height: .74; color: rgba(22,20,14,.032); pointer-events: none; user-select: none; z-index: 0; }

/* ---------- three intelligences ---------- */
.tri { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--sheet); }
.tri__c { padding: 26px 24px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 11px; transition: background var(--d-2) var(--ease); }
.tri__c:last-child { border-right: 0; }
.tri__c:hover { background: var(--paper); }
.tri__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tri__tag { font-size: var(--fs-micro); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; background: var(--amber); color: var(--ink); padding: 3px 8px; }
.tri__c h3 { font-size: var(--fs-h4); }
.tri__c > p { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.6; }
.tri__c ul { display: grid; gap: 8px; margin-top: 2px; }
.tri__c li { font-size: var(--fs-2xs); color: var(--ink-2); padding-left: 15px; position: relative; line-height: 1.5; }
.tri__c li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 1px; background: var(--amber-2); }
.tri__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: var(--fs-2xs); color: var(--ink-3); }
.tri__foot b { color: var(--ink); font-weight: 500; }

/* ---------- steps ---------- */
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 64px minmax(0, .9fr) minmax(0, 1.35fr) auto; gap: 26px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; transition: background var(--d-2) var(--ease); }
.step:hover { background: var(--paper); }
.step__n { font-size: var(--fs-h3); font-weight: 500; color: var(--ink-4); letter-spacing: -.05em; line-height: 1; }
.step h3 { font-size: var(--fs-h4); margin-bottom: 7px; }
.step__sub { font-size: var(--fs-micro); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-ink); }
.step p { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.62; }
.step ul { display: grid; gap: 7px; margin-top: 13px; }
.step li { font-size: var(--fs-2xs); color: var(--ink-2); padding-left: 15px; position: relative; }
.step li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 1px; background: var(--amber-2); }
.step__price { text-align: right; font-size: var(--fs-2xs); color: var(--ink-3); white-space: nowrap; }
.step__price b { display: block; font-size: var(--fs-sm); font-weight: 500; color: var(--ink); margin-bottom: 2px; }

/* ---------- figure (detection) ---------- */
.figure { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line); background-color: var(--sheet); background-image: var(--dots); background-size: 22px 22px; overflow: hidden; margin: 0; }
#detect { position: absolute; inset: 0; width: 100%; height: 100%; }
.figure figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: flex; justify-content: space-between; gap: 14px; font-size: var(--fs-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.figure figcaption b { color: var(--amber-ink); font-weight: 500; }

.deltas { border: 1px solid var(--line); margin-top: 24px; }
.delta { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line-2); }
.delta:last-child { border-bottom: 0; }
.delta span { font-size: var(--fs-xs); color: var(--ink-2); }
.delta b { font-size: var(--fs-lg); font-weight: 500; letter-spacing: -.03em; }

/* ---------- ground band (dark) ---------- */
.ground { background: var(--ground); color: var(--on-ground); background-image: none; }
.ground .shead h2 .dim { color: var(--on-ground-3); }
.ground .shead p { color: var(--on-ground-2); }
.ground .eyebrow { color: var(--on-ground-3); }
.ground .eyebrow b { color: var(--on-ground); }
.ground .eyebrow::after { background: var(--dark-line); }

.nots { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--dark-line); }
.not { padding: 22px 24px; border-right: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); display: grid; gap: 7px; }
.not:nth-child(2n) { border-right: 0; }
.not:nth-last-child(-n+2) { border-bottom: 0; }
.not s { color: var(--on-ground-3); font-size: var(--fs-sm); text-decoration-thickness: 1px; }
.not p { font-size: var(--fs-2xs); color: var(--on-ground-2); line-height: 1.6; }

/* ---------- commitments ---------- */
.commits { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--sheet); }
.commit { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.commit:nth-child(3n) { border-right: 0; }
.commit:nth-last-child(-n+3) { border-bottom: 0; }
.commit h4 { font-size: var(--fs-h5); }
.commit p { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.6; }

/* ---------- who ---------- */
.who { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); background: var(--sheet); }
.who__c { padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.who__c:nth-child(2n) { border-right: 0; }
.who__c:nth-last-child(-n+2) { border-bottom: 0; }
.who__c .role { font-size: var(--fs-micro); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-ink); }
.who__c h4 { font-size: var(--fs-h5); }
.who__c p { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.6; }

/* ---------- CTA ---------- */
.cta h2 { font-size: var(--fs-display); max-width: 17ch; }
.cta h2 .dim { color: var(--ink-3); }
.cta p { margin-top: 18px; font-size: var(--fs-lg); color: var(--ink-2); max-width: 50ch; line-height: 1.5; }

/* ---------- note ---------- */
.note { border: 1px dashed var(--amber-2); background: rgba(243, 180, 74, .12); padding: 18px 22px; font-size: var(--fs-2xs); color: var(--ink-2); line-height: 1.6; }
.note b { color: var(--ink); font-weight: 500; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--paper); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 36px; padding-block: 50px 38px; }
.foot h5 { font-size: var(--fs-micro); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot li { margin-bottom: 8px; }
.foot li a, .foot address a { font-size: var(--fs-xs); color: var(--ink-2); transition: color var(--d-1) var(--ease); }
.foot li a:hover, .foot address a:hover { color: var(--amber-ink); }
.foot address { font-style: normal; font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.7; max-width: 36ch; }
.foot__brand { font-size: 30px; font-weight: 600; letter-spacing: -.055em; margin-bottom: 12px; }
.foot__bar { border-top: 1px solid var(--line); padding-block: 18px 26px; display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; font-size: var(--fs-2xs); color: var(--ink-3); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; align-items: start; gap: 26px; }
  .hero h1 { max-width: 100%; }
  .tri, .commits { grid-template-columns: 1fr; }
  .tri__c { border-right: 0; border-bottom: 1px solid var(--line); }
  .tri__c:last-child { border-bottom: 0; }
  .commit { border-right: 0; }
  /* 4 children into 2 columns auto-placed the body back under the numeral;
     pin everything after the numeral to column 2 */
  .step { grid-template-columns: 44px minmax(0, 1fr); gap: 14px 18px; }
  .step > * { grid-column: 2; }
  .step > .step__n { grid-column: 1; grid-row: 1; }
  .step__price { text-align: left; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .panel__body { grid-template-columns: 1fr; }
  .panel__side { border-right: 0; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; }
  .panel__side-h { display: none; }
  .side-item { border-bottom: 0; border-right: 1px solid var(--line-2); border-left: 0; border-top: 3px solid transparent; min-width: 190px; }
  .side-item.is-on { border-left-color: transparent; border-top-color: var(--ink); }
  .panel__canvas { min-height: 380px; }
}
@media (max-width: 920px) { .nav__links { gap: 18px; } .nav__links a { font-size: var(--fs-xs); } }
@media (max-width: 860px) {
  :root { --max: 100vw; --gutter: 20px; }
  .nav__links { display: none; }
  .burger { display: flex; }
  .split { grid-template-columns: 1fr; }
  .nots, .who { grid-template-columns: 1fr; }
  .not, .who__c { border-right: 0; }
  .not:not(:last-child), .who__c:not(:last-child) { border-bottom: 1px solid var(--line); }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .ghost { display: none; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .foot__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
}

/* ---------- terminal console (pleurat's panel console) ---------- */
.console { background: var(--ground); border-top: 1px solid var(--line); padding: 16px 18px 14px; }
.console__out { display: grid; gap: 5px; min-height: 104px; }
.console__out div { font-size: var(--fs-2xs); color: var(--on-ground-2); letter-spacing: .01em; line-height: 1.5; }
.console__out div.dim { color: var(--on-ground-3); }
.console__out div.ok::before { content: "\2713\00a0\00a0"; color: var(--amber); }
.console__out div.cmd { color: var(--on-ground); }
.console__out div.cmd::before { content: "\203A\00a0\00a0"; color: var(--amber); }
.console__in { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--dark-line); }
.console__in .meta { color: var(--on-ground-3); }
.console__in .meta::after { content: ""; display: inline-block; width: 7px; height: 13px; background: var(--amber); margin-left: 6px; vertical-align: -2px; animation: caret 1.1s step-end infinite; }
@keyframes caret { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }

.panel__foot { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding: 9px 14px; border-top: 1px solid var(--line); background: var(--paper-2); }

/* ---------- by the numbers band ---------- */
.numbers { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); background-image: var(--ruling); padding-block: 54px 0; }
.numbers__tab { position: absolute; top: 0; left: var(--gutter); background: var(--amber); color: var(--ink); font-size: var(--fs-micro); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 5px 11px; }
.numbers .stats { border-top: 0; }
.numbers .stat { padding-bottom: 30px; }
.numbers .stat__n { border-bottom: 2px solid var(--ink); padding-bottom: 12px; }

/* ---------- strip bars ---------- */
.strip { min-height: 62px; }
.strip__bars i { transition: opacity .5s var(--ease), background .5s var(--ease); }

/* ============================================================
   EXPLAINER ROWS — what each intelligence solves
   Each figure runs one 11s loop, started when scrolled into view.
   ============================================================ */
.exp { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.exp__row { background: var(--sheet); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 52px); padding: clamp(24px, 3vw, 40px); align-items: center; }
.exp__row--flip .exp__fig { order: 2; }

.exp__fig { position: relative; margin: 0; border: 1px solid var(--line); background-color: var(--page); background-image: var(--dots); background-size: 22px 22px; }
.exp__fig svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.exp__cap { display: block; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--paper-2); font-size: var(--fs-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.exp__body { display: grid; gap: 11px; align-content: center; }
.exp__body h3 { font-size: var(--fs-h3); }
.exp__body > p { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.62; }
.exp__solves { border-left: 2px solid var(--amber); padding-left: 14px; }
.exp__solves b { color: var(--ink); font-weight: 500; }
.exp__body ul { display: grid; gap: 7px; margin-top: 2px; }
.exp__body li { font-size: var(--fs-2xs); color: var(--ink-2); padding-left: 15px; position: relative; line-height: 1.5; }
.exp__body li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 1px; background: var(--amber-2); }

/* ---- shared svg primitives ---- */
.f-lbl  { font-size: 10.5px; font-weight: 500; letter-spacing: .13em; fill: var(--ink-3); }
.f-lbl--amb { fill: var(--amber-2); }
.f-lbl--end { text-anchor: end; }
.f-sub  { font-size: 10px; letter-spacing: .1em; fill: var(--ink-3); }
.f-sub--mid { text-anchor: middle; }
.f-val  { font-size: 13px; font-weight: 500; fill: var(--ink); letter-spacing: -.01em; }
.f-val--amb { fill: var(--amber-2); }
.f-nar  { font-size: 12px; fill: var(--ink-2); }
.f-nar--dim { fill: var(--ink-3); }
.f-axis { stroke: var(--line-3); stroke-width: 1; }
.f-tick line { stroke: var(--line); stroke-width: 1; }

/* animation only runs once the figure is on screen */
.exp__fig [class^="d-"], .exp__fig [class^="w-"], .exp__fig [class^="r-"] { animation-play-state: paused; }
.exp__fig.is-live [class^="d-"], .exp__fig.is-live [class^="w-"], .exp__fig.is-live [class^="r-"] { animation-play-state: running; }

/* shared document card, used by both figures */
.w-card { fill: var(--sheet); stroke: var(--line-3); stroke-width: 1; }

/* ---- 03 defect: report triage -> RCA convergence ---- */
.rep-tab { fill: var(--ink-3); }
.rep-a { fill: var(--ink); } .rep-b { fill: #8A7239; } .rep-c { fill: var(--ink-3); }
.d-src > g { opacity: 0; animation: dIn 11s var(--ease) infinite; }
.d-src > g:nth-child(1) { animation-delay: 0s } .d-src > g:nth-child(2) { animation-delay: .14s } .d-src > g:nth-child(3) { animation-delay: .28s }
@keyframes dIn { 0%,4% { opacity: 0 } 12%,92% { opacity: 1 } 98%,100% { opacity: 0 } }
.d-feed path { fill: none; stroke: var(--line-3); stroke-width: 1.2; stroke-dasharray: 40; stroke-dashoffset: 40; animation: dDraw 11s var(--ease) infinite; }
.d-read rect { fill: var(--paper-2); stroke: var(--line-3); stroke-width: 1; opacity: 0; animation: dIn 11s var(--ease) infinite .18s; }
.d-read text { opacity: 0; animation: dIn 11s var(--ease) infinite .18s; }
.d-split path { fill: none; stroke: var(--line-3); stroke-width: 1.2; stroke-dasharray: 90; stroke-dashoffset: 90; animation: dDraw2 11s var(--ease) infinite; }
@keyframes dDraw  { 0%,14% { stroke-dashoffset: 40 } 26%,92% { stroke-dashoffset: 0 } 98%,100% { stroke-dashoffset: 40 } }
@keyframes dDraw2 { 0%,26% { stroke-dashoffset: 90 } 40%,92% { stroke-dashoffset: 0 } 98%,100% { stroke-dashoffset: 90 } }
.d-ok rect  { fill: var(--paper); stroke: var(--line-3); stroke-width: 1; }
.d-nok rect { fill: var(--amber); stroke: var(--amber-2); stroke-width: 1; }
.d-ok, .d-nok { opacity: 0; animation: dIn 11s var(--ease) infinite .34s; }
.d-rca path { fill: none; stroke: var(--amber-2); stroke-width: 1.4; stroke-dasharray: 120; stroke-dashoffset: 120; animation: dRca 11s var(--ease) infinite; }
.d-rca path:nth-child(1) { animation-delay: 0s } .d-rca path:nth-child(2) { animation-delay: .06s } .d-rca path:nth-child(3) { animation-delay: .12s }
.d-rca path:nth-child(4) { animation-delay: .30s } .d-rca path:nth-child(5) { animation-delay: .36s } .d-rca path:nth-child(6) { animation-delay: .42s }
@keyframes dRca { 0%,48% { stroke-dashoffset: 120 } 68%,92% { stroke-dashoffset: 0 } 98%,100% { stroke-dashoffset: 120 } }
.d-root circle { fill: var(--amber-2); opacity: 0; transform-box: fill-box; transform-origin: center; animation: dRoot 11s var(--ease) infinite; }
.d-root text { opacity: 0; animation: dIn 11s var(--ease) infinite .72s; }
@keyframes dRoot { 0%,74% { opacity: 0; transform: scale(.3) } 84%,92% { opacity: 1; transform: scale(1) } 98%,100% { opacity: 0; transform: scale(.3) } }

/* ---- 04 warranty: invoice through four fraud detectors ---- */
.inv-band { fill: var(--ink); }
.inv-rule path { stroke: var(--ink-3); stroke-width: 1; opacity: .55; }
.inv-alter { fill: var(--amber); opacity: 0; animation: wAlter 11s var(--ease) infinite; }
@keyframes wAlter { 0%,30% { opacity: 0 } 42%,92% { opacity: .75 } 98%,100% { opacity: 0 } }
.det rect { fill: var(--sheet); stroke: var(--line-3); stroke-width: 1; }
.det-led { fill: var(--ink-4); }
.det[data-d="1"] .det-led { animation: wFire 11s var(--ease) infinite; }
.det[data-d="1"] rect { animation: wFireBox 11s var(--ease) infinite; }
@keyframes wFire { 0%,30% { fill: var(--ink-4) } 36%,92% { fill: var(--amber-2) } 98%,100% { fill: var(--ink-4) } }
@keyframes wFireBox { 0%,30% { stroke: var(--line-3) } 36%,92% { stroke: var(--amber-2); stroke-width: 2 } 98%,100% { stroke: var(--line-3) } }
.det-rail path { stroke: var(--line-3); stroke-width: 1.2; stroke-dasharray: 3 3; }
.w-doc { opacity: 0; animation: dIn 11s var(--ease) infinite; }
.w-trav rect { fill: var(--paper); stroke: var(--ink-3); stroke-width: 1; }
.w-trav-l { stroke: var(--ink-3); stroke-width: 1; opacity: .6; fill: none; }
.w-trav { opacity: 0; animation: wTravel 11s var(--ease) infinite; }
@keyframes wTravel {
  0%,10%   { opacity: 0; transform: translate(126px, 104px); }
  16%      { opacity: 1; transform: translate(140px, 104px); }
  30%      { opacity: 1; transform: translate(222px, 104px); }
  44%      { opacity: 1; transform: translate(261px, 104px); }
  62%      { opacity: 1; transform: translate(276px, 168px); }
  70%,92%  { opacity: 0; transform: translate(276px, 196px); }
  100%     { opacity: 0; transform: translate(126px, 104px); }
}
.w-clear rect { fill: var(--paper); stroke: var(--line-3); stroke-width: 1; }
.w-flag rect  { fill: var(--amber); stroke: var(--amber-2); stroke-width: 1; }
.w-clear { opacity: 0; animation: dIn 11s var(--ease) infinite .3s; }
.w-flag  { opacity: 0; animation: dRoot 11s var(--ease) infinite; }

/* ---- 05 fraud ---- */
.r-node rect { fill: var(--page); stroke: var(--line-3); stroke-width: 1; }
.r-node .r-ok { animation: rOk 11s var(--ease) infinite; }
@keyframes rOk { 0%, 40% { opacity: 1; } 52%, 100% { opacity: 0; } }
.r-node { animation: rNode 11s var(--ease) infinite; }
.r-node[data-n="0"] { animation-delay: 0s }
.r-node[data-n="1"] { animation-delay: .12s }
.r-node[data-n="2"] { animation-delay: .24s }
.r-node[data-n="3"] { animation-delay: .36s }
@keyframes rNode { 0%, 8% { opacity: 0; } 16%, 100% { opacity: 1; } }
.r-link path { fill: none; stroke: var(--amber-2); stroke-width: 1.5; stroke-dasharray: 160; stroke-dashoffset: 160; animation: rLink 11s var(--ease) infinite; }
.r-link path:nth-child(1) { animation-delay: 0s }
.r-link path:nth-child(2) { animation-delay: .2s }
.r-link path:nth-child(3) { animation-delay: .4s }
@keyframes rLink { 0%, 40% { stroke-dashoffset: 160; } 56%, 88% { stroke-dashoffset: 0; } 95%, 100% { stroke-dashoffset: 160; } }
.r-ring rect { fill: none; stroke: var(--amber-2); stroke-width: 1.5; stroke-dasharray: 7 5; opacity: 0; animation: rRing 11s var(--ease) infinite; }
@keyframes rRing { 0%, 62% { opacity: 0; } 72%, 88% { opacity: 1; } 95%, 100% { opacity: 0; } }
.r-find { opacity: 0; animation: rFind 11s var(--ease) infinite; }
@keyframes rFind { 0%, 68% { opacity: 0; } 78%, 88% { opacity: 1; } 95%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .exp__fig * { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; transform: none !important; }
  .w-scan rect, .d-noise circle { opacity: .34 !important; }
  .w-hl { opacity: .38 !important; }
}

@media (max-width: 1080px) {
  .exp__row, .exp__row--flip { grid-template-columns: 1fr; }
  .exp__row--flip .exp__fig { order: 0; }
}

/* ============================================================
   SCENE LABELS — HTML chips anchored to 3D positions.
   Kept as DOM (not sprites) so text stays crisp and uses the
   same type stack as the rest of the page.
   ============================================================ */
.lbl-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.lbl {
  position: absolute; transform: translate(-50%, -100%);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px; white-space: nowrap;
  font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line); background: var(--sheet); color: var(--ink-2);
  opacity: 0; transition: opacity .45s var(--ease);
}
.lbl.is-on { opacity: 1; }
.lbl::after {                       /* leader dot down to the anchor point */
  content: ""; position: absolute; left: 50%; bottom: -9px;
  width: 1px; height: 9px; background: var(--line-3);
}
.lbl::before {
  content: ""; width: 5px; height: 5px; background: var(--ink-3); flex: none;
}
.lbl--flag { border-color: var(--amber-2); background: var(--amber); color: var(--ink); }
.lbl--flag::before { background: var(--amber-2); }
.lbl--flag::after { background: var(--amber-2); }
.lbl--note { background: transparent; border-color: transparent; color: var(--ink-3); padding-inline: 2px; }
.lbl--note::before { display: none; }
.lbl--note::after { display: none; }

@media (max-width: 700px) { .lbl { font-size: 9px; padding: 3px 6px; } .lbl--note { display: none; } }

/* ---------- agent capability lists ---------- */
.exp__tag { font-size: var(--fs-micro); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-ink); }
.exp__body h3 + .exp__tag { margin-top: -4px; }
.caps { display: grid; gap: 10px; margin-top: 4px; }
.caps li { font-size: var(--fs-2xs); color: var(--ink-2); padding-left: 15px; position: relative; line-height: 1.55; }
.caps li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 1px; background: var(--amber-2); }
.caps li b { color: var(--ink); font-weight: 500; }

/* Detect -> Connect -> Investigate -> Prevent */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.flow span { font-size: var(--fs-micro); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line); padding: 4px 9px; color: var(--ink-2); background: var(--sheet); }
.flow i { font-style: normal; color: var(--amber-ink); font-size: var(--fs-2xs); }

.exp__close { font-size: var(--fs-xs); color: var(--ink); line-height: 1.5; border-top: 1px solid var(--line-2); padding-top: 13px; margin-top: 4px; }
.exp__close b { font-weight: 500; }

.exp__metric { display: flex; align-items: baseline; gap: 10px; border-left: 2px solid var(--amber); padding-left: 14px; }
.exp__metric b { font-size: var(--fs-h4); font-weight: 500; letter-spacing: -.03em; color: var(--ink); }
.exp__metric span { font-size: var(--fs-2xs); color: var(--ink-2); line-height: 1.5; }

/* ---------- ROI band ---------- */
.roi { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--sheet); }
.roi__c { padding: 30px 28px 26px; border-right: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.roi__c:last-child { border-right: 0; }
.roi__who { font-size: var(--fs-micro); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-ink); }
.roi__n { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.roi__c p { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.6; }
.roi__base { font-size: var(--fs-2xs); color: var(--ink-3); border-top: 1px solid var(--line-2); padding-top: 12px; margin-top: 4px; }
@media (max-width: 1080px) {
  .roi { grid-template-columns: 1fr; }
  .roi__c { border-right: 0; border-bottom: 1px solid var(--line); }
  .roi__c:last-child { border-bottom: 0; }
}

/* ============================================================
   MOBILE
   Measured at 375px: the explainer SVGs were scaling their 10.5px
   labels down to 5.7px, and the isometric panel was cropping.
   ============================================================ */
@media (max-width: 760px) {

  /* tighten vertical rhythm — the page is very long on a phone */
  :root { --sp: clamp(56px, 7vh, 76px); --sp-sm: clamp(40px, 5vh, 56px); }

  /* Wide diagrams scroll inside their own frame rather than shrinking
     their type into illegibility. */
  .exp__fig { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .exp__fig svg { min-width: 470px; }
  .exp__fig::after {
    content: ""; position: sticky; left: 0; bottom: 0; display: block; height: 0;
  }
  /* a touch more size on top of the scroll, so labels clear ~10px */
  .exp__fig .f-lbl  { font-size: 12px; }
  .exp__fig .f-sub  { font-size: 11.5px; }
  .exp__fig .f-val  { font-size: 14px; }
  .exp__fig .f-nar  { font-size: 13px; }

  /* the track strip scrolls horizontally — say so */
  .panel__side { scrollbar-width: none; position: relative; }
  .panel__side::-webkit-scrollbar { display: none; }
  .panel__body { position: relative; }
  .panel__body::before {
    content: ""; position: absolute; top: 0; right: 0; width: 34px; height: 92px;
    background: linear-gradient(90deg, transparent, var(--paper)); pointer-events: none; z-index: 2;
  }
  .side-item { min-width: 168px; }

  /* the isometric panel needs height to work in portrait */
  .panel__canvas { min-height: 340px; }

  /* comfortable tap targets */
  .btn { height: 48px; }
  .btn--sm { height: 42px; padding-inline: 16px; }
  .nav__links a, .mobile a { padding-block: 12px; }

  /* scene label chips must not spill out of the canvas */
  .lbl { font-size: 9.5px; padding: 3px 6px; max-width: 44vw; }
  .lbl--note { display: none; }

  /* film grain is a full-viewport blended layer — expensive on mobile GPUs
     for an effect nobody sees at this size */
  body::after { display: none; }

  .hero { padding-top: clamp(40px, 6vh, 72px); }
  .ghost { display: none; }
  .exp__row { padding: 20px; gap: 20px; }
  .roi__c, .tri__c, .commit, .who__c { padding: 22px 20px; }
  .step { padding: 24px 0; }
}

@media (max-width: 420px) {
  .exp__fig svg { min-width: 440px; }
  .stat__n { font-size: clamp(34px, 12vw, 46px); }
  .foot__grid { gap: 26px; }
}

/* ---------- mobile: chrome that wraps badly at 375px ---------- */
@media (max-width: 760px) {
  /* the panel title bar was wrapping to four lines and swallowing the header */
  .panel__bar { align-items: center; gap: 10px; }
  .panel__bar-l .meta { display: none; }          /* breadcrumb is desktop chrome */
  .panel__bar-l::after {
    content: "Dealer claims"; font-size: var(--fs-micro); font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase; color: rgba(22,20,14,.72);
  }
  .panel__bar-r { min-width: 0; }
  .panel__bar-r .meta {
    display: block; max-width: 46vw; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
  }

  /* the population strip label was overlapping its own bars */
  .strip { min-height: 0; }
  .strip__in { flex-direction: column; align-items: flex-start; gap: 2px; padding-block: 8px; }
  .strip__bars { inset: auto 0 6px; height: 26px; }
  .strip__in .strip__label:first-child { max-width: 100%; }

  /* nav: keep the CTA but stop it crowding the burger */
  .nav__in { gap: 10px; }
  .brand { font-size: 20px; }
  .nav__right .btn--sm { height: 38px; padding-inline: 12px; font-size: var(--fs-2xs); }
  .burger { width: 38px; }
}

/* ---------- mobile: scene overlay collisions ---------- */
@media (max-width: 760px) {
  /* the caption was absolutely positioned over the scene and wrapping
     onto three lines across it — give it its own row instead */
  .panel__cap {
    position: static; display: block; margin-top: auto;   /* sit at the foot, as on desktop */
    padding: 9px 12px 10px; border-top: 1px solid var(--line);
    background: var(--paper); line-height: 1.45;
  }
  .panel__canvas { display: flex; flex-direction: column; }
  .panel__canvas > canvas { position: absolute; }

  /* chips truncate rather than spill past the canvas edge */
  .lbl {
    max-width: 40vw; overflow: hidden; text-overflow: ellipsis;
    display: inline-block; white-space: nowrap;
  }
  .lbl::before { display: none; }   /* drop the dot; the width is needed for text */

  /* corner tags shrink so they do not fight the diagram */
  .panel__tag { font-size: 9.5px; padding: 4px 7px; }
  .panel__tag--tl { top: 10px; left: 10px; }
  .panel__tag--tr { top: 10px; right: 10px; }
}
