/* ============================================================================
   Northscale Studio, unified design system
   ----------------------------------------------------------------------------
   One language across every page, matched to the flagship brain.html hero:
   tinted near-black canvas, Satoshi display + JetBrains Mono labels, gradient-N
   brand, hairline borders, a single rationed blue→violet accent, and exactly
   one earned motion moment per section. No glow, no candy. Reference grammar:
   Linear / Stripe / Vercel. Drives services.html, why.html (About), contact.html.
   ========================================================================== */

:root {
  --bg:        #060509;
  --bg-2:      #08070c;
  --panel:     #0c0a14;
  --surface:   rgba(255,255,255,0.025);
  --surface-2: rgba(255,255,255,0.05);

  --text:   #f4f1f9;
  --muted:  #c7c3d6;
  --faint:  #8f8aa4;

  --violet: #8b6cf0;
  --blue:   #4b71f7;
  --peri:   #8aa0ff;
  --mint:   #8af0b3;
  --amber:  #ffb829;
  --accent: #9fb0ff;

  --line:      rgba(255,255,255,0.12);
  --line-soft: rgba(255,255,255,0.07);

  --display: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1180px;
  --pad: clamp(1.1rem, 4vw, 2.6rem);

  /* elevation, one consistent surface depth, lit from above. A bright hairline
     top edge + a tight contact shadow + a soft ambient drop reads as a real
     lifted panel (Linear/Stripe), which is what makes the cards feel high-def. */
  --edge-hi:  inset 0 1px 0 rgba(255,255,255,0.12);
  --shadow-1: 0 2px 5px rgba(0,0,0,0.26), 0 30px 66px -38px rgba(0,0,0,0.9);
  --shadow-2: 0 5px 14px rgba(0,0,0,0.34), 0 48px 92px -34px rgba(6,4,14,0.95);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: #2a2533 #060509;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
  /* crisper glyph rendering: real kerning + ligatures so display type reads sharp */
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures contextual;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(123,108,240,0.32); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }

/* ---- ambient backdrop: live particle field (core-scene.js) on inner pages -- */
.bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
/* light touch only, let the 3D triangle field read through; a top scrim keeps
   the nav legible and a faint edge falloff settles the corners. */
.bg-scrim { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,5,9,0.62) 0%, rgba(6,5,9,0.12) 14%, rgba(6,5,9,0) 30%),
    radial-gradient(125% 95% at 50% 42%, transparent 0%, transparent 52%, rgba(6,5,9,0.34) 100%); }
