/* ============================================================
   SetRecord — Design System
   Techno-institutional, all-dark. Set the record straight. In AI.
   ============================================================ */

/* ---------- 1. Design tokens — ChapsVision charter: teal ink · off-white · lilac/mint ---------- */
:root {
  /* Dark surfaces — deep teal-charcoal */
  --bg:            #18211e;
  --bg-black:      #131b18;
  --surface-1:     #232e2b;
  --surface-2:     #2d393a;
  --surface-3:     #3a4847;
  --surface-glass: rgba(24, 33, 30, 0.6);

  /* Borders & lines */
  --line:          rgba(220, 239, 227, 0.14);
  --line-strong:   rgba(220, 239, 227, 0.26);
  --grid-line:     rgba(220, 239, 227, 0.05);

  /* Accents — lilac primary + mint/sage (ChapsVision) */
  --cyan:          #efc9f3;   /* lilac — button fill / primary block */
  --cyan-dim:      #e3b2ea;
  --violet:        #dcefe3;   /* mint */
  --violet-soft:   #cdb6e6;   /* lilac-light for dark-bg accents */
  /* Semantic aliases (preferred for new code) */
  --lilac:         var(--cyan);
  --lilac-dim:     var(--cyan-dim);
  --mint:          var(--violet);
  --lilac-light:   var(--violet-soft);
  --grad:          linear-gradient(118deg, #efc9f3 0%, #dcefe3 100%);
  --grad-soft:     linear-gradient(118deg, rgba(239,201,243,0.18), rgba(220,239,227,0.18));

  /* Text on dark teal */
  --text:          #f5f7f4;
  --text-2:        #c7d3cd;
  --text-dim:      #9aaaa2;
  --text-faint:    #6f817a;

  /* State */
  --ok:            #6fae8e;
  --warn:          #d9b15a;
  --danger:        #d98a8a;

  /* Light surfaces — off-white + pastel blocks (ChapsVision) */
  --light-bg:        #fafafa;   /* off-white base */
  --light-bg-soft:   #edf4ef;   /* pale mint block */
  --light-bg-lilac:  #f4ebf6;   /* pale lilac block */
  --light-surface:   #ffffff;
  --light-text:      #18211e;   /* dark teal headings */
  --light-text-2:    #3a4744;   /* body */
  --light-text-dim:  #5d7374;   /* secondary teal-grey */
  --light-line:      rgba(24,33,30,0.12);
  --light-line-2:    rgba(24,33,30,0.18);
  --indigo:          #18211e;   /* icon/heading accent on light */
  --indigo-deep:     #18211e;
  --cyan-ink:        #5d7374;   /* eyebrow teal-grey on light */
  --violet-ink:      #8a4f97;   /* lilac-deep for text accents on light */
  --grad-ink:        linear-gradient(118deg, #18211e 0%, #5d7374 100%);
  --shadow-soft:     0 20px 44px -28px rgba(24,33,30,0.22), 0 5px 14px -8px rgba(24,33,30,0.10);
  --shadow-float:    0 36px 72px -42px rgba(24,33,30,0.26), 0 8px 22px -10px rgba(24,33,30,0.12);

  /* Typography — Hanken Grotesk (ChapsVision) */
  --font-display:  "Hanken Grotesk", system-ui, sans-serif;
  --font-ui:       "Hanken Grotesk", system-ui, sans-serif;
  --font-body:     "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:     "IBM Plex Mono", ui-monospace, monospace;

  /* Scale (fluid) */
  --step--2: clamp(0.68rem, 0.65rem + 0.15vw, 0.76rem);
  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.86rem);
  --step-0:  clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --step-1:  clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.25rem + 1vw, 2rem);
  --step-3:  clamp(1.9rem, 1.5rem + 2vw, 3rem);
  --step-4:  clamp(2.5rem, 1.8rem + 3.6vw, 4.6rem);
  --step-5:  clamp(3.1rem, 2rem + 5.5vw, 6rem);

  /* Spacing & layout */
  --gutter:        clamp(1.1rem, 4vw, 2rem);
  --maxw:          1200px;
  --maxw-narrow:   760px;
  --radius-xs:     4px;
  --radius-sm:     8px;
  --radius:        14px;
  --radius-lg:     24px;
  --radius-xl:     28px;
  --radius-pill:   999px;

  /* Motion */
  --ease:          cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur:           0.55s;

  color-scheme: dark;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Ambient backdrop: fine grid + two discreet halos */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 80% -5%, rgba(239,201,243,0.12), transparent 60%),
    radial-gradient(55% 45% at 8% 8%, rgba(220,239,227,0.08), transparent 55%);
  pointer-events: none;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: var(--font-ui); font-weight: 600; letter-spacing: -0.012em; }
p  { text-wrap: pretty; }
strong { color: var(--text); font-weight: 600; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 1.8em;
  height: 1px;
  background: var(--cyan);
  opacity: 0.5;
}

.lead {
  font-size: var(--step-1);
  color: var(--text-2);
  line-height: 1.6;
  font-weight: 400;
}

.gradient-text {
  /* lighter violet stop keeps the whole word ≥ AA-large contrast on navy */
  background: linear-gradient(118deg, var(--cyan) 0%, var(--violet-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono { font-family: var(--font-mono); }

/* ---------- 4. Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--maxw-narrow); }

section { position: relative; padding-block: clamp(4rem, 9vw, 8rem); }
.section-black { background: var(--bg-black); }
.section-line { border-top: 1px solid var(--line); }

.section-head { max-width: 64ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-top: 0.8rem; }
.section-head .lead { margin-top: 1.2rem; }
.section-line { border-top: 1px solid var(--line); }

.section-head { max-width: 64ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-top: 0.8rem; }
.section-head .lead { margin-top: 1.2rem; }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.8rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

/* skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 200;
  background: var(--cyan);
  color: var(--text);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-weight: 600;
}
.skip-link:focus { left: 0.5rem; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--step-0);
  letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  color: var(--text);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  position: relative;
  isolation: isolate;
}
.btn:hover { transform: translateY(-2px); border-color: var(--cyan); }
.btn svg { width: 1.1em; height: 1.1em; }

.btn-primary {
  border: 0;
  color: var(--text);
  background: var(--grad);
  box-shadow: 0 0 0 1px rgba(239,201,243,0.25), 0 12px 40px -12px rgba(239,201,243,0.5);
  font-weight: 700;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad);
  filter: blur(14px);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--dur) var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:hover::after { opacity: 0.55; }

.btn-ghost { background: transparent; border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-1); }
.btn-lg { padding: 1.1rem 2.2rem; font-size: var(--step-1); font-weight: 600; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ---------- 6. Cards & surfaces ---------- */
.card {
  background: linear-gradient(180deg, var(--surface-1), rgba(24,33,30,0.4));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(0,0,0,0.18), 0 4px 12px -6px rgba(0,0,0,0.08); }
.card:hover::before { opacity: 1; }

.card .icon-tile { margin-bottom: 1.1rem; }
.card h3, .card h4 { color: var(--text); margin-bottom: 0.6rem; }
.card p { color: var(--text-dim); font-size: var(--step-0); line-height: 1.6; }

.icon-tile {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--grad-soft);
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  transition: transform var(--dur) var(--ease);
}
.icon-tile svg { width: 26px; height: 26px; }
.card:hover .icon-tile { transform: scale(1.06); }

/* Generic stroke icon sizing */
.ic { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.6; fill: none;
      stroke-linecap: round; stroke-linejoin: round; }

/* pill / tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  color: var(--text-2);
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-1);
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* ---------- 7. Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 13, 31, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.scroll-progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--grad);
  box-shadow: 0 0 6px rgba(138,79,151,0.4);
  transition: width 0.1s linear;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: -0.025em;
  color: var(--text);
  transition: opacity 0.2s var(--ease);
}
.brand:hover { opacity: 0.82; }
.brand .logo-mark { width: 30px; height: 30px; }
.brand-badge { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.brand span b { color: var(--cyan); font-weight: 700; }

/* Refined typographic logo — badge monogram + treated text */
.brand-mark {
  display: inline-flex; flex: none;
  filter: drop-shadow(0 4px 10px rgba(239,201,243,0.22));
  transition: transform 0.35s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.04); }
.brand-text { display: inline-flex; align-items: baseline; letter-spacing: -0.03em; }
.brand-text b {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; font-weight: 800;
}
.brand-text em {
  font-style: normal; font-weight: 600;
  font-size: 0.62em; letter-spacing: -0.01em;
  margin-left: 0.04em; opacity: 0.78;
  align-self: center;
}

.nav-spacer { flex: 1; }

.nav-links { display: flex; align-items: center; gap: 0.4rem; }
.nav-links > a,
.nav-links summary {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--step--1);
  letter-spacing: 0.015em;
  color: var(--text-2);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links > a:hover,
.nav-links summary:hover { color: var(--text); background: var(--surface-1); }
.nav-links summary::-webkit-details-marker { display: none; }
.nav-links summary .chev { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }

/* zero-JS dropdown via details/summary */
.menu { position: relative; }
.menu[open] summary .chev { transform: rotate(180deg); }
.menu[open] summary { color: var(--text); background: var(--surface-1); }
.menu-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  min-width: 280px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.6rem;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.5), 0 4px 12px -4px rgba(0,0,0,0.15);
  animation: menuIn 0.22s var(--ease);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.menu-panel a {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-family: var(--font-ui);
  font-size: var(--step--1);
}
.menu-panel a small { display: block; color: var(--text-faint); font-family: var(--font-body); font-size: var(--step--1); }
.menu-panel a:hover { background: var(--surface-3); color: var(--text); }

/* language selector */
.lang { margin-left: 0.2rem; }
.lang summary {
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: var(--step--1);
}
.lang .menu-panel { min-width: 120px; left: auto; right: 0; }

.nav-cta { margin-left: 0.3rem; }

/* mobile nav toggle */
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0.5rem; color: var(--text); }
.nav-toggle .ic { width: 20px; height: 20px; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: var(--bg-black);
    border-bottom: 1px solid var(--line-strong);
    padding: 1rem var(--gutter) 1.5rem;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
  }
  .nav[data-open="true"] .nav-links { transform: none; }
  .nav-links > a, .nav-links summary { padding: 0.85rem 0.6rem; font-size: var(--step-0); }
  .menu-panel { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 1rem; animation: none; }
  .lang { margin-left: 0; }
  .lang .menu-panel { right: auto; }
  .nav-cta { margin: 0.6rem 0 0; }
}

