/* ============================================================
   ELEOVA — monochrome kinetic
   ============================================================ */

:root {
  --black: #000000;
  --white: #ffffff;
  --offwhite: #f4f4f1;
  --carbon: #0a0a0a;
  --line: rgba(255, 255, 255, 0.14);
  --line-dim: rgba(255, 255, 255, 0.06);
  --ink: rgba(255, 255, 255, 0.62);

  --display: "Inter Display", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --grain-opacity: 0.06;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-default: cubic-bezier(0.65, 0, 0.35, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--white); color: var(--black); }

html { scroll-behavior: auto; }
html, body {
  background: var(--black);
  color: var(--white);
  font-family: var(--display);
  font-feature-settings: "ss01", "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

body {
  cursor: none;
}

a, button { color: inherit; cursor: none; }
button { background: none; border: 0; font: inherit; }

img { display: block; max-width: 100%; }

/* ============== GRAIN OVERLAY ============== */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1   0 0 0 0.65 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  animation: grainShift 1.2s steps(6) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-12px,8px); }
  40%  { transform: translate(8px,-14px); }
  60%  { transform: translate(-6px,-8px); }
  80%  { transform: translate(14px,6px); }
  100% { transform: translate(0,0); }
}

/* ============== CUSTOM CURSOR ============== */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.32s var(--ease-out-expo),
              height 0.32s var(--ease-out-expo);
}
.cursor::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--white);
  border-radius: 50%;
  background: var(--white);
  transition: background 0.3s var(--ease-out-expo);
}
.cursor.is-hover { width: 56px; height: 56px; }
.cursor.is-hover::before { background: transparent; }
.cursor.is-magnetic { width: 88px; height: 88px; }
.cursor.is-magnetic::before { background: transparent; }
.cursor-label {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.25s var(--ease-out-expo);
  mix-blend-mode: difference;
}
.cursor-label.is-on { opacity: 1; }

/* Crosshair tick marks rotating around cursor */
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 64px; height: 64px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out-expo);
}
.cursor-ring.is-on { opacity: 0.7; }
.cursor-ring svg { width: 100%; height: 100%; animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  body { cursor: auto; }
  a, button { cursor: pointer; }
  .cursor, .cursor-label, .cursor-ring { display: none; }
}

/* ============== FLOATING NAV PILL ============== */
.nav-pill {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8000;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-pill .brand {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  font-size: 15px;
  margin-right: 22px;
}
.nav-pill .brand sup { font-family: var(--mono); font-size: 8px; vertical-align: top; opacity: 0.5; margin-left: 4px; letter-spacing: 0.1em; }
.nav-pill ul { list-style: none; display: flex; gap: 22px; align-items: center; padding-right: 14px; }
.nav-pill ul a { text-decoration: none; opacity: 0.7; transition: opacity 0.25s; position: relative; padding: 4px 0; }
.nav-pill ul a:hover { opacity: 1; }
.nav-pill ul a.active { opacity: 1; }
.nav-pill ul a.active::after {
  content: ""; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--white);
}
.nav-pill .cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s var(--ease-out-expo);
}
.nav-pill .cta:hover { transform: scale(0.96); }

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}

#lattice-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero::before {
  /* radial vignette to sink the lattice */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 0%, transparent 35%, rgba(0,0,0,0.85) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-status {
  position: absolute;
  top: 84px; left: 0; right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  padding: 0 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-status span { display: inline-flex; align-items: center; gap: 8px; }
.hero-status .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--white);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.hero-content {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px 56px 120px;
}

.hero-headline {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 13.5vw, 240px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.hero-headline .line {
  display: block;
  overflow: hidden;
}
.hero-headline .line-inner {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}
.hero-headline .eleova {
  font-weight: 900;
  font-size: 1.04em;
  letter-spacing: -0.055em;
  position: relative;
  display: inline-block;
}
.hero-headline .eleova .stroke {
  position: absolute;
  inset: 0;
  -webkit-text-stroke: 1.5px var(--white);
  color: transparent;
  pointer-events: none;
}

.hero-sub {
  margin-top: 36px;
  font-family: var(--mono);
  font-size: clamp(11px, 1vw, 14px);
  letter-spacing: 0.16em;
  color: var(--ink);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-sub .typed { white-space: nowrap; }
.hero-sub .caret {
  display: inline-block;
  width: 9px; height: 14px;
  background: var(--white);
  margin-left: 4px;
  animation: blink 0.85s steps(2) infinite;
  vertical-align: -2px;
}
@keyframes blink { to { opacity: 0; } }

.hero-actions {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.btn-magnet {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 22px 36px;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo);
  will-change: transform;
}
.btn-magnet .arrow {
  display: inline-block;
  transition: transform 0.5s var(--ease-out-expo);
}
.btn-magnet:hover .arrow { transform: translate(6px, -6px) rotate(-2deg); }
.btn-magnet::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--white);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s;
}