main { position: relative; z-index: 1; }
/* keep copy crisp over the live field (same text-shadow trick as the hero) */
.page-hero .display, .section .h2, .cta-band .display, .cta-band .h1 { text-shadow: 0 2px 30px rgba(6,5,9,0.92), 0 0 3px rgba(6,5,9,0.5); }
.lead, .h3 { text-shadow: 0 1px 16px rgba(6,5,9,0.9), 0 0 2px rgba(6,5,9,0.5); }
/* exposed body copy (hero + section intros sit directly over the field) reads bolder */
.page-hero .lead, .section-head .lead { color: #dcd8e6; font-weight: 500; }

/* ============================================================================
   INTEGRATIONS, real brand marks (Simple Icons), monochrome + tinted
   A restrained logo wall in the Linear/Vercel grammar: hairline cells, muted
   marks that warm to peri on hover. Real sourced SVGs, masked so they tint.
   ========================================================================== */
.logos { padding: clamp(1.4rem, 3vw, 2.4rem) 0 0; }
.logos-head { display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.logos-head p { color: var(--muted); font-size: 0.92rem; max-width: 34ch; }
.logos-rail { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
  border-radius: 18px; overflow: hidden; }
.logo { display: grid; place-items: center; aspect-ratio: 7 / 4; background: var(--bg);
  position: relative; transition: background 0.55s var(--ease); }
.logo::after { content: attr(data-name); position: absolute; bottom: 9px; left: 0; right: 0;
  text-align: center; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.04em;
  color: var(--faint); opacity: 0; transform: translateY(3px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); pointer-events: none; }
.logo:hover { background: #0b0a13; }
.logo:hover::after { opacity: 1; transform: none; }
.logo i { display: block; width: clamp(26px, 3vw, 34px); height: clamp(26px, 3vw, 34px);
  background: var(--faint);
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
  transition: background 0.55s var(--ease), transform 0.55s var(--ease); }
.logo:hover i { background: var(--peri); transform: translateY(-3px) scale(1.06); }
@media (max-width: 920px) { .logos-rail { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .logos-rail { grid-template-columns: repeat(3, 1fr); }
  .logo i { width: 26px; height: 26px; } }

/* ============================================================================
   TYPOGRAPHY
   ========================================================================== */
.display {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.7rem, 7.4vw, 6rem);
  line-height: 0.95; letter-spacing: -0.045em;
  font-feature-settings: "ss01","cv01","liga","calt";
}
.h1 { font-weight: 600; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 0.98; letter-spacing: -0.04em; }
.h2 { font-weight: 600; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.03; letter-spacing: -0.032em; }
.h3 { font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.08; letter-spacing: -0.022em; }
.h4 { font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.2; letter-spacing: -0.015em; }

/* one rationed gradient accent word per heading */
.hl {
  background: linear-gradient(96deg, #ffd293 0%, #ffb24d 22%, #ff9f78 45%, #bf93ff 76%, #7ea6ff 100%);
  background-size: 180% 100%; background-position: 30% 50%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: hlShift 11s ease-in-out infinite;
}
.hl.cool {
  background-image: linear-gradient(96deg, #8aa0ff 0%, #b79bff 60%, #8af0b3 120%);
}
@keyframes hlShift { 0%,100% { background-position: 18% 50%; } 50% { background-position: 100% 50%; } }
/* without motion (reduced-motion + screenshot/print path) show the full gradient
   so the accent word reads violet→blue, never a muddy amber-only slice */
@media (prefers-reduced-motion: reduce) {
  .hl { animation: none; background-size: 100% 100%; background-position: 0 50%; }
}

.eyebrow {
  font-family: var(--mono); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: #ccd4ff;
  display: inline-flex; align-items: center; line-height: 1.5;
}
.eyebrow::before {
  content: ""; width: 1.9rem; height: 1.5px; margin-right: 0.75rem; border-radius: 2px;
  background: linear-gradient(90deg, var(--peri), transparent);
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 1.9rem; height: 1.5px; margin-left: 0.75rem; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--peri)); }
.eyebrow.solo::before { display: none; }

.lead { font-weight: 500; font-size: clamp(1.05rem, 1.5vw, 1.24rem); line-height: 1.62; color: #e3dfeb; }
.lead strong, .lead b { color: var(--text); font-weight: 600; }
.muted { color: var(--muted); }
.serif { font-style: italic; }

/* ============================================================================
   BUTTONS
   ========================================================================== */
.pill {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem; border-radius: 100px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), inset 0 0 0 1px rgba(255,255,255,0.06), 0 6px 20px -8px rgba(75,113,247,0.65);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}
.pill:hover { transform: translateY(-2px); filter: brightness(1.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.34), inset 0 0 0 1px rgba(255,255,255,0.08), 0 12px 30px -8px rgba(123,108,240,0.85); }
.pill.sm { padding: 0.6rem 1.2rem; font-size: 0.82rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.8rem 1.4rem; border-radius: 100px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: 0.9rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { border-color: rgba(255,255,255,0.28); background: var(--surface-2); transform: translateY(-1px); }
.btn .arr, .pill .arr { width: 13px; height: 13px; transition: transform 0.3s var(--ease); }
.btn:hover .arr, .pill:hover .arr { transform: translate(2px, -2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ============================================================================
   HEADER  (class kept as .site-header so script.js drives .scrolled state)
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem var(--pad);
  border-bottom: 1px solid transparent;
  transition: background 0.45s var(--ease), backdrop-filter 0.45s var(--ease), padding 0.45s var(--ease), border-color 0.45s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(6,5,9,0.6), rgba(6,5,9,0));
  transition: opacity 0.45s var(--ease);
}
.site-header.scrolled {
  background: rgba(8,7,12,0.66); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: rgba(255,255,255,0.08); padding-top: 0.85rem; padding-bottom: 0.85rem;
}
.site-header.scrolled::before { opacity: 0; }

.brand { display: flex; align-items: center; gap: 0.7rem; font-weight: 800; letter-spacing: -0.025em;
  font-size: 1.34rem; color: #fff; text-shadow: 0 2px 18px rgba(6,5,9,0.55);
  transition: transform 0.4s var(--ease); }
.brand:hover { transform: translateY(-1px); }
.brand-mark { display: block; filter: drop-shadow(0 3px 14px rgba(123,108,240,0.55)); transition: filter 0.4s var(--ease); }
.brand:hover .brand-mark { filter: drop-shadow(0 5px 22px rgba(123,108,240,0.9)); }

.nav-links { display: flex; align-items: center; gap: 2rem;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; }
.nav-links a:not(.pill) { position: relative; color: #fff; opacity: 0.92; padding: 0.25rem 0; transition: opacity 0.25s var(--ease); }
.nav-links a:not(.pill)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: linear-gradient(90deg, var(--peri), var(--violet)); border-radius: 2px; transition: right 0.4s var(--ease); }
.nav-links a:not(.pill):hover, .nav-links a.is-current { opacity: 1; }
.nav-links a:not(.pill):hover::after, .nav-links a.is-current::after { right: 0; }

.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); position: relative; cursor: pointer; z-index: 61; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 1.6px; background: #fff; border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease); }
.menu-toggle::before { top: 15px; } .menu-toggle span { top: 20px; } .menu-toggle::after { top: 25px; }
.site-header.nav-open .menu-toggle::before { transform: translateY(5px) rotate(45deg); }
.site-header.nav-open .menu-toggle span { opacity: 0; }
.site-header.nav-open .menu-toggle::after { transform: translateY(-5px) rotate(-45deg); }

/* ============================================================================
   PAGE HERO  (inner-page header band)
   ========================================================================== */
.page-hero { position: relative; padding-top: clamp(8rem, 18vh, 12rem); padding-bottom: clamp(3rem, 7vh, 6rem); }
.page-hero .eyebrow { margin-bottom: 1.6rem; }
.page-hero .display { max-width: 16ch; }
.page-hero .lead { max-width: 52ch; margin-top: 1.8rem; }
.page-hero .btn-row { margin-top: 2.4rem; }

/* ============================================================================
   SECTIONS
   ========================================================================== */
.section { position: relative; padding-block: clamp(4.5rem, 11vh, 9rem); }
.section--tight { padding-block: clamp(3rem, 7vh, 6rem); }
.section-head { max-width: 60rem; display: flex; flex-direction: column; gap: 1.3rem; }
.section-head.center { text-align: center; align-items: center; margin-inline: auto; }
.section-head .lead { max-width: 48rem; }
.section-head .eyebrow { margin-bottom: 0.2rem; }
.rule { height: 1px; background: var(--line-soft); border: 0; }

/* generic split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split.lead-left { grid-template-columns: 0.9fr 1.1fr; }

/* lifted surface panel */
.panel { border: 1px solid var(--line); border-top-color: rgba(255,255,255,0.18); border-radius: 18px;
  padding: clamp(1.7rem, 3vw, 2.6rem);
  background: linear-gradient(180deg, rgba(30,27,44,0.92), rgba(18,16,28,0.94));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--edge-hi), var(--shadow-2); }

/* ============================================================================
   FEATURE TRIAD  (editorial hairline cells, mono index, live micro-viz , 
   no icon-in-a-square, no glow: structure and a real diagram carry it)
   ========================================================================== */
.triad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-1); }
/* elevated frosted panels, clearly visible over the live field, copy stays crisp */
.triad-item { position: relative; padding: clamp(1.7rem, 2.6vw, 2.4rem);
  background: linear-gradient(180deg, rgba(28,25,42,0.7), rgba(18,16,28,0.94));
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  box-shadow: var(--edge-hi);
  display: flex; flex-direction: column; transition: background 0.5s var(--ease); }