/* ---------- 8. Hero ---------- */
.hero { padding-block: clamp(4rem, 10vw, 8rem) clamp(3rem, 7vw, 6rem); position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; max-width: 56ch; }

/* --- animated hero background: photo (Ken Burns) → video → node-network → scrim --- */
.hero-media { position: relative; isolation: isolate; }
.hero-media-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media-bg > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo {
  background-image: var(--photo); background-size: cover; background-position: center;
  transform: scale(1.06);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-photo { animation: kenburns 30s ease-in-out infinite alternate; }
}
@keyframes kenburns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.2) translate3d(0, -2.5%, 0); }
}
.hero-video { object-fit: cover; opacity: 0; transition: opacity 1.1s var(--ease); }
.hero-video.is-playing { opacity: 1; }          /* JS reveals only once the file actually plays */
.hero-canvas { opacity: 0.55; mix-blend-mode: screen; pointer-events: none; }
.hero-scrim {
  background:
    linear-gradient(180deg, rgba(24,33,30,0.80) 0%, rgba(24,33,30,0.90) 60%, rgba(24,33,30,0.94) 100%),
    radial-gradient(120% 80% at 50% -10%, rgba(239,201,243,0.07), transparent 60%);
}
/* canvas must sit above the scrim so the network reads as live data over the darkened photo/video */
.hero-media-bg .hero-scrim { z-index: 1; }
.hero-media-bg .hero-canvas { z-index: 2; }

/* staggered page-load entrance */
@keyframes heroIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero-inner > * { opacity: 0; animation: heroIn 0.85s var(--ease) forwards; }
.hero-inner > :nth-child(1) { animation-delay: 0.08s; }
.hero-inner > :nth-child(2) { animation-delay: 0.20s; }
.hero-inner > :nth-child(3) { animation-delay: 0.34s; }
.hero-inner > :nth-child(4) { animation-delay: 0.48s; }
.hero-inner > :nth-child(5) { animation-delay: 0.60s; }
.hero .models { opacity: 0; animation: heroIn 0.85s var(--ease) 0.7s forwards; }
.record-card { animation: fadeIn 1s var(--ease) 0.5s both; }
@media (prefers-reduced-motion: reduce) {
  .hero-inner > *, .hero .models, .record-card { opacity: 1; animation: none; }
}
.hero h1 { margin: 1.4rem 0 0; }
.hero .lead { margin-top: 1.6rem; max-width: 48ch; }
.hero-actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-note { margin-top: 1.2rem; color: var(--text-dim); font-size: var(--step--1); display: flex; align-items: center; gap: 0.5rem; }
.hero-note .ic { width: 16px; height: 16px; color: var(--cyan); }

/* node-network canvas backdrop */
.node-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000 100%);
  opacity: 0.9;
}
@media (max-width: 760px) { .node-bg { mask-image: linear-gradient(180deg, transparent, #000 60%); opacity: 0.5; } }

/* model logos strip */
.models {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}
.models p { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1rem; }
.models-row { display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; align-items: center; }
.model-chip { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text-2); font-family: var(--font-ui); font-weight: 500; }
.model-chip .ic { width: 22px; height: 22px; color: var(--text-dim); }
.model-chip:hover { color: var(--text); }
.model-chip:hover .ic { color: var(--cyan); }

/* ---------- 8b. Hero asymmetric grid + signature "live correction" card ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

/* the card: dark glass, brand-edged, floats slightly out of grid */
.record-card {
  position: relative;
  z-index: 3;
  background: linear-gradient(180deg, rgba(45,57,58,0.92), rgba(35,46,46,0.92));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.5rem;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 40px 90px -40px rgba(18,16,12,0.9), 0 0 0 1px rgba(239,201,243,0.08);
}
@media (min-width: 1100px) { .record-card { transform: translateX(3%) rotate(-0.6deg); } }
.record-card::before { /* top brand hairline */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad); opacity: 0.9;
}
/* scanning sweep */
.rc-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 38%;
  background: linear-gradient(180deg, transparent, rgba(239,201,243,0.10) 60%, rgba(239,201,243,0.16));
  border-bottom: 1px solid rgba(239,201,243,0.5);
  z-index: 1; pointer-events: none; mix-blend-mode: screen;
  animation: rcScan 8s var(--ease) infinite;
}
@keyframes rcScan {
  0%, 3% { transform: translateY(-110%); opacity: 0; }
  10% { opacity: 1; }
  30% { transform: translateY(280%); opacity: 1; }
  36%, 100% { transform: translateY(280%); opacity: 0; }
}
.rc-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.rc-model { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-2); letter-spacing: 0.02em; }
.rc-model svg { width: 18px; height: 18px; color: var(--text-dim); }
.rc-live { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }
.rc-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 9px var(--ok); animation: rcPulse 2.2s ease-in-out infinite; }
@keyframes rcPulse { 50% { opacity: 0.35; } }

.rc-tag { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.1em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: var(--radius-pill); border: 1px solid currentColor; margin-bottom: 0.6rem; }
.rc-tag.err { color: var(--danger); }
.rc-tag.ok  { color: var(--cyan); }

.rc-claim, .rc-correct { position: relative; }
.rc-false {
  position: relative; color: var(--text-dim); font-size: var(--step-0); line-height: 1.5; width: fit-content;
}
.rc-false {
  color: var(--text-dim);
}
.rc-false::after { /* strike-through draws across once, then stays */
  content: ""; position: absolute; left: -2px; top: 52%; height: 2px; width: 0;
  background: var(--danger); box-shadow: 0 0 8px var(--danger);
  animation: rcStrike 1.1s var(--ease) 1.7s forwards;
}
@keyframes rcStrike { from { width: 0; } to { width: calc(100% + 4px); } }

.rc-arrow { display: grid; place-items: center; margin: 0.9rem 0; }
.rc-arrow svg { width: 22px; height: 22px; color: var(--violet-soft); opacity: 0; animation: rcArrow 0.6s var(--ease) 2.3s forwards; }
@keyframes rcArrow { from { opacity: 0; transform: translateY(-4px); } to { opacity: 0.85; transform: none; } }

.rc-true {
  color: var(--text); font-size: var(--step-0); line-height: 1.5; font-weight: 500;
  opacity: 0; transform: translateY(6px);
  animation: rcReveal 0.85s var(--ease) 2.6s forwards;
}
@keyframes rcReveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rc-prov { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.9rem; font-family: var(--font-mono); font-size: var(--step--1); color: var(--cyan); opacity: 0; transform: translateY(6px); animation: rcReveal 0.85s var(--ease) 2.95s forwards; }
.rc-prov svg { width: 16px; height: 16px; }
.rc-divider { height: 1px; background: var(--line); margin: 1.1rem 0; }

@media (prefers-reduced-motion: reduce) {
  .rc-scan { display: none; }
  .rc-false::after { width: calc(100% + 4px); animation: none; }
  .rc-true, .rc-prov { opacity: 1; transform: none; animation: none; }
  .rc-arrow svg { opacity: 0.85; animation: none; }
  .record-card { transform: none !important; }
}

/* ---------- 9. Gap visual: Your truth vs What AI says ---------- */
.gap-visual { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1rem,3vw,2rem); align-items: stretch; }
@media (max-width: 760px) { .gap-visual { grid-template-columns: 1fr; } .gap-visual .gap-divider { flex-direction: row; height: auto; } }
.gap-col { display: flex; flex-direction: column; padding: clamp(1.3rem,3vw,1.9rem); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.gap-col h4 { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 1.1rem; font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; }
.gap-col h4 .ic { width: 18px; height: 18px; flex: none; }
.gap-truth { background: linear-gradient(180deg, rgba(239,201,243,0.06), transparent); }
.gap-truth h4 { color: var(--cyan); }
.gap-ai { background: linear-gradient(180deg, rgba(217,138,138,0.06), transparent); border-color: rgba(217,138,138,0.2); }
.gap-ai h4 { color: var(--danger); }
.gap-line { margin: 0; font-family: var(--font-body); color: var(--text-2); padding: 0 0 0.85rem; border-bottom: 1px dashed var(--line); font-size: var(--step-0); line-height: 1.4; }
.gap-line:first-of-type { padding-top: 0; }
.gap-line:last-child { border-bottom: 0; padding-bottom: 0; }
.gap-ai .gap-line { color: var(--text-dim); }
.gap-divider { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.85rem; min-width: clamp(3.2rem, 8vw, 5rem); padding: 0 0.4rem; }
.gap-divider::before, .gap-divider::after {
  content: ""; flex: 1; min-height: 1.5rem; width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong), transparent);
}
.gap-divider .bolt {
  width: clamp(46px, 6vw, 58px); height: clamp(46px, 6vw, 58px); border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: var(--grad); color: var(--text);
  box-shadow: 0 0 0 4px rgba(239,201,243,0.10), 0 8px 22px -10px rgba(239,201,243,0.5);
}
.gap-divider .bolt .ic { width: 24px; height: 24px; stroke-width: 2; }
.gap-divider .label { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.15em; color: var(--text-faint); text-transform: uppercase; white-space: nowrap; }

/* motif echo: on scroll-in, verify the truths then strike the AI claims */
.gap-truth .gap-line, .gap-ai .gap-line { position: relative; }
/* truth — cyan verified accent grows down */
.gap-truth .gap-line::before {
  content: ""; position: absolute; left: -0.95rem; top: 0.55rem; bottom: 0.55rem; width: 2px;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan); border-radius: 2px;
  transform: scaleY(0); transform-origin: top;
}
.gap-visual.in .gap-truth .gap-line::before { animation: gvVerify 0.5s var(--ease) forwards; }
.gap-visual.in .gap-truth .gap-line:nth-child(2)::before { animation-delay: 0.2s; }
.gap-visual.in .gap-truth .gap-line:nth-child(3)::before { animation-delay: 0.45s; }
.gap-visual.in .gap-truth .gap-line:nth-child(4)::before { animation-delay: 0.7s; }
@keyframes gvVerify { to { transform: scaleY(1); } }
/* ai — danger strike draws across */
.gap-ai .gap-line::after {
  content: ""; position: absolute; left: -2px; top: 55%; height: 2px; width: 0;
  background: var(--danger); box-shadow: 0 0 6px var(--danger);
}
.gap-visual.in .gap-ai .gap-line::after { animation: rcStrike 0.65s var(--ease) forwards; }
.gap-visual.in .gap-ai .gap-line:nth-child(2)::after { animation-delay: 1.0s; }
.gap-visual.in .gap-ai .gap-line:nth-child(3)::after { animation-delay: 1.3s; }
.gap-visual.in .gap-ai .gap-line:nth-child(4)::after { animation-delay: 1.6s; }
/* bolt pulses once when the gap is "measured" */
.gap-visual.in .gap-divider .bolt { animation: gvBolt 1.1s var(--ease) 0.85s; }
@keyframes gvBolt {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239,201,243,0.5); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); box-shadow: 0 0 0 20px rgba(239,201,243,0); }
}
@media (prefers-reduced-motion: reduce) {
  .gap-truth .gap-line::before { transform: scaleY(1); animation: none; }
  .gap-ai .gap-line::after { width: calc(100% + 4px); animation: none; }
}

