/* ═══════════════════════════════════════════════════════════════════
   HEURYSTIX — Blackwood v3 · "Signal in the Dark"
   Effortless content. Engineered outcomes.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Blackwood palette */
  --bg:        #0A0C0B;
  --surface:   #121614;
  --raised:    #1A201D;
  --text:      #F2F5F3;
  --muted:     #8A938E;
  --emerald:   #10B981;
  --deep:      #0F5132;
  --brass:     #C8A24B;
  --brass-dim: #8a6f33;
  --acid:      #39FF8B;   /* Eff / Lab surfaces only */
  --danger:    #E5484D;

  /* Type */
  --f-display: 'Space Grotesk', sans-serif;
  --f-body:    'IBM Plex Sans', sans-serif;
  --f-mono:    'IBM Plex Mono', monospace;

  /* Neomorphic shadow recipe (dark) */
  --neo-out: -10px -10px 24px rgba(255,255,255,.028), 12px 14px 32px rgba(0,0,0,.62);
  --neo-in:  inset 6px 8px 18px rgba(0,0,0,.55), inset -6px -6px 14px rgba(255,255,255,.025);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

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

::selection { background: var(--emerald); color: var(--bg); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* Hide native cursor when custom cursor is active */
@media (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button,
  body.has-cursor input, body.has-cursor textarea, body.has-cursor select,
  body.has-cursor label { cursor: none; }
}

/* ── WebGL canvas + film grain ─────────────────────────────────── */
#scene {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 100;
  pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-6%,4%); }
  40% { transform: translate(4%,-7%); } 60% { transform: translate(-3%,6%); }
  80% { transform: translate(6%,-3%); }
}

main { position: relative; z-index: 1; }

/* ── Custom cursor ─────────────────────────────────────────────── */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%,-50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px; background: var(--emerald);
  transition: opacity .3s;
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(16,185,129,.55);
  display: flex; align-items: center; justify-content: center;
  transition: width .35s var(--ease), height .35s var(--ease),
              border-color .35s, background-color .35s;
}
.cursor-ring span {
  font-family: var(--f-mono); font-size: .55rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--bg); opacity: 0;
  transition: opacity .2s;
}
.cursor-hover .cursor-ring {
  width: 64px; height: 64px;
  background: rgba(16,185,129,.92); border-color: transparent;
}
.cursor-hover .cursor-ring span { opacity: 1; }
.cursor-hover .cursor-dot { opacity: 0; }
.cursor-hidden .cursor-dot, .cursor-hidden .cursor-ring { opacity: 0; }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ── Preloader ─────────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2rem;
  transition: transform .9s cubic-bezier(.7,0,.3,1);
}
#loader.is-done { transform: translateY(-100%); }
#loader svg { width: 72px; height: 72px; }
#loader .loader-line {
  width: min(240px, 50vw); height: 1px; background: var(--raised);
  position: relative; overflow: hidden;
}
#loader .loader-line i {
  position: absolute; inset: 0; background: var(--emerald);
  transform: scaleX(0); transform-origin: left;
}
#loader .loader-pct {
  font-family: var(--f-mono); font-size: .7rem;
  letter-spacing: .3em; color: var(--muted);
}

/* ── Nav ───────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  mix-blend-mode: normal;
  transition: transform .5s var(--ease), opacity .8s var(--ease);
}
body:not(.is-loaded) .nav { opacity: 0; transform: translateY(-40px); }
.nav.is-hidden { transform: translateY(-110%); }
.nav-logo { display: flex; align-items: center; gap: .65rem; }
.nav-logo svg { width: 30px; height: 30px; }
.nav-logo b {
  font-family: var(--f-display); font-weight: 600;
  font-size: 1.02rem; letter-spacing: .14em;
}
.nav-links { display: flex; gap: 1.8rem; }
.nav-links a {
  font-family: var(--f-mono); font-size: .66rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  transition: color .3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: var(--emerald);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ── Chapter rail (right side) ─────────────────────────────────── */
.rail {
  position: fixed; right: 1.35rem; top: 50%; z-index: 400;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: .9rem;
}
.rail a {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--muted); opacity: .38;
  transition: all .4s var(--ease);
}
.rail a.active {
  opacity: 1; background: var(--emerald);
  box-shadow: 0 0 12px rgba(16,185,129,.8);
  transform: scale(1.5);
}
@media (max-width: 760px) { .rail { display: none; } }

