/* ============================================================
   AIWIZS — Parallax Scroll Story
   1. Variables   2. Reset & Base   3. Typography & shared
   4. Cursor / progress / noise / preloader
   5. Nav + mobile menu
   6. Sections (page order)
   7. Footer / cookie banner
   8. Reduced motion   9. Responsive
   ============================================================ */

/* ---------- 1. Variables ---------- */
:root {
  --color-bg: #07070b;
  --color-bg-soft: #0b0b14;
  --color-card: #0e0e19;
  --color-fg: #f2f0ea;
  --color-accent: #8a7bff;       /* electric violet */
  --color-accent-2: #4de9d2;     /* neon cyan */
  --color-muted: rgba(242, 240, 234, 0.5);
  --color-faint: rgba(242, 240, 234, 0.28);
  --color-border: rgba(242, 240, 234, 0.09);
  --color-accent-dim: rgba(138, 123, 255, 0.13);
  --color-accent-border: rgba(138, 123, 255, 0.4);

  --font-display: 'Clash Display', sans-serif;
  --font-body: 'Satoshi', sans-serif;

  --text-display: clamp(3rem, 9.5vw, 8.5rem);
  --text-heading: clamp(2.2rem, 5.5vw, 4.5rem);
  --text-subheading: clamp(1.25rem, 2.5vw, 2rem);
  --text-body: clamp(0.95rem, 1.5vw, 1.125rem);
  --text-label: clamp(0.7rem, 1vw, 0.8rem);

  --space-section: clamp(6rem, 14vw, 12rem);
  --space-gutter: clamp(1.25rem, 5vw, 4.5rem);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

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

html { scroll-behavior: auto; }

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

body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button { cursor: none; }
body.is-locked { overflow: hidden; }

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

::selection { background: var(--color-accent); color: #0a0712; }

/* ---------- 3. Typography & shared ---------- */
.section-label {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent-2);
  margin-bottom: 1.5rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 1.5rem;
}

.section-heading em {
  font-style: normal;
  background: linear-gradient(100deg, var(--color-accent), var(--color-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-sub {
  max-width: 38rem;
  color: var(--color-muted);
  margin-bottom: 3rem;
}

section { padding: var(--space-section) var(--space-gutter); position: relative; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  will-change: transform;
  transition: background-color 0.25s var(--ease-out-expo), color 0.25s var(--ease-out-expo),
              border-color 0.25s var(--ease-out-expo), box-shadow 0.25s var(--ease-out-expo);
}

.btn-primary {
  background: linear-gradient(100deg, var(--color-accent), #6a55f5);
  color: #fff;
  box-shadow: 0 8px 32px -8px rgba(138, 123, 255, 0.5);
}
.btn-primary:hover { box-shadow: 0 12px 44px -8px rgba(138, 123, 255, 0.75); }

.btn-ghost {
  border: 1px solid var(--color-border);
  color: var(--color-fg);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: var(--color-accent-border); background: var(--color-accent-dim); }

.btn-small { padding: 0.6rem 1.4rem; font-size: 0.85rem; }

/* ---------- 4. Cursor / progress / noise / preloader ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--color-accent-2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  display: none;
}

.cursor-follower {
  position: fixed;
  top: 0; left: 0;
  width: 38px; height: 38px;
  border: 1px solid rgba(242, 240, 234, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0.6;
  display: none;
}

body.has-cursor .cursor,
body.has-cursor .cursor-follower { display: block; }

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 9000;
}

.noise {
  position: fixed;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9997;
  opacity: 0.14;
  animation: noise-shift 0.6s steps(2) infinite;
}

@keyframes noise-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, -3%); }
  50%  { transform: translate(1%, 2%); }
  75%  { transform: translate(3%, -1%); }
  100% { transform: translate(0, 0); }
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 9995;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  overflow: hidden;
  display: flex;
}

.preloader-name span { display: inline-block; transform: translateY(110%); }

.preloader-line {
  margin-top: 1rem;
  text-align: center;
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-muted);
  opacity: 0;
}

/* ---------- 5. Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem var(--space-gutter);
  z-index: 9100;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(7, 7, 11, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--color-border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}
.nav-logo img { width: 32px; height: 32px; }

.nav-links { display: flex; gap: 2rem; }

.nav-item {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.25s ease;
  position: relative;
}
.nav-item:hover { color: var(--color-fg); }

.nav-cta {
  border: 1px solid var(--color-accent-border);
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  color: var(--color-fg);
  background: var(--color-accent-dim);
  will-change: transform;
}
.nav-cta:hover { background: rgba(138, 123, 255, 0.25); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
  z-index: 9300;
}
.nav-burger span {
  width: 26px; height: 2px;
  background: var(--color-fg);
  transition: transform 0.35s var(--ease-in-out), opacity 0.3s;
}
.nav-burger.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 11, 0.97);
  z-index: 9200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-menu nav { display: flex; flex-direction: column; gap: 1.6rem; text-align: center; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 500;
  color: var(--color-fg);
}
.mobile-menu-cta {
  margin-top: 1rem;
  font-size: 1.1rem !important;
  font-family: var(--font-body) !important;
  font-weight: 700;
  color: var(--color-accent-2) !important;
}

/* ---------- 6. Sections ---------- */

/* === Chapter 1 — Hero === */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 6rem;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(242, 240, 234, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 240, 234, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 75%);
  will-change: transform;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  will-change: transform;
}
/* SVG Mesh background */
.hero-mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  will-change: transform;
}
.mesh-point {
  will-change: cx, cy, r;
  filter: blur(90px);
}
.mesh-line {
  will-change: stroke-dashoffset, stroke;
  stroke-dasharray: 200;
}

.hero-accent-shapes {
  position: absolute;
  bottom: 8%;
  right: 6%;
  width: clamp(120px, 15vw, 280px);
  height: auto;
  opacity: 0.6;
  will-change: transform, opacity;
}
.shape-1, .shape-2, .shape-3 {
  will-change: r, stroke, cx, cy, x, y;
}

.orb-1 { width: 44vw; height: 44vw; background: var(--color-accent); top: -12%; left: -10%; }
.orb-2 { width: 34vw; height: 34vw; background: var(--color-accent-2); bottom: -18%; right: -8%; opacity: 0.18; }
.orb-3 { width: 22vw; height: 22vw; background: #ff7ad9; top: 38%; right: 16%; opacity: 0.1; }

.hero-particles { position: absolute; inset: 0; }
.hero-particles .particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(242, 240, 234, 0.45);
  will-change: transform, opacity;
}

.hero-content { position: relative; max-width: 64rem; z-index: 2; }

.hero-kicker {
  font-size: var(--text-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-accent-2);
  margin-bottom: 2rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin-bottom: 2rem;
}
.hero-headline em {
  font-style: normal;
  background: linear-gradient(100deg, var(--color-accent), var(--color-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-headline .word { display: inline-block; overflow: hidden; vertical-align: top; }
.hero-headline .char { display: inline-block; will-change: transform; }
/* background-clip:text doesn't propagate into the inline-block char spans
   created by the intro split — re-apply the gradient per char */
.hero-headline em .char {
  background: linear-gradient(100deg, var(--color-accent), var(--color-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 40rem;
  margin: 0 auto 1.4rem;
  font-size: var(--text-subheading);
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-muted);
}

.hero-trust {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--color-faint);
  margin-bottom: 2.6rem;
}

.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-faint);
}
.scroll-cue-line {
  width: 1px; height: 56px;
  background: var(--color-border);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 40%;
  background: var(--color-accent-2);
  animation: cue-drop 1.8s var(--ease-in-out) infinite;
}
@keyframes cue-drop {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(260%); }
}

/* === Marquee === */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.1rem 0;
  background: var(--color-bg-soft);
}

.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-track:hover { animation-play-state: paused; }

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2.2rem;
  padding-right: 2.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-muted);
  white-space: nowrap;
}
.marquee-group i { font-style: normal; color: var(--color-accent); }