/* ---------- 10. Anti-disinfo stack (frieze) ---------- */
.stack-frieze { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: step; }
@media (max-width: 1000px) { .stack-frieze { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stack-frieze { grid-template-columns: repeat(2, 1fr); } }
.stack-step {
  position: relative;
  padding: 1.6rem 1.2rem;
  border: 1px solid var(--line);
  margin-left: -1px;
  margin-top: -1px;
  transition: background 0.4s var(--ease);
}
.stack-step:hover { background: var(--surface-1); }
.stack-step .num {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--cyan);
  letter-spacing: 0.1em;
}
.stack-step .ic { width: 28px; height: 28px; color: var(--violet-soft); margin: 0.9rem 0; }
.stack-step h4 { font-family: var(--font-ui); font-size: var(--step-1); color: var(--text); margin-bottom: 0.35rem; }
.stack-step p { font-size: var(--step--1); color: var(--text-dim); line-height: 1.5; }
.stack-step::after {
  content: "";
  position: absolute;
  top: 50%; right: -7px;
  width: 12px; height: 12px;
  border-top: 1.5px solid var(--cyan-dim);
  border-right: 1.5px solid var(--cyan-dim);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.5;
}
@media (max-width: 1000px) { .stack-step::after { display: none; } }

/* ---------- 11. Standards / trust band ---------- */
.standards-row { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.standard {
  flex: 1 1 220px;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-1);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.standard:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 16px 36px -20px rgba(0,0,0,0.15); }
.standard .ic { width: 24px; height: 24px; color: var(--cyan); flex: none; margin-top: 2px; }
.standard b { display: block; color: var(--text); font-family: var(--font-ui); font-size: var(--step-0); font-weight: 600; margin-bottom: 0.2rem; }
.standard span { font-size: var(--step--1); color: var(--text-dim); line-height: 1.5; }

/* ---------- 12. Feature list / definition rows ---------- */
.deflist { display: grid; gap: 0; }
.defrow {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.defrow:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .defrow { grid-template-columns: 1fr; gap: 0.5rem; } }
.defrow dt { font-family: var(--font-ui); font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 0.6rem; }
.defrow dt .ic { width: 20px; height: 20px; color: var(--cyan); }
.defrow dd { color: var(--text-dim); }

/* ---------- 13. CTA band ---------- */
.cta-band {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 4rem);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(220,239,227,0.18), transparent 55%),
    radial-gradient(70% 120% at 0% 100%, rgba(239,201,243,0.14), transparent 55%),
    var(--surface-1);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band h2 { max-width: 22ch; margin: 0 auto 1rem; }
.cta-band .lead { max-width: 52ch; margin: 0 auto 2rem; }
.cta-band .hero-note { justify-content: center; }

/* ---------- 14. Footer ---------- */
.site-footer {
  background: var(--bg-black);
  border-top: 1px solid var(--line);
  padding-block: clamp(3.5rem, 7vw, 6rem) 2rem;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 2px;
  background: var(--grad);
  opacity: 0.6;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1.2rem; }
.footer-grid a { display: block; color: var(--text-dim); padding: 0.35rem 0; font-size: var(--step-0); transition: color 0.2s var(--ease), transform 0.2s var(--ease); }
.footer-grid a:hover { color: var(--cyan); transform: translateX(3px); }
.footer-brand p { color: var(--text-dim); font-size: var(--step--1); max-width: 36ch; margin-top: 1.2rem; line-height: 1.6; }
.footer-mantra { font-family: var(--font-display); color: var(--text-2); margin-top: 1.2rem; font-size: var(--step-0); font-weight: 500; letter-spacing: -0.01em; }
.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: var(--step--2);
  color: var(--text-faint);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ---------- 15. Forms ---------- */
.form { display: grid; gap: 1.3rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-family: var(--font-ui); font-size: var(--step--1); color: var(--text-2); font-weight: 600; letter-spacing: 0.01em; }
.field label .req { color: var(--cyan); }
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--text);
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--cyan);
  background: var(--surface-2);
  outline: none;
  box-shadow: 0 0 0 3px rgba(239,201,243,0.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: var(--step--1); color: var(--text-dim); }
.form-msg { padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); font-family: var(--font-ui); font-size: var(--step-0); }
.form-msg.ok { background: rgba(111,174,142,0.12); border: 1px solid rgba(111,174,142,0.4); color: var(--ok); }
.form-msg.err { background: rgba(217,138,138,0.1); border: 1px solid rgba(217,138,138,0.4); color: var(--danger); }

/* ---------- 16. Accordion (FAQ) ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.3rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--text);
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary .ic { width: 22px; height: 22px; color: var(--cyan); transition: transform 0.3s var(--ease); flex: none; }
.acc-item[open] summary .ic { transform: rotate(45deg); }
.acc-body { padding-bottom: 1.4rem; color: var(--text-dim); max-width: 70ch; }

/* ---------- 17. Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero .lead { margin-top: 1.4rem; max-width: 60ch; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-faint); margin-bottom: 1.4rem; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- 18. Cookie banner ---------- */
.cookie {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 150;
  max-width: 720px;
  margin-inline: auto;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.5), 0 4px 12px -4px rgba(0,0,0,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  animation: cookieIn 0.5s var(--ease) 0.6s both;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@keyframes cookieIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.cookie[hidden] { display: none; }
.cookie p { font-size: var(--step--1); color: var(--text-dim); flex: 1 1 320px; line-height: 1.5; }
.cookie p a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.cookie .cookie-actions { display: flex; gap: 0.6rem; }
.cookie .btn { padding: 0.6rem 1.1rem; font-size: var(--step--1); }

/* ---------- 19. Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 19b. Photographic backgrounds ---------- */
.photo-section { position: relative; isolation: isolate; }
.photo-section > .photo-layer {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background-image: var(--photo);
  background-size: cover; background-position: center;
}
/* left-weighted scrim — for left-aligned copy */
.scrim-left > .photo-layer::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(24,33,30,0.97) 26%, rgba(24,33,30,0.66) 66%, rgba(24,33,30,0.4) 100%);
}
/* center scrim — for centered copy */
.scrim-center > .photo-layer::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 50%, rgba(24,33,30,0.8), rgba(24,33,30,0.95) 92%),
    linear-gradient(180deg, rgba(24,33,30,0.66), rgba(24,33,30,0.9));
}
/* veil scrim — heavy uniform darken, for full-width content (cards, friezes).
   The photo reads as faint atmosphere/texture, never competing with text. */
.scrim-veil > .photo-layer { opacity: 0.5; }
.scrim-veil > .photo-layer::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(24,33,30,0.86), rgba(24,33,30,0.93)),
    radial-gradient(110% 80% at 50% -10%, rgba(239,201,243,0.06), transparent 60%);
}
.scrim-veil.on-black > .photo-layer::after {
  background:
    linear-gradient(180deg, rgba(19,27,24,0.88), rgba(19,27,24,0.94)),
    radial-gradient(110% 80% at 50% -10%, rgba(220,239,227,0.06), transparent 60%);
}
/* faint top + bottom fade so the band blends into adjacent sections */
.scrim-veil > .photo-layer { -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
/* brand tint binds the photo to the cyan/violet system */
.photo-section.tinted > .photo-layer::before {
  content: ""; position: absolute; inset: 0; z-index: 1; mix-blend-mode: overlay; opacity: 0.55;
  background: linear-gradient(120deg, rgba(239,201,243,0.35), rgba(220,239,227,0.35));
}
/* thin top hairline in brand gradient */
.photo-section::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 2;
  background: var(--grad); opacity: 0.5;
}

/* framed, visible media card */
.media-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-strong); min-height: 360px;
  background-image: var(--photo); background-size: cover; background-position: center;
  isolation: isolate;
}
.media-card::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(24,33,30,0.15) 30%, rgba(24,33,30,0.82) 100%),
    linear-gradient(120deg, rgba(239,201,243,0.12), rgba(220,239,227,0.12));
}
.media-card .media-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 1.3rem 1.4rem; display: flex; gap: 0.6rem; align-items: center;
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.04em; color: var(--text-2);
}
.media-card .media-cap .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); flex: none; }

/* photo credit, tiny */
.photo-credit { font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-faint); letter-spacing: 0.03em; }

/* ---------- 20. Utilities ---------- */
.stat { display: grid; gap: 0.3rem; }
.stat .num { font-family: var(--font-display); font-size: var(--step-3); color: var(--text); font-weight: 700; }
.stat .num .gradient-text { font-weight: 700; }
.stat .label { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }

/* prose for legal / long-form */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin: 2.4rem 0 0.8rem; }
.prose h3 { font-size: var(--step-1); font-family: var(--font-ui); margin: 1.8rem 0 0.6rem; }
.prose p, .prose li { color: var(--text-dim); margin-bottom: 1rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--text-2); }
.prose .updated { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-faint); }

.divider { height: 1px; background: var(--line); border: 0; margin-block: clamp(3rem, 6vw, 5rem); }
.center { text-align: center; }
.is-center { justify-content: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; } .mb-1-6 { margin-bottom: 1.6rem; }
.muted { color: var(--text-dim); }
.pill-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Layout utilities (replacing inline styles) */
.layer-content { position: relative; z-index: 2; }
.grid--comfort { gap: clamp(2rem, 5vw, 4rem); }
.defrow--stack { grid-template-columns: 1fr; }
.defrow--compact { grid-template-columns: 1fr; padding: 1rem 0; }
.media-card--tall { min-height: 520px; }
.media-card--md { min-height: 480px; }
.sticky-top { position: sticky; top: 90px; }
.section--compact { padding-block: clamp(2.5rem, 5vw, 4rem); }
.sr-contents { display: contents; }
.link-accent { color: var(--cyan); }
.cta-band--glass { background: var(--surface-glass); }
.maxw-16ch { max-width: 16ch; }
.maxw-18ch { max-width: 18ch; }

/* ============================================================
   21. Redesign pass — premium polish (audit-driven upgrades)
   ============================================================ */