/* ── Shared section chrome ─────────────────────────────────────── */
section { position: relative; padding: clamp(6rem, 14vh, 11rem) var(--gutter); }
.chapter {
  font-family: var(--f-mono); font-size: .66rem;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--emerald);
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: clamp(2rem, 5vh, 3.6rem);
}
.chapter::after {
  content: ''; height: 1px; width: clamp(48px, 8vw, 120px);
  background: linear-gradient(90deg, var(--emerald), transparent);
}
.wrap { max-width: 1280px; margin: 0 auto; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.04; }
.display-xl { font-size: clamp(2.7rem, 8.5vw, 7.4rem); letter-spacing: -.02em; }
.display-lg { font-size: clamp(2.1rem, 5.6vw, 4.6rem); letter-spacing: -.015em; }
.display-md { font-size: clamp(1.5rem, 3.4vw, 2.6rem); }

.lede { font-size: clamp(1.02rem, 1.5vw, 1.28rem); color: var(--muted); max-width: 46ch; }
.mono-tag {
  font-family: var(--f-mono); font-size: .68rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}

/* split-line reveal scaffolding */
.split .line { display: block; overflow: hidden; }
.split .line > span { display: block; transform: translateY(115%); }
/* hero headline reveals via CSS once loader lifts (rAF-proof) */
#hero-title .line > span { transition: transform 1.15s var(--ease); }
#hero-title .line:nth-child(1) > span { transition-delay: .40s; }
#hero-title .line:nth-child(2) > span { transition-delay: .55s; }
body.is-loaded #hero-title .line > span { transform: translateY(0); }

/* ── HERO ──────────────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 20vh;
}
#hero .hero-kicker {
  display: flex; align-items: center; gap: .8rem;
  margin-bottom: 2.2rem;
}
#hero .hero-kicker .pulse-dot { background: var(--emerald); }
#hero h1 em {
  font-style: normal; color: transparent;
  -webkit-text-stroke: 1.5px rgba(200,162,75,.85);
}
#hero .hero-sub {
  margin-top: 2.6rem; display: flex; flex-wrap: wrap;
  align-items: center; gap: 1.4rem 2.5rem;
}
.scroll-cue {
  position: absolute; bottom: 2.4rem; left: var(--gutter);
  display: flex; align-items: center; gap: .9rem;
  transition: opacity 1.2s var(--ease) .9s;
  font-family: var(--f-mono); font-size: .62rem;
  letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue i {
  width: 1px; height: 52px; background: var(--raised);
  position: relative; overflow: hidden; display: block;
}
.scroll-cue i::after {
  content: ''; position: absolute; left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--emerald);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { top: -50%; } 100% { top: 110%; } }
body:not(.is-loaded) .scroll-cue { opacity: 0; }

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  position: relative;
}
.pulse-dot::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid currentColor; opacity: 0;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(.4); opacity: .9; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ── Marquee ───────────────────────────────────────────────────── */
.marquee {
  border-top: 1px solid #1c211e; border-bottom: 1px solid #1c211e;
  padding: 1.05rem 0; overflow: hidden; white-space: nowrap;
  background: rgba(10,12,11,.5); backdrop-filter: blur(4px);
}
.marquee-inner { display: inline-flex; gap: 3.4rem; will-change: transform; }
.marquee span {
  font-family: var(--f-mono); font-size: .74rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 3.4rem;
}
.marquee b { color: var(--emerald); font-weight: 400; }

/* ── MANIFESTO ─────────────────────────────────────────────────── */
#manifesto .wrap { max-width: 1100px; }
.creed { display: grid; gap: clamp(3rem, 8vh, 6rem); }
.creed p {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2rem, 5.6vw, 4.6rem); line-height: 1.1;
  letter-spacing: -.015em; color: var(--muted);
}
.creed p strong { color: var(--text); font-weight: 600; }
.creed p .accent { color: var(--emerald); }
.strike { position: relative; white-space: nowrap; color: var(--muted); }
.strike::after {
  content: ''; position: absolute; left: -2%; right: -2%; top: 54%;
  height: .09em; background: var(--danger);
  transform: scaleX(0) rotate(-1.6deg); transform-origin: left;
  border-radius: 2px;
}
.strike.struck::after { animation: strike .55s var(--ease) forwards; }
@keyframes strike { to { transform: scaleX(1) rotate(-1.6deg); } }

