/* =========================================================
   Factor127 AI — powered by CertAInty
   Variant B — "Deep Tech Cinema"
   Edge leads, trust disciplines it.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* canvas */
  --bg-0: #060614;
  --bg-1: #0B0B22;
  --navy: #141435;
  --navy-2: #1D144A;

  /* ink on dark */
  --ink: #F2F1FB;
  --mut: #ABA7CF;
  --dim: #807CAD;

  /* brand */
  --cyan: #00E5FF;
  --cyan-deep: #0A7F96;
  --magenta: #FF00FC;   /* bright — legible accent on dark */
  --magenta-deep: #CD01CA;

  /* glass */
  --glass-bg: linear-gradient(160deg, rgba(255,255,255,.055) 0%, rgba(255,255,255,.018) 100%);
  --glass-border: linear-gradient(135deg, rgba(0,229,255,.38) 0%, rgba(255,255,255,.10) 38%, rgba(255,255,255,.05) 62%, rgba(255,0,252,.30) 100%);
  --glass-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 60px rgba(3,3,14,.55), 0 4px 14px rgba(3,3,14,.4);

  /* type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Space Grotesk', system-ui, -apple-system, sans-serif;

  /* spacing scale */
  --sp-1: 4px;  --sp-2: 8px;   --sp-3: 14px;  --sp-4: 22px;
  --sp-5: 34px; --sp-6: 52px;  --sp-7: 80px;  --sp-8: 120px;
  --sec: clamp(88px, 11vw, 148px);

  --radius: 20px;
  --radius-sm: 14px;
  --wrap: 1120px;

  --ease-out: cubic-bezier(.19, 1, .22, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scrollbar-color: #34306B var(--bg-1);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--cyan); color: #051019; text-shadow: none; }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb {
  background: #34306B;
  border-radius: 8px;
  border: 3px solid var(--bg-1);
}
::-webkit-scrollbar-thumb:hover { background: #45408C; }

img { max-width: 100%; height: auto; }

a { color: var(--cyan); }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--cyan); color: #051019; font-weight: 700;
  padding: 10px 18px; border-radius: 999px; text-decoration: none;
  transition: top .2s var(--ease-out);
}
.skip:focus { top: 14px; }

/* fixed nav must never swallow anchor targets */
[id] { scroll-margin-top: 92px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }

/* ---------- Cinematic backdrop ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--bg-1) 0%, var(--bg-0) 70%);
  pointer-events: none;
}
/* WCAG 2.2.2: the aurora settles — one slow drift after load (≤6s), then the
   film holds its establishing shot. No indefinite background motion. */
.aurora .a { position: absolute; border-radius: 50%; filter: blur(72px); will-change: transform; }
.aurora .a-cyan {
  width: 62vw; height: 62vw; max-width: 900px; max-height: 900px;
  top: -28vw; right: -18vw;
  background: radial-gradient(circle, rgba(0,229,255,.14) 0%, rgba(0,229,255,0) 66%);
  animation: drift-a 4.5s var(--ease-out) both;
}
.aurora .a-magenta {
  width: 56vw; height: 56vw; max-width: 820px; max-height: 820px;
  bottom: -26vw; left: -16vw;
  background: radial-gradient(circle, rgba(205,1,202,.16) 0%, rgba(205,1,202,0) 66%);
  animation: drift-b 5.2s var(--ease-out) both;
}
.aurora .a-violet {
  width: 80vw; height: 60vw; max-width: 1200px; max-height: 860px;
  top: 24%; left: 18%;
  background: radial-gradient(circle, rgba(29,20,74,.85) 0%, rgba(29,20,74,0) 68%);
  animation: drift-c 6s var(--ease-out) both;
}
@keyframes drift-a { from { transform: translate3d(0,0,0) } to { transform: translate3d(-7vw, 9vh, 0) } }
@keyframes drift-b { from { transform: translate3d(0,0,0) } to { transform: translate3d(8vw, -8vh, 0) } }
@keyframes drift-c { from { transform: translate3d(0,0,0) scale(1) } to { transform: translate3d(-5vw, -6vh, 0) scale(1.12) } }

/* film grain — inline SVG turbulence, blended over everything */
.grain {
  position: fixed; inset: 0; z-index: 90;
  width: 100%; height: 100%;
  pointer-events: none;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .045;
  mix-blend-mode: overlay;
}