.scroll-hint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.scroll-hint .arrow-down {
  display: inline-block;
  width: 10px; height: 16px;
  position: relative;
}
.scroll-hint .arrow-down::before {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 1px; height: 100%; background: var(--white);
  animation: arrowDown 1.6s ease-in-out infinite;
}
@keyframes arrowDown {
  0%   { transform: translateX(-50%) scaleY(0); transform-origin: top; }
  50%  { transform: translateX(-50%) scaleY(1); transform-origin: top; }
  51%  { transform: translateX(-50%) scaleY(1); transform-origin: bottom; }
  100% { transform: translateX(-50%) scaleY(0); transform-origin: bottom; }
}

/* Vertical edge marquees */
.edge-marquee {
  position: absolute;
  z-index: 5;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  pointer-events: none;
}
.edge-marquee.left {
  left: 24px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  height: 20px;
  width: 60vh;
  overflow: hidden;
}
.edge-marquee.right {
  right: 24px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  height: 20px;
  width: 60vh;
  overflow: hidden;
}
.edge-marquee .track {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-h 60s linear infinite;
}
.edge-marquee .track > span { margin-right: 64px; }
.edge-marquee .track > span::after { content: "·"; margin-left: 64px; opacity: 0.5; }
@keyframes marquee-h {
  to { transform: translateX(-50%); }
}

/* Bottom hairline marquee */
.hero-bottom {
  position: absolute;
  bottom: 28px; left: 0; right: 0;
  z-index: 5;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  overflow: hidden;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 22px;
  text-transform: uppercase;
}
.hero-bottom .track {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-h 32s linear infinite;
}
.hero-bottom .track > span { margin-right: 60px; }
.hero-bottom .star { display: inline-block; transform: rotate(0); margin-right: 60px; opacity: 0.7; }

/* Corner registration marks */
.reg-mark {
  position: absolute;
  width: 22px; height: 22px;
  z-index: 5;
  pointer-events: none;
  opacity: 0.5;
}
.reg-mark::before, .reg-mark::after {
  content: ""; position: absolute; background: var(--white);
}
.reg-mark::before { left: 0; top: 50%; width: 100%; height: 1px; }
.reg-mark::after { left: 50%; top: 0; width: 1px; height: 100%; }
.reg-mark.tl { top: 96px; left: 32px; }
.reg-mark.tr { top: 96px; right: 32px; }
.reg-mark.bl { bottom: 80px; left: 32px; }
.reg-mark.br { bottom: 80px; right: 32px; }

/* ============== SECTION CHROME ============== */
section { position: relative; }

.section-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-num::before {
  content: ""; width: 28px; height: 1px; background: var(--white); display: inline-block; opacity: 0.5;
}

/* ============== MANIFESTO STRIP ============== */
.manifesto {
  position: relative;
  height: 200vh;
  background: var(--black);
}
.manifesto-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.manifesto-text {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14vw;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  will-change: transform;
}
.manifesto-text em {
  font-style: normal;
  font-weight: 300;
  -webkit-text-stroke: 1.5px var(--white);
  color: transparent;
}
.manifesto-meta {
  position: absolute;
  bottom: 48px; left: 56px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink);
  display: flex; gap: 24px;
}
.manifesto-meta .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--white); display: inline-block; margin-right: 8px; animation: pulse 1.6s ease-in-out infinite; vertical-align: middle; }