.triad-item:hover { background: linear-gradient(180deg, rgba(40,36,58,0.85), rgba(24,21,36,0.96)); }
.triad-viz { height: 96px; margin-bottom: 1.5rem; }
.triad-viz svg { width: 100%; height: 100%; overflow: visible; }
.triad-num { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--faint); transition: color 0.4s var(--ease); }
.triad-item:hover .triad-num { color: var(--peri); }
.triad-item h3 { margin: 0.9rem 0 0.8rem; }
.triad-item p { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.triad-item::after { content: ""; position: absolute; left: clamp(1.7rem,2.6vw,2.4rem); right: clamp(1.7rem,2.6vw,2.4rem);
  bottom: 0; height: 1px; opacity: 0.72; background: linear-gradient(90deg, var(--peri), var(--violet));
  transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease); }
.triad-item:hover::after { transform: scaleX(1); }

/* ============================================================================
   MICRO-VIZ  (small live SVG diagrams that say what each feature does , 
   the anti-slop move: specific to the product, impossible to template)
   ========================================================================== */
.nv-viz { width: 100%; height: 100%; overflow: visible; }
.nv-wire { stroke: rgba(255,255,255,0.22); stroke-width: 1.4; fill: none; vector-effect: non-scaling-stroke; }
.nv-flow { stroke: rgba(138,160,255,0.65); stroke-width: 1.4; fill: none; vector-effect: non-scaling-stroke;
  stroke-dasharray: 4 7; animation: nvDash 1.4s linear infinite; }
@keyframes nvDash { to { stroke-dashoffset: -22; } }
.nv-node { fill: #0a0912; stroke: rgba(255,255,255,0.28); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.nv-node.core { stroke: var(--peri); fill: rgba(75,113,247,0.08); }
.nv-dot { fill: var(--peri); }
.nv-pulse { transform-box: fill-box; transform-origin: center; animation: nvPulse 2.2s ease-in-out infinite; }
@keyframes nvPulse { 0%,100% { opacity: 0.45; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.12); } }
.nv-ring { fill: none; stroke: var(--peri); stroke-width: 1.4; transform-box: fill-box; transform-origin: center;
  animation: nvRing 2.6s ease-out infinite; }