/* pressed / active feedback (physical click) */
.btn:active { transform: translateY(0) scale(0.975); transition-duration: 0.08s; }
.acc-item summary:active,
.nav-links > a:active,
.nav-links summary:active { transform: scale(0.99); }
.model-chip { transition: color 0.25s var(--ease), transform 0.25s var(--ease); }
.model-chip:active { transform: scale(0.97); }

/* current-page indication in nav */
.nav-links > a[aria-current="page"] { color: var(--text); }
.nav-links > a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 3px; border-radius: 2px;
  background: var(--grad); box-shadow: 0 0 8px rgba(239,201,243,0.5);
}
@media (max-width: 980px) { .nav-links > a[aria-current="page"]::after { display: none; } }

/* tabular figures for data/labels so numbers align */
.mono, .stat .num, .rc-prov, .num, .breadcrumb, .footer-bottom { font-variant-numeric: tabular-nums; }

/* fixed grain overlay — breaks digital flatness without touching readability */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { .grain { display: none; } }

/* cursor-tracking spotlight border on cards (high-end agency touch) */
.card, .standard { --mx: 50%; --my: 50%; }
.card::after, .standard::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: radial-gradient(170px circle at var(--mx) var(--my), rgba(239,201,243,0.55), rgba(220,239,227,0.35) 35%, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s var(--ease); pointer-events: none; z-index: 2;
}
.card:hover::after, .standard:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .card::after, .standard::after { display: none; } }

/* asymmetric bento — replaces the generic equal-column feature row */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.bento > * { grid-column: span 2; }
.bento > :nth-child(1) { grid-column: span 4; }
.bento > :nth-child(2) { grid-column: span 2; }
.bento > :nth-child(3) { grid-column: span 2; }
.bento > :nth-child(4) { grid-column: span 4; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr 1fr; } .bento > * { grid-column: auto !important; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }
/* wide tiles compose horizontally for presence */
.card.wide { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.3rem; align-items: center; }
.card.wide .icon-tile { grid-row: 1 / span 2; align-self: start; margin-bottom: 0; width: 54px; height: 54px; }
.card.wide .icon-tile svg { width: 26px; height: 26px; }
.card.wide h4 { align-self: end; font-size: var(--step-2); }
.card.wide p { grid-column: 2; }
@media (max-width: 560px) {
  .card.wide { grid-template-columns: 1fr; }
  .card.wide .icon-tile { grid-row: auto; margin-bottom: 1rem; }
  .card.wide p { grid-column: auto; }
}

/* 3-item bento: narrow + wide, then a full-width feature strip */
.bento-3 { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.bento-3 > :nth-child(1) { grid-column: span 2; }
.bento-3 > :nth-child(2) { grid-column: span 4; }
.bento-3 > :nth-child(3) { grid-column: span 6; }
@media (max-width: 860px) { .bento-3 { grid-template-columns: 1fr; } .bento-3 > * { grid-column: auto !important; } }

/* ============================================================
   22. High-end polish — machined depth + magnetic physics
   (techniques borrowed with restraint; brand palette unchanged)
   ============================================================ */

/* "Double-bezel" tray: concentric ring + inner-core top highlight,
   so signature surfaces read like a glass plate seated in a metal tray. */
.record-card {
  box-shadow:
    0 0 0 6px rgba(196,204,214,0.035),                 /* outer tray */
    0 0 0 7px var(--line),                               /* tray hairline */
    inset 0 1px 0 rgba(255,255,255,0.10),               /* inner-core lit edge */
    0 42px 90px -42px rgba(18,16,12,0.92);                 /* cinematic depth */
}
.media-card {
  box-shadow:
    0 0 0 6px rgba(196,204,214,0.035),
    0 0 0 7px var(--line),
    0 34px 80px -40px rgba(18,16,12,0.9);
}
.cta-band {
  box-shadow:
    0 0 0 6px rgba(196,204,214,0.035),
    0 0 0 7px var(--line-strong),
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 40px 100px -50px rgba(18,16,12,0.92);
}
/* subtle machined inner highlight on every card */
.card { box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.card:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); }

/* magnetic button physics: trailing icon carries kinetic tension on hover */
.btn svg { transition: transform 0.45s var(--ease); }
.btn:hover svg:last-child { transform: translateX(3px); }

/* button-in-button: trailing arrow nested in its own circular island */
.btn-primary .cta-arrow {
  box-sizing: content-box;
  width: 1em; height: 1em; padding: 5px;
  border-radius: 50%;
  background: rgba(60,18,10,0.20);
  transition: transform 0.45s var(--ease), background 0.45s var(--ease);
}
.btn-primary:hover .cta-arrow {
  transform: translate(3px,-1px) scale(1.06);
  background: rgba(60,18,10,0.34);
}

/* lazy-loaded background imagery — JS gates until near viewport; no-JS shows all */
.js .photo-section > .photo-layer { background-image: none; }
.js .photo-section > .photo-layer.bg-on { background-image: var(--photo); }
.js .media-card:not(.bg-on) { background-image: none; }
.photo-layer, .media-card { transition: opacity 0.5s var(--ease); }

/* ---- parallax: oversize the photo layer so it can translate without gaps ---- */
.photo-section > .photo-layer { top: -16%; bottom: auto; height: 132%; will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .photo-section > .photo-layer { top: 0; height: 100%; transform: none !important; }
}

/* ---- full-bleed parallax statement band (high-presence photo zone) ---- */
.parallax-band {
  min-height: clamp(440px, 70vh, 680px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-block: 1px solid var(--line);
}
.parallax-band .band-stmt { max-width: 32ch; position: relative; z-index: 2; }
.parallax-band h2 { font-size: var(--step-4); margin: 1rem 0 1.2rem; }
.parallax-band .lead { max-width: 46ch; }
.parallax-band .hero-actions { margin-top: 1.8rem; }

/* ============================================================
   23. Light / editorial sections — premium light↔night rhythm
   ============================================================ */
.section-light {
  background: var(--light-bg);
  color: var(--light-text-2);
}
.section-light.section-soft { background: var(--light-bg-soft); }
.section-light.section-line { border-top: 1px solid var(--light-line); }
.section-light h1, .section-light h2, .section-light h3, .section-light h4 { color: var(--light-text); }
.section-light .lead { color: var(--light-text-2); }
.section-light p { color: var(--light-text-dim); }
.section-light strong { color: var(--light-text); }
.section-light .muted { color: var(--light-text-dim); }

/* eyebrow + accents shift to ink-strength on light */
.section-light .eyebrow { color: var(--cyan-ink); }
.section-light .eyebrow::before { background: var(--cyan-ink); opacity: 0.5; }
.section-light .gradient-text { background-image: var(--grad-ink); }

/* floating white cards with soft diffused shadow (no harsh borders) */
.section-light .card {
  background: var(--light-surface);
  border: 1px solid var(--light-line);
  box-shadow: var(--shadow-soft);
}
.section-light .card:hover { border-color: var(--light-line-2); box-shadow: var(--shadow-float); transform: translateY(-4px); }
.section-light .card p { color: var(--light-text-dim); }
.section-light .card h3, .section-light .card h4 { color: var(--light-text); }
.section-light .card::before { opacity: 0; }              /* drop the dark top-hairline */
.section-light .card:hover::before { opacity: 0.9; }
.section-light .card::after,
.section-light .standard::after {                          /* spotlight ring → indigo on light */
  background: radial-gradient(170px circle at var(--mx) var(--my), rgba(138,79,151,0.45), rgba(138,79,151,0.30) 35%, transparent 60%);
}

/* icon tiles: tinted indigo/cyan wash on light */
.section-light .icon-tile {
  background: linear-gradient(135deg, rgba(138,79,151,0.12), rgba(138,79,151,0.12));
  border-color: var(--light-line-2);
  color: var(--indigo);
}

/* standards / deflist / frieze / accordion on light */
.section-light .standard { background: var(--light-surface); border-color: var(--light-line); box-shadow: var(--shadow-soft); }
.section-light .standard .ic { color: var(--indigo); }
.section-light .standard b { color: var(--light-text); }
.section-light .standard span { color: var(--light-text-dim); }
.section-light .defrow { border-color: var(--light-line); }
.section-light .defrow dt { color: var(--light-text); }
.section-light .defrow dt .ic { color: var(--indigo); }
.section-light .defrow dd { color: var(--light-text-dim); }
.section-light .stack-step { border-color: var(--light-line); }
.section-light .stack-step:hover { background: var(--light-surface); }
.section-light .stack-step .num { color: var(--cyan-ink); }
.section-light .stack-step .ic { color: var(--indigo); }
.section-light .stack-step p { color: var(--light-text-dim); }
.section-light .stack-step::after { border-color: var(--cyan-ink); opacity: 0.4; }
.section-light .accordion, .section-light .acc-item { border-color: var(--light-line); }
.section-light .acc-item summary { color: var(--light-text); }
.section-light .acc-item summary .ic { color: var(--indigo); }
.section-light .acc-body { color: var(--light-text-dim); }
.section-light .tag { background: var(--light-surface); border-color: var(--light-line); color: var(--light-text-2); }
.section-light .divider { background: var(--light-line); }

/* gap visual on light */
.section-light .gap-col { border-color: var(--light-line); }
.section-light .gap-truth { background: linear-gradient(180deg, rgba(138,79,151,0.07), transparent); }
.section-light .gap-truth h4 { color: var(--cyan-ink); }
.section-light .gap-ai { background: linear-gradient(180deg, rgba(138,79,151,0.05), transparent); border-color: rgba(138,79,151,0.18); }
.section-light .gap-ai h4 { color: var(--violet-ink); }
.section-light .gap-line { color: var(--light-text-2); border-bottom-color: var(--light-line); }
.section-light .gap-ai .gap-line { color: var(--light-text-dim); }
.section-light .gap-ai .gap-line::after { background: var(--violet-ink); box-shadow: 0 0 6px rgba(220,239,227,0.4); }
.section-light .gap-truth .gap-line::before { background: var(--cyan-ink); box-shadow: 0 0 8px rgba(138,79,151,0.5); }
.section-light .gap-divider .label { color: var(--light-text-dim); }

/* ghost buttons need dark ink on light */
.section-light .btn-ghost { color: var(--light-text); border-color: var(--light-line-2); background: transparent; }
.section-light .btn-ghost:hover { border-color: var(--indigo); background: rgba(138,79,151,0.06); }
.section-light .btn:not(.btn-primary) { color: var(--light-text); border-color: var(--light-line-2); background: var(--light-surface); }
.section-light .btn:not(.btn-primary):hover { border-color: var(--indigo); }

/* section eyebrow line + hero-note on light */
.section-light .hero-note { color: var(--light-text-dim); }
.section-light .hero-note .ic { color: var(--cyan-ink); }

/* media cards stay dark (they hold photos) — caption already light; ensure contrast ring */
.section-light .media-card { box-shadow: var(--shadow-float); border-color: var(--light-line-2); }

/* ============================================================
   24. Premium effects pass
   ============================================================ */

/* --- light form fields (contact on porcelain) --- */
.section-light .field label { color: var(--light-text-2); }
.section-light .field input, .section-light .field textarea, .section-light .field select {
  background: var(--light-surface);
  border-color: var(--light-line-2);
  color: var(--light-text);
  box-shadow: 0 1px 2px rgba(40,36,28,0.06);
}
.section-light .field input:focus, .section-light .field textarea:focus, .section-light .field select:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(138,79,151,0.15);
  background: #fff;
}
.section-light .form-note { color: var(--light-text-dim); }
.section-light .form { background: var(--light-surface); border: 1px solid var(--light-line); border-radius: var(--radius-lg); padding: clamp(1.4rem,3vw,2.2rem); box-shadow: var(--shadow-float); }