/* ============== SERVICES CONSTELLATION ============== */
.services {
  position: relative;
  padding: 200px 56px 240px;
  background: var(--black);
}
.services-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 100px;
  flex-wrap: wrap;
  gap: 40px;
}
.services-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 110px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  max-width: 14ch;
}
.services-title em {
  font-style: normal;
  font-weight: 300;
  -webkit-text-stroke: 1.5px var(--white);
  color: transparent;
}
.services-blurb {
  max-width: 38ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
}

.constellation {
  position: relative;
  height: 720px;
  width: 100%;
  margin-top: 40px;
}
.constellation svg.lines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.constellation svg.lines line {
  stroke: rgba(255,255,255,0.18);
  stroke-width: 1;
  stroke-dasharray: 2 6;
  transition: stroke 0.4s, stroke-width 0.4s;
}
.constellation svg.lines line.is-active {
  stroke: rgba(255,255,255,1);
  stroke-width: 1.5;
  stroke-dasharray: 0;
}

.svc-node {
  position: absolute;
  width: 280px;
  padding: 24px;
  background: rgba(10,10,10,0.6);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  cursor: none;
  transition: transform 0.5s var(--ease-out-expo), border-color 0.4s, background 0.4s;
  user-select: none;
}
.svc-node:hover {
  transform: translateY(-6px);
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.svc-node:hover .svc-stat,
.svc-node:hover .svc-num { color: rgba(0,0,0,0.55); }
.svc-node:hover .svc-corner span { background: var(--black); }

.svc-node .svc-num {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--ink); margin-bottom: 32px;
}
.svc-node .svc-name {
  font-family: var(--display); font-weight: 700;
  font-size: 24px; line-height: 1.05; letter-spacing: -0.025em;
  text-transform: uppercase;
}
.svc-node .svc-desc {
  margin-top: 14px;
  font-size: 13px; line-height: 1.55;
  opacity: 0.7;
}
.svc-node .svc-stat {
  margin-top: 28px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink);
}
.svc-node .svc-corner {
  position: absolute;
  width: 12px; height: 12px;
}
.svc-node .svc-corner span {
  position: absolute;
  background: var(--white);
  transition: background 0.3s, transform 0.5s var(--ease-out-expo);
}
.svc-node .svc-corner.tl { top: 8px; left: 8px; }
.svc-node .svc-corner.tl span:nth-child(1) { top:0; left:0; width:6px; height:1px; }
.svc-node .svc-corner.tl span:nth-child(2) { top:0; left:0; width:1px; height:6px; }
.svc-node .svc-corner.br { bottom: 8px; right: 8px; }
.svc-node .svc-corner.br span:nth-child(1) { bottom:0; right:0; width:6px; height:1px; }
.svc-node .svc-corner.br span:nth-child(2) { bottom:0; right:0; width:1px; height:6px; }
.svc-node:hover .svc-corner span { transform: rotate(45deg); transform-origin: center; }

/* node center dot for line connections */
.svc-node::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  background: var(--white);
  border-radius: 50%;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  opacity: 0;
}

/* ============== AI IN ACTION ============== */
.ai-action {
  position: relative;
  padding: 200px 0 200px;
  background: var(--offwhite);
  color: var(--black);
}
.ai-action.is-light *::selection { background: var(--black); color: var(--white); }
.ai-action .head {
  padding: 0 56px;
  margin-bottom: 100px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.ai-action .section-num { color: rgba(0,0,0,0.55); }
.ai-action .section-num::before { background: var(--black); }
.ai-action .ai-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  max-width: 14ch;
}
.ai-action .ai-title em {
  font-style: normal; font-weight: 300;
  -webkit-text-stroke: 1.5px var(--black);
  color: transparent;
}