@keyframes nvRing { 0% { opacity: 0.7; transform: scale(0.6); } 80%,100% { opacity: 0; transform: scale(1.7); } }
.nv-packet { offset-rotate: 0deg; animation: nvRide 3.2s cubic-bezier(.55,0,.45,1) infinite; }
.nv-packet.b { animation-delay: 1.1s; } .nv-packet.c { animation-delay: 2.1s; }
@keyframes nvRide { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.nv-line { fill: rgba(255,255,255,0.16); }
.nv-line.lit { fill: var(--peri); animation: nvLit 3s ease-in-out infinite; }
@keyframes nvLit { 0%,30%,100% { fill: rgba(255,255,255,0.16); } 50%,75% { fill: var(--peri); } }
.nv-scan { fill: url(#nvScanG); opacity: 0.55; animation: nvScan 3s ease-in-out infinite; }
@keyframes nvScan { 0%,100% { transform: translateY(2px); } 50% { transform: translateY(58px); } }
.nv-check { stroke: var(--mint); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; stroke-dasharray: 24; stroke-dashoffset: 24; animation: nvDraw 3s var(--ease) infinite; }
@keyframes nvDraw { 0%,25% { stroke-dashoffset: 24; } 50%,90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
.nv-gate { stroke: rgba(255,255,255,0.22); stroke-width: 1.4; fill: none; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: reduce) {
  .nv-flow, .nv-pulse, .nv-ring, .nv-packet, .nv-line.lit, .nv-scan, .nv-check { animation: none; }
  .nv-check { stroke-dashoffset: 0; } .nv-packet { offset-distance: 50%; }
}

/* ============================================================================
   CARDS  (matched to brain.html .card)
   ========================================================================== */
.card { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.5rem, 2.4vw, 2rem);
  background: rgba(255,255,255,0.02); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 18px 44px -30px rgba(0,0,0,0.7);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.28);
  box-shadow: 0 1px 0 rgba(255,255,255,0.14) inset, 0 34px 64px -28px rgba(6,4,14,0.9); }
.card .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(75,113,247,0.12); color: var(--peri); margin-bottom: 1.3rem; transition: color 0.4s var(--ease); }
.card:hover .ico { color: #fff; }
.card .ico svg { width: 20px; height: 20px; }
.card h3 { margin: 0 0 0.6rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; line-height: 1.55; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }

/* ============================================================================
   BENTO  (asymmetric, size encodes hierarchy; 2 promoted tiles)
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; grid-auto-rows: 1fr; }
.bento-item { position: relative; display: flex; flex-direction: column; justify-content: space-between;
  gap: clamp(1.35rem, 2vw, 1.8rem); min-height: 14.5rem; padding: clamp(1.5rem, 2.2vw, 2rem);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(28,25,42,0.66), rgba(18,16,28,0.92));
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  box-shadow: var(--edge-hi), var(--shadow-1);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.bento-item:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.28);
  background: linear-gradient(180deg, rgba(40,36,58,0.82), rgba(24,21,36,0.95));
  box-shadow: var(--edge-hi), var(--shadow-2); }
/* animated conic hairline that ignites on hover (Vercel/Linear staple) */
.bento-item::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from 130deg, transparent 0%, rgba(138,160,255,0.38) 12%, rgba(139,108,240,0.28) 24%, transparent 42%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  opacity: 0; transition: opacity 0.5s var(--ease); }
.bento-item:hover::before { opacity: 1; }
.bento-item.wide { grid-column: span 2; }
.bento-item .bglow { position: absolute; inset: 0; z-index: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 80%) var(--my, 10%), rgba(138,160,255,0.06), transparent 60%); transition: opacity 0.5s var(--ease); }
.bento-item:hover .bglow { opacity: 1; }
.bento-item > * { position: relative; z-index: 1; }
.bento-head { display: flex; align-items: flex-start; justify-content: space-between; }
.bento-num { font-family: var(--mono); font-size: 2.1rem; font-weight: 500; line-height: 1; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1.4px rgba(255,255,255,0.22); transition: -webkit-text-stroke-color 0.4s var(--ease); }
.bento-item:hover .bento-num { -webkit-text-stroke-color: var(--peri); }
.bento-ico { color: var(--faint); transition: color 0.4s var(--ease); } .bento-ico svg { width: 20px; height: 20px; }
.bento-item:hover .bento-ico { color: var(--peri); }
.bento-item h3 { margin-bottom: 0.5rem; }
.bento-item p { color: var(--muted); font-size: 1rem; line-height: 1.5; max-width: 42ch; }

/* ============================================================================
   TRUST LEDGER  (Stripe security, grouped principles, hairline, mono ticks)
   ========================================================================== */
.ledger { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--line);
  box-shadow: var(--shadow-1); }
.ledger-group { background: rgba(18,16,28,0.92); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  padding: clamp(1.6rem, 2.6vw, 2.3rem); display: flex; flex-direction: column; gap: 0.2rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
.ledger-group > h3 { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--peri); margin-bottom: 1.6rem; }
.ledger-item { padding: 1.1rem 0; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; }
.ledger-item:first-of-type { border-top: 0; padding-top: 0; }
.ledger-tick { width: 18px; height: 18px; margin-top: 0.15rem; flex: none; color: var(--mint); }
.ledger-item h4 { font-weight: 650; font-size: 1.08rem; letter-spacing: -0.015em; margin-bottom: 0.25rem; }
.ledger-item p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* ============================================================================
   INDUSTRIES  (interactive list → one shared preview panel)
   ========================================================================== */
