/*
Theme Name:   InnovaDrive
Theme URI:    https://innovadrive.be
Description:  Test-systems engineering theme for InnovaDrive — powertrain test bench commissioning, troubleshooting, automation, validation and AI. Light paper, mauve accent, editorial serif + technical sans/mono. Closed page templates powered by ACF (free).
Author:       InnovaDrive
Author URI:   https://innovadrive.be
Version:      1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  innovadrive
*/

/* ============================================================
   InnovaDrive — design system
   Light paper · mauve accent · editorial serif + technical sans/mono
   ============================================================ */

:root{
  /* palette */
  --violet:        #6d28d9;
  --violet-bright: #8b5cf6;
  --violet-deep:   #4c1d95;
  --lav:           #ece8fb;   /* soft lavender block */
  --lav-line:      #d8d0f6;

  --paper:   #f2f1f4;          /* page background (cool off-white) */
  --paper-2: #ffffff;          /* cards */
  --ink:     #14121b;          /* primary text */
  --ink-2:   #56535f;          /* muted text */
  --ink-3:   #8a8794;          /* faint text */
  --line:    rgba(20,18,27,.11);
  --line-2:  rgba(20,18,27,.06);
  --noir:    #100c1a;          /* black sections */
  --noir-2:  #1c1726;
  --on-noir: #efecf6;
  --on-noir-2: #a39db8;

  /* type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  /* texture intensity (tweakable) */
  --tex: .55;

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 72px);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
::selection{ background: var(--violet); color: #fff; }

/* ---- shared layout ---- */
.wrap{ max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
section{ position: relative; }

/* mono kicker / eyebrow */
.kicker{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--violet);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before{
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: .6;
}
.kicker.plain::before{ display: none; }

h1,h2,h3{ font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; }
h2.display{
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.02;
  margin: 18px 0 0;
  font-weight: 460;
}
.lede{
  font-size: clamp(18px, 1.5vw, 21px);
  color: var(--ink-2);
  max-width: 60ch;
  line-height: 1.55;
}

/* fine grid texture */
.tex-grid{
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-2) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-2) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: var(--tex);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 100%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 100%);
}
.tex-dots{
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(currentColor 1px, transparent 1.4px);
  background-size: 22px 22px;
  opacity: calc(var(--tex) * .16);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  padding: 13px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn .arr{ transition: transform .2s ease; }
.btn:hover .arr{ transform: translateX(4px); }
.btn-primary{ background: var(--violet); color: #fff; }
.btn-primary:hover{ background: var(--violet-deep); }
.btn-ghost{ background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover{ border-color: var(--ink); }
.btn-on-noir{ background: transparent; border-color: rgba(255,255,255,.22); color: var(--on-noir); }
.btn-on-noir:hover{ border-color: #fff; background: rgba(255,255,255,.06); }

/* ============================================================
   HEADER
   ============================================================ */
.home main#content {
    margin-top: -70px;
}
.site-header{
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.site-header.on-dark{
  background: color-mix(in srgb, var(--noir) 74%, transparent);
  border-bottom-color: rgba(255,255,255,.10);
  color: var(--on-noir);
}
.nav{
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand{
  font-family: var(--serif);
  font-size: 25px; font-weight: 600; letter-spacing: -.02em;
  color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 0;
}
.brand svg{ display: block; height: 54px; width: auto; }
.brand svg .cls-1{ transition: fill .15s ease; }
.on-dark .brand svg .cls-1, .on-dark .brand svg .cls-2{ fill: rgba(255,255,255,.7); }
.on-dark .brand{ color: var(--on-noir); }
.brand .drive{ color: var(--violet); }
.on-dark .brand .drive{ color: var(--violet-bright); }
.brand .dot{ color: var(--violet); }

.nav-links{ display: flex; align-items: center; gap: 4px; }
.nav-links a{
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  padding: 9px 14px; border-radius: 2px;
  transition: color .15s ease, background .15s ease;
}
.on-dark .nav-links a{ color: var(--on-noir-2); }
.nav-links a:hover{ color: var(--ink); background: var(--line-2); }
.on-dark .nav-links a:hover{ color: #fff; background: rgba(255,255,255,.06); }
.nav-cta{ margin-left: 10px; }
.nav-toggle{ display: none; }

/* ============================================================
   HERO  (black section, 3 directions via [data-hero])
   ============================================================ */
.hero{
  background: var(--noir);
  color: var(--on-noir);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero .glow{
  position: absolute; pointer-events: none; z-index: 0;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--violet) 60%, transparent), transparent 62%);
  filter: blur(40px);
  opacity: .42;
}
.hero .glow.g1{ top: -16%; right: -8%; }
.hero .glow.g2{ bottom: -30%; left: -10%; width: 40vw; height: 40vw; opacity: .26; }
.hero .hgrid{
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: var(--tex);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 92%);
          mask-image: linear-gradient(to bottom, #000, transparent 92%);
}
.hero .wrap{ position: relative; z-index: 2; }
.hero .kicker{ color: var(--violet-bright); }

.hero-headline{
  font-family: var(--serif);
  font-weight: 420;
  letter-spacing: -.022em;
  line-height: 1.0;
  margin: 22px 0 0;
}
.hero-headline em{ font-style: italic; color: var(--violet-bright); }
.hero-sub{
  color: var(--on-noir-2);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  margin-top: 24px;
}
.hero-cta{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* default hero visibility */
.hero-variant{ display: none; }
.hero[data-hero="a"] .hero-variant.va{ display: block; }
.hero[data-hero="b"] .hero-variant.vb{ display: block; }
.hero[data-hero="c"] .hero-variant.vc{ display: block; }

/* ---- Direction A: split with readout panel ---- */
.va .hero-inner{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
}
.va .hero-headline{ font-size: clamp(42px, 5.6vw, 78px); max-width: 13ch; }
.va .hero-sub{ max-width: 46ch; }

/* readout / spec card */
.readout{
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border-radius: 4px;
  padding: 22px;
  font-family: var(--mono);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.8);
}
.readout-top{
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-noir-2);
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.led{ display: inline-flex; align-items: center; gap: 7px; }
.led::before{
  content:""; width: 7px; height: 7px; border-radius: 50%;
  background: #3ddc84; box-shadow: 0 0 10px #3ddc84;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse{ 50%{ opacity: .35; } }
.readout-row{
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 9px 0; font-size: 13px;
  border-bottom: 1px dashed rgba(255,255,255,.09);
}
.readout-row:last-child{ border-bottom: 0; }
.readout-row .lbl{ color: var(--on-noir-2); }
.readout-row .val{ color: var(--on-noir); }
.readout-row .val b{ color: var(--violet-bright); font-weight: 500; }
/* CAN trace */
.trace{
  margin-top: 16px; height: 56px; width: 100%;
  display: block;
}
.trace path{ stroke: var(--violet-bright); }

/* ---- Direction B: centered editorial ---- */
.vb .hero-inner{
  text-align: center;
  padding: clamp(76px, 11vw, 150px) 0 clamp(56px, 7vw, 100px);
  display: flex; flex-direction: column; align-items: center;
}
.vb .hero-headline{ font-size: clamp(44px, 7vw, 104px); max-width: 16ch; }
.vb .hero-sub{ max-width: 56ch; }
.vb .hero-cta{ justify-content: center; }
.ticker{
  margin-top: 56px; width: 100%;
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
  overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track{
  display: flex; gap: 0; width: max-content;
  animation: scroll 32s linear infinite;
}
.ticker-track span{
  font-family: var(--mono); font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--on-noir-2);
  padding: 16px 30px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 30px;
}
.ticker-track span::after{ content: "✦"; color: var(--violet-bright); }
@keyframes scroll{ to{ transform: translateX(-50%); } }

/* ---- Direction C: oversized type, left ---- */
.vc .hero-inner{
  padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 7vw, 100px);
  max-width: 1000px;
}
.vc .hero-headline{ font-size: clamp(46px, 8vw, 116px); line-height: .96; }
.vc .hero-sub{ max-width: 52ch; }
.vc .hero-meta{
  display: flex; flex-wrap: wrap; gap: 36px; margin-top: 48px;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12);
}
.vc .hero-meta .m{ }
.vc .hero-meta .m .n{
  font-family: var(--serif); font-size: 34px; color: #fff; display: block; line-height: 1;
}
.vc .hero-meta .m .t{
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--on-noir-2); margin-top: 8px; display: block;
}

/* ============================================================
   CLIENTS STRIP
   ============================================================ */
.clients{
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.clients-inner{
  display: flex; align-items: center; gap: clamp(24px, 5vw, 64px);
  padding: 26px 0; flex-wrap: wrap;
}
.clients-label{
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
  max-width: 16ch; line-height: 1.4;
}
.clients-logos{ display: flex; align-items: center; gap: clamp(22px, 4vw, 52px); flex-wrap: wrap; }
.clients-logos .lg{
  font-family: var(--serif); font-size: 21px; font-weight: 600;
  color: var(--ink); opacity: .42; letter-spacing: -.01em;
  transition: opacity .2s ease;
}
.clients-logos .lg:hover{ opacity: .9; }

/* ============================================================
   GENERIC SECTION HEAD
   ============================================================ */
.sec{ padding: clamp(64px, 9vw, 128px) 0; }
.sec-head{
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: end; margin-bottom: 56px;
}
.sec-head .right{ color: var(--ink-2); font-size: 16px; max-width: 48ch; }
.sec-num{
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  color: var(--ink-3);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services{ background: var(--paper); }
.svc-grid{
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.svc{
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 32px 30px 36px;
  background: var(--paper-2);
  position: relative;
  transition: background .2s ease;
  min-height: 250px;
  display: flex; flex-direction: column;
}
.svc:hover{ background: #fbfaff; }
.svc .idx{
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
  letter-spacing: .1em;
}
.svc .tag{
  margin-left: auto;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--violet);
  border: 1px solid var(--lav-line); background: var(--lav);
  padding: 3px 9px; border-radius: 100px;
}
.svc-top{ display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.svc h3{ font-size: 25px; margin: 0 0 10px; line-height: 1.1; }
.svc p{ color: var(--ink-2); font-size: 15px; line-height: 1.55; margin: 0; }
.svc .go{
  margin-top: auto; padding-top: 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  color: var(--violet); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.svc .go .arr{ transition: transform .2s ease; }
.svc:hover .go .arr{ transform: translateX(4px); }
.svc.feature{ background: var(--noir); color: var(--on-noir); }
.svc.feature:hover{ background: var(--noir-2); }
.svc.feature h3{ color: #fff; }
.svc.feature p{ color: var(--on-noir-2); }
.svc.feature .idx{ color: var(--on-noir-2); }
.svc.feature .go{ color: var(--violet-bright); }
.svc.feature .tag{ background: rgba(139,92,246,.14); border-color: rgba(139,92,246,.4); color: var(--violet-bright); }

/* ============================================================
   EXPERTISE
   ============================================================ */
.expertise{ background: var(--lav); border-block: 1px solid var(--lav-line); }
.exp-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.exp{
  background: var(--paper-2);
  border: 1px solid var(--lav-line);
  border-radius: 4px;
  padding: 26px 26px 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.exp:hover{ transform: translateY(-3px); box-shadow: 0 24px 50px -34px rgba(76,29,149,.5); }
.exp .ico{
  width: 40px; height: 40px; border-radius: 3px;
  border: 1px solid var(--lav-line);
  display: grid; place-items: center; margin-bottom: 22px;
  font-family: var(--mono); font-size: 13px; color: var(--violet); font-weight: 500;
  background: var(--lav);
}
.exp h3{ font-size: 22px; margin: 0 0 8px; }
.exp p{ color: var(--ink-2); font-size: 14.5px; margin: 0 0 16px; line-height: 1.5; }
.exp .chips{ display: flex; flex-wrap: wrap; gap: 7px; }
.exp .chips span{
  font-family: var(--mono); font-size: 11px; letter-spacing: .03em;
  color: var(--ink-2); border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 100px; background: var(--paper);
}

/* ============================================================
   CASE STUDIES
   ============================================================ */
.cases{ background: var(--paper); }
.case-list{ display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.case{
  display: grid; grid-template-columns: 80px 1.1fr 1fr 130px;
  gap: 32px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .25s ease, background .25s ease;
  cursor: pointer;
}
.case:hover{ padding-left: 18px; background: #fbfaff; }
.case .cnum{ font-family: var(--mono); font-size: 13px; color: var(--violet); }
.case .cmain h3{ font-size: clamp(24px, 2.6vw, 33px); margin: 0; line-height: 1.05; }
.case .cmeta{ display: flex; flex-wrap: wrap; gap: 7px; }
.case .cmeta span{
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-2); border: 1px solid var(--line); padding: 3px 9px; border-radius: 100px;
}
.case .cdesc{ color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.case .cgo{
  justify-self: end;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--violet); transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.case:hover .cgo{ background: var(--violet); color: #fff; border-color: var(--violet); }

/* ============================================================
   ABOUT teaser  (black)
   ============================================================ */
.about{ background: var(--noir); color: var(--on-noir); overflow: hidden; }
.about .inner{
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.about .kicker{ color: var(--violet-bright); }
.about h2{ color: #fff; font-size: clamp(30px, 3.6vw, 50px); font-weight: 440; line-height: 1.06; margin: 18px 0 0; }
.about p{ color: var(--on-noir-2); margin: 22px 0 0; max-width: 52ch; }
.about-stats{ display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; }
.about-stats .st{ background: var(--noir); padding: 28px 26px; }
.about-stats .st .n{ font-family: var(--serif); font-size: clamp(34px, 4vw, 50px); color: #fff; line-height: 1; }
.about-stats .st .n .u{ color: var(--violet-bright); }
.about-stats .st .t{ font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-noir-2); margin-top: 12px; }
.partners{ margin-top: 30px; }
.partners .pl{ font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-noir-2); }
.partners .row{ display: flex; flex-wrap: wrap; gap: 26px; margin-top: 14px; }
.partners .row .lg{ font-family: var(--serif); font-size: 19px; color: #fff; opacity: .55; }

/* ============================================================
   ORCALYS callout
   ============================================================ */
.orcalys{ background: var(--lav); border-block: 1px solid var(--lav-line); }
.orcalys .inner{
  display: grid; grid-template-columns: 1fr .9fr; gap: clamp(40px, 6vw, 80px); align-items: center;
}
.orcalys h2{ font-size: clamp(30px, 3.4vw, 46px); margin: 16px 0 0; font-weight: 460; }
.orcalys p{ color: var(--ink-2); margin: 20px 0 28px; max-width: 46ch; }
.chatcard{
  background: var(--paper-2); border: 1px solid var(--lav-line); border-radius: 10px;
  padding: 18px; box-shadow: 0 40px 90px -50px rgba(76,29,149,.6);
}
.chatcard .ct{ display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.chatcard .ct .av{ width: 30px; height: 30px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 15px; }
.chatcard .ct .nm{ font-weight: 600; font-size: 14px; }
.chatcard .ct .st{ font-family: var(--mono); font-size: 10.5px; color: #16a34a; letter-spacing: .08em; text-transform: uppercase; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.chatcard .ct .st::before{ content:""; width:6px;height:6px;border-radius:50%;background:#16a34a; }
.bubble{ font-size: 14px; line-height: 1.5; padding: 11px 14px; border-radius: 12px; margin-bottom: 9px; max-width: 88%; }
.bubble.user{ background: var(--violet); color: #fff; margin-left: auto; border-bottom-right-radius: 3px; }
.bubble.bot{ background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.bubble.bot .mono{ font-family: var(--mono); font-size: 12.5px; color: var(--violet); }

/* ============================================================
   CONTACT CTA
   ============================================================ */
.contact{ background: var(--paper); }
.contact .inner{
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2);
  padding: clamp(40px, 6vw, 80px); text-align: center; position: relative; overflow: hidden;
}
.contact h2{ font-size: clamp(34px, 4.4vw, 60px); margin: 18px auto 0; max-width: 18ch; font-weight: 440; }
.contact p{ color: var(--ink-2); max-width: 50ch; margin: 20px auto 34px; }
.contact .hero-cta{ justify-content: center; }
.contact-glow{
  position: absolute; bottom: -50%; left: 50%; transform: translateX(-50%);
  width: 80%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--violet) 24%, transparent), transparent 60%);
  filter: blur(50px); pointer-events: none;
}

/* ============================================================
   FOOTER  (black)
   ============================================================ */
.footer{ background: var(--noir); color: var(--on-noir); padding: clamp(56px, 7vw, 88px) 0 36px; }
.footer-top{ display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer .brand{ color: #fff; font-size: 27px; }
.footer .brand svg{ height: 45px; }
.footer .brand svg .cls-1, .footer .brand svg .cls-2{ fill: rgba(255,255,255,.7); }
.footer .brand .drive{ color: var(--violet-bright); }
.footer .fcol h4{ font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-noir-2); margin: 0 0 16px; font-weight: 500; }
.footer .fcol a{ display: block; color: var(--on-noir); opacity: .8; font-size: 15px; padding: 5px 0; transition: opacity .15s, color .15s; }
.footer .fcol a:hover{ opacity: 1; color: var(--violet-bright); }
.footer .fdesc{ color: var(--on-noir-2); font-size: 15px; margin: 18px 0 0; max-width: 34ch; line-height: 1.5; }
.footer-bottom{ display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 26px; flex-wrap: wrap; }
.footer-bottom .cp{ font-family: var(--mono); font-size: 12px; color: var(--on-noir-2); letter-spacing: .04em; }

/* ============================================================
   REVEAL animation
   ============================================================ */
@media (prefers-reduced-motion: no-preference){
  .reveal{ opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in{ opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px){
  .va .hero-inner{ grid-template-columns: 1fr; gap: 40px; }
  .va .readout{ max-width: 460px; }
  .svc-grid{ grid-template-columns: repeat(2, 1fr); }
  .exp-grid{ grid-template-columns: repeat(2, 1fr); }
  .sec-head{ grid-template-columns: 1fr; gap: 16px; }
  .about .inner, .orcalys .inner{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr 1fr; gap: 32px; }
  .case{ grid-template-columns: 50px 1fr; gap: 14px 20px; }
  .case .cdesc{ grid-column: 2; }
  .case .cgo{ display: none; }
}
@media (max-width: 720px){
  body{ font-size: 16px; }
  .svc-grid{ grid-template-columns: 1fr; }
  .exp-grid{ grid-template-columns: 1fr; }
  .clients-inner{ gap: 18px; }
  .about-stats{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr; }
  .case .cmeta{ display: none; }
}

/* ============================================================
   WORDPRESS INTEGRATION
   ============================================================ */

/* wp_nav_menu renders ul > li > a — make .nav-links work with it */
.nav-links ul{ list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-links li{ position: relative; }
.nav-links li a{
  display: inline-block; font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  padding: 9px 14px; border-radius: 2px; transition: color .15s ease, background .15s ease;
  white-space: nowrap;
}
.on-dark .nav-links li a{ color: var(--on-noir-2); }
.nav-links li a:hover, .nav-links li.current-menu-item > a, .nav-links li.current-menu-ancestor > a{ color: var(--ink); background: var(--line-2); }
.on-dark .nav-links li a:hover, .on-dark .nav-links li.current-menu-item > a{ color: #fff; background: rgba(255,255,255,.06); }

/* dropdown submenus */
.nav-links li ul.sub-menu{
  position: absolute; top: 100%; left: 0; min-width: 250px; flex-direction: column;
  align-items: stretch; gap: 0; padding: 8px; margin-top: 6px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(20,18,27,.35);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s; z-index: 70;
}
.on-dark .nav-links li ul.sub-menu{ background: var(--noir-2); border-color: rgba(255,255,255,.12); }
.nav-links li:hover > ul.sub-menu, .nav-links li:focus-within > ul.sub-menu{ opacity: 1; visibility: visible; transform: none; }
.nav-links li ul.sub-menu li a{ display: block; font-size: 14px; padding: 9px 12px; }

/* mobile drawer */
.nav-toggle{
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: transparent; border-radius: 2px; cursor: pointer; padding: 0;
  place-items: center; gap: 5px; flex-direction: column;
}
.on-dark .nav-toggle{ border-color: rgba(255,255,255,.22); }
.nav-toggle span{ display: block; width: 18px; height: 1.6px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.on-dark .nav-toggle span{ background: var(--on-noir); }
body.nav-open{ overflow: hidden; }
body.nav-open .nav-toggle span:nth-child(1){ transform: translateY(6.6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-6.6px) rotate(-45deg); }

@media (max-width: 900px){
  .nav-toggle{ display: inline-flex; }
  .nav-links{
    position: fixed; inset: 70px 0 auto 0; background: var(--noir);
    border-bottom: 1px solid rgba(255,255,255,.12);
    max-height: 0; overflow: hidden; transition: max-height .3s ease; z-index: 55;
  }
  body.nav-open .nav-links{ max-height: calc(100vh - 70px); overflow-y: auto; }
  .nav-links ul{ flex-direction: column; align-items: stretch; gap: 0; padding: 10px var(--pad) 24px; }
  .nav-links li a{ color: var(--on-noir) !important; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 17px; }
  .nav-links li ul.sub-menu{ position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; border: 0; padding: 0 0 0 16px; margin: 0; }
  .nav-links li ul.sub-menu li a{ color: var(--on-noir-2) !important; font-size: 15px; padding: 11px 4px; }
  .nav-cta{ display: none; }
}

/* admin bar offset */
body.admin-bar .site-header{ top: 32px; }
@media (max-width: 782px){ body.admin-bar .site-header{ top: 46px; } }

/* accessibility helpers */
.screen-reader-text{
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link{
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--violet); color: #fff; padding: 10px 16px; border-radius: 2px;
}
.skip-link:focus{ left: 8px; }

/* WP content (pages using the editor) */
.entry-content{ max-width: 68ch; }
.entry-content > *{ margin-block: 0 1.1em; }
.entry-content h2{ font-size: clamp(26px,3vw,38px); margin-top: 1.6em; }
.entry-content h3{ font-size: 24px; margin-top: 1.4em; }
.entry-content a{ color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover{ color: var(--violet-deep); }
.entry-content img{ border-radius: 4px; }
.entry-content blockquote{ border-left: 3px solid var(--violet); padding-left: 20px; font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--ink); margin-inline: 0; }
.alignwide{ width: min(1100px, 100%); margin-inline: auto; }
.alignfull{ width: 100%; }
.aligncenter{ margin-inline: auto; }
.wp-caption-text, figcaption{ font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 8px; }

/* pagination / posts fallback */
.page-links, .nav-links.pagination{ display: flex; gap: 8px; margin-top: 30px; }

/* ============================================================
   PAGE HERO (interior pages — light)
   ============================================================ */
.page-hero{
  position: relative; overflow: hidden;
  background: var(--noir); color: var(--on-noir);
  padding: clamp(90px, 12vw, 150px) 0 clamp(56px, 7vw, 90px);
}
.page-hero .hgrid{
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px; opacity: var(--tex);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 92%);
          mask-image: linear-gradient(to bottom, #000, transparent 92%);
}
.page-hero .wrap{ position: relative; z-index: 2; }
.page-hero .kicker{ color: var(--violet-bright); }
.page-hero__title{
  font-family: var(--serif); font-weight: 420; letter-spacing: -.022em;
  font-size: clamp(38px, 5.2vw, 74px); line-height: 1.02; margin: 20px 0 0; max-width: 18ch;
}
.page-hero__quote{
  font-family: var(--serif); font-style: italic; color: var(--violet-bright);
  font-size: clamp(20px, 2.2vw, 27px); margin: 22px 0 0; max-width: 40ch;
}
.page-hero__lede{ color: var(--on-noir-2); font-size: clamp(17px,1.4vw,20px); line-height: 1.55; margin-top: 22px; max-width: 56ch; }

/* ============================================================
   CHALLENGES (problem → outcome)
   ============================================================ */
.challenges{ background: var(--paper); }
.chal-grid{
  display: grid; grid-template-columns: 1fr 60px 1fr; gap: 0; align-items: stretch;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--paper-2);
}
.chal-col{ padding: 34px 32px 30px; }
.chal-col--problem{ background: #fbfaff; }
.chal-col--outcome{ background: var(--noir); color: var(--on-noir); }
.chal-col__head{ display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.chal-col--outcome .chal-col__head{ border-bottom-color: rgba(255,255,255,.14); }
.chal-col__tag{
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); align-self: flex-start;
}
.chal-col--outcome .chal-col__tag{ color: var(--violet-bright); }
.chal-col__head h3{ font-size: 24px; margin: 0; }
.chal-col--outcome .chal-col__head h3{ color: #fff; }
.chal-item{ display: flex; gap: 14px; padding: 13px 0; align-items: flex-start; }
.chal-item p{ margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.chal-col--outcome .chal-item p{ color: var(--on-noir-2); }
.chal-item__mark{
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; font-weight: 500; margin-top: 1px;
  background: rgba(20,18,27,.06); color: var(--ink-2); border: 1px solid var(--line);
}
.chal-item__mark--ok{ background: rgba(139,92,246,.18); color: var(--violet-bright); border-color: rgba(139,92,246,.4); }
.chal-arrow{ display: grid; place-items: center; font-size: 22px; color: var(--violet); background: var(--lav); }

/* ============================================================
   SERVICE cards (home glance) — quote + bullets
   ============================================================ */
.svc-grid--2{ grid-template-columns: repeat(2, 1fr); }
.svc-quote{ font-family: var(--serif); font-style: italic; color: var(--ink); font-size: 17px; margin: 0 0 16px !important; }
.svc.feature .svc-quote{ color: #fff; }
.svc-bullets{ list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.svc-bullets li{ position: relative; padding-left: 20px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.svc-bullets li::before{ content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--violet); }
.svc.feature .svc-bullets li{ color: var(--on-noir-2); }
.svc.feature .svc-bullets li::before{ border-color: var(--violet-bright); }
.svc .go{ background: none; border: 0; padding: 0; cursor: pointer; }

/* ============================================================
   ABOUT body (editor content inside dark section)
   ============================================================ */
.about-body{ color: var(--on-noir-2); margin: 22px 0 0; max-width: 54ch; font-size: 16.5px; line-height: 1.6; }
.about-body p{ margin: 0 0 1em; }
.about-body a{ color: var(--violet-bright); }
.about-body strong{ color: #fff; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page{ background: var(--paper); }
.contact-page__grid{ display: grid; grid-template-columns: 1fr .9fr; gap: clamp(40px,6vw,80px); align-items: start; }
.contact-lines{ margin-top: 36px; border-top: 1px solid var(--line); }
.contact-line{ display: flex; align-items: baseline; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: padding-left .2s ease; }
.contact-line:hover{ padding-left: 10px; }
.contact-line__k{ font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); width: 90px; flex: none; }
.contact-line__v{ font-family: var(--serif); font-size: clamp(18px,1.8vw,24px); color: var(--ink); }
.contact-line:hover .contact-line__v{ color: var(--violet); }
.contact-note{ font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); margin-top: 22px; letter-spacing: .03em; }
.contact-form-card{ background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: clamp(26px,3vw,38px); box-shadow: 0 40px 90px -60px rgba(20,18,27,.4); }
.contact-form{ display: flex; flex-direction: column; gap: 16px; }
.contact-form label{ display: flex; flex-direction: column; gap: 7px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.contact-form input, .contact-form textarea{ font-family: var(--sans); font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px; transition: border-color .15s ease; }
.contact-form input:focus, .contact-form textarea:focus{ outline: none; border-color: var(--violet); }
.contact-form button{ align-self: flex-start; margin-top: 4px; }
.contact-form__hint{ font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin: 0; }
.contact-page .kicker{ color: var(--violet); }

/* contact: form rows + direct-contact icon buttons */
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.icon-contacts{ display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.icon-contact{ display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper-2); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); transition: border-color .15s ease, color .15s ease, background .15s ease; }
.icon-contact:hover{ border-color: var(--violet); color: var(--violet); background: #fbfaff; }
.icon-contact .g{ width: 30px; height: 30px; border-radius: 50%; background: var(--lav); color: var(--violet); display: grid; place-items: center; font-size: 14px; }
.icon-contact .rev{ opacity: 0; max-width: 0; overflow: hidden; white-space: nowrap; transition: opacity .2s ease, max-width .3s ease; }
.icon-contact:hover .rev, .icon-contact:focus .rev{ opacity: 1; max-width: 240px; }
@media (max-width: 520px){ .form-row{ grid-template-columns: 1fr; } }

/* ============================================================
   SECTION SUB-NAV (anchor nav under hero)
   ============================================================ */
section[id]{ scroll-margin-top: 122px; }
.section-nav{
  position: sticky; top: 69px; z-index: 40;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
body.admin-bar .section-nav{ top: 101px; }
.section-nav .wrap{ display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.section-nav .wrap::-webkit-scrollbar{ display: none; }
.section-nav a{
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap; padding: 15px 14px; border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.section-nav a:hover{ color: var(--ink); }
.section-nav a.active{ color: var(--violet); border-bottom-color: var(--violet); }

/* ============================================================
   LANGUAGE SWITCH (EN / FR)
   ============================================================ */
.lang-switch{ display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 100px; padding: 2px; margin-left: 12px; }
.on-dark .lang-switch{ border-color: rgba(255,255,255,.22); }
.lang-switch button, .lang-switch .ls-link{
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; font-weight: 500;
  border: 0; background: transparent; color: var(--ink-3); cursor: pointer;
  padding: 5px 11px; border-radius: 100px; transition: background .15s ease, color .15s ease;
}
.on-dark .lang-switch button, .on-dark .lang-switch .ls-link{ color: var(--on-noir-2); }
.lang-switch button.active, .lang-switch .ls-link.active{ background: var(--violet); color: #fff; }
.on-dark .lang-switch button.active, .on-dark .lang-switch .ls-link.active{ background: var(--violet-bright); color: #14121b; }

/* ============================================================
   IMAGE / GALLERY ZONES
   ============================================================ */
.media-band{ padding: clamp(20px,3vw,44px) 0 0; }
.media-frame{ position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.media-frame image-slot{ position: absolute; inset: 0; width: 100%; height: 100%; }
.media-cap{ font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--ink-3); margin-top: 12px; }
.gallery{ display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.gallery .media-frame{ aspect-ratio: 4/3; }
.gallery--2{ grid-template-columns: 1.4fr 1fr; }
.gallery--2 .media-frame{ aspect-ratio: auto; }
@media (max-width: 800px){ .gallery{ grid-template-columns: 1fr 1fr; } .gallery--2{ grid-template-columns: 1fr; } }
@media (max-width: 520px){ .gallery{ grid-template-columns: 1fr; } }

@media (max-width: 900px){
  .chal-grid{ grid-template-columns: 1fr; }
  .chal-arrow{ padding: 14px; }
  .svc-grid--2{ grid-template-columns: 1fr; }
  .contact-page__grid{ grid-template-columns: 1fr; }
}

/* ============================================================
   HERO / PAGE-HERO with background image + mauve gradient reveal
   overlay opacity 1 (left, text) → 0 (right, image shows through)
   ============================================================ */
.hero-media{ position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media image-slot,
.hero-media img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media .id-picture, .media-frame .id-picture{ position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media .id-picture img, .media-frame .id-picture img{ width: 100%; height: 100%; object-fit: cover; }
.hero-scrim{
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(96deg,
      #0c0913 0%,
      rgba(20,13,38,.97) 20%,
      rgba(76,29,149,.82) 42%,
      rgba(76,29,149,.34) 66%,
      rgba(12,9,19,.10) 100%),
    linear-gradient(to top, rgba(12,9,19,.55), transparent 42%);
}
.hero-scrim--soft{
  background:
    linear-gradient(96deg,
      #0c0913 0%,
      rgba(20,13,38,.95) 24%,
      rgba(76,29,149,.66) 50%,
      rgba(76,29,149,.20) 74%,
      transparent 100%),
    linear-gradient(to top, rgba(12,9,19,.5), transparent 40%);
}
/* home hero: single column, text constrained to the mauve zone */
.hero--image .hero-inner{ grid-template-columns: 1fr; }
.hero--image .hero-content{ max-width: 620px; }
.hero-lead{
  color: var(--on-noir); font-size: clamp(16px,1.35vw,19px);
  line-height: 1.5; margin: 22px 0 0; max-width: 46ch;
}
.hero-lead + .hero-sub{ margin-top: 14px; }

/* interior page hero with image (item 9) */
.page-hero--image .hgrid{ z-index: 1; }
.page-hero--image .page-hero__title,
.page-hero--image .page-hero__quote,
.page-hero--image .page-hero__lede{ max-width: 44ch; }
.page-hero--image .wrap > *{ max-width: 640px; }

/* trim vertical rhythm a touch (espaces trop grands) */
.challenges{ padding-top: clamp(56px, 7vw, 96px); }

/* ============================================================
   SERVICE PAGES — shared building blocks
   ============================================================ */
.sec--tight{ padding: clamp(48px,6vw,80px) 0; }
.lead{ font-size: clamp(18px,1.5vw,21px); color: var(--ink-2); max-width: 60ch; line-height: 1.55; }
.sec-head h2 + .lead{ margin-top: 16px; }

/* intervention triggers */
.trig-grid{ display: grid; grid-template-columns: repeat(2,1fr); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--paper-2); }
.trig{ display: flex; gap: 14px; align-items: flex-start; padding: 19px 24px; border-bottom: 1px solid var(--line); }
.trig:nth-child(odd){ border-right: 1px solid var(--line); }
.trig .m{ flex: none; color: var(--violet); font-family: var(--mono); font-size: 12px; margin-top: 3px; }
.trig p{ margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.45; }

/* 4-step approach */
.steps4{ display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-top: 24px; }
.steps4 .s{ background: var(--paper-2); padding: 24px 22px; }
.steps4 .s .n{ font-family: var(--mono); font-size: 12px; color: var(--violet); letter-spacing: .1em; }
.steps4 .s p{ margin: 14px 0 0; font-size: 16px; color: var(--ink); font-family: var(--serif); line-height: 1.25; }

/* coverage domains */
.cov-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.cov{ background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.cov h3{ font-size: 18px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cov ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cov li{ font-size: 13.5px; color: var(--ink-2); padding-left: 15px; position: relative; line-height: 1.4; }
.cov li::before{ content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--violet); }

/* numbered workflow (dark) */
.flow-sec{ background: var(--noir); color: var(--on-noir); }
.flow-sec .kicker{ color: var(--violet-bright); }
.flow-sec .sec-head h2{ color: #fff; }
.flow-sec .sec-head .right{ color: var(--on-noir-2); }
.flow{ display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; overflow: hidden; }
.flow .f{ background: var(--noir); padding: 22px 26px; }
.flow .f .n{ font-family: var(--serif); font-size: 24px; color: var(--violet-bright); line-height: 1; }
.flow .f h4{ font-family: var(--serif); font-weight: 500; color: #fff; font-size: 17px; margin: 8px 0 7px; }
.flow .f p{ margin: 0; color: var(--on-noir-2); font-size: 13.5px; line-height: 1.5; }

/* readiness gates / criteria (light exp cards, condensed) */
.gate-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.gate{ background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 22px 22px 24px; }
.gate .c{ width: 26px; height: 26px; border-radius: 50%; background: rgba(139,92,246,.16); color: var(--violet); border: 1px solid var(--lav-line); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; margin-bottom: 14px; }
.gate h4{ font-family: var(--serif); font-weight: 500; font-size: 17px; margin: 0 0 6px; }
.gate p{ margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* scenario cards */
.scn-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.scn{ background: #fbfaff; border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.scn .tag{ font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); }
.scn h4{ font-family: var(--serif); font-weight: 500; font-size: 19px; margin: 12px 0 10px; line-height: 1.15; }
.scn p{ margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* two-column note (inputs / roles / boundaries) */
.note-split{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px); }
.note-split h3{ font-size: 21px; margin: 0 0 8px; }
.note-list{ list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.note-list li{ font-size: 14.5px; color: var(--ink-2); padding-left: 18px; position: relative; line-height: 1.45; }
.note-list li::before{ content: "—"; position: absolute; left: 0; color: var(--violet); }

/* role mini-cards */
.roles{ display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.role{ border: 1px solid var(--line); border-radius: 6px; padding: 20px; background: var(--paper-2); }
.role .r{ font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }
.role h4{ font-family: var(--serif); font-weight: 500; font-size: 16px; margin: 8px 0 8px; }
.role p{ margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }

/* tech chips */
.techs{ display: flex; flex-wrap: wrap; gap: 8px; }
.techs span{ font-family: var(--mono); font-size: 12px; color: var(--ink-2); border: 1px solid var(--line); background: var(--paper-2); padding: 6px 12px; border-radius: 100px; }

/* NOVA callout band */
.nova-band{ background: var(--lav); border-block: 1px solid var(--lav-line); }
.nova-band .inner{ display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.nova-band .kicker{ color: var(--violet); }
.nova-band h3{ font-size: clamp(22px,2.6vw,30px); margin: 12px 0 0; max-width: 26ch; font-weight: 500; }
.nova-band p{ color: var(--ink-2); margin: 10px 0 0; max-width: 52ch; }

/* disclaimer / boundary note */
.bound{ border-left: 3px solid var(--violet); padding: 4px 0 4px 22px; }
.bound p{ color: var(--ink-2); margin: 0 0 10px; font-size: 15px; line-height: 1.55; }
.bound p:last-child{ margin: 0; }

/* levels of intervention (3 cards with list) */
.lvl-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.lvl{ background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 26px; }
.lvl .r{ font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.lvl h3{ font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 10px 0 8px; }
.lvl > p{ color: var(--ink-2); font-size: 14px; margin: 0 0 16px; line-height: 1.5; }
.lvl ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.lvl li{ font-size: 13.5px; color: var(--ink-2); padding-left: 15px; position: relative; line-height: 1.4; }
.lvl li::before{ content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--violet); }
.lvl-grid--4{ grid-template-columns: repeat(4,1fr); }

@media (max-width: 900px){
  .trig-grid{ grid-template-columns: 1fr; }
  .trig{ border-right: 0 !important; }
  .steps4{ grid-template-columns: repeat(2,1fr); }
  .cov-grid, .gate-grid, .scn-grid{ grid-template-columns: 1fr 1fr; }
  .flow{ grid-template-columns: 1fr; }
  .note-split{ grid-template-columns: 1fr; }
  .roles{ grid-template-columns: 1fr 1fr; }
  .lvl-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 620px){
  .steps4, .cov-grid, .gate-grid, .scn-grid, .roles{ grid-template-columns: 1fr; }
}