/* ---------- Glass panel primitive ---------- */
.glass {
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    var(--glass-bg) padding-box,
    var(--glass-border) border-box;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------- Type ---------- */
h1, h2, h3, h4, blockquote {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.012em;
}

.section-h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  max-width: 21ch;
  color: var(--ink);
}

.kicker {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: 12px;
}
/* halftone tick — three shrinking dots before every kicker */
.kicker::before {
  content: "";
  width: 26px; height: 6px; flex: none;
  background-image: radial-gradient(circle, var(--magenta) 2.4px, transparent 2.7px);
  background-size: 10px 6px;
  background-position: 0 50%;
  background-repeat: repeat-x;
  opacity: .9;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 13px 26px; border-radius: 999px; text-decoration: none;
  background: var(--cyan); color: #051019;
  border: 1.5px solid var(--cyan);
  cursor: pointer;
  transform: translate(var(--mx, 0), var(--my, 0));
  transition:
    transform .28s var(--ease-out),
    box-shadow .28s var(--ease-out),
    background .2s ease,
    border-color .2s ease,
    color .2s ease;
  box-shadow: 0 0 0 rgba(0,229,255,0);
}
.btn:hover {
  background: #55EDFF; border-color: #55EDFF;
  box-shadow:
    0 6px 30px rgba(0,229,255,.45),
    0 0 70px rgba(0,229,255,.22);
}
.btn:focus-visible { outline-offset: 4px; }
.btn-lg { padding: 17px 34px; font-size: 1.04rem; }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; white-space: nowrap; }

.btn-ghost {
  background: transparent; color: var(--cyan);
  border-color: rgba(0,229,255,.45);
}
.btn-ghost:hover {
  background: rgba(0,229,255,.08); border-color: var(--cyan);
  box-shadow: 0 0 34px rgba(0,229,255,.16);
}

/* final-CTA beacon: a quiet magenta ember behind the cyan */
.btn-beacon {
  box-shadow:
    0 4px 26px rgba(0,229,255,.35),
    0 0 90px rgba(255,0,252,.14);
}
.btn-beacon:hover {
  box-shadow:
    0 6px 34px rgba(0,229,255,.5),
    0 0 110px rgba(255,0,252,.26);
}