/* === The Core — scroll-scrubbed canvas assembly === */
.core {
  padding: 0;
  height: 100vh;
  height: 100svh;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, #0a0a14, var(--color-bg) 80%);
}

#coreCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.core-copy {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(4rem, 10vh, 7rem);
  text-align: center;
  padding: 0 var(--space-gutter);
  pointer-events: none;
}

.core-kicker {
  font-size: var(--text-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent-2);
  margin-bottom: 1.2rem;
}

.core-phases {
  display: grid;
  justify-items: center;
}

.core-phase {
  grid-area: 1 / 1;
  max-width: 36rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}
.core-phase.is-active { opacity: 1; transform: none; }

.core-progress {
  position: absolute;
  bottom: clamp(1.6rem, 4vh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 2px;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}
.core-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  transform: scaleX(0);
  transform-origin: left center;
}

/* === Chapter 2 — Manifesto === */
.manifesto { padding: 0; background: var(--color-bg); }

.manifesto-pin {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--space-gutter);
  max-width: 72rem;
  margin: 0 auto;
}

.manifesto-label {
  font-size: var(--text-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent-2);
  margin-bottom: 3rem;
}

.manifesto-line {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 1.8rem;
}
.manifesto-line .word { display: inline-block; opacity: 0.12; will-change: opacity, transform; }