/* --- prose on light (legal) --- */
.section-light .prose p, .section-light .prose li { color: var(--light-text-dim); }
.section-light .prose h2, .section-light .prose h3 { color: var(--light-text); }
.section-light .prose strong { color: var(--light-text-2); }
.section-light .prose a { color: var(--indigo); }
.section-light .prose .updated { color: var(--light-text-dim); }

/* --- infinite marquee for the monitored-models strip --- */
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 28s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee .model-chip { flex: none; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
}

/* --- stats band with count-up numbers --- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 3vw, 2.5rem); }
@media (max-width: 860px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }
.stat-block { text-align: left; padding: 1.4rem 0 0; border-top: 2px solid; border-image: var(--grad) 1; }
.section-light .stat-block { border-image: var(--grad-ink) 1; }
.stat-block .num {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em;
  font-size: var(--step-4); line-height: 1; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.section-light .stat-block .num { color: var(--light-text); }
.stat-block .num .unit { font-size: 0.45em; font-weight: 600; color: var(--cyan); margin-left: 0.1em; }
.section-light .stat-block .num .unit { color: var(--indigo); }
.stat-block .cap { margin-top: 0.5rem; font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.section-light .stat-block .cap { color: var(--light-text-dim); }

/* --- rotating conic ring on the signature record-card --- */
@property --ring-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.record-card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--ring-angle), transparent 0%, rgba(239,201,243,0.0) 20%, rgba(239,201,243,0.9) 32%, rgba(220,239,227,0.9) 42%, transparent 56%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ringSpin 6s linear infinite;
  pointer-events: none; z-index: 4;
}
@keyframes ringSpin { to { --ring-angle: 360deg; } }
@supports not (background: conic-gradient(from var(--ring-angle), #000, #fff)) {
  .record-card::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .record-card::after { display: none; } }

/* --- soft transition from dark hero into light content --- */
.section-light:first-of-type { box-shadow: inset 0 24px 40px -32px rgba(24,33,30,0.5); }

/* ============================================================
   25. Deck identity theme — paper header, paper hero, ink bands
   ============================================================ */

/* ---- body base becomes paper (site is light-dominant now) ---- */
body { background: var(--light-bg); color: var(--light-text-2); }
body::before { display: none; }           /* drop dark grid backdrop */
body::after  { display: none; }           /* drop halos */

/* ---- header: warm paper glass, ink nav, vermilion CTA ---- */
.site-header { background: rgba(247,245,239,0.86); border-bottom: 1px solid var(--light-line); }
.brand { color: var(--light-text); }
.brand span b { color: var(--cyan-ink); }
.brand .logo-mark { color: var(--cyan-ink); }
.brand-text b { background: none; -webkit-text-fill-color: var(--indigo-deep); color: var(--indigo-deep); }
.brand-text em { color: var(--cyan-ink); }
.brand-mark { filter: drop-shadow(0 4px 10px rgba(24,33,30,0.14)); }
.nav-links > a, .nav-links summary { color: var(--light-text-2); }
.nav-links > a:hover, .nav-links summary:hover { color: var(--light-text); background: rgba(24,33,30,0.06); }
.menu[open] summary { color: var(--light-text); background: rgba(24,33,30,0.06); }
.menu-panel { background: var(--light-surface); border-color: var(--light-line-2); box-shadow: var(--shadow-float); }
.menu-panel a { color: var(--light-text-2); }
.menu-panel a small { color: var(--light-text-dim); }
.menu-panel a:hover { background: var(--light-bg); color: var(--light-text); }
.nav-links > a[aria-current="page"] { color: var(--light-text); }
.nav-toggle { border-color: var(--light-line-2); color: var(--light-text); }
@media (max-width: 980px) { .nav-links { background: var(--light-bg-soft); border-bottom-color: var(--light-line-2); } }
.scroll-progress { box-shadow: none; }

/* ---- paper hero (deck cover): ink serif headline + circuit art ---- */
.hero-paper { background: var(--light-bg); overflow: hidden; }
.hero-paper .circuit-art {
  position: absolute; inset: 0 0 0 auto; width: min(52vw, 760px); z-index: 1;
  background: url('/assets/img/circuit.svg') right -40px top -30px / cover no-repeat;
  opacity: 0.9; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%);
  mask-image: linear-gradient(90deg, transparent, #000 30%);
}
@media (max-width: 940px) { .hero-paper .circuit-art { width: 100%; opacity: 0.25; mask-image: none; -webkit-mask-image: none; } }
.hero-paper .eyebrow { color: var(--cyan-ink); }
.hero-paper .eyebrow::before { background: var(--cyan-ink); }
.hero-paper h1 { color: var(--light-text); }
.hero-paper .gradient-text { background-image: var(--grad-ink); }
.hero-paper .lead { color: var(--light-text-2); }
.hero-paper .hero-note { color: var(--light-text-dim); }
.hero-paper .hero-note .ic { color: var(--cyan-ink); }
.hero-paper .btn-ghost { color: var(--light-text); border-color: var(--light-line-2); }
.hero-paper .btn-ghost:hover { border-color: var(--cyan-ink); background: rgba(138,79,151,0.05); }
.hero-paper .models { border-top-color: var(--light-line); }
.hero-paper .models p { color: var(--light-text-dim); }
.hero-paper .model-chip { color: var(--light-text-2); }
.hero-paper .model-chip .ic { color: var(--light-text-dim); }
.hero-paper .model-chip:hover { color: var(--light-text); }
.hero-paper .model-chip:hover .ic { color: var(--cyan-ink); }

/* record card on paper: white plate, ink text, red accents */
.hero-paper .record-card {
  background: var(--light-surface);
  border-color: var(--light-line-2);
  box-shadow: 0 0 0 6px rgba(24,33,30,0.04), 0 0 0 7px var(--light-line), var(--shadow-float);
}
.hero-paper .rc-model { color: var(--light-text-2); }
.hero-paper .rc-model svg { color: var(--light-text-dim); }
.hero-paper .rc-live { color: var(--light-text-dim); }
.hero-paper .rc-false { color: var(--light-text-dim); }
.hero-paper .rc-true { color: var(--light-text); }
.hero-paper .rc-divider { background: var(--light-line); }
.hero-paper .rc-scan { background: linear-gradient(180deg, transparent, rgba(138,79,151,0.06) 60%, rgba(138,79,151,0.10)); border-bottom-color: rgba(138,79,151,0.45); mix-blend-mode: normal; }
.hero-paper .rc-tag.ok { color: var(--cyan-ink); }
.hero-paper .rc-prov { color: var(--cyan-ink); }
.hero-paper .rc-arrow svg { color: var(--cyan-ink); }
.hero-paper .record-card::after { display: none; }   /* no neon ring on paper */
.hero-paper .record-card::before { background: var(--grad-ink); }

/* ---- ink statement bands (replace photo parallax bands on home) ---- */
.band-ink { background: var(--bg); border-block: 1px solid rgba(24,33,30,0.3); overflow: hidden; }
.band-ink::after {
  content: ""; position: absolute; inset: 0 0 0 auto; width: min(46vw, 640px);
  background: url('/assets/img/circuit.svg') right -60px center / cover no-repeat;
  opacity: 0.22; pointer-events: none;
}
.band-ink .band-stmt { border-left: 3px solid var(--cyan); padding-left: clamp(1.2rem, 3vw, 2rem); }
.band-ink h2 { color: var(--text); }
.band-ink .lead { color: var(--text-2); }
.band-ink .eyebrow { color: var(--violet-soft); }
.band-ink .eyebrow::before { background: var(--violet-soft); }

/* ---- deck-style step tiles: first three ink, last three paper ---- */
.section-light .stack-frieze { gap: clamp(0.8rem, 1.6vw, 1.2rem); }
.section-light .stack-step { background: var(--light-surface); border: 1px solid var(--light-line-2); border-radius: var(--radius); margin: 0; box-shadow: var(--shadow-soft); }
.section-light .stack-step::after { display: none; }
.section-light .stack-step:nth-child(-n+3) { background: var(--bg); border-color: rgba(239,201,243,0.55); }
.section-light .stack-step:nth-child(-n+3) h4 { color: var(--text); }
.section-light .stack-step:nth-child(-n+3) p { color: var(--text-dim); }
.section-light .stack-step:nth-child(-n+3) .num { color: var(--violet-soft); }
.section-light .stack-step:nth-child(-n+3) .ic { color: var(--violet-soft); }
.section-light .stack-step .ic { color: var(--cyan-ink); }
.section-light .stack-step:hover { background: var(--light-bg-soft); }
.section-light .stack-step:nth-child(-n+3):hover { background: var(--surface-1); }

/* ---- buttons: deck geometry (squared, solid) ---- */
.btn { border-radius: var(--radius); }
.btn-primary { box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 10px 26px -14px rgba(138,79,151,0.7); }
.btn-primary::after { filter: blur(10px); }
.btn-primary:hover::after { opacity: 0.3; }

/* eyebrow on remaining dark sections */
.section-black .eyebrow, .cta-band .eyebrow { color: var(--violet-soft); }
.section-black .eyebrow::before, .cta-band .eyebrow::before { background: var(--violet-soft); }
.gradient-text { background-image: linear-gradient(118deg, var(--cyan), var(--violet)); }

/* focus ring readable on paper */
:focus-visible { outline-color: var(--cyan-ink); }

/* grain a touch stronger on paper for the print feel */
.grain { opacity: 0.05; }

/* schematic ink card — replaces photo media-cards in deck identity */
.schematic-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg); border: 1px solid rgba(24,33,30,0.35);
  min-height: 360px; isolation: isolate;
  box-shadow: 0 0 0 6px rgba(24,33,30,0.05), 0 0 0 7px var(--light-line), var(--shadow-float);
}
.schematic-card::before {
  content: ""; position: absolute; inset: -10% -20% -10% 10%;
  background: url('/assets/img/circuit.svg') center / cover no-repeat;
  opacity: 0.5;
}
.schematic-card::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(239,201,243,0.12), rgba(220,239,227,0.12)),
    linear-gradient(180deg, rgba(24,33,30,0.1) 40%, rgba(24,33,30,0.85) 100%);
}
.schematic-card .media-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 1.3rem 1.4rem; display: flex; gap: 0.6rem; align-items: center;
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.04em; color: var(--text-2);
}
.schematic-card .media-cap .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); flex: none; }