/* ---------- Brand lockup ---------- */
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.05; }
.brand-logo {
  height: 24px; width: auto; display: block;
  filter: drop-shadow(0 0 14px rgba(255,0,252,.35));
}
.brand-sub {
  font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--mut); margin-top: 5px;
}
.brand-sub b { color: var(--magenta); font-weight: 700; }
/* the AI inside CertAInty — the pun made visible, everywhere the name appears */
.brand-ai { color: var(--magenta); font-weight: 700; font-style: normal; }
.trust-kicker .brand-ai { color: var(--magenta); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7,7,24,.55);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled {
  background: rgba(7,7,24,.82);
  box-shadow: 0 12px 40px rgba(3,3,14,.5);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 74px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-link {
  text-decoration: none; color: var(--mut); font-weight: 500; font-size: 0.92rem;
  transition: color .2s ease;
}
.nav-link:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(92vh, 640px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 170px 0 130px;
  overflow: hidden;
}

/* the signature: halftone field, chaos -> clarity on scroll (canvas).
   Mask is soft, not a hole — the ordered grid must read behind the copy. */
.dotfield, .hero-fallback {
  position: absolute; inset: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(110% 100% at 26% 44%, rgba(0,0,0,.24) 0%, rgba(0,0,0,.62) 42%, #000 74%);
  mask-image: radial-gradient(110% 100% at 26% 44%, rgba(0,0,0,.24) 0%, rgba(0,0,0,.62) 42%, #000 74%);
}
/* static ordered dot-grid for the no-JS cut of the film */
.hero-fallback {
  background-image: radial-gradient(circle, rgba(0,229,255,.30) 1.1px, transparent 1.6px);
  background-size: 30px 30px;
}
html.js .hero-fallback { display: none; }

.hero-inner { position: relative; max-width: 900px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.24em;
  font-size: 0.76rem; font-weight: 700; color: var(--cyan);
  margin-bottom: var(--sp-4);
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 38px; height: 8px; flex: none;
  background-image: radial-gradient(circle, var(--cyan) 2.6px, transparent 3px);
  background-size: 12px 8px;
  background-position: 0 50%;
  background-repeat: repeat-x;
}

.hero-h1 {
  font-size: clamp(2.55rem, 6.6vw, 4.7rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
/* "clarity" IS the promise — the one clean grotesk word inside the serif
   sentence: robust, unornamented, a single steady colour */
.hero-h1 .hl {
  font-family: var(--font-body);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.015em;
  font-size: 0.94em; /* optical match to the serif cap height */
  color: var(--cyan);
}

.hero-sub {
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  color: var(--mut);
  margin-top: var(--sp-4);
  max-width: 56ch;
}

.hero-cta { display: flex; gap: var(--sp-3); margin-top: var(--sp-6); flex-wrap: wrap; }

/* scroll cue — three scattered dots that fall into line: chaos -> clarity, in 20px */
.scroll-cue {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
}
.scroll-cue i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan);
  opacity: .85;
  animation: cue-settle 2.6s var(--ease-out) infinite;
}
.scroll-cue i:nth-child(1) { animation-delay: 0s; }
.scroll-cue i:nth-child(2) { animation-delay: .18s; }
.scroll-cue i:nth-child(3) { animation-delay: .36s; }
@keyframes cue-settle {
  0%   { transform: translate(0, -8px); opacity: 0; }
  35%  { transform: translate(0, 0);    opacity: .85; }
  70%  { transform: translate(0, 0);    opacity: .85; }
  100% { transform: translate(0, 6px);  opacity: 0; }
}

/* ---------- AI-client proof strip (top of page) ----------
   actual AI engagements, printed as white silhouettes — the strongest proof,
   placed high. Same silhouette treatment as the demoted pedigree strip below;
   dimming lives in the filter so the reveal rig keeps ownership of opacity. */
.clients {
  position: relative;
  padding: clamp(40px, 5vw, 58px) 0;
  text-align: center;
}
.clients::after {
  content: "";
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(1120px, calc(100% - 48px)); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,.28) 30%, rgba(255,0,252,.22) 70%, transparent);
}
.clients-label {
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 0.7rem; font-weight: 700; color: var(--dim);
  margin-bottom: var(--sp-4);
}
.client-logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 18px clamp(30px, 5vw, 54px);
}
.client-logos img {
  width: auto;
  filter: brightness(0) invert(1) opacity(.6);
  transition: filter .2s ease;
}
.client-logos img:hover { filter: brightness(0) invert(1) opacity(1); }
/* per-logo optical height tuning — mixed sources read unevenly at equal px */
.client--kizner    { height: 26px; }
.client--messieurs { height: 30px; }
.client--strauss   { height: 34px; }
/* .client--nuance { height: 28px; }  ← tune when the 4th asset lands */

/* ---------- Trust strip ---------- */
.trust {
  position: relative;
  padding: clamp(56px, 7vw, 84px) 0;
  text-align: center;
}
.trust::before, .trust::after {
  content: "";
  position: absolute; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100% - 48px)); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,.28) 30%, rgba(255,0,252,.22) 70%, transparent);
}
.trust::before { top: 0; }
.trust::after { bottom: 0; }

.trust-kicker {
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 0.72rem; font-weight: 700; color: var(--cyan);
  margin-bottom: var(--sp-3);
}
.trust-line { color: var(--mut); font-size: 0.95rem; margin-bottom: var(--sp-4); }
.logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px clamp(26px, 4vw, 44px);
}
/* real marks, printed as white silhouettes. Dimming lives in the filter, not
   the opacity property — the reveal rig (.rv/.in, html.rv-settled) owns opacity */
.logos img {
  height: 22px; width: auto;
  filter: brightness(0) invert(1) opacity(.6);
  transition: filter .2s ease;
}
.logos img:hover { filter: brightness(0) invert(1) opacity(1); }
/* optical sizing: compact marks read smaller than long wordmarks at equal height */
.logos .logo--tight { height: 20px; }  /* samsung — long wordmark */
.logos .logo--mark { height: 28px; }   /* P&G lettermark */

/* inline pedigree variant — a supporting row, NOT a second client wall.
   Smaller + greyer + tighter than the top AI-client strip, flowed as a
   continuation of the "20 years…" sentence so the two strips never rhyme. */