.manifesto-resolve {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 4.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  opacity: 0;
  will-change: opacity, transform;
}
.manifesto-resolve em {
  font-style: normal;
  background: linear-gradient(100deg, var(--color-accent), var(--color-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* === Chapter 3 — Stats === */
.stats {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

/* Stats chart visualization */
.stats-header { position: relative; margin-bottom: 5rem; max-width: 72rem; margin-left: auto; margin-right: auto; }

.stats-chart {
  width: 100%;
  height: auto;
  max-height: 220px;
  margin-bottom: 2rem;
  will-change: transform;
}

.stat-bar {
  will-change: height, opacity, y;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto 4rem;
}

.stat { display: flex; flex-direction: column; gap: 0.8rem; }

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(160deg, var(--color-fg) 30%, var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label { font-size: 0.9rem; color: var(--color-muted); max-width: 14rem; margin: 0 auto; }

.spec-strip {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--color-faint);
  border-top: 1px solid var(--color-border);
  padding-top: 2.2rem;
  max-width: 72rem;
  margin: 0 auto;
}

/* === Chapter 4 — Modules (horizontal gallery) === */
.modules { padding: 0; overflow: hidden; }

.modules-pin {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2rem, 5vh, 4rem);
  padding: clamp(5rem, 12vh, 8rem) 0 clamp(3rem, 8vh, 5rem);
}

.modules-head { padding: 0 var(--space-gutter); }

.modules-track {
  display: flex;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  width: max-content;
  padding: 0 var(--space-gutter);
  will-change: transform;
}

.module-card {
  width: clamp(300px, 34vw, 460px);
  flex-shrink: 0;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: clamp(1.8rem, 3vw, 2.8rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.3s ease;
}
.module-card:hover { border-color: var(--color-accent-border); }
.module-card::before {
  content: '';
  position: absolute;
  top: -40%; right: -40%;
  width: 70%; height: 70%;
  background: radial-gradient(circle, var(--color-accent-dim), transparent 70%);
  pointer-events: none;
}

.module-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(138, 123, 255, 0.55);
}

/* Network visualization */
.modules-network {
  position: absolute;
  top: -8vh;
  right: -15%;
  width: clamp(400px, 50vw, 800px);
  height: auto;
  opacity: 0.25;
  pointer-events: none;
  will-change: transform, opacity;
}
.net-node {
  will-change: cx, cy, r;
}
.net-line {
  will-change: stroke-dashoffset, stroke;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}

/* Module card icons */
.module-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 0.8rem;
  color: var(--color-accent-2);
  will-change: transform;
}
.icon-dot, .icon-pulse, .icon-node, .icon-rect {
  will-change: r, cx, cy, opacity;
}

.module-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.module-card p { color: var(--color-muted); font-size: 0.95rem; flex-grow: 1; }

.module-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.module-tags li {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-faint);
}

/* === Chapter 5 — Process === */
.process { max-width: 76rem; margin: 0 auto; }

.process-steps { position: relative; margin-top: 4rem; padding-left: clamp(2.2rem, 5vw, 3.5rem); }

.process-rail {
  position: absolute;
  left: 0.55rem;
  top: 0.5rem; bottom: 0.5rem;
  width: 1px;
  background: var(--color-border);
}
.process-rail-fill {
  width: 100%; height: 100%;
  background: linear-gradient(var(--color-accent), var(--color-accent-2));
  transform-origin: top center;
  transform: scaleY(0);
  will-change: transform;
}

.process-step {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: flex-start;
  padding: 2.8rem 0;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.process-step:last-child { border-bottom: none; }
.process-step::before {
  content: '';
  position: absolute;
  left: calc(-1 * clamp(2.2rem, 5vw, 3.5rem) - 0.55rem + 0.55rem - 4px);
  top: 3.6rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 16px rgba(138, 123, 255, 0.8);
}

.process-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 240, 234, 0.3);
  flex-shrink: 0;
}