.ai-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.18);
  border-top: 1px solid rgba(0,0,0,0.18);
  border-bottom: 1px solid rgba(0,0,0,0.18);
}
.ai-panel {
  background: var(--offwhite);
  padding: 56px 48px 48px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  overflow: hidden;
}
.ai-panel .label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(0,0,0,0.55);
  display: flex; justify-content: space-between;
  margin-bottom: 60px;
}
.ai-panel .compare {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 18px;
  margin-top: auto;
}
.ai-panel .col-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(0,0,0,0.45);
  margin-bottom: 8px;
}
.ai-panel .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 96px);
  line-height: 0.85;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.ai-panel .num .unit {
  font-family: var(--mono); font-weight: 400;
  font-size: 0.22em; letter-spacing: 0.18em;
  text-transform: uppercase; vertical-align: top;
  display: inline-block; margin-left: 0.3em;
  margin-top: 0.4em;
  color: rgba(0,0,0,0.55);
}
.ai-panel .before .num { -webkit-text-stroke: 1.5px var(--black); color: transparent; }
.ai-panel .arrow-line {
  width: 60px; height: 1px; background: var(--black); position: relative; margin-bottom: 18px;
}
.ai-panel .arrow-line::after {
  content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 8px; height: 8px; border-right: 1px solid var(--black); border-top: 1px solid var(--black);
}
.ai-panel .desc {
  margin-top: 28px;
  font-size: 14px; line-height: 1.6;
  max-width: 38ch;
  color: rgba(0,0,0,0.7);
}
.ai-panel .panel-num {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  color: rgba(0,0,0,0.45);
}
.ai-panel .ticker {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 28px;
  border-top: 1px solid rgba(0,0,0,0.15);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex; align-items: center; padding: 0 16px;
  color: rgba(0,0,0,0.55);
  overflow: hidden;
}
.ai-panel .ticker .pulse { width: 5px; height: 5px; background: #000; border-radius: 50%; margin-right: 10px; animation: pulse 1.4s infinite; }

/* ============== PROOF (TESTIMONIAL) ============== */
.proof {
  background: var(--black);
  padding: 220px 56px;
  position: relative;
}
.proof blockquote {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 22ch;
}
.proof blockquote em {
  font-style: normal; font-weight: 300;
  -webkit-text-stroke: 1.5px var(--white);
  color: transparent;
}
.proof .attrib {
  margin-top: 56px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink);
  display: flex; gap: 20px; flex-wrap: wrap;
}
.proof .attrib b { color: var(--white); font-weight: 500; }

.case-list {
  margin-top: 140px;
  border-top: 1px solid var(--line);
}
.case-row {
  display: grid;
  grid-template-columns: 60px 1.4fr 1.2fr 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.case-row::before {
  content: ""; position: absolute; inset: 0;
  background: var(--white);
  transform: translateY(101%);
  transition: transform 0.7s var(--ease-out-expo);
  z-index: -1;
}
.case-row:hover { padding-left: 32px; padding-right: 32px; color: var(--black); }
.case-row:hover::before { transform: translateY(0); }
.case-row:hover .case-arrow { transform: translateX(0) rotate(0); opacity: 1; }
.case-row:hover .case-num { color: rgba(0,0,0,0.55); }
.case-row:hover .case-meta { color: rgba(0,0,0,0.55); }

.case-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--ink);
}
.case-client {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(20px, 1.8vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.case-stat {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(20px, 2vw, 36px);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.case-stat .label {
  display: block;
  font-family: var(--mono); font-weight: 400;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink);
  margin-top: 6px;
}
.case-row:hover .case-stat .label { color: rgba(0,0,0,0.55); }
.case-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.case-arrow {
  width: 44px; height: 44px;
  border: 1px solid currentColor; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transform: translateX(20px) rotate(-45deg);
  opacity: 0.4;
  transition: transform 0.5s var(--ease-out-expo), opacity 0.5s;
}

/* ============== PROCESS TEASER ============== */
.process {
  padding: 200px 56px;
  background: var(--black);
}
.process-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 32px;
  margin-bottom: 100px;
}
.process-head h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 6vw, 110px);
  line-height: 0.92; letter-spacing: -0.04em; text-transform: uppercase;
  max-width: 14ch;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.process-step {
  padding: 44px 32px 64px;
  border-right: 1px solid var(--line);
  position: relative;
  min-height: 380px;
  display: flex; flex-direction: column;
  transition: background 0.5s;
}
.process-step:last-child { border-right: 0; }
.process-step:hover { background: rgba(255,255,255,0.04); }
.process-step .pn {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--ink);
}
.process-step .pn b {
  display: block; margin-top: 8px;
  font-family: var(--display); color: var(--white);
  font-weight: 800;
  font-size: 96px; line-height: 0.85; letter-spacing: -0.05em;
}
.process-step h3 {
  margin-top: auto;
  font-family: var(--display); font-weight: 700;
  font-size: 28px; line-height: 1.05; letter-spacing: -0.025em;
  text-transform: uppercase;
}
.process-step p {
  margin-top: 14px;
  font-size: 13px; line-height: 1.6; color: var(--ink);
  max-width: 30ch;
}
.process-step .tag {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--ink); text-transform: uppercase;
}