.logos--inline {
  gap: 10px clamp(16px, 2.4vw, 26px);
  margin-top: calc(var(--sp-2) * -1);  /* pull up under the trailing "— at" */
  opacity: .9;
}
.logos--inline img { height: 15px; filter: brightness(0) invert(1) opacity(.42); }
.logos--inline img:hover { filter: brightness(0) invert(1) opacity(.75); }
.logos--inline .logo--tight { height: 14px; }
.logos--inline .logo--mark { height: 19px; }
.logos--inline .logo-lr img { height: 20px; }
.logos--inline .logo-lr-label { font-size: .72rem; opacity: .42; }
.logos--inline .logo-lr:hover img { filter: brightness(0) invert(1) opacity(.75); }
.logos--inline .logo-lr:hover .logo-lr-label { opacity: .75; }

.logo-lr { display: inline-flex; align-items: center; gap: 9px; }
.logo-lr img { height: 30px; }         /* LR monogram square — no text in the mark */
.logo-lr-label {
  font-family: var(--font-body); font-weight: 500;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; opacity: .6;
  transition: opacity .2s ease;
  white-space: nowrap;
}
.logo-lr:hover img { filter: brightness(0) invert(1) opacity(1); }
.logo-lr:hover .logo-lr-label { opacity: 1; }
.trust-quote {
  margin-top: var(--sp-5);
  font-family: var(--font-display); font-style: italic;
  font-size: 1.02rem; color: var(--mut);
}
.trust-quote span { font-family: var(--font-body); font-style: normal; font-size: .86rem; color: var(--dim); }
/* the Harley bar & shield — a stamp beside the attribution, not a logo-wall entry */
.trust-quote .hd-mark {
  height: 30px; width: auto;
  display: inline-block; vertical-align: middle;
  margin-left: 10px;
  filter: brightness(0) invert(1) opacity(.5);
}

/* ---------- Problem ---------- */
.problem { padding: var(--sec) 0; }
.problem .section-h2 { max-width: 23ch; margin-bottom: var(--sp-5); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.problem-card {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: 28px 30px;
}
.problem-card .x {
  color: var(--magenta);
  font-size: 1.6rem; font-weight: 700; line-height: 1.25;
  text-shadow: 0 0 18px rgba(255,0,252,.5);
}
.problem-card p { font-size: 1.06rem; color: var(--ink); opacity: .92; }
.problem-turn {
  margin-top: var(--sp-5);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  line-height: 1.3;
  max-width: 30ch;
  color: var(--ink);
}
.problem-turn strong { color: var(--cyan); font-weight: 560; }

/* the plateau aside — the quiet "ChatGPT is the easy 20%" caveat */
.plateau {
  margin-top: var(--sp-5);
  max-width: 62ch;
  padding-left: 20px;
  border-left: 2px solid rgba(0,229,255,.45);
  color: var(--mut);
  font-size: .99rem;
}

/* ---------- How three weeks is enough — the machinery behind the three layers ----------
   magenta-leaning slab (no halftone patch — the diagram itself carries the dot
   motif). Holds: the 4-step diagram and the compact build-it-&-stay tail.
   (The two feature cards that used to live here now live in the layers
   section; their .mech-cards grid rule was removed as dead.) */
.how { position: relative; padding: var(--sec) 0; }
.how::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 90% at 18% 16%, rgba(205,1,202,.10) 0%, transparent 62%),
    radial-gradient(90% 120% at 62% 72%, rgba(29,20,74,.45) 0%, transparent 72%);
}
.how .section-h2 { margin-bottom: var(--sp-4); }
.how-intro {
  font-size: 1.12rem; color: var(--mut); max-width: 56ch;
  margin-bottom: var(--sp-6);
}
/* the diagnostic, step by step — the method section's dotted connector, laid
   flat: four numbered cyan nodes flowing into one magenta outcome chip.
   (Now sits directly under .how-intro — the old --sp-7 top margin doubled up
   with the intro's --sp-6 bottom margin once the feature cards were removed.) */