.process-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.process-body p { color: var(--color-muted); max-width: 36rem; }

/* === Chapter 6 — Case studies === */
.cases {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.cases .section-label, .cases .section-heading { max-width: 76rem; margin-left: auto; margin-right: auto; }
.cases .section-label { margin-bottom: 1.5rem; }

.case-stack {
  max-width: 76rem;
  margin: 4rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.case-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: clamp(1.8rem, 4vw, 3rem);
  will-change: transform;
  position: sticky;
  top: 14vh;
  box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, 0.8);
}
.case-card:nth-child(2) { top: 17vh; }
.case-card:nth-child(3) { top: 20vh; }

.case-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}
.case-head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
}
.case-meta {
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-2);
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}
.case-col p { color: var(--color-muted); font-size: 0.95rem; }

.case-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}
.case-tag-before { background: rgba(255, 122, 122, 0.12); color: #ff9a9a; }
.case-tag-after { background: rgba(77, 233, 210, 0.12); color: var(--color-accent-2); }

.case-metric {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 600;
  background: linear-gradient(100deg, var(--color-accent), var(--color-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.6rem;
}

.case-deploy { font-size: 0.85rem; color: var(--color-faint); }

/* === Chapter 7 — ROI calculator === */
.roi { max-width: 76rem; margin: 0 auto; }

.roi-tool {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: clamp(1.8rem, 4vw, 3.2rem);
}

.roi-control { margin-bottom: 2.2rem; }
.roi-control label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 500;
  margin-bottom: 0.9rem;
  gap: 1rem;
}
.roi-control output {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-accent-2);
}

input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent) var(--fill, 50%), rgba(242, 240, 234, 0.12) var(--fill, 50%));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-fg);
  border: 2px solid var(--color-accent);
  box-shadow: 0 0 14px rgba(138, 123, 255, 0.6);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-fg);
  border: 2px solid var(--color-accent);
  box-shadow: 0 0 14px rgba(138, 123, 255, 0.6);
  cursor: pointer;
}

.roi-note { font-size: 0.8rem; color: var(--color-faint); }

.roi-outputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-content: start;
}

.roi-metric {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.roi-value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  color: var(--color-fg);
}
.roi-label { font-size: 0.8rem; color: var(--color-muted); }

.roi-cta { grid-column: 1 / -1; justify-self: start; }

/* === Chapter 8 — Pricing === */
.pricing { text-align: center; }
.pricing .section-sub { margin-left: auto; margin-right: auto; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  max-width: 76rem;
  margin: 3rem auto 0;
  align-items: stretch;
  text-align: left;
}

.price-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  will-change: transform;
}

.price-card-featured {
  border-color: var(--color-accent-border);
  background: linear-gradient(180deg, rgba(138, 123, 255, 0.1), var(--color-card) 45%);
  box-shadow: 0 30px 80px -30px rgba(138, 123, 255, 0.35);
}

.price-badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(100deg, var(--color-accent), var(--color-accent-2));
  color: #0a0712;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
}
.price-tier {
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent-2);
}

.price-amount { margin: 1.2rem 0 1.4rem; color: var(--color-muted); }
.price-amount strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 600;
  color: var(--color-fg);
}

.price-card ul { flex-grow: 1; margin-bottom: 1.8rem; }
.price-card li {
  padding: 0.55rem 0 0.55rem 1.6rem;
  font-size: 0.92rem;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.price-card li:last-child { border-bottom: none; }
.price-card li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.7rem;
  top: 0.8rem;
}

.price-card .btn { width: 100%; }