/* ============== CLOSING CTA ============== */
.closing {
  min-height: 100vh;
  background: var(--white);
  color: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 56px;
  position: relative;
  overflow: hidden;
}
.closing-eye {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.closing-eye svg {
  width: 60vmin; height: 60vmin;
  opacity: 0.07;
  animation: spin 90s linear infinite;
}
.closing h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 12vw, 220px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-align: center;
  position: relative; z-index: 1;
}
.closing h2 em {
  font-style: normal; font-weight: 300;
  -webkit-text-stroke: 1.5px var(--black);
  color: transparent;
}
.closing .closing-cta {
  margin-top: 56px;
  display: inline-flex; align-items: center; gap: 16px;
  padding: 26px 44px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 500;
  text-decoration: none;
  transition: transform 0.4s var(--ease-out-expo);
}
.closing .closing-cta:hover { transform: scale(0.96); }
.closing .closing-meta {
  position: absolute;
  bottom: 32px; left: 56px; right: 56px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
}

/* ============== FOOTER ============== */
.footer {
  background: var(--black);
  padding: 80px 56px 0;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 56px;
}
.footer-top h3 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(28px, 3vw, 56px);
  letter-spacing: -0.03em; line-height: 1.05;
  max-width: 22ch;
}
.footer-top h3 a {
  text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 6px;
  transition: border-color 0.3s;
}
.footer-top h3 a:hover { border-color: var(--white); }
.footer-cols {
  display: grid; grid-template-columns: repeat(4, auto); gap: 80px;
  margin-top: 80px;
}
.footer-cols h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink);
  margin-bottom: 18px;
}
.footer-cols ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-cols a {
  text-decoration: none;
  font-family: var(--display); font-size: 16px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, opacity 0.3s;
  opacity: 0.85;
}
.footer-cols a:hover { opacity: 1; border-color: var(--white); }

.footer-clock {
  margin-top: 40px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink);
}
.footer-clock b { color: var(--white); font-weight: 500; }

.footer-wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28vw;
  line-height: 0.78;
  letter-spacing: -0.06em;
  text-transform: lowercase;
  margin-bottom: -8vw;
  user-select: none;
  position: relative;
  white-space: nowrap;
}
.footer-wordmark .e-orbit {
  display: inline-block;
  position: relative;
}
.footer-wordmark .e-orbit::before {
  content: "";
  position: absolute;
  top: 30%; left: 30%;
  width: 35%; height: 35%;
  border: 1px solid var(--white);
  border-radius: 50%;
  opacity: 0.2;
  animation: spin 28s linear infinite;
}

.footer-bottom {
  position: relative;
  padding: 28px 0 24px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink);
  z-index: 2;
}

/* ============== UTIL: text reveal ============== */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > * { display: inline-block; transform: translateY(110%); will-change: transform; }
.reveal-line.in > * { transform: translateY(0); transition: transform 1s var(--ease-out-expo); }

/* ============== REDUCED MOTION ============== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  body { cursor: auto; }
  .cursor, .cursor-label, .cursor-ring { display: none; }
  .hero-headline .line-inner { transform: none; }
}

/* ============== RESPONSIVE ============== */

/* Tablet */
@media (max-width: 1100px) {
  .hero-content { padding: 150px 32px 120px; }
  .services { padding: 140px 32px 160px; }
  .ai-action .head { padding: 0 32px; }
  .proof { padding: 160px 32px; }
  .process { padding: 140px 32px; }
  .footer { padding: 60px 32px 0; }
}