/* ============================================================
   27. ChapsVision charter — off-white · teal · lilac/mint · pill
   (final theme layer — overrides deck identity)
   ============================================================ */
:root { --radius: 16px; --radius-lg: 26px; }

body { background: var(--light-bg); color: var(--light-text-2); }
body::before, body::after { display: none; }

/* ---- pill buttons, flat lilac primary ---- */
.btn { border-radius: var(--radius-pill); font-weight: 600; }
.btn-primary {
  background: var(--grad); color: var(--bg); border: 0;
  box-shadow: 0 1px 2px rgba(24,33,30,0.08), 0 8px 24px -10px rgba(138,79,151,0.45);
  font-weight: 700; letter-spacing: 0.005em;
}
.btn-primary::after { display: none; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(24,33,30,0.10), 0 14px 36px -12px rgba(138,79,151,0.55); }
.btn-primary .cta-arrow { background: rgba(24,33,30,0.10); }
.btn-primary:hover .cta-arrow { background: rgba(24,33,30,0.18); }
.btn:not(.btn-primary):hover { border-color: var(--light-text); }

/* ---- soft generous radii ---- */
.card { border-radius: var(--radius-lg); }
.media-card, .schematic-card, .cta-band, .form { border-radius: var(--radius-lg); }

/* ---- eyebrows + gradient text ---- */
.eyebrow { color: var(--cyan-ink); letter-spacing: 0.16em; }
.eyebrow::before { background: var(--cyan-ink); }
.gradient-text { background: none; -webkit-text-fill-color: currentColor; color: var(--violet-soft); }
.section-light .gradient-text, .hero-paper .gradient-text { color: var(--violet-ink); -webkit-text-fill-color: var(--violet-ink); }

/* ---- pastel section blocks ---- */
.section-light { background: var(--light-bg); }
.section-light.section-soft { background: var(--light-bg-soft); }     /* pale mint */
.section-lilac { background: var(--light-bg-lilac); }                  /* pale lilac */
.section-light.section-line, .section-lilac { border-top: 1px solid var(--light-line); }

/* ---- .section-lilac inherits all .section-light text/component styles ---- */
.section-lilac { color: var(--light-text-2); }
.section-lilac h1, .section-lilac h2, .section-lilac h3, .section-lilac h4 { color: var(--light-text); }
.section-lilac .lead { color: var(--light-text-2); }
.section-lilac p { color: var(--light-text-dim); }
.section-lilac strong { color: var(--light-text); }
.section-lilac .muted { color: var(--light-text-dim); }
.section-lilac .eyebrow { color: var(--cyan-ink); }
.section-lilac .eyebrow::before { background: var(--cyan-ink); opacity: 0.5; }
.section-lilac .gradient-text { background-image: var(--grad-ink); }
.section-lilac .card {
  background: var(--light-surface);
  border: 1px solid var(--light-line);
  box-shadow: var(--shadow-soft);
}
.section-lilac .card:hover { border-color: var(--light-line-2); box-shadow: var(--shadow-float); transform: translateY(-4px); }
.section-lilac .card p { color: var(--light-text-dim); }
.section-lilac .card h3, .section-lilac .card h4 { color: var(--light-text); }
.section-lilac .card::before { opacity: 0; }
.section-lilac .card:hover::before { opacity: 0.9; }
.section-lilac .card::after,
.section-lilac .standard::after {
  background: radial-gradient(170px circle at var(--mx) var(--my), rgba(138,79,151,0.45), rgba(138,79,151,0.30) 35%, transparent 60%);
}
.section-lilac .icon-tile {
  background: linear-gradient(135deg, rgba(138,79,151,0.12), rgba(138,79,151,0.12));
  border-color: var(--light-line-2);
  color: var(--indigo);
}
.section-lilac .standard { background: var(--light-surface); border-color: var(--light-line); box-shadow: var(--shadow-soft); }
.section-lilac .standard .ic { color: var(--indigo); }
.section-lilac .standard b { color: var(--light-text); }
.section-lilac .standard span { color: var(--light-text-dim); }
.section-lilac .defrow { border-color: var(--light-line); }
.section-lilac .defrow dt { color: var(--light-text); }
.section-lilac .defrow dt .ic { color: var(--indigo); }
.section-lilac .defrow dd { color: var(--light-text-dim); }
.section-lilac .stack-step { border-color: var(--light-line); }
.section-lilac .stack-step:hover { background: var(--light-surface); }
.section-lilac .stack-step .num { color: var(--cyan-ink); }
.section-lilac .stack-step .ic { color: var(--violet-ink); }
.section-lilac .accordion, .section-lilac .acc-item { border-color: var(--light-line); }
.section-lilac .acc-item summary { color: var(--light-text); }
.section-lilac .acc-item summary .ic { color: var(--indigo); }
.section-lilac .prose p, .section-lilac .prose li { color: var(--light-text-dim); }
.section-lilac .prose h2, .section-lilac .prose h3 { color: var(--light-text); }
.section-lilac .prose a { color: var(--violet-ink); }
.section-lilac .field input, .section-lilac .field textarea, .section-lilac .field select {
  background: var(--light-surface);
  border-color: var(--light-line-2);
  color: var(--light-text);
}
.section-lilac .field input:focus, .section-lilac .field textarea:focus, .section-lilac .field select:focus {
  border-color: var(--violet-ink);
  box-shadow: 0 0 0 3px rgba(138,79,151,0.15);
}
.section-lilac .field label { color: var(--light-text); }
.section-lilac .field label .req { color: var(--violet-ink); }
.section-lilac .btn-ghost:hover { border-color: var(--indigo); background: rgba(138,79,151,0.06); }
.section-lilac .hero-note .ic { color: var(--cyan-ink); }
.section-lilac .breadcrumb a:hover { color: var(--violet-ink); }
.section-lilac .stat-block { border-image: linear-gradient(90deg, var(--violet-ink), var(--cyan-ink)) 1; }
.section-lilac .stat-block .num .unit { color: var(--violet-ink); }
.section-lilac .gap-truth { background: linear-gradient(180deg, rgba(220,239,227,0.07), transparent); }
.section-lilac .gap-truth h4 { color: var(--cyan-ink); }
.section-lilac .gap-ai { background: linear-gradient(180deg, rgba(138,79,151,0.05), transparent); border-color: rgba(138,79,151,0.18); }
.section-lilac .gap-ai h4 { color: var(--violet-ink); }
.section-lilac .gap-truth .gap-line::before { background: var(--cyan-ink); box-shadow: 0 0 8px rgba(93,115,116,0.5); }
.section-lilac .gap-ai .gap-line::after { background: var(--violet-ink); box-shadow: 0 0 6px rgba(138,79,151,0.4); }
.section-lilac :focus-visible { outline-color: var(--violet-ink); }

/* ---- header: off-white glass, teal nav ---- */
.site-header { background: rgba(250,250,250,0.82); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid var(--light-line); box-shadow: 0 1px 0 rgba(24,33,30,0.03); }
.brand { color: var(--light-text); }
.brand span b, .brand .logo-mark { color: var(--violet-ink); }
.brand-text b { background: none; -webkit-text-fill-color: var(--violet-ink); color: var(--violet-ink); }
.brand-text em { color: var(--cyan-ink); }
.nav-links > a, .nav-links summary { color: var(--light-text-2); }
.nav-links > a:hover, .nav-links summary:hover, .menu[open] summary { color: var(--light-text); background: rgba(24,33,30,0.05); }
.menu-panel { background: var(--light-surface); border-color: var(--light-line-2); box-shadow: var(--shadow-float); }
.menu-panel a { color: var(--light-text-2); }
.menu-panel a small { color: var(--light-text-dim); }
.menu-panel a:hover { background: var(--light-bg-soft); color: var(--light-text); }
.nav-links > a[aria-current="page"] { color: var(--light-text); }
.nav-links > a[aria-current="page"]::after { background: var(--cyan); box-shadow: none; }
.nav-toggle { border-color: var(--light-line-2); color: var(--light-text); }
.scroll-progress { background: var(--violet-ink); box-shadow: none; }
@media (max-width: 980px) { .nav-links { background: var(--light-surface); border-bottom-color: var(--light-line-2); } }

/* ---- icon tiles ---- */
.icon-tile { background: rgba(220,239,227,0.12); color: var(--cyan); border-color: var(--line); }
.section-light .icon-tile { background: var(--light-bg-soft); border-color: var(--light-line); color: var(--light-text); }

/* ---- spotlight + accents recoloured to lilac/mint ---- */
.card::after, .standard::after {
  background: radial-gradient(170px circle at var(--mx) var(--my), rgba(239,201,243,0.55), rgba(220,239,227,0.35) 38%, transparent 62%);
}
.gap-truth .gap-line::before { background: var(--cyan-ink); box-shadow: none; }

/* ---- ChapsVision-style DARK photo hero ---- */
.hero-paper, .hero-dark { background: var(--bg) !important; }
.hero-dark .photo-layer::after,
.hero-dark.scrim-veil > .photo-layer::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(19,27,24,0.92) 22%, rgba(19,27,24,0.55) 60%, rgba(19,27,24,0.35));
}
.hero-dark .eyebrow { color: var(--violet-soft); }
.hero-dark .eyebrow::before { background: var(--violet-soft); }
.hero-dark h1, .hero-dark .gradient-text { color: var(--text); -webkit-text-fill-color: currentColor; }
.hero-dark .gradient-text { color: var(--cyan); -webkit-text-fill-color: var(--cyan); }
.hero-dark .lead { color: var(--text-2); }
.hero-dark .hero-note { color: var(--text-dim); }
.hero-dark .hero-note .ic { color: var(--cyan); }
.hero-dark .btn-ghost { color: var(--text); border-color: var(--line-strong); }
.hero-dark .btn-ghost:hover { border-color: var(--cyan); background: rgba(239,201,243,0.08); }
.hero-dark .models { border-top-color: var(--line); }
.hero-dark .models p { color: var(--text-dim); }
.hero-dark .model-chip { color: var(--text-2); }
.hero-dark .model-chip .ic { color: var(--text-dim); }
.hero-dark .model-chip:hover, .hero-dark .model-chip:hover .ic { color: var(--cyan); }