.noslop {
  margin-top: clamp(4rem, 10vh, 7rem);
  display: flex; align-items: center; justify-content: center;
}
.noslop-stamp {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(3.4rem, 11vw, 9.5rem); letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 2px var(--danger);
  transform: rotate(-3deg);
  padding: .1em .35em;
  border: 3px solid var(--danger); border-radius: .18em;
  position: relative;
}

/* ── ENGINE / BE section ───────────────────────────────────────── */
#code .grid-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
@media (max-width: 860px) { #code .grid-2 { grid-template-columns: 1fr; } }
.principle-list { display: grid; gap: 0; margin-top: 1rem; }
.principle {
  padding: 1.6rem 0; border-bottom: 1px solid #1c211e;
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem;
  align-items: baseline;
}
.principle:first-child { border-top: 1px solid #1c211e; }
.principle b {
  font-family: var(--f-mono); font-weight: 400; font-size: .7rem;
  color: var(--brass); letter-spacing: .15em;
}
.principle h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.principle p { color: var(--muted); font-size: .93rem; max-width: 52ch; }

.stat-band {
  margin-top: clamp(3.5rem, 8vh, 6rem);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid #1c211e; border-radius: 18px;
  background: linear-gradient(160deg, rgba(18,22,20,.85), rgba(10,12,11,.6));
  box-shadow: var(--neo-out);
  overflow: hidden;
}
@media (max-width: 760px) { .stat-band { grid-template-columns: 1fr; } }
.stat {
  padding: 2.2rem 2rem;
  border-right: 1px solid #1c211e;
}
.stat:last-child { border-right: 0; }
@media (max-width: 760px) {
  .stat { border-right: 0; border-bottom: 1px solid #1c211e; }
  .stat:last-child { border-bottom: 0; }
}
.stat b {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.5rem); display: block;
  color: var(--text);
}
.stat span { color: var(--muted); font-size: .88rem; }

/* ── THE STACK — twin live tools ───────────────────────────────── */
#complianceos { padding-top: clamp(7rem, 16vh, 13rem); }
.stack-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  gap: 2rem; margin-bottom: clamp(2.5rem, 6vh, 4rem);
}
@media (max-width: 860px) { .stack-head { grid-template-columns: 1fr; } }
.stack-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  align-items: stretch;
}
@media (max-width: 960px) { .stack-grid { grid-template-columns: 1fr; } }
.stack-card {
  display: flex; flex-direction: column; gap: 1.05rem;
  border-radius: 26px; border: 1px solid rgba(200,162,75,.22);
  background:
    radial-gradient(120% 140% at 85% -10%, rgba(15,81,50,.33), transparent 55%),
    linear-gradient(150deg, #141a17, #0c0f0d 70%);
  box-shadow: var(--neo-out);
  padding: clamp(1.8rem, 3.4vw, 2.8rem);
  position: relative; overflow: hidden;
}
.stack-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(242,245,243,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,245,243,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(90% 90% at 70% 10%, black, transparent 75%);
}
.stack-card > * { position: relative; }
.stack-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.stack-card h3 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 600; letter-spacing: -.015em;
}
.stack-tag {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.02rem, 1.5vw, 1.25rem); color: var(--brass);
}
.stack-copy { color: var(--muted); font-size: .93rem; flex: 1; }
.stack-card .btn { align-self: flex-start; }