.pricing-disclaimer {
  margin-top: 2.6rem;
  font-size: 0.85rem;
  color: var(--color-faint);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* === Chapter 9 — Voices === */
.voices {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.voices .section-label, .voices .section-heading { max-width: 76rem; margin-left: auto; margin-right: auto; }

.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  max-width: 76rem;
  margin: 3.5rem auto 0;
}

.voice-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  will-change: transform;
  position: relative;
}
.voice-card::before {
  content: '“';
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--color-accent);
  opacity: 0.5;
}
.voice-card p { font-size: 1.05rem; line-height: 1.55; flex-grow: 1; }
.voice-card footer { font-size: 0.85rem; color: var(--color-muted); }

/* === Chapter 10 — FAQ === */
.faq { max-width: 56rem; margin: 0 auto; }

.faq-list { margin-top: 3rem; }

.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.25s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-accent-2);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out-expo);
}
.faq-item[open] summary { color: var(--color-accent-2); }
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-answer { overflow: hidden; }
.faq-answer p {
  padding: 0 0 1.8rem;
  color: var(--color-muted);
  max-width: 46rem;
}

/* === Chapter 11 — Contact === */
.contact {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(138, 123, 255, 0.12), transparent 70%),
    var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.contact-inner { max-width: 52rem; margin: 0 auto; }
.contact .section-sub { margin-left: auto; margin-right: auto; }

.contact-book { margin-bottom: 4rem; }

.contact-form {
  text-align: left;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }

.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.word-count { font-weight: 400; color: var(--color-faint); }
.word-count.is-over { color: #ff9a9a; }

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  color: var(--color-fg);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}
.form-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-muted) 50%), linear-gradient(135deg, var(--color-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-field select option { background: var(--color-card); }
.form-field textarea { resize: vertical; min-height: 130px; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent-border);
  box-shadow: 0 0 0 3px var(--color-accent-dim);
}

.form-submit { align-self: flex-start; }
.form-status { font-size: 0.9rem; color: var(--color-accent-2); min-height: 1.4em; }

/* ---------- 7. Footer / cookie ---------- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 5rem var(--space-gutter) 2rem;
  background: var(--color-bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 76rem;
  margin: 0 auto 4rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.footer-brand p { color: var(--color-muted); font-size: 0.95rem; }

.footer-col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col h4 {
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-faint);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}
.footer-col a {
  font-size: 0.92rem;
  color: var(--color-muted);
  transition: color 0.25s ease;
  width: fit-content;
}
.footer-col a:hover { color: var(--color-fg); }

.footer-social { display: flex; gap: 1rem; margin-top: 0.8rem; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}
.footer-social a:hover {
  border-color: var(--color-accent-border);
  color: var(--color-fg);
  background: var(--color-accent-dim);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 76rem;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-faint);
}
.footer-bottom a { color: var(--color-muted); }
.footer-bottom a:hover { color: var(--color-fg); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(94vw, 560px);
  background: rgba(14, 14, 25, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  z-index: 9400;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: 0.82rem; color: var(--color-muted); flex-grow: 1; }
.cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }

/* ---------- 8. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .cursor, .cursor-follower, .noise, .preloader, .scroll-cue, .core { display: none !important; }
  body, body a, body button { cursor: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .manifesto-line .word { opacity: 1; }
  .manifesto-resolve { opacity: 1; }
  .marquee-track { transform: none !important; }
}

/* ---------- 9. Responsive ---------- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 34rem; }
  .price-card-featured { order: -1; }
  .voices-grid { grid-template-columns: 1fr; max-width: 34rem; margin-left: auto; margin-right: auto; }
  .roi-tool { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  /* Modules stack vertically on mobile — no horizontal pin */
  .modules { padding: var(--space-section) 0; }
  .modules-pin { min-height: 0; display: block; }
  .modules-head { margin-bottom: 2.5rem; }
  .modules-track {
    flex-direction: column;
    width: auto;
    padding: 0 var(--space-gutter);
  }
  .module-card { width: 100%; }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  /* ≥16px keeps iOS Safari from auto-zooming on focus */
  .form-field input, .form-field select, .form-field textarea { font-size: 16px; }
  .case-grid { grid-template-columns: 1fr; }
  .roi-outputs { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-actions { justify-content: center; }
  .case-card { position: static; }
}