.mech-flow {
  --mnode: 44px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(160px, 200px);
  gap: var(--sp-4);
  margin-top: var(--sp-4);
}
.mech-node { position: relative; }
.mech-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--mnode) / 2 - 1px);
  left: calc(var(--mnode) + 10px);
  right: -12px;
  height: 2px;
  background-image: radial-gradient(circle, rgba(0,229,255,.55) 1.3px, transparent 1.8px);
  background-size: 13px 2px;
  background-position: 0 50%;
  background-repeat: repeat-x;
}
/* the last segment hands off to the outcome — it turns magenta */
.mech-node:nth-last-child(2)::after {
  background-image: radial-gradient(circle, rgba(255,0,252,.5) 1.3px, transparent 1.8px);
}
.mech-num {
  display: grid; place-items: center;
  width: var(--mnode); height: var(--mnode); border-radius: 50%;
  font-size: .76rem; font-weight: 700; letter-spacing: .1em;
  color: var(--cyan);
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02)) padding-box,
    linear-gradient(135deg, rgba(0,229,255,.5), rgba(255,255,255,.08) 55%, rgba(0,229,255,.22)) border-box;
  box-shadow: 0 10px 34px rgba(3,3,14,.5), 0 0 28px rgba(0,229,255,.09);
  margin-bottom: var(--sp-3);
}
.mech-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.08rem;
  line-height: 1.25;
  color: var(--ink);
}
.mech-sub { display: block; margin-top: 4px; font-size: .84rem; line-height: 1.5; color: var(--dim); }
.mech-chip {
  display: inline-flex; align-items: center;
  min-height: var(--mnode);
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,0,252,.55);
  background: rgba(255,0,252,.08);
  color: var(--ink);
  font-weight: 700; font-size: .92rem; line-height: 1.35;
  box-shadow: 0 0 30px rgba(255,0,252,.14);
}
/* build it & stay — one quiet line; the deliverables section owns the detail */
.how-tail {
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(0,229,255,.16);
  color: var(--mut);
  font-size: 1.05rem;
  max-width: 58ch;
}

/* ---------- The three layers of listening — the centerpiece ----------
   The memorable heart of the page. Reuses .card.glass for the shell; adds
   only the layer typography, the numbered motif, the 3-up grid, and the
   money line. leadership · people · systems — the answer lives where they
   meet. On-system: same glass, same halftone-number language as .mech-num. */
.layers { position: relative; padding: var(--sec) 0; }
.layers .section-h2 { max-width: 24ch; margin-bottom: var(--sp-4); }
.layers-intro {
  font-size: 1.12rem; color: var(--mut); max-width: 56ch;
  margin-bottom: var(--sp-6);
}
.layer-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.layer-card { display: flex; flex-direction: column; }
/* the layer number — a big quiet serif index in the card corner */
.layer-num {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.02rem;
  letter-spacing: .12em;
  color: var(--cyan);
  opacity: .8;
  margin-bottom: var(--sp-3);
}
.layer-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--magenta);
  margin-bottom: var(--sp-2);
}
.layer-where {
  font-size: 1.42rem;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}
.layer-body { color: var(--mut); font-size: .99rem; }
/* the money line — the intersection is your plan. Serif lead, cyan payoff;
   same visual family as .problem-turn so the page keeps one lead-statement voice */
.layers-money {
  margin-top: var(--sp-6);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  line-height: 1.3;
  max-width: 34ch;
  color: var(--ink);
}
.layers-money strong { color: var(--cyan); font-weight: 560; }

/* ---------- Deliverables — mirrored sibling of #technology:
   Ran's portrait left, the three cards stacked right ---------- */
.deliver { padding: var(--sec) 0; }
.deliver .section-h2 { margin-bottom: var(--sp-6); }
.deliver-grid {
  display: grid; grid-template-columns: minmax(280px, 340px) 1fr;
  gap: var(--sp-6);
  align-items: start;
}
.deliver-cards, .tech-cards { display: grid; gap: var(--sp-4); }
.card {
  position: relative;
  padding: 34px 30px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.06) inset,
    0 34px 80px rgba(3,3,14,.65),
    0 0 60px rgba(0,229,255,.07);
}
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(20,20,53,.9), rgba(29,20,74,.9)) padding-box,
    linear-gradient(135deg, rgba(0,229,255,.5), rgba(255,255,255,.06) 60%, rgba(255,0,252,.3)) border-box;
  margin-bottom: var(--sp-4);
  transition: box-shadow .35s var(--ease-out);
}
.card:hover .chip { box-shadow: 0 0 34px rgba(0,229,255,.28); }
.chip img { width: 30px; height: 30px; object-fit: contain; }
.card h3 { font-size: 1.32rem; margin-bottom: var(--sp-3); color: var(--ink); }
.card p { color: var(--mut); font-size: .99rem; }