/* shared mock chrome */
.mock {
  border: 1px solid #232b26; border-radius: 14px;
  background: #0A0D0B;
  box-shadow: var(--neo-in);
  overflow: hidden;
  font-family: var(--f-mono);
  margin: .4rem 0 .6rem;
}
.mock-bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .6rem .9rem; border-bottom: 1px solid #1c211e;
  background: #101412;
}
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: #2a322d; }
.mock-bar i:first-child { background: #3a2c2c; }
.mock-bar span {
  margin-left: .5rem; font-size: .58rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mock-body { padding: 1rem 1.1rem; position: relative; overflow: hidden; }
.mock-body .ln { font-size: .72rem; line-height: 2.1; color: #A9B3AD; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-body .ln.dim { color: #55605A; }
.mock-foot {
  border-top: 1px solid #1c211e; padding: .65rem 1.1rem;
  position: relative; min-height: 2.2em;
}
.verdict {
  font-size: .6rem; letter-spacing: .18em; text-transform: uppercase;
  position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
}

/* ComplianceOS mock animation */
.cos-mock .ln.flag b { color: var(--text); position: relative; padding: .1em .25em; border-radius: 3px; }
.cos-mock .ln.flag b::after {
  content: ''; position: absolute; inset: 0; border-radius: 3px;
  background: rgba(229,72,77,.18); border: 1px solid rgba(229,72,77,.55);
  opacity: 0; animation: flagPulse 7s ease-in-out infinite;
}
.cos-mock .ln.fix { color: var(--emerald); opacity: 0; animation: fixIn 7s ease-in-out infinite; }
.cos-mock .scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 26%;
  background: linear-gradient(180deg, transparent, rgba(16,185,129,.08), transparent);
  border-bottom: 1px solid rgba(16,185,129,.25);
  animation: scan 7s ease-in-out infinite;
}
.verdict.v-flag { color: var(--danger); opacity: 0; animation: vFlag 7s ease-in-out infinite; }
.verdict.v-pass { color: var(--emerald); opacity: 0; animation: vPass 7s ease-in-out infinite; }
@keyframes scan { 0% { top: -30%; } 38%, 100% { top: 110%; } }
@keyframes flagPulse { 0%, 18% { opacity: 0; } 26%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes fixIn { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes vFlag { 0%, 24% { opacity: 0; } 30%, 48% { opacity: 1; } 54%, 100% { opacity: 0; } }
@keyframes vPass { 0%, 56% { opacity: 0; } 64%, 94% { opacity: 1; } 100% { opacity: 0; } }

/* AI Native mock animation */
.sov { display: grid; grid-template-columns: 5.2rem 1fr 2.6rem; align-items: center; gap: .7rem; margin: .55rem 0; }
.sov span { font-size: .62rem; letter-spacing: .08em; color: #7E8A83; text-transform: uppercase; }
.sov b { font-size: .66rem; color: #A9B3AD; font-weight: 400; text-align: right; }
.sov-track { height: 7px; border-radius: 99px; background: #141917; overflow: hidden; }
.sov-bar {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #0F5132, #10B981);
  transform-origin: left; animation: sovGrow 6s var(--ease) infinite;
}
.sov-bar.b1 { --w: .34; animation-delay: .0s; }
.sov-bar.b2 { --w: .27; animation-delay: .25s; }
.sov-bar.b3 { --w: .19; animation-delay: .5s; }
.sov-bar.b4 { --w: .72; animation-delay: .8s; background: linear-gradient(90deg, #8a6f33, #C8A24B); }
.sov.you span, .sov.you b { color: var(--brass); }
@keyframes sovGrow {
  0% { transform: scaleX(0); }
  18%, 88% { transform: scaleX(var(--w)); }
  100% { transform: scaleX(0); }
}

.live-chip {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-mono); font-size: .64rem;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--emerald);
  border: 1px solid rgba(16,185,129,.4); border-radius: 999px;
  padding: .5rem 1.05rem;
  background: rgba(16,185,129,.07);
}
.live-chip .pulse-dot { width: 7px; height: 7px; background: var(--emerald); }
.partner-note {
  font-family: var(--f-mono); font-size: .66rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.partner-note b { color: var(--brass); font-weight: 400; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .8rem;
  font-family: var(--f-mono); font-size: .72rem;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 1.05rem 1.9rem; border-radius: 999px;
  position: relative; overflow: hidden;
  transition: color .35s var(--ease);
}
.btn svg { width: 13px; height: 13px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translate(3px,-3px); }
.btn-primary { background: var(--emerald); color: #05261a; font-weight: 500; }
.btn-primary::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: var(--brass); transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn-primary:hover::after { transform: translateY(0); }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
.btn-primary:hover { color: #221803; }
.btn-ghost {
  border: 1px solid #2a322d; color: var(--text);
  background: rgba(18,22,20,.5);
  transition: border-color .35s, background .35s;
}
.btn-ghost:hover { border-color: var(--emerald); background: rgba(16,185,129,.06); }

/* ── SERVICES index ────────────────────────────────────────────── */
.svc-list { border-top: 1px solid #1c211e; }
.svc {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: clamp(1.2rem, 4vw, 3.5rem);
  padding: clamp(1.6rem, 3.4vh, 2.6rem) .4rem;
  border-bottom: 1px solid #1c211e;
  position: relative;
  transition: padding-left .45s var(--ease);
  overflow: hidden;
}
.svc .ghost {
  position: absolute; right: clamp(3rem, 8vw, 7rem); top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(5rem, 12vw, 10rem); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(138,147,142,.16);
  pointer-events: none; z-index: 0;
  transition: -webkit-text-stroke-color .5s, transform .7s var(--ease);
}
.svc:hover .ghost {
  -webkit-text-stroke-color: rgba(16,185,129,.4);
  transform: translateY(-50%) translateX(-1.2rem);
}
.svc > *:not(.ghost) { position: relative; z-index: 1; }
.svc::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, rgba(16,185,129,.09), transparent);
  transition: width .5s var(--ease);
}
.svc:hover { padding-left: 1.6rem; }
.svc:hover::before { width: 100%; }
.svc i {
  font-family: var(--f-mono); font-style: normal; font-size: .68rem;
  color: var(--brass); letter-spacing: .15em;
}
.svc h3 {
  font-size: clamp(1.45rem, 3.4vw, 2.7rem); font-weight: 500;
  transition: color .3s, transform .45s var(--ease);
}
.svc:hover h3 { color: var(--emerald); }
.svc p {
  grid-column: 2; color: var(--muted); font-size: .92rem; max-width: 62ch;
  margin-top: .35rem;
}
.svc .svc-arrow {
  grid-row: 1 / span 2; align-self: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid #2a322d;
  display: flex; align-items: center; justify-content: center;
  transition: all .4s var(--ease);
}
.svc:hover .svc-arrow {
  background: var(--emerald); border-color: var(--emerald);
  transform: rotate(45deg);
}
.svc .svc-arrow svg { width: 14px; height: 14px; }
.svc:hover .svc-arrow svg { stroke: #05261a; }

/* ── INTERSTITIAL — full-bleed statement ───────────────────────── */
.interstitial {
  padding: clamp(7rem, 18vh, 14rem) var(--gutter);
  display: flex; justify-content: center; text-align: center;
}
.inter-line {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(3.4rem, 11vw, 10rem); line-height: .98;
  letter-spacing: -.03em; color: var(--text);
}
.inter-line em {
  font-style: normal; color: transparent;
  -webkit-text-stroke: 2px var(--emerald);
}

/* ── THE LAB (acid quarantine) ─────────────────────────────────── */
#lab {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(57,255,139,.05), transparent 70%),
    #070908;
  border-top: 1px solid #12241a; border-bottom: 1px solid #12241a;
}
#lab .chapter { color: var(--acid); }
#lab .chapter::after { background: linear-gradient(90deg, var(--acid), transparent); }
.lab-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; }
.lab-grid {
  margin-top: clamp(2.6rem, 6vh, 4.5rem);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem;
}
@media (max-width: 760px) { .lab-grid { grid-template-columns: 1fr; } }
.lab-card {
  border: 1px solid #14291d; border-radius: 18px;
  background: linear-gradient(160deg, #0d1410, #080b09);
  padding: 2rem 1.9rem;
  position: relative; overflow: hidden;
  transition: border-color .4s;
}
.lab-card::after { /* scanline */
  content: ''; position: absolute; left: 0; right: 0; top: -40%;
  height: 34%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(57,255,139,.06), transparent);
  transition: top 1s var(--ease);
}
.lab-card:hover { border-color: rgba(57,255,139,.4); }
.lab-card:hover::after { top: 110%; }
.lab-card .mono-tag { color: #4a5b51; }
.lab-name {
  font-family: var(--f-mono); font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--acid); margin: 1.1rem 0 .55rem;
  letter-spacing: .02em;
}
.lab-card p { color: #66756c; font-size: .9rem; max-width: 46ch; }
.lab-status {
  margin-top: 1.5rem; display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--f-mono); font-size: .6rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--acid);
  border: 1px dashed rgba(57,255,139,.35); border-radius: 4px;
  padding: .42rem .8rem;
}
.lab-status .pulse-dot { width: 6px; height: 6px; background: var(--acid); }
.lab-foot { margin-top: 2.8rem; color: #4a5b51; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; }
.lab-foot b { color: var(--acid); font-weight: 400; }

/* ── FOUNDERS ──────────────────────────────────────────────────── */
.founders-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.6rem, 4vw, 3.4rem);
  margin-top: 1rem;
}
@media (max-width: 860px) { .founders-grid { grid-template-columns: 1fr; } }
.founder {
  border-radius: 22px; border: 1px solid #1c211e;
  background: var(--surface); box-shadow: var(--neo-out);
  overflow: hidden;
}
.founder-photo {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3.4;
  isolation: isolate;
}
.founder-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.92);
  transform: scale(1.06);
  transition: transform 1.1s var(--ease), filter .8s;
}
.founder-photo::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(15,81,50,.5), rgba(10,12,11,.25) 55%, rgba(200,162,75,.14));
  mix-blend-mode: color; pointer-events: none;
}
.founder-photo::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(0deg, rgba(10,12,11,.85), transparent 45%);
  pointer-events: none;
}
.founder:hover .founder-photo img { transform: scale(1.0); filter: grayscale(.25) contrast(1.05); }
.founder-body { padding: 1.9rem 1.9rem 2.2rem; }
.founder-body .mono-tag { color: var(--brass); }
.founder-body h3 { font-size: 1.5rem; margin: .5rem 0 .8rem; }
.founder-body p { color: var(--muted); font-size: .94rem; }
.founders-line {
  margin-top: clamp(3rem, 7vh, 5rem); text-align: center;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.3rem, 2.8vw, 2.1rem); color: var(--text);
}
.founders-line .accent { color: var(--emerald); }