/* Mobile */
@media (max-width: 900px) {
  /* nav pill — compact, scrollable */
  .nav-pill {
    top: 14px;
    width: calc(100% - 24px);
    max-width: 480px;
    padding: 5px 5px 5px 16px;
    gap: 0;
  }
  .nav-pill .brand { font-size: 14px; margin-right: auto; }
  .nav-pill .brand sup { font-size: 7px; }
  .nav-pill ul { display: none; }
  .nav-pill .cta {
    padding: 9px 14px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  /* hero */
  .hero { min-height: 100svh; }
  .hero-content {
    padding: 120px 22px 140px;
    min-height: 100svh;
  }
  .hero-status {
    top: 64px;
    padding: 0 22px;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 9px;
    letter-spacing: 0.14em;
  }
  .hero-status > span:nth-child(4) { display: none; }
  .hero-headline {
    font-size: clamp(44px, 14vw, 84px);
    letter-spacing: -0.04em;
  }
  .hero-sub {
    margin-top: 28px;
    font-size: 10px;
    letter-spacing: 0.14em;
    line-height: 1.5;
  }
  .hero-sub .typed { white-space: normal; }
  .hero-sub .caret { width: 7px; height: 11px; }
  .hero-actions { margin-top: 40px; gap: 24px; flex-direction: column; align-items: flex-start; }
  .btn-magnet {
    padding: 18px 28px;
    font-size: 11px;
    width: 100%;
    justify-content: space-between;
  }
  .scroll-hint { font-size: 10px; }
  .edge-marquee { display: none; }
  .reg-mark { display: none; }
  .hero-bottom {
    bottom: 18px;
    padding: 10px 0;
    font-size: 14px;
  }
  .hero-bottom .track > span { margin-right: 32px; }
  .hero-bottom .star { margin-right: 32px; }
  /* lattice tones down on mobile */
  #lattice-canvas { opacity: 0.7; }

  /* manifesto — shorter pinned scroll, smaller type */
  .manifesto { height: 160vh; }
  .manifesto-text {
    font-size: 18vw;
  }
  .manifesto-meta {
    bottom: 28px;
    left: 22px; right: 22px;
    font-size: 9px;
    letter-spacing: 0.14em;
    gap: 16px;
    flex-wrap: wrap;
  }

  /* services — vertical stack with connector spine */
  .services { padding: 100px 22px 120px; }
  .services-head { margin-bottom: 56px; gap: 24px; }
  .services-title { font-size: clamp(34px, 9vw, 56px); }
  .services-blurb { font-size: 14px; }
  .constellation {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
    position: relative;
    padding-left: 28px;
  }
  .constellation svg.lines { display: none; }
  /* dashed connector spine */
  .constellation::before {
    content: "";
    position: absolute;
    left: 8px; top: 8px; bottom: 8px;
    width: 1px;
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.35) 50%, transparent 50%);
    background-size: 1px 8px;
  }
  .constellation::after {
    content: "";
    position: absolute;
    left: 5px; top: 0;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--white);
  }
  .svc-node {
    position: static !important;
    width: 100%;
    padding: 22px 22px 22px 22px;
  }
  .svc-node .svc-num { margin-bottom: 22px; font-size: 9px; }
  .svc-node .svc-name { font-size: 22px; }
  .svc-node .svc-desc { font-size: 13px; margin-top: 12px; }
  .svc-node .svc-stat { margin-top: 22px; font-size: 10px; }
  /* node tick on spine */
  .svc-node::before {
    content: "";
    position: absolute;
    left: -20px; top: 28px;
    width: 14px; height: 1px;
    background: rgba(255,255,255,0.4);
  }

  /* AI in action — vertical, full-width panels */
  .ai-action { padding: 100px 0 100px; }
  .ai-action .head {
    padding: 0 22px;
    margin-bottom: 56px;
    gap: 22px;
  }
  .ai-action .ai-title { font-size: clamp(34px, 9vw, 56px); }
  .ai-panels {
    grid-template-columns: 1fr;
    gap: 1px;
  }
  .ai-panel {
    padding: 40px 22px 56px;
    min-height: 360px;
  }
  .ai-panel .label {
    margin-bottom: 36px;
    font-size: 9px;
    letter-spacing: 0.16em;
  }
  .ai-panel .panel-num { font-size: 9px; top: 18px; right: 18px; }
  .ai-panel .num { font-size: 56px; }
  .ai-panel .arrow-line { width: 32px; }
  .ai-panel .desc { font-size: 13px; margin-top: 22px; }
  .ai-panel .ticker { font-size: 9px; height: 24px; padding: 0 14px; }

  /* proof */
  .proof { padding: 120px 22px 100px; }
  .proof blockquote { font-size: clamp(28px, 7.5vw, 44px); line-height: 1.06; }
  .proof .attrib {
    margin-top: 32px;
    font-size: 9px;
    letter-spacing: 0.14em;
    flex-direction: column;
    gap: 6px;
  }
  .proof .attrib > span:nth-child(2),
  .proof .attrib > span:nth-child(4) { display: none; }

  /* case studies — stacked, all data visible */
  .case-list { margin-top: 80px; }
  .case-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "num client arrow"
      "stat stat stat"
      "meta meta meta";
    gap: 8px 16px;
    padding: 24px 0;
  }
  .case-row > :nth-child(3),
  .case-row > :nth-child(4),
  .case-row > :nth-child(5) { display: block; }
  .case-row:hover { padding-left: 16px; padding-right: 16px; }
  .case-num { grid-area: num; font-size: 9px; }
  .case-client {
    grid-area: client;
    font-size: 18px;
    line-height: 1.15;
  }
  .case-stat {
    grid-area: stat;
    margin-top: 12px;
    font-size: 22px;
  }
  .case-stat .label { font-size: 9px; margin-top: 4px; letter-spacing: 0.14em; }
  .case-meta {
    grid-area: meta;
    margin-top: 4px;
    font-size: 9px;
    letter-spacing: 0.14em;
  }
  .case-arrow {
    grid-area: arrow;
    width: 32px; height: 32px;
    transform: rotate(-45deg);
    opacity: 0.6;
  }

  /* process */
  .process { padding: 100px 22px; }
  .process-head { margin-bottom: 56px; gap: 22px; }
  .process-head h2 { font-size: clamp(34px, 9vw, 56px); }
  .process-grid { grid-template-columns: 1fr; }
  .process-step {
    padding: 32px 22px 40px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: auto;
  }
  .process-step:last-child { border-bottom: 0; }
  .process-step .pn b { font-size: 64px; }
  .process-step h3 { font-size: 24px; margin-top: 24px; }
  .process-step p { font-size: 13px; }
  .process-step .tag { top: 18px; right: 18px; font-size: 9px; }

  /* closing */
  .closing { min-height: 100svh; padding: 120px 22px; }
  .closing h2 { font-size: clamp(56px, 18vw, 110px); }
  .closing .closing-cta {
    margin-top: 40px;
    padding: 20px 32px;
    font-size: 11px;
    letter-spacing: 0.16em;
  }
  .closing .closing-meta {
    bottom: 22px;
    left: 22px; right: 22px;
    font-size: 9px;
    letter-spacing: 0.14em;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    align-items: center;
  }
  .closing-eye svg { width: 90vmin; height: 90vmin; opacity: 0.05; }

  /* footer */
  .footer { padding: 56px 22px 0; min-height: auto; }
  .footer-top {
    flex-direction: column;
    gap: 28px;
    padding-bottom: 36px;
  }
  .footer-top h3 { font-size: 26px; line-height: 1.15; }
  .footer-top > div[style*="text-align: right"] { text-align: left !important; }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
    margin-top: 48px;
  }
  .footer-cols a { font-size: 14px; }
  .footer-cols h4 { font-size: 10px; letter-spacing: 0.16em; }
  .footer-clock {
    margin-top: 32px;
    font-size: 9px;
    letter-spacing: 0.14em;
    flex-direction: column;
    gap: 6px;
  }
  .footer-wordmark {
    font-size: 38vw;
    margin-bottom: -10vw;
    margin-top: 32px;
  }
  .footer-bottom {
    padding: 18px 0 18px;
    font-size: 8px;
    letter-spacing: 0.14em;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    align-items: center;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .nav-pill .cta span { display: none; }
  .nav-pill .cta::after { content: "↗"; }
  .hero-headline { font-size: clamp(40px, 13vw, 64px); }
  .services-title,
  .ai-action .ai-title,
  .process-head h2 { font-size: clamp(30px, 9vw, 44px); }
  .closing h2 { font-size: 18vw; }
  .ai-panel .num { font-size: 44px; }
  .footer-cols { grid-template-columns: 1fr; }
  .nav-pill { gap: 0; padding: 6px 6px 6px 18px; }
}