/* two-person ownership — one quiet line under the deliver grid */
.deliver-own {
  margin-top: var(--sp-5);
  color: var(--mut);
  font-size: 1.05rem;
  max-width: 58ch;
}

/* ---------- Portraits — one quiet system, not a filter ----------
   mostly natural color: gentle desaturation + a faint navy/cyan veil */
.portrait {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--navy), var(--navy)) padding-box,
    linear-gradient(150deg, rgba(0,229,255,.35), rgba(255,255,255,.07) 45%, rgba(255,0,252,.3)) border-box;
  box-shadow: var(--glass-shadow);
}
.portrait img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.75) contrast(1.03) brightness(.97);
}
.portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(0,229,255,.10) 0%, rgba(29,20,74,.26) 82%);
  pointer-events: none;
}
/* the two portrait figures — mirrored siblings (Ran left, Ori right),
   equal frames regardless of source dimensions */
.tech-portrait, .deliver-portrait { margin: 0; }
.tech-portrait .portrait, .deliver-portrait .portrait { aspect-ratio: 4 / 5; }
.tech-portrait .portrait img { object-position: 60% 24%; }
.deliver-portrait .portrait img { object-position: 42% 18%; }
.tech-portrait figcaption, .deliver-portrait figcaption {
  margin-top: var(--sp-3);
  font-size: .86rem; line-height: 1.6; color: var(--dim);
}
.tech-portrait figcaption strong, .deliver-portrait figcaption strong {
  color: var(--mut); font-weight: 500;
}

/* ---------- Technology — the engine room ---------- */
.tech { position: relative; padding: var(--sec) 0; }
.tech::before {
  /* deeper violet slab — the hum of the engine */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 120% at 50% 42%, rgba(29,20,74,.6) 0%, transparent 74%);
}
.tech::after {
  /* the halftone motif at full strength — clarity, fully formed */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,229,255,.18) 1.2px, transparent 1.7px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(70% 80% at 68% 46%, #000 0%, transparent 74%);
  mask-image: radial-gradient(70% 80% at 68% 46%, #000 0%, transparent 74%);
}
.tech-intro {
  margin-top: var(--sp-4);
  font-size: 1.12rem; color: var(--mut); max-width: 52ch;
}
.tech-grid {
  display: grid; grid-template-columns: 1fr minmax(280px, 340px);
  gap: var(--sp-6);
  align-items: start;
  margin-top: var(--sp-6);
}

/* kill switch — a tiny magenta toggle, held in the client's hand */
.card--kill h3 { display: flex; align-items: center; gap: 12px; }
.kill-dot {
  flex: none;
  width: 30px; height: 16px; border-radius: 999px;
  position: relative;
  border: 1px solid rgba(255,0,252,.55);
  background: rgba(255,0,252,.08);
}
.kill-dot::after {
  content: "";
  position: absolute; top: 50%; right: 3px; transform: translateY(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 12px rgba(255,0,252,.8);
}

/* ---------- Proof — "found in one scan" stats + testimonials, merged ----------
   bare stats over hairlines lead as evidence; human quote cards beneath. */
.proof-section { padding: var(--sec) 0; }
.findings-lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  line-height: 1.3;
  color: var(--ink);
  max-width: 34ch;
}
.findings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}
.finding { position: relative; padding-top: var(--sp-4); }
.finding::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(0,229,255,.45), rgba(255,0,252,.25) 70%, transparent);
}
.finding-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.6rem, 4.6vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cyan);
  margin-bottom: var(--sp-3);
  text-shadow: 0 0 34px rgba(0,229,255,.25);
}
.finding p { color: var(--mut); font-size: .95rem; }
.findings-close { margin-top: var(--sp-6); color: var(--dim); font-size: .95rem; }