.industries { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.ind-list { display: flex; flex-direction: column; background: rgba(18,16,28,0.9);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  border: 1px solid var(--line); border-radius: 18px; padding: 0.3rem clamp(1rem, 2.2vw, 1.7rem);
  box-shadow: var(--edge-hi); }
.ind-row:last-child { border-bottom: 0; }
.ind-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: clamp(1.1rem, 2vw, 1.6rem) 0.4rem; border-bottom: 1px solid var(--line-soft);
  cursor: pointer; color: var(--muted); transition: color 0.3s var(--ease), transform 0.35s var(--ease); background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; width: 100%; }
.ind-row .ind-name { font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; transition: color 0.3s var(--ease); }
.ind-row .ind-tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #a7a2bd; }
.ind-row:hover, .ind-row.active { color: var(--text); transform: translateX(0.35rem); }
.ind-row.active .ind-name { color: #fff; }
.ind-row.active .ind-tag { color: var(--peri); }
.ind-preview { position: sticky; top: 16vh; border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(1.7rem, 3vw, 2.4rem); min-height: clamp(21rem, 30vw, 26rem); overflow: hidden;
  background: rgba(18,16,28,0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: var(--edge-hi), var(--shadow-1);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.ind-preview .pv-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(80% 70% at 70% 0%, rgba(138,160,255,0.06), transparent 70%); }
.ind-preview > * { position: relative; z-index: 1; }
.ind-preview .pv-num { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; color: var(--peri); }
.ind-preview .pv-name { margin: 0.8rem 0 1rem; }
.ind-preview .pv-desc { color: var(--muted); line-height: 1.6; }
.ind-preview .pv-foot { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }

/* ============================================================================
   PROCESS  (sticky aside headline + stepped right column)
   ========================================================================== */
.process { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.process-aside { position: sticky; top: 18vh; display: flex; flex-direction: column; gap: 1.4rem; }
.process-count { font-family: var(--mono); font-weight: 700; letter-spacing: -0.02em; line-height: 1;
  font-size: clamp(3.5rem, 9vw, 7rem); color: #fff; }
.process-count .total { color: var(--faint); font-size: 0.4em; vertical-align: super; }
.process-steps { display: flex; flex-direction: column; background: rgba(18,16,28,0.9);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  border: 1px solid var(--line); border-radius: 18px; padding: 0.3rem clamp(1.2rem, 2.4vw, 2rem);
  box-shadow: var(--edge-hi), var(--shadow-1); }
.process-step { padding: clamp(1.6rem, 3vw, 2.4rem) 0; border-top: 1px solid var(--line-soft); display: grid;
  grid-template-columns: auto 1fr; gap: clamp(1rem, 2.5vw, 2rem); opacity: 0.74; transition: opacity 0.5s var(--ease); }
.process-step:first-child { border-top: 0; }
.process-step.active { opacity: 1; }
.process-step .pn { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; color: var(--peri); padding-top: 0.35rem; }
.process-step h3 { margin-bottom: 0.6rem; }
.process-step p { color: var(--muted); font-size: 1rem; line-height: 1.55; max-width: 46ch; }

/* ============================================================================
   CODE BLOCK  (governed-core demo)
   ========================================================================== */
.code { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel);
  box-shadow: var(--shadow-1); }
.code-bar { display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line-soft); }
.code-dots { display: flex; gap: 0.4rem; } .code-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,95,87,0.55); }
.code-dots i:nth-child(2) { background: rgba(254,188,46,0.55); } .code-dots i:nth-child(3) { background: rgba(40,200,64,0.55); }
.code-file { font-family: var(--mono); font-size: 0.74rem; color: var(--faint); letter-spacing: 0.04em; }
.code pre { margin: 0; padding: 1.3rem 1.4rem; font-family: var(--mono); font-size: 0.84rem; line-height: 1.62;
  color: #d7d3e6; overflow-x: auto; }
.ln-c { color: var(--faint); } .ln-k { color: var(--peri); } .ln-s { color: var(--mint); } .ln-f { color: #ffd293; }

/* ============================================================================
   MARQUEE  (full-bleed kinetic band of the workflows we govern)
   ========================================================================== */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line-soft);
  padding-block: clamp(1.4rem, 3vw, 2.4rem); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: inline-flex; align-items: center; white-space: nowrap; will-change: transform;
  animation: marq 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.6rem);
  font-weight: 600; letter-spacing: -0.02em; font-size: clamp(1.6rem, 3.6vw, 3rem); color: var(--faint);
  padding-inline: clamp(0.7rem, 1.5vw, 1.3rem); transition: color 0.3s var(--ease); }