/* hero record-card → bright white plate on dark hero */
.hero-dark .record-card {
  background: var(--light-surface); border-color: rgba(24,33,30,0.1);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.08), var(--shadow-float);
}
.hero-dark .rc-model { color: var(--light-text-2); }
.hero-dark .rc-model svg, .hero-dark .rc-live { color: var(--light-text-dim); }
.hero-dark .rc-false { color: var(--light-text-dim); }
.hero-dark .rc-true { color: var(--light-text); }
.hero-dark .rc-tag.ok, .hero-dark .rc-prov, .hero-dark .rc-arrow svg { color: var(--violet-ink); }
.hero-dark .record-card::before { background: var(--grad); }
.hero-dark .record-card::after { display: none; }
.hero-dark .rc-scan { background: linear-gradient(180deg, transparent, rgba(138,79,151,0.06) 60%, rgba(138,79,151,0.1)); border-bottom-color: rgba(138,79,151,0.4); mix-blend-mode: normal; }

/* ---- ink statement bands → teal ---- */
.band-ink { background: var(--bg); }
.band-ink .band-stmt { border-left-color: var(--cyan); }
.band-ink .eyebrow { color: var(--violet-soft); }
.band-ink .eyebrow::before { background: var(--violet-soft); }

/* ---- frieze tiles: ChapsVision pastel/teal alternation ---- */
.section-light .stack-step { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.section-light .stack-step:nth-child(-n+3) { background: var(--bg); border-color: rgba(220,239,227,0.18); }
.section-light .stack-step:nth-child(-n+3) .num,
.section-light .stack-step:nth-child(-n+3) .ic { color: var(--violet-soft); }
.section-light .stack-step .ic { color: var(--violet-ink); }
.section-light .stack-step .num { color: var(--cyan-ink); }

/* ---- stat blocks ---- */
.stat-block { border-image: linear-gradient(90deg, var(--cyan), var(--violet)) 1; }
.section-light .stat-block { border-image: linear-gradient(90deg, var(--violet-ink), var(--cyan-ink)) 1; }
.stat-block .num .unit, .section-light .stat-block .num .unit { color: var(--violet-ink); }

/* ---- CTA band → dark teal with lilac button ---- */
.cta-band { background: var(--surface-1); border-color: var(--line-strong); }
.section-black .eyebrow, .cta-band .eyebrow { color: var(--violet-soft); }
.section-black .eyebrow::before, .cta-band .eyebrow::before { background: var(--violet-soft); }

/* ---- focus ring ---- */
:focus-visible { outline-color: var(--violet-ink); }

/* ---- inner page heroes: dark teal (consistent with home), light text ---- */
.page-hero { background: var(--bg); border-bottom: 1px solid var(--line); }
.page-hero h1, .page-hero .gradient-text { color: var(--text); -webkit-text-fill-color: currentColor; }
.page-hero .gradient-text { color: var(--cyan); -webkit-text-fill-color: var(--cyan); }
.page-hero .lead { color: var(--text-2); }
.page-hero .eyebrow { color: var(--violet-soft); }
.page-hero .eyebrow::before { background: var(--violet-soft); }
.page-hero .breadcrumb { color: var(--text-faint); }
.page-hero .breadcrumb a:hover { color: var(--cyan); }
.page-hero .hero-note { color: var(--text-dim); }
.page-hero .hero-note .ic { color: var(--cyan); }
.page-hero .btn-ghost { color: var(--text); border-color: var(--line-strong); }
.page-hero .btn-ghost:hover { border-color: var(--cyan); background: rgba(239,201,243,0.08); }
.page-hero .tag { background: rgba(220,239,227,0.08); border-color: var(--line); color: var(--text-2); }

/* ============================================================
   28. ChapsVision zoning — wide container, light headings,
   generous space, calm cards, pastel statement blocks
   ============================================================ */
:root { --maxw: 1340px; --gutter: clamp(1.1rem, 4vw, 2.6rem); }

/* headings: confident weight + ChapsVision proportions */
h2 { font-weight: 600; line-height: 1.12; }
h3 { font-weight: 600; }
.section-head { max-width: 60ch; margin-bottom: clamp(2.8rem, 5vw, 4.6rem); }
.section-head .lead { max-width: 64ch; }
.section-head h2 { font-size: clamp(1.95rem, 1.2rem + 2.3vw, 2.9rem); margin-top: 1rem; }
/* full-width section intros: centered so the heading no longer leaves a lopsided empty right */
.wrap > .section-head { margin-inline: auto; text-align: center; }
.wrap > .section-head .eyebrow { justify-content: center; }
.wrap > .section-head .lead { margin-inline: auto; }
.eyebrow { font-size: var(--step--2); }

/* generous vertical rhythm */
section { padding-block: clamp(4.5rem, 8vw, 9rem); }

/* calm cards — bigger radius, more padding, no hairline */
.card { border-radius: var(--radius-lg); padding: clamp(1.7rem, 3vw, 2.5rem); }
.card::before { display: none; }
.section-light .card { background: var(--light-surface); border: 1px solid var(--light-line); box-shadow: none; }
.section-light .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: transparent; }
.icon-tile { border-radius: var(--radius); }
.section-light .icon-tile { box-shadow: none; }

/* bigger grid gaps */
.grid { gap: clamp(1.3rem, 2.4vw, 2.1rem); }
.bento, .bento-3 { gap: clamp(1.1rem, 2vw, 1.8rem); }

/* deflist as thin-line grid (ChapsVision listing) */
.defrow { padding: 1.7rem 0; }
.section-light .defrow { border-color: var(--light-line); }

/* gap-visual → two big pastel statement blocks */
.gap-col { border-radius: var(--radius-lg); padding: clamp(1.7rem, 3.4vw, 2.6rem); border: 0; }
.section-light .gap-truth { background: var(--light-bg-soft); }       /* mint */
.section-light .gap-ai    { background: var(--light-bg-lilac); border: 0; }   /* lilac */
.section-light .gap-truth h4 { color: var(--light-text); }
.section-light .gap-ai h4    { color: var(--light-text); }
.section-light .gap-line { border-bottom-color: rgba(24,33,30,0.08); }

/* standards → calmer pastel tiles */
.section-light .standard { background: var(--light-surface); border: 1px solid var(--light-line); box-shadow: none; border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.section-light .standard:hover { box-shadow: var(--shadow-soft); }

/* stat blocks: lighter numbers (ChapsVision shows large light figures) */
.stat-block .num { font-weight: 500; }

/* CTA band: large rounded teal block w/ centred pill (ChapsVision) */
.cta-band { border-radius: var(--radius-xl); padding: clamp(2.6rem, 6vw, 4.5rem); }

/* media / schematic cards a touch rounder */
.media-card, .schematic-card { border-radius: var(--radius-lg); }

/* wide hero copy column gets a bit more room */
@media (min-width: 941px) { .hero-grid { grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr); } }

/* ============================================================
   Statement bands with a real visual — text left, photo right
   (used on .band-ink bands that carry a .media-card)
   ============================================================ */