/* ---------- Testimonials (human proof, beneath the numbers) ---------- */
.proof-quotes-kicker { margin-top: var(--sp-8); margin-bottom: var(--sp-5); }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.q { position: relative; padding: 36px 34px; overflow: hidden; }
/* halftone ornament dissolving out of the corner */
.q::after {
  content: "";
  position: absolute; top: 16px; right: 16px;
  width: 64px; height: 64px;
  background-image: radial-gradient(circle, rgba(0,229,255,.5) 1.6px, transparent 2px);
  background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(circle at 100% 0%, #000 8%, transparent 78%);
  mask-image: radial-gradient(circle at 100% 0%, #000 8%, transparent 78%);
  pointer-events: none;
}
.q--magenta::after { background-image: radial-gradient(circle, rgba(255,0,252,.5) 1.6px, transparent 2px); }
.q blockquote {
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  line-height: 1.32;
  color: var(--ink);
}
.q blockquote em { color: var(--magenta); font-style: italic; }
.q figcaption {
  margin-top: var(--sp-4);
  display: flex; align-items: center; gap: 13px;
  font-weight: 700; font-size: .95rem; color: var(--ink);
}
.q-attr span { color: var(--dim); font-weight: 400; }

/* avatar — the portrait veil shrunk to a coin; the monogram sits beneath the
   photo, so a missing/failed image degrades to initials (img onerror hides it) */
.avatar {
  position: relative; flex: none;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--navy), var(--navy)) padding-box,
    linear-gradient(150deg, rgba(0,229,255,.35), rgba(255,255,255,.07) 45%, rgba(255,0,252,.3)) border-box;
}
.avatar-mono {
  font-family: var(--font-display);
  font-weight: 560; font-size: 1.42rem; line-height: 1;
  color: var(--mut);
}
.avatar img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.75) contrast(1.03) brightness(.97);
}
.avatar::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(0,229,255,.10) 0%, rgba(29,20,74,.26) 82%);
  pointer-events: none;
}

/* ---------- Who ---------- */
.who { padding: calc(var(--sec) * .7) 0; }
.who .section-h2 { max-width: 22ch; margin-bottom: var(--sp-3); }
.who-p { font-size: 1.14rem; color: var(--mut); max-width: 56ch; }

/* ---------- Mid-page CTA — keeps the ask frequent after the proof beat ---------- */
.cta-mid { padding: 0 0 var(--sec); }
.cta-mid-inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: var(--sp-4);
  text-align: center;
}
.cta-mid-line {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--ink);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  padding: var(--sec) 0;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 90% at 50% 110%, rgba(205,1,202,.16) 0%, transparent 60%),
    radial-gradient(80% 100% at 50% -20%, rgba(0,229,255,.1) 0%, transparent 60%),
    radial-gradient(120% 130% at 50% 0%, var(--navy-2) 0%, transparent 75%);
}
/* the halftone dissolve behind the ask — clarity, fully formed */
.cta-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,229,255,.24) 1.1px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(58% 62% at 50% 50%, #000 0%, transparent 72%);
  mask-image: radial-gradient(58% 62% at 50% 50%, #000 0%, transparent 72%);
}
.cta-inner h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  color: var(--ink); max-width: 24ch; margin: 0 auto;
  text-wrap: balance;
}
.cta-inner h2 em { color: var(--cyan); font-style: italic; }
.cta-inner > p { margin: var(--sp-3) 0 0; font-size: 1.14rem; color: var(--mut); }
.cta-inner > p:last-child { margin-top: var(--sp-5); }
/* the shape of the deal — small and quiet, above the button */
.cta-inner .cta-shape {
  font-size: .92rem;
  color: var(--dim);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.foot {
  position: relative;
  padding: 52px 0;
  color: var(--dim);
}
.foot::before {
  content: "";
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100% - 48px)); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,.24) 30%, rgba(255,0,252,.2) 70%, transparent);
}
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.foot-brand { display: flex; flex-direction: column; line-height: 1.05; }
.foot .brand-sub { color: var(--dim); }
.foot .brand-sub b { color: var(--magenta); }
.foot-links a { color: var(--mut); text-decoration: none; font-size: 0.92rem; transition: color .2s ease; }
.foot-links a:hover { color: var(--cyan); }
.foot-copy { font-size: 0.85rem; }

/* ---------- Scroll reveal (JS adds .rv; .in when visible) ----------
   transition lives on .in so adding .rv never animates a fade-OUT */