.marquee-item::after { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet)); flex: none; }
.marquee:hover .marquee-item { color: var(--muted); }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; transform: none; } }

/* ============================================================================
   GOVERNED-RUN FLOW DIAGRAM  (signature animated SVG, enquiry → retrieve →
   govern → action, with packets riding the wires + an approval gate)
   ========================================================================== */
.flowband { border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: rgba(18,16,28,0.9); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  box-shadow: var(--edge-hi), var(--shadow-1);
  padding: clamp(1.6rem, 3vw, 2.6rem); }
.flow-svg { width: 100%; height: auto; display: block; overflow: visible; }
.fl-stage { fill: rgba(36,32,52,0.95); stroke: rgba(255,255,255,0.22); stroke-width: 1.2; vector-effect: non-scaling-stroke;
  transition: stroke 0.4s var(--ease); }
.fl-stage.core { stroke: rgba(138,160,255,0.7); fill: rgba(75,113,247,0.18); }
.fl-label { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; fill: var(--faint); }
.fl-num { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; fill: var(--peri); }
.fl-title { font-family: var(--display); font-weight: 600; font-size: 15px; fill: var(--text); letter-spacing: -0.01em; }
.fl-sub { font-family: var(--display); font-weight: 400; font-size: 11.5px; fill: var(--muted); }
.fl-chip-t { font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--peri); }
.fl-chip { fill: rgba(138,160,255,0.08); stroke: rgba(138,160,255,0.35); stroke-width: 1; vector-effect: non-scaling-stroke; }
.reveal .fl-wire, .stagger .fl-wire { } /* draw-on-view handled via .drawn class */
.fl-wire { stroke: var(--line); stroke-width: 1.4; fill: none; vector-effect: non-scaling-stroke;
  stroke-dasharray: var(--len, 200); stroke-dashoffset: var(--len, 200); transition: stroke-dashoffset 1s var(--ease); }
.flowband.drawn .fl-wire { stroke-dashoffset: 0; }
.flowband.drawn .fl-wire.d1 { transition-delay: 0.15s; } .flowband.drawn .fl-wire.d2 { transition-delay: 0.45s; } .flowband.drawn .fl-wire.d3 { transition-delay: 0.75s; }
.fl-packet { offset-rotate: 0deg; animation: nvRide 3.4s cubic-bezier(.5,0,.5,1) infinite; }
.fl-packet.p2 { animation-delay: 0.9s; } .fl-packet.p3 { animation-delay: 1.8s; } .fl-packet.p4 { animation-delay: 2.6s; }
@media (prefers-reduced-motion: reduce) { .fl-wire { stroke-dashoffset: 0; } .fl-packet { animation: none; offset-distance: 60%; } }

/* ============================================================================
   CTA BAND
   ========================================================================== */
.cta-band { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.8rem; }
.cta-band .display, .cta-band .h1 { max-width: 18ch; }

/* ============================================================================
   DEFINITION CALLOUT  (entity / glossary block, a citation-ready "X is Y"
   target AI answer engines extract; doubles as an editorial pull-quote)
   ========================================================================== */
.define { max-width: 62rem; border: 1px solid var(--line); border-top-color: rgba(255,255,255,0.18);
  border-radius: 18px; padding: clamp(1.7rem, 3.4vw, 2.6rem);
  background: linear-gradient(180deg, rgba(30,27,44,0.9), rgba(18,16,28,0.94));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--edge-hi), var(--shadow-2); }
.define dt { font-family: var(--mono); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--peri); margin-bottom: 0.9rem; }
.define dd { margin: 0; font-size: clamp(1.05rem, 1.45vw, 1.28rem); line-height: 1.58; font-weight: 500;
  letter-spacing: -0.012em; color: #ece9f6; }
.define dd strong { color: #fff; font-weight: 700; }

/* ============================================================================
   STAT BAND  (true, countable facts, fact-density AI engines quote; hairline
   cells in the Linear/Stripe grammar, mono numerals, no glow, no fabrication)
   ========================================================================== */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-1); }
.stat { background: linear-gradient(180deg, rgba(28,25,42,0.7), rgba(18,16,28,0.94));
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); box-shadow: var(--edge-hi);
  padding: clamp(1.6rem, 2.8vw, 2.4rem); display: flex; flex-direction: column; gap: 0.75rem;
  transition: background 0.5s var(--ease); }
.stat:hover { background: linear-gradient(180deg, rgba(40,36,58,0.85), rgba(24,21,36,0.96)); }
.stat .num { font-family: var(--mono); font-weight: 700; line-height: 1; letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem); color: #fff; }
.stat .num .u { color: var(--peri); font-size: 0.5em; font-weight: 700; margin-left: 0.12em; }
.stat .lab { color: var(--muted); font-size: 0.95rem; line-height: 1.45; max-width: 16ch; }
@media (max-width: 760px) { .statband { grid-template-columns: 1fr 1fr; } }