.parallax-band.band-split { min-height: clamp(420px, 62vh, 620px); }
.band-ink.band-split::after { display: none; }            /* drop the faint circuit motif */
.band-split .wrap {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(1.6rem, 4.5vw, 3.6rem);
  align-items: center;
}
.band-split .band-stmt { max-width: 46ch; }
.band-split .media-card {
  align-self: stretch;
  min-height: clamp(300px, 42vh, 480px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: var(--shadow-float);
}
@media (max-width: 900px) {
  .band-split .wrap { grid-template-columns: 1fr; }
  .band-split .band-stmt { max-width: none; }
  .band-split .media-card { min-height: 240px; }
}

/* ============================================================
   29. Design improvements pass — palette cleanup, gap-visual
   refonte, motion stagger, card depth, parallax variety, a11y
   (audit-driven; additive layer, overrides résidus above)
   ============================================================ */

/* ---- 29.1 Palette cleanup — scrub bleu-nuit scrims → teal ---- */
/* Tous les scrims rgba(22,28,36)/rgba(24,33,30) hardcodés → teal palette */
.hero-scrim {
  background:
    linear-gradient(180deg, rgba(24,33,30,0.80) 0%, rgba(24,33,30,0.90) 60%, rgba(19,27,24,0.94) 100%),
    radial-gradient(120% 80% at 50% -10%, rgba(239,201,243,0.07), transparent 60%);
}
/* record-card bg déjà teal via §8b — renforce cohérence */
.record-card {
  background: linear-gradient(180deg, rgba(45,57,58,0.92), rgba(35,46,46,0.92));
}
/* media-card scrim → teal + brand tint (cohérent avec photo-section) */
.media-card::after {
  background:
    linear-gradient(180deg, rgba(24,33,30,0.15) 30%, rgba(19,27,24,0.82) 100%),
    linear-gradient(120deg, rgba(239,201,243,0.12), rgba(220,239,227,0.12));
}
/* schematic-card::after → teal (pas bleu nuit) + brand tint */
.schematic-card::after {
  background:
    linear-gradient(120deg, rgba(239,201,243,0.12), rgba(220,239,227,0.12)),
    linear-gradient(180deg, rgba(24,33,30,0.1) 40%, rgba(19,27,24,0.85) 100%);
}
.schematic-card { border-color: var(--line); background: var(--bg); }

/* ---- 29.2 Scrub résidus orange/vermillon (deck identity §25) ---- */
/* .section-light overrides déjà ok via §23/27, mais gap-ai border restait */
.section-light .gap-ai .gap-line::after { background: var(--violet-ink); box-shadow: 0 0 6px rgba(138,79,151,0.4); }
.section-light .gap-truth .gap-line::before { background: var(--cyan-ink); box-shadow: 0 0 8px rgba(93,115,116,0.5); }
.section-light .btn-ghost:hover { background: rgba(138,79,151,0.06); }
.section-light .field input:focus, .section-light .field textarea:focus, .section-light .field select:focus {
  box-shadow: 0 0 0 3px rgba(138,79,151,0.15);
}
/* hero-paper .rc-scan → lilac (pas orange) */
.hero-paper .rc-scan {
  background: linear-gradient(180deg, transparent, rgba(138,79,151,0.06) 60%, rgba(138,79,151,0.10));
  border-bottom-color: rgba(138,79,151,0.45);
}
/* tokenisation couleurs hardcodées */
.card { background: linear-gradient(180deg, var(--surface-1), rgba(24,33,30,0.4)); }  /* pas bleu nuit */
.gap-ai { background: linear-gradient(180deg, rgba(217,138,138,0.06), transparent); border-color: rgba(217,138,138,0.2); }  /* keep danger token */
.gap-ai h4 { color: var(--danger); }
.gap-ai .gap-line::after { background: var(--danger); box-shadow: 0 0 6px var(--danger); }
.form-msg.ok { background: rgba(111,174,142,0.12); border-color: rgba(111,174,142,0.4); color: var(--ok); }
.form-msg.err { background: rgba(217,138,138,0.1); border-color: rgba(217,138,138,0.4); color: var(--danger); }
.btn-primary { color: var(--bg); }   /* pas #1c1c1c */
.hero-dark .record-card { background: var(--light-surface); }

/* ---- 29.3 gap-visual refonte — confrontation visuelle renforcée ---- */
/* Truth = mint verified, AI = lilac struck; barre de "mesure" centrale */
.gap-visual { gap: clamp(1.2rem, 3vw, 2.2rem); align-items: stretch; }
.gap-col {
  position: relative;
  padding: clamp(1.8rem, 3.6vw, 2.8rem);
  border-radius: var(--radius-lg);
  border: 0;
  overflow: hidden;
}
/* Truth — fond mint soft + accent vérifié gauche */
.gap-truth { background: var(--light-bg-soft); }
.section-black .gap-truth, .band-ink .gap-truth { background: linear-gradient(180deg, rgba(111,174,142,0.10), rgba(111,174,142,0.04)); border: 1px solid rgba(111,174,142,0.22); }
.gap-truth h4 { color: var(--ok); }
.section-light .gap-truth h4 { color: var(--light-text); }
.gap-truth .gap-line { position: relative; padding-left: 1.6rem; }
.gap-truth .gap-line::before {
  content: "✓"; position: absolute; left: 0; top: 0.7rem;
  width: 1rem; height: 1rem; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
  color: var(--ok); background: rgba(111,174,142,0.15); border-radius: 50%;
  box-shadow: none; transform: none; animation: none !important;
}
.section-light .gap-truth .gap-line::before { color: var(--ok); background: rgba(111,174,142,0.18); }
/* AI — fond lilac soft + strike-through doux */
.gap-ai { background: var(--light-bg-lilac); border: 0; }
.section-black .gap-ai, .band-ink .gap-ai { background: linear-gradient(180deg, rgba(217,138,138,0.10), rgba(217,138,138,0.04)); border: 1px solid rgba(217,138,138,0.22); }
.section-light .gap-ai { background: var(--light-bg-lilac); }
.gap-ai h4 { color: var(--danger); }
.section-light .gap-ai h4 { color: var(--light-text); }
.gap-ai .gap-line { position: relative; color: var(--text-dim); text-decoration: line-through; text-decoration-color: rgba(217,138,138,0.55); text-decoration-thickness: 1.5px; }
.section-light .gap-ai .gap-line { color: var(--light-text-dim); }
/* reset l'ancien ::after strike animé (remplacé par text-decoration) */
.gap-ai .gap-line::after { content: none; display: none; animation: none !important; }
/* Divider central — barre de mesure qui se remplit */
.gap-divider {
  position: relative;
  min-width: 64px;
  border-radius: var(--radius);
  background: var(--light-surface);
  border: 1px solid var(--light-line);
  overflow: hidden;
}
.section-black .gap-divider, .band-ink .gap-divider { background: var(--surface-1); border-color: var(--line); }
.gap-divider .bolt {
  position: relative; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); color: var(--bg);
  box-shadow: 0 0 0 4px rgba(239,201,243,0.18);
}
.gap-divider .bolt .ic { width: 24px; height: 24px; stroke-width: 2; }
.gap-divider .label { position: relative; z-index: 2; font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.14em; text-transform: uppercase; color: var(--light-text-dim); }
.section-black .gap-divider .label, .band-ink .gap-divider .label { color: var(--text-faint); }
/* barre de progression verticale (remplissage "gap measured") */
.gap-divider::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0;
  background: linear-gradient(0deg, var(--cyan), var(--violet));
  opacity: 0.18; z-index: 1;
  transition: height 0.9s var(--ease) 0.4s;
}
.gap-visual.in .gap-divider::after { height: 100%; }
@media (max-width: 760px) {
  .gap-visual { grid-template-columns: 1fr; }
  .gap-divider { display: flex; flex-direction: row; min-height: 56px; height: auto; justify-content: center; }
  .gap-divider::after { height: 100% !important; width: 0; left: 0; top: 0; bottom: 0; transition: width 0.9s var(--ease) 0.4s; }
  .gap-visual.in .gap-divider::after { width: 100%; height: 100%; }
}

/* ---- 29.4 Hero record-card — boucle de la séquence scan→strike→correct ---- */
/* La séquence existante (rcScan, rcStrike, rcReveal) ne joue qu'une fois.
   On la reboucle toutes les 9s en réinitialisant les états. */
@keyframes rcLoopReset {
  0%, 88% { opacity: 1; }
  90%     { opacity: 0; }
  92%     { opacity: 0; }
  100%    { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .record-card .rc-false,
  .record-card .rc-true,
  .record-card .rc-prov,
  .record-card .rc-arrow svg { animation-iteration-count: infinite; animation-duration: 9s; }
  .record-card .rc-scan { animation: rcScan 9s var(--ease) infinite; }
  .record-card .rc-false::after { animation: rcStrike 1.1s var(--ease) 1.7s infinite; }
  .record-card .rc-arrow svg { animation: rcArrow 0.6s var(--ease) 2.3s infinite; }
  .record-card .rc-true { animation: rcReveal 0.85s var(--ease) 2.6s infinite; }
  .record-card .rc-prov { animation: rcReveal 0.85s var(--ease) 2.95s infinite; }
}

/* ---- 29.5 Stagger des reveals (cascade par enfant) ---- */
.reveal > * { opacity: 0; transform: translateY(16px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal.in > * { opacity: 1; transform: none; }
.reveal.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal.in > *:nth-child(2) { transition-delay: 0.12s; }
.reveal.in > *:nth-child(3) { transition-delay: 0.19s; }
.reveal.in > *:nth-child(4) { transition-delay: 0.26s; }
.reveal.in > *:nth-child(5) { transition-delay: 0.33s; }
.reveal.in > *:nth-child(6) { transition-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal > * { opacity: 1; transform: none; transition: none; }
}
/* bento-3 cards : stagger direct enfants (cascade) */
.bento-3 > .card { transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.bento-3.in > .card:nth-child(1) { transition-delay: 0.04s; }
.bento-3.in > .card:nth-child(2) { transition-delay: 0.12s; }
.bento-3.in > .card:nth-child(3) { transition-delay: 0.20s; }

/* ---- 29.6 Frieze — connecteurs "continuous loop" ---- */
/* ligne de progression reliant les 6 steps, matérialisant la boucle */
.section-light .stack-frieze { position: relative; gap: clamp(0.8rem, 1.6vw, 1.2rem); }
.stack-frieze { position: relative; }
.stack-frieze::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--cyan));
  opacity: 0; transform: scaleX(0); transform-origin: left;
  transition: opacity 0.6s var(--ease), transform 1.1s var(--ease) 0.2s;
  z-index: 0; pointer-events: none;
}
.stack-frieze.in::before { opacity: 0.35; transform: scaleX(1); }
@media (max-width: 1000px) { .stack-frieze::before { display: none; } }
/* les steps au-dessus de la ligne */
.stack-step { position: relative; z-index: 1; }

/* ---- 29.7 Cards — hover lift + bento asymétrique accentué ---- */
.card { will-change: transform; }
.card:hover { transform: translateY(-6px); }
.section-light .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); }
/* card "feature" — une card accentuée en lilac soft dans le bento */
.section-light .bento > .card:nth-child(1),
.section-light .bento-3 > .card:nth-child(3) {
  background: var(--light-bg-lilac);
  border-color: rgba(138,79,151,0.18);
}
.section-light .bento > .card:nth-child(1) .icon-tile,
.section-light .bento-3 > .card:nth-child(3) .icon-tile {
  background: linear-gradient(135deg, rgba(138,79,151,0.20), rgba(138,79,151,0.10));
  color: var(--violet-ink);
}

/* ---- 29.8 Parallax bands — diversifier la composition ---- */
/* Band 1 (Transparent by design) : split text+image (existant)
   Band 2 (Always on) : full-bleed image + overlay texte centré */
.parallax-band.band-bleed .wrap {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 760px;
}
.parallax-band.band-bleed .band-stmt { max-width: none; margin-inline: auto; }
.parallax-band.band-bleed .eyebrow { justify-content: center; }
.parallax-band.band-bleed .hero-actions { justify-content: center; }
.parallax-band.band-bleed .media-card { display: none; }   /* full-bleed instead */
.parallax-band.band-bleed {
  position: relative;
  background-image: var(--photo, none);
  background-size: cover;
  background-position: center;
}
.parallax-band.band-bleed::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(19,27,24,0.72), rgba(19,27,24,0.88));
}
.parallax-band.band-bleed .wrap { position: relative; z-index: 1; }

/* ---- 29.9 Rythme vertical — diviseurs gradients entre sections ---- */
/* transition douce dark→light au lieu de coupure nette */
.section-light.section-line:first-of-type { border-top: 0; box-shadow: inset 0 24px 40px -32px rgba(24,33,30,0.5); }
/* espacement H2 → lead plus généreux */
.section-head h2 { margin-bottom: 0.4rem; }
.section-head .lead { margin-top: 1.4rem; }

/* ---- 29.10 A11y — contraste + focus ---- */
/* text-dim sur surface-1 : ratio ~4.3 → renforce vers 4.6+ */
:root { --text-dim: #aab8b0; }
/* focus ring plus visible sur btn-ghost */
.btn-ghost:focus-visible { outline-offset: 4px; box-shadow: 0 0 0 4px rgba(239,201,243,0.25); }
.btn:focus-visible { outline-offset: 4px; }
/* focus sur liens body */
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
/* respect reduced motion : désactiver marquee aussi */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .record-card .rc-scan, .record-card .rc-false::after,
  .record-card .rc-arrow svg, .record-card .rc-true, .record-card .rc-prov { animation: none !important; }
}