.rv {
  opacity: 0;
  transform: translateY(22px);
}
.rv.in {
  opacity: 1;
  transform: none;
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--rv-delay, 0ms);
}
/* after the entrance window, visibility no longer depends on transition
   playback — frozen timelines (hidden tabs, capture renderers) get the
   final state directly */
html.rv-settled .rv {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ---------- Responsive ---------- */
/* The diagnostic timeline turns vertical below the wrap width: the horizontal
   5-column row (4 nodes + outcome chip) crowds through the ~940–1120px band
   (node 04's long sub + connectors), so it goes vertical from 1120px down —
   dot rail left, labels right. Same connector logic used at every width below. */
@media (max-width: 1120px) {
  .mech-flow { grid-template-columns: 1fr; gap: 0; }
  .mech-node {
    display: grid;
    grid-template-columns: var(--mnode) 1fr;
    column-gap: 18px;
    padding: 13px 0;
  }
  .mech-num { grid-row: 1 / span 2; margin-bottom: 0; }
  .mech-name { grid-column: 2; padding-top: 2px; }
  .mech-sub { grid-column: 2; margin-top: 2px; }
  .mech-node:not(:last-child)::after {
    top: calc(13px + var(--mnode) + 8px);
    bottom: -5px;
    left: calc(var(--mnode) / 2);
    right: auto;
    transform: translateX(-50%);
    width: 2px;
    height: auto;
    background-image: radial-gradient(circle, rgba(0,229,255,.55) 1.3px, transparent 1.8px);
    background-size: 2px 13px;
    background-position: 50% 0;
    background-repeat: repeat-y;
  }
  .mech-node:nth-last-child(2)::after {
    background-image: radial-gradient(circle, rgba(255,0,252,.5) 1.3px, transparent 1.8px);
  }
  .mech-node--outcome { display: block; padding: 18px 0 0; }
}

@media (max-width: 940px) {
  .tech-grid, .deliver-grid { grid-template-columns: 1fr; }
  .tech-portrait, .deliver-portrait { max-width: 420px; }
  .deliver-portrait { order: 2; } /* stack like #technology: cards first, portrait after */

  /* three problem cards read too skinny as columns below this — the three
     layer cards follow the same rule so the two three-ups stack in step */
  .problem-grid, .layer-cards { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .hero { min-height: 0; padding: 150px 0 110px; }
  .quotes, .findings-grid { grid-template-columns: 1fr; }
  .nav-link { display: none; }
  .brand-sub { font-size: .58rem; }
  .scroll-cue { display: none; }

  /* AI-client strip: smaller optical heights, same per-mark tuning */
  .client-logos { gap: 16px 30px; }
  .client--kizner    { height: 21px; }
  .client--messieurs { height: 24px; }
  .client--strauss   { height: 27px; }
  /* .client--nuance { height: 22px; } */

  /* pedigree logos: smaller optical heights, same per-mark tuning.
     the inline variant stays a notch smaller so it never rhymes with the
     top AI-client wall, even at mobile sizes */
  .logos { gap: 12px 22px; }
  .logos img { height: 17px; }
  .logos .logo--tight { height: 16px; }
  .logos .logo--mark { height: 21px; }
  .logos--inline { gap: 10px 16px; }
  .logos--inline img { height: 13px; }
  .logos--inline .logo--tight { height: 12px; }
  .logos--inline .logo--mark { height: 17px; }
  .logos--inline .logo-lr img { height: 18px; }
  .logo-lr img { height: 22px; }
  .logo-lr-label { font-size: .7rem; }
  .logos--inline .logo-lr-label { font-size: .64rem; }
  .trust-quote .hd-mark { height: 24px; }

  .foot-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .hero-cta .btn { width: 100%; }
  .problem-card { padding: 22px 20px; }
  .q { padding: 28px 22px; }

  /* nav squeeze: logo + CTA must fit a 320px viewport */
  .nav-inner { gap: 10px; }
  .nav-links { gap: 12px; }
  .brand-logo { height: 20px; }
  .brand-sub { font-size: .5rem; letter-spacing: .12em; }
  .nav .btn-sm { padding: 8px 14px; font-size: .8rem; }
}

/* ---------- Reduced motion: the film holds a still ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .aurora .a { animation: none !important; }
  .scroll-cue { display: none; }
  .rv { opacity: 1 !important; transform: none !important; }
  .btn { transform: none !important; }
  .card:hover { transform: none; }
}