/* ============================================================================
   FAQ  (accessible <details> accordion, governed-agent objection handling +
   FAQPage schema for AI answer engines)
   ========================================================================== */
.faq { max-width: 56rem; border: 1px solid var(--line); border-top-color: rgba(255,255,255,0.18);
  border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(30,27,44,0.9), rgba(18,16,28,0.94));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--edge-hi), var(--shadow-2); }
.faq-item { border-top: 1px solid var(--line-soft); }
.faq-item:first-child { border-top: 0; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 1.4rem; padding: clamp(1.2rem, 2.4vw, 1.7rem) clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 600; font-size: clamp(1.02rem, 1.5vw, 1.18rem); letter-spacing: -0.015em; color: var(--text);
  transition: color 0.3s var(--ease); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #fff; }
.faq-mk { position: relative; flex: none; width: 16px; height: 16px; }
.faq-mk::before, .faq-mk::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--peri);
  border-radius: 2px; transition: transform 0.4s var(--ease), opacity 0.4s var(--ease); }
.faq-mk::before { width: 16px; height: 2px; transform: translate(-50%, -50%); }
.faq-mk::after { width: 2px; height: 16px; transform: translate(-50%, -50%); }
.faq-item[open] .faq-mk::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }
.faq-item[open] summary { color: #fff; }
.faq-item p { color: var(--muted); line-height: 1.62; max-width: 64ch;
  padding: 0 clamp(1.3rem, 2.6vw, 2rem) clamp(1.3rem, 2.6vw, 1.8rem); margin-top: 0; }

/* ============================================================================
   CONTACT FORM  (hooks preserved for script.js)
   ========================================================================== */
.contact-form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-family: var(--mono); font-size: 0.73rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { font-family: var(--display); font-size: 1rem; color: var(--text);
  appearance: none; -webkit-appearance: none;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.16); border-radius: 11px; padding: 0.85rem 1rem; width: 100%;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(123,108,240,0.6); background: rgba(255,255,255,0.07); }
.field textarea { min-height: 8rem; resize: vertical; }
/* custom violet caret so the select matches the design system (no OS chrome) */
.field select { padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238aa0ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field select option { background: #14121c; color: var(--text); }
.form-status { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); min-height: 1.2em; }
.form-status[data-state="ok"] { color: var(--mint); } .form-status[data-state="err"] { color: #ff9a9a; }

/* ============================================================================
   FOOTER
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line-soft); padding-block: clamp(3rem, 6vw, 5rem); background: var(--bg-2); position: relative; z-index: 2; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2.5rem; align-items: flex-start; }
.footer-brand { max-width: 24rem; }
.footer-brand .lead { margin-top: 1rem; font-size: 0.98rem; }
.footer-links { display: flex; gap: clamp(2rem, 5vw, 4rem); flex-wrap: wrap; }
.footer-col h4 { font-family: var(--mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.1rem; }
.footer-col a, .footer-col button { display: block; background: none; border: 0; text-align: left; padding: 0.35rem 0;
  color: var(--muted); font-family: var(--display); font-size: 0.96rem; cursor: pointer; transition: color 0.3s var(--ease); }
.footer-col a:hover, .footer-col button:hover { color: var(--text); }
/* social icons (LinkedIn / Instagram / X), real brand marks, masked + tinted */
.socials { display: flex; gap: 0.55rem; margin-top: 1rem; }
.social { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: var(--muted); padding: 0;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease); }
.social:hover { color: #fff; border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.07); transform: translateY(-2px); }
.social i { display: block; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.footer-bottom { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.4rem; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.84rem; color: var(--faint); }

/* ============================================================================
   REVEAL  (script.js toggles .is-visible)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); will-change: transform, opacity;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* staggered children: a grid/list reveals item-by-item once its wrapper enters.
   script.js stamps --i per child; the wrapper toggles .is-visible. */
.stagger > * { opacity: 0; transform: translateY(30px); will-change: transform, opacity;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 0.08s); }
.stagger.is-visible > * { opacity: 1; transform: none; }
html:not(.js) .stagger > * { opacity: 1; transform: none; }

/* ---- masked word-by-word headline reveal (flagship signature) -------------
   flex-wrap guarantees per-word line breaks so headlines wrap cleanly at any
   width; each word sits in an overflow-clipped mask its inner span slides into. */
.splitline { display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 0.22em; row-gap: 0.04em; }
.cta-band .splitline, .section-head.center .splitline { justify-content: center; }
/* generous vertical room so the mask clears ascenders + descenders (the "g"
   in Agents, "p" in Keeps), tight display line-heights clip otherwise. */
.splitline .w { display: block; overflow: hidden; padding: 0.12em 0 0.26em; }
.splitline .wi { display: block; transform: translateY(118%); will-change: transform;
  transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--wi, 0) * 0.075s); }
.splitline.reveal-in .wi { transform: translateY(0); }
html:not(.js) .splitline .wi { transform: none; }
@media (prefers-reduced-motion: reduce) { .splitline .wi { transition: none; transform: none; } }