/* ── CONTACT ───────────────────────────────────────────────────── */
#contact .grid-2 {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem);
}
@media (max-width: 860px) { #contact .grid-2 { grid-template-columns: 1fr; } }
.contact-form { display: grid; gap: 1.15rem; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid #1c211e; border-radius: 14px;
  box-shadow: var(--neo-in);
  color: var(--text); font-family: var(--f-body); font-size: .95rem;
  padding: 1.15rem 1.25rem;
  outline: none; transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--emerald);
  box-shadow: var(--neo-in), 0 0 0 3px rgba(16,185,129,.14);
}
.field label {
  position: absolute; top: -0.5em; left: 1rem;
  background: var(--bg); padding: 0 .5em;
  font-family: var(--f-mono); font-size: .58rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.field select { color: var(--muted); }
.form-note { font-family: var(--f-mono); font-size: .66rem; color: var(--muted); letter-spacing: .1em; }
.form-status {
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em;
  min-height: 1.4em;
}
.form-status.ok { color: var(--emerald); }
.form-status.err { color: var(--danger); }
.contact-meta { display: grid; gap: 2rem; align-content: start; }
.contact-meta a.big-mail {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid #2a322d; padding-bottom: .3rem;
  transition: color .3s, border-color .3s;
  width: fit-content;
}
.contact-meta a.big-mail:hover { color: var(--emerald); border-color: var(--emerald); }

/* ── FOOTER ────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid #1c211e;
  padding: clamp(3rem, 7vh, 5rem) var(--gutter) 2.4rem;
  position: relative; z-index: 1;
}
.foot-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 2.5rem; align-items: center;
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.foot-seal { width: 92px; height: 92px; }
.foot-copy p { color: var(--muted); font-size: .86rem; max-width: 60ch; }
.foot-copy .mono-tag { display: block; margin-bottom: .6rem; color: var(--brass); }
.foot-legal {
  max-width: 1280px; margin: 3rem auto 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  border-top: 1px solid #14181615; border-top-color: #1c211e;
  padding-top: 1.6rem;
  font-family: var(--f-mono); font-size: .62rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.foot-legal .no-slop { color: var(--danger); }

/* ── Reveal helpers (JS adds .in) ──────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(46px); }
.fade-up.in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }

/* ── Reduced motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  body::after { display: none; }
  .split .line > span { transform: none !important; }
  .fade-up { opacity: 1; transform: none; }
  .sov-bar { animation: none; transform: scaleX(var(--w)); }
  .cos-mock .scanline, .verdict.v-flag { display: none; }
  .cos-mock .ln.fix, .verdict.v-pass { animation: none; opacity: 1; }
  .cos-mock .ln.flag b::after { animation: none; opacity: 1; }
}