/* ---- cursor spotlight: a soft glow tracks the pointer across surfaces ----- */
.spotlight { position: relative; }
.spotlight:not(.bento-item)::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  pointer-events: none; opacity: 0; transition: opacity 0.45s var(--ease);
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(123,108,240,0.16), transparent 58%); }
.spotlight:not(.bento-item):hover::after { opacity: 1; }
.card.spotlight > *, .panel.spotlight > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .spotlight::after { display: none; } }

/* ---- cursor dot ---------------------------------------------------------- */
.cursor-dot { position: fixed; top: 0; left: 0; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: #fff; z-index: 9999; pointer-events: none; mix-blend-mode: difference; transition: opacity 0.3s var(--ease), transform 0.18s var(--ease); }
/* trailing ring that scales up + shows a contextual label over interactive targets */
.cursor-ring { position: fixed; top: 0; left: 0; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 100px;
  border: 1px solid rgba(159,176,255,0.55); z-index: 9998; pointer-events: none; display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: #cdd6ff;
  white-space: nowrap; padding: 0 0.4rem; opacity: 0;
  transition: opacity 0.35s var(--ease), width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease); }
.cursor-ring.show { opacity: 1; }
.cursor-ring.hot { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: rgba(159,176,255,0.9);
  background: rgba(123,108,240,0.1); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.cursor-ring.labelled { width: auto; min-width: 84px; height: 42px; margin: -21px 0 0 0;
  background: linear-gradient(135deg, var(--blue), var(--violet)); border-color: transparent; color: #fff; box-shadow: 0 8px 24px -10px rgba(123,108,240,0.8); }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }
@media (prefers-reduced-motion: reduce) { .cursor-ring, .cursor-dot { display: none; } }

/* ---- cinematic preloader (first visit per session) ----------------------- */
.preloader { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: var(--bg);
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease); }
.preloader.done { opacity: 0; visibility: hidden; }
.pre-inner { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.pre-mark { width: 56px; height: 56px; }
.pre-mark .draw { stroke-dasharray: 120; stroke-dashoffset: 120; animation: preDraw 1.1s var(--ease) forwards; }
@keyframes preDraw { to { stroke-dashoffset: 0; } }
.pre-bar { width: 180px; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.1); overflow: hidden; }
.pre-bar i { display: block; height: 100%; width: 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--peri), var(--violet)); transition: width 0.3s linear; }
.pre-count { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--faint); }
html:not(.js) .preloader { display: none; }

/* ---- page-transition overlay (seamless internal nav) --------------------- */
.page-veil { position: fixed; inset: 0; z-index: 9990; pointer-events: none; transform: translateY(100%);
  background: linear-gradient(180deg, #0a0812, var(--bg));
  border-top: 1px solid rgba(159,176,255,0.25); }
.page-veil.in { animation: veilIn 0.48s var(--ease) forwards; }
.page-veil.out { transform: translateY(0); animation: veilOut 0.6s var(--ease) forwards; }
@keyframes veilIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes veilOut { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) { .page-veil { display: none; } }

/* ---- oversized footer wordmark (scroll-revealed gradient sweep) ----------- */
.footer-wordmark { margin-top: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.0; padding-bottom: 0.06em;
  user-select: none; pointer-events: none; text-align: center; white-space: nowrap;
  font-weight: 900; letter-spacing: -0.04em; font-size: clamp(2.4rem, 13vw, 11.5rem);
  background: linear-gradient(100deg, #2a2740 0%, #2a2740 38%, #8aa0ff 50%, #bf93ff 60%, #2a2740 72%, #2a2740 100%);
  background-size: 260% 100%; background-position: 100% 50%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  transition: background-position 1.6s var(--ease); }
.footer-wordmark.lit { background-position: 0% 50%; }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 920px) {
  .split, .split.lead-left { grid-template-columns: 1fr; }
  .cards, .suite { grid-template-columns: 1fr 1fr; }
  .triad { grid-template-columns: 1fr; }
  .triad-item { padding: clamp(1.5rem, 5vw, 2rem); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-item.wide { grid-column: span 2; }
  .ledger { grid-template-columns: 1fr; }
  .industries { grid-template-columns: 1fr; }
  .ind-preview { display: none; }
  .process { grid-template-columns: 1fr; }
  .process-aside { position: static; flex-direction: row; align-items: baseline; gap: 1rem; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); flex-direction: column;
    align-items: flex-start; justify-content: center; gap: 1.8rem; padding: 2rem clamp(1.6rem, 6vw, 2.6rem);
    background: rgba(8,7,12,0.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-left: 1px solid var(--line); transform: translateX(105%); transition: transform 0.5s var(--ease); }
  .site-header.nav-open .nav-links { transform: none; }
  .nav-links a:not(.pill) { font-size: 1rem; }
  .cards, .suite { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-item.wide { grid-column: span 1; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  * { scroll-behavior: auto !important; }
}
