/* ============================================================
   NEXUS STUDIO
   A network on the surface. A living universe underneath.

   00  Tokens
   01  Reset
   02  Typography primitives
   03  Logo lockup
   04  Buttons & links
   05  Loader
   06  Header
   07  Hero
   08  Philosophy + diagram
   09  Statement
   10  Capabilities
   11  Process
   12  Final CTA
   13  Footer
   14  Fullscreen menu
   15  Contact modal
   16  Cursor
   17  Services page
   18  Reveals & data-morph
   19  Responsive
   20  Reduced motion
   ============================================================ */


/* ============================================================
   00 · TOKENS
   ============================================================ */
:root {
  --black: #050506;
  --black-soft: #0b0c0e;
  --ink: #111216;

  --white: #f5f5f2;
  --white-soft: #e9e9e5;

  --muted-dark: #868991;
  --muted-light: #b7bac1;

  --line-dark: rgba(255, 255, 255, .12);
  --line-light: rgba(10, 10, 12, .12);

  --glass-dark: rgba(12, 13, 16, .38);
  --glass-light: rgba(255, 255, 255, .08);

  --cyan: #88e4ea;
  --lilac: #b7a7ff;
  --pink: #e6a6d9;

  --brand-gradient: linear-gradient(110deg, #88e4ea 0%, #b7a7ff 52%, #e6a6d9 100%);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-editorial: cubic-bezier(.215, .61, .355, 1);

  --font: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --shell: 1600px;
  --gutter: clamp(24px, 3vw, 56px);
  --edge: clamp(24px, 7vw, 140px);

  /* Contextual surface variables, overridden per section */
  --bg: var(--black);
  --fg: var(--white);
  --muted: var(--muted-dark);
  --line: var(--line-dark);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}


/* ============================================================
   01 · RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

/* Lenis keeps the native scroll architecture — no faked containers. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.is-loading { overflow: hidden; }
body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, figure, blockquote, ol, ul, fieldset, legend {
  margin: 0;
  padding: 0;
}
ul, ol { list-style: none; }

img, video, canvas, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input, textarea, select { font: inherit; color: inherit; }

::selection { background: rgba(183, 167, 255, .28); color: var(--white); }
.section--light ::selection { background: rgba(136, 228, 234, .32); color: var(--ink); }

:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

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


/* ============================================================
   02 · TYPOGRAPHY PRIMITIVES
   ============================================================ */
.meta {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 900px) { .meta { font-size: 12px; letter-spacing: .1em; } }

.meta__sep { opacity: .42; padding-inline: .35em; }

/* Line-clip container for headline reveals */
.line {
  display: block;
  overflow: hidden;
  padding-block: .03em .16em;
  margin-block: -.03em -.16em;
}
.line__i {
  display: block;
  will-change: transform;
}

.hero-title {
  font-size: clamp(4.5rem, 8vw, 9rem);
  line-height: .92;
  letter-spacing: -.055em;
  font-weight: 400;
  color: var(--white);
}

.h-section {
  font-size: clamp(3rem, 5.5vw, 6.5rem);
  line-height: .95;
  letter-spacing: -.048em;
  font-weight: 400;
  color: var(--fg);
}

.h-statement {
  font-size: clamp(2.3rem, 4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 400;
  color: var(--fg);
}

.h-chapter {
  font-size: clamp(2.4rem, 3.6vw, 4.1rem);
  line-height: .98;
  letter-spacing: -.042em;
  font-weight: 400;
  color: var(--fg);
}

.prose {
  color: var(--muted);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.62;
  max-width: 46ch;
}
.prose p + p { margin-top: 1.25em; }

.section {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  padding-block: clamp(96px, 13vh, 190px);
}
.section--dark {
  --bg: var(--black);
  --fg: var(--white);
  --muted: var(--muted-dark);
  --line: var(--line-dark);
}
.section--light {
  --bg: var(--white);
  --fg: var(--ink);
  --muted: #6b6e76;
  --line: var(--line-light);
}
.section--light .meta { color: #83868e; }

.section-head { max-width: 1080px; }
.section-head .meta { margin-bottom: clamp(24px, 3vw, 40px); }
.section-head__body {
  margin-top: clamp(28px, 3vw, 44px);
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.62;
}
.section-head--center {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}
.section-head--center .section-head__body { margin-inline: auto; }

.grain {
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 220px 220px;
  opacity: .035;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 6;
}


/* ============================================================
   03 · LOGO LOCKUP
   Geometry derived from the source artwork so mark and wordmark
   keep their exact original relationship. The wordmark is
   re-coloured with a mask (currentColor) so the artwork itself
   is never altered.
   Source: 2275x1583. Mark 435,512 -> 794,1070. Word 894,513 -> 1824,1037.
   ============================================================ */
.logo {
  --lh: 46px;
  display: inline-flex;
  align-items: flex-start;
  gap: calc(var(--lh) * .17921);
  color: var(--fg);
  flex: none;
  transition: opacity .4s var(--ease-out);
}
a.logo:hover { opacity: .82; }

.logo__mark,
.logo__word {
  display: block;
  flex: none;
}

.logo__mark {
  width: calc(var(--lh) * .64337);
  height: var(--lh);
  background-image: url("./assets/logo/nexus-logo.png");
  background-repeat: no-repeat;
  background-size: calc(var(--lh) * 4.07706) calc(var(--lh) * 2.83692);
  background-position: calc(var(--lh) * -.77957) calc(var(--lh) * -.91756);
}

.logo__word {
  width: calc(var(--lh) * 1.66667);
  height: calc(var(--lh) * .93907);
  background-color: currentColor;
  -webkit-mask-image: url("./assets/logo/nexus-logo.png");
  mask-image: url("./assets/logo/nexus-logo.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: calc(var(--lh) * 4.07706) calc(var(--lh) * 2.83692);
  mask-size: calc(var(--lh) * 4.07706) calc(var(--lh) * 2.83692);
  -webkit-mask-position: calc(var(--lh) * -1.60215) calc(var(--lh) * -.91935);
  mask-position: calc(var(--lh) * -1.60215) calc(var(--lh) * -.91935);
}

.logo--header { --lh: clamp(38px, 3.4vw, 50px); }
.logo--footer { --lh: clamp(56px, 6vw, 84px); }
.logo--loader { --lh: clamp(58px, 9vw, 82px); }
.logo--menu   { --lh: 40px; }


/* ============================================================
   04 · BUTTONS & LINKS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  height: 46px;
  padding-inline: 26px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.005em;
  white-space: nowrap;
  border: 1px solid transparent;
  position: relative;
  isolation: isolate;
  transition:
    background-color .5s var(--ease-out),
    border-color .5s var(--ease-out),
    color .5s var(--ease-out),
    opacity .4s var(--ease-out);
}

.btn--solid {
  background: var(--white);
  color: var(--ink);
}
.btn--solid:hover { background: #fff; }
.section--light .btn--solid { background: var(--ink); color: var(--white); }
.section--light .btn--solid:hover { background: #000; }

.btn--line {
  border-color: var(--line);
  color: var(--fg);
}
.btn--line:hover { border-color: rgba(255, 255, 255, .34); }
.section--light .btn--line:hover { border-color: rgba(10, 10, 12, .3); }

.btn--pill {
  height: 40px;
  padding-inline: 20px;
  border-color: rgba(255, 255, 255, .18);
  color: var(--white);
  font-size: 13px;
}
.btn--pill:hover { border-color: rgba(255, 255, 255, .42); }

.btn--lg { height: 54px; padding-inline: 34px; font-size: 14px; }
.btn--block { width: 100%; }

/* A single brand-gradient hairline emerges under the primary action */
.btn--solid::after {
  content: "";
  position: absolute;
  left: 22%; right: 22%; bottom: -1px;
  height: 1px;
  background: var(--brand-gradient);
  opacity: 0;
  transform: scaleX(.4);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.btn--solid:hover::after { opacity: .9; transform: scaleX(1); }

.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: .7em;
  font-size: clamp(15px, 1.15vw, 18px);
  color: var(--fg);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  transition: border-color .5s var(--ease-out);
}
.link-arrow span { transition: transform .5s var(--ease-out); display: inline-block; }
.link-arrow:hover { border-bottom-color: currentColor; }
.link-arrow:hover span { transform: translateX(6px); }


/* ============================================================
   05 · LOADER
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #050506;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vh, 54px);
  transform: translateY(0);
  transition: transform 850ms var(--ease-out);
  will-change: transform;
}
.loader.is-leaving { transform: translateY(-100%); }
.loader.is-done { display: none; }

.loader__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(420px, 74vw);
  aspect-ratio: 1;
}
.loader__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.loader .logo {
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: loaderLogo 900ms var(--ease-out) 120ms forwards;
}
@keyframes loaderLogo {
  from { opacity: 0; transform: scale(.986); }
  to   { opacity: 1; transform: none; }
}

.loader__meta {
  font-size: 11px;
  letter-spacing: .12em;
  opacity: 0;
  color: var(--white);
  animation: loaderMeta 900ms var(--ease-out) 420ms forwards;
}
@keyframes loaderMeta {
  from { opacity: 0; }
  to   { opacity: .55; }
}


/* ============================================================
   06 · HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  padding: 24px var(--gutter) 0;
  pointer-events: none;
  transition:
    padding-top .7s var(--ease-out),
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 8px 10px 8px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  pointer-events: auto;
  transition:
    background-color .7s var(--ease-out),
    border-color .7s var(--ease-out),
    max-width .8s var(--ease-out),
    backdrop-filter .7s var(--ease-out);
}
.site-header.is-solid { padding-top: 12px; }
.site-header.is-solid .site-header__inner {
  max-width: 1360px;
  background: rgba(8, 9, 11, .34);
  border-color: rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 40px);
  font-size: 13px;
  font-weight: 500;
}
.site-nav a {
  opacity: .68;
  transition: opacity .4s var(--ease-out);
  position: relative;
  padding-block: 4px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { opacity: 1; }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brand-gradient);
  opacity: .8;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  display: grid;
  place-items: center;
  transition: border-color .4s var(--ease-out);
}
.menu-toggle:hover { border-color: rgba(255, 255, 255, .42); }
.menu-toggle__glyph {
  display: block;
  width: 16px;
}
.menu-toggle__glyph i {
  display: block;
  height: 1px;
  background: var(--white);
  transition: transform .5s var(--ease-out), width .5s var(--ease-out);
}
.menu-toggle__glyph i:first-child { width: 16px; }
.menu-toggle__glyph i:last-child  { width: 10px; margin-top: 5px; }
.menu-toggle:hover .menu-toggle__glyph i:last-child { width: 16px; }

/* Header entrance, once the loader starts leaving */
.page--home.is-loading .site-header {
  opacity: 0;
  transform: translateY(-14px);
}


/* ============================================================
   07 · HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 140vh;
  background: var(--black);
}
.hero-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: #050506;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video--system {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  transform-origin: 50% 50%;
  will-change: transform;
  z-index: 1;
}

/* Kept alive at 1px so browsers never throttle its decoder. */
.hero-video--source {
  position: absolute;
  width: 1px;
  height: 1px;
  left: -10px;
  top: -10px;
  opacity: 0;
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-canvas--mask { opacity: 0; visibility: hidden; z-index: 0; }
.hero-canvas--cosmic { z-index: 2; }
.hero-canvas--network { z-index: 3; }

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(128% 96% at 62% 34%, transparent 38%, rgba(5, 5, 6, .42) 100%),
    linear-gradient(to top, rgba(5, 5, 6, .74) 0%, rgba(5, 5, 6, .18) 34%, transparent 62%),
    linear-gradient(to right, rgba(5, 5, 6, .56) 0%, transparent 46%);
}
.hero-grain { z-index: 5; opacity: .04; }

.hero-content {
  position: absolute;
  left: var(--edge);
  bottom: clamp(70px, 10vh, 130px);
  z-index: 10;
  max-width: 920px;
  width: calc(100% - var(--edge) * 2);
  will-change: transform, opacity;
}

.hero-eyebrow {
  color: rgba(245, 245, 242, .62);
  margin-bottom: clamp(20px, 2.6vw, 32px);
}

.hero-title { margin-bottom: clamp(24px, 3vw, 38px); }

.hero-body {
  max-width: 46ch;
  color: var(--muted-light);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.62;
  margin-bottom: clamp(28px, 3.2vw, 42px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-hint {
  position: absolute;
  right: var(--edge);
  bottom: clamp(70px, 10vh, 130px);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(245, 245, 242, .5);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.hero-hint.is-gone { opacity: 0 !important; transform: translateY(6px); pointer-events: none; }
.hero-hint__dot {
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--brand-gradient);
  animation: hintPulse 2.6s var(--ease-editorial) infinite;
}
@keyframes hintPulse {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50%      { opacity: 1;   transform: scale(1.25); }
}

/* -- hero entrance ------------------------------------------ */
.page--home.is-loading [data-hero],
.page--home.is-loading .hero-title .line__i { opacity: 0; }

[data-hero="eyebrow"],
[data-hero="body"],
[data-hero="actions"],
[data-hero="hint"] {
  opacity: 0;
  transform: translateY(18px);
}
.hero-title .line__i,
.hero-title--services .line__i {
  opacity: 0;
  transform: translateY(110%);
}

.is-hero-in [data-hero="eyebrow"] {
  animation: heroFade 800ms var(--ease-out) 100ms forwards;
}
.is-hero-in .hero-title .line__i {
  animation: heroLine 950ms var(--ease-editorial) forwards;
}
.is-hero-in .hero-title .line:nth-child(1) .line__i { animation-delay: 160ms; }
.is-hero-in .hero-title .line:nth-child(2) .line__i { animation-delay: 270ms; }
.is-hero-in .hero-title .line:nth-child(3) .line__i { animation-delay: 380ms; }
.is-hero-in [data-hero="body"]    { animation: heroFade 800ms var(--ease-out) 360ms forwards; }
.is-hero-in [data-hero="actions"] { animation: heroFade 800ms var(--ease-out) 470ms forwards; }
.is-hero-in [data-hero="hint"]    { animation: heroFade 900ms var(--ease-out) 850ms forwards; }

@keyframes heroFade {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroLine {
  from { opacity: 0; transform: translateY(110%); }
  to   { opacity: 1; transform: none; }
}


/* ============================================================
   08 · PHILOSOPHY + DIAGRAM
   ============================================================ */
.philosophy { padding-bottom: clamp(80px, 10vh, 150px); }

.philosophy__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(56px, 8vw, 110px);
  align-items: start;
}
@media (min-width: 1000px) {
  .philosophy__grid { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr); }
}

.philosophy__copy .h-section { margin: clamp(24px, 3vw, 40px) 0 clamp(32px, 3.5vw, 52px); }

.nexus-diagram {
  position: relative;
  width: 100%;
}
.nexus-diagram__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
/* The four nodes are the control now that the duplicate chip row is gone. */
.nd-node { cursor: pointer; }
.nd-node-hit { fill: transparent; outline: none; }
.nd-node:focus-visible .nd-halo,
.nd-node-hit:focus-visible ~ .nd-halo { opacity: 1; }
.nd-node:focus-visible .nd-dot { fill: var(--ink); }
.nd-focus-ring {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  opacity: 0;
  pointer-events: none;
}
.nd-node:focus-visible .nd-focus-ring { opacity: 1; }
.nd-label {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  fill: #6b6e76;
  transition: fill .5s var(--ease-out);
}
.nd-label.is-active { fill: var(--ink); }
.nd-dot {
  fill: #111216;
  transition: r .6s var(--ease-out), fill .5s var(--ease-out);
}
.nd-halo {
  fill: none;
  stroke: rgba(17, 18, 22, .18);
  transition: opacity .6s var(--ease-out), r .8s var(--ease-out);
  opacity: 0;
}
.nd-node.is-active .nd-halo { opacity: 1; }
.nd-link {
  stroke: rgba(17, 18, 22, .13);
  stroke-width: 1;
  transition: stroke .6s var(--ease-out), stroke-width .6s var(--ease-out), opacity .6s var(--ease-out);
  opacity: .55;
}
.nd-link.is-lit {
  stroke: rgba(17, 18, 22, .5);
  opacity: 1;
}
.nd-link.is-dim { opacity: .16; }
.nd-signal-dot { fill: url(#nd-grad); }



/* ============================================================
   09 · STUDIO STATEMENT
   ============================================================ */
.statement {
  margin-top: clamp(110px, 16vh, 220px);
  padding-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
}
@media (min-width: 1000px) {
  .statement { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; }
}
.statement__copy { max-width: 44ch; padding-top: .5em; }


/* ============================================================
   10 · CAPABILITIES
   ============================================================ */
.capabilities { padding-top: clamp(70px, 9vh, 130px); }
.cap-list { margin-top: clamp(56px, 7vw, 100px); }

.cap-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 48px;
  grid-template-areas:
    "index name arrow"
    ". services .";
  align-items: center;
  gap: 0 clamp(16px, 2vw, 32px);
  min-height: 168px;
  padding-block: 32px;
  border-top: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.cap-list .cap-row:last-child { border-bottom: 1px solid var(--line); }

@media (min-width: 900px) {
  .cap-row {
    grid-template-columns: 88px minmax(0, 1.05fr) minmax(0, 1fr) 56px;
    grid-template-areas: "index name services arrow";
    min-height: 200px;
  }
}

.cap-row__index { grid-area: index; color: var(--muted); }

.cap-row__name {
  grid-area: name;
  font-size: clamp(2.4rem, 4.6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 400;
  color: var(--fg);
  transition: transform .7s var(--ease-out);
  will-change: transform;
}

.cap-row__services {
  grid-area: services;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.cap-row__services span {
  opacity: .9;
  transform: none;
}
@media (min-width: 900px) {
  .cap-row__services { margin-top: 0; }
  .cap-row__services span {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  }
  .cap-row:hover .cap-row__services span,
  .cap-row:focus-visible .cap-row__services span { opacity: 1; transform: none; }
  .cap-row:hover .cap-row__services span:nth-child(2),
  .cap-row:focus-visible .cap-row__services span:nth-child(2) { transition-delay: .06s; }
  .cap-row:hover .cap-row__services span:nth-child(3),
  .cap-row:focus-visible .cap-row__services span:nth-child(3) { transition-delay: .12s; }
}

.cap-row__arrow {
  grid-area: arrow;
  justify-self: end;
  width: 26px; height: 26px;
  color: var(--muted);
  transition: transform .7s var(--ease-out), color .6s var(--ease-out);
}
.cap-row__arrow svg { width: 100%; height: 100%; }

.cap-row__canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .7s var(--ease-out);
  pointer-events: none;
}

/* a hairline runs across the row on hover */
.cap-row::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 1px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
  transition: transform .9s var(--ease-out), opacity .5s var(--ease-out);
}

.cap-row:hover .cap-row__name,
.cap-row:focus-visible .cap-row__name { transform: translateX(6px); }
.cap-row:hover .cap-row__arrow,
.cap-row:focus-visible .cap-row__arrow { transform: translate(4px, -4px); color: var(--fg); }
.cap-row:hover::after,
.cap-row:focus-visible::after { transform: scaleX(1); opacity: .85; }
.cap-row:hover .cap-row__canvas,
.cap-row:focus-visible .cap-row__canvas { opacity: 1; }

.cap-more { margin-top: clamp(48px, 6vw, 80px); }



/* ============================================================
   11 · PROCESS
   ============================================================ */
.process-wrap {
  position: relative;
  margin-top: clamp(64px, 8vw, 120px);
}

.process-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(44px, 5vw, 64px);
}
@media (min-width: 860px) {
  .process-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 72px);
  }
}

.process-step {
  position: relative;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.process-step__node {
  position: absolute;
  top: 0; left: 0;
  width: 9px; height: 9px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(17, 18, 22, .38);
  transform: translate(-4px, -4.5px);
  transition: box-shadow .6s var(--ease-out), background-color .6s var(--ease-out);
}
.is-signalling .process-step__node { box-shadow: inset 0 0 0 1px rgba(17, 18, 22, .72); }
.process-step__index { color: var(--muted); }
.process-step__name {
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -.038em;
  line-height: 1.08;
  color: var(--fg);
}
.process-step__copy {
  color: var(--muted);
  font-size: clamp(15px, 1.02vw, 16px);
  line-height: 1.62;
  max-width: 34ch;
}

.process-line {
  position: absolute;
  top: 0;
  left: 0; right: 0;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.process-line__signal {
  position: absolute;
  top: 0; left: 0;
  width: 22%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #88e4ea 22%, #b7a7ff 52%, #e6a6d9 78%, transparent);
  transform: translateX(-110%);
  opacity: 0;
}
.is-signalling .process-line__signal {
  animation: processSignal 2800ms var(--ease-editorial) forwards;
}
@keyframes processSignal {
  0%   { transform: translateX(-110%); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateX(560%); opacity: 0; }
}

@media (max-width: 859px) {
  .process-line {
    top: 0; bottom: 0;
    left: -4px; right: auto;
    width: 1px; height: auto;
  }
  .process-line__signal {
    width: 100%;
    height: 16%;
    background: linear-gradient(180deg, transparent, #88e4ea 22%, #b7a7ff 52%, #e6a6d9 78%, transparent);
    transform: translateY(-110%);
  }
  .is-signalling .process-line__signal { animation-name: processSignalV; }
  @keyframes processSignalV {
    0%   { transform: translateY(-110%); opacity: 0; }
    12%  { opacity: 1; }
    88%  { opacity: 1; }
    100% { transform: translateY(700%); opacity: 0; }
  }
  .process-list { padding-left: 22px; }
  .process-step { padding-top: 0; padding-left: 0; }
  .process-step__node { top: 8px; left: -22px; }
}


/* ============================================================
   12 · FINAL CTA
   ============================================================ */
.cta {
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.cta__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .85;
  pointer-events: none;
}
.cta__shell { position: relative; z-index: 2; }
.cta .meta { margin-bottom: clamp(24px, 3vw, 40px); }
.cta__body {
  margin: clamp(28px, 3.4vw, 46px) 0 clamp(32px, 4vw, 52px);
  max-width: 50ch;
  color: var(--muted-light);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.62;
}


/* ============================================================
   13 · FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  background: var(--black);
  color: var(--white);
  border-top: 1px solid var(--line-dark);
  padding-top: clamp(72px, 9vh, 130px);
  padding-bottom: clamp(140px, 22vh, 260px);
  overflow: hidden;
  --muted: var(--muted-dark);
  --fg: var(--white);
  --line: var(--line-dark);
}

.site-footer__top {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line-dark);
}
@media (min-width: 900px) {
  .site-footer__top { grid-template-columns: auto minmax(0, 1fr); align-items: end; }
}
.site-footer__line {
  color: var(--muted-dark);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  max-width: 40ch;
  justify-self: start;
}
@media (min-width: 900px) { .site-footer__line { justify-self: end; text-align: right; } }

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(36px, 5vw, 64px);
  padding-block: clamp(48px, 6vw, 80px);
}
.foot-col h2 { margin-bottom: 22px; }
.foot-col ul { display: flex; flex-direction: column; gap: 11px; }
.foot-col a,
.foot-col button {
  font-size: 15px;
  color: rgba(245, 245, 242, .72);
  transition: color .4s var(--ease-out);
}
.foot-col a:hover, .foot-col button:hover { color: var(--white); }
.foot-col__soon {
  font-size: 15px;
  color: rgba(245, 245, 242, .34);
  cursor: default;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line-dark);
}

.site-footer__wordmark {
  position: absolute;
  left: 50%;
  bottom: clamp(-14px, -1.6vw, -6px);
  transform: translateX(-50%);
  width: max-content;
  font-size: clamp(3.6rem, 15vw, 15rem);
  line-height: .78;
  font-weight: 400;
  letter-spacing: -.06em;
  color: rgba(245, 245, 242, .045);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}


/* ============================================================
   14 · FULLSCREEN MENU
   ============================================================ */
.site-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 5, 6, .96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity .55s var(--ease-out);
}
.site-menu.is-open { opacity: 1; }
.site-menu__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: .7;
  pointer-events: none;
}
.site-menu__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px var(--gutter) clamp(32px, 5vh, 56px);
  max-width: var(--shell);
  margin-inline: auto;
}
.site-menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 8px;
}
.menu-close {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  display: grid; place-items: center;
  color: var(--white);
  transition: border-color .4s var(--ease-out), transform .5s var(--ease-out);
}
.menu-close svg { width: 16px; height: 16px; }
.menu-close:hover { border-color: rgba(255, 255, 255, .45); transform: rotate(90deg); }

.site-menu__nav {
  flex: 1;
  display: flex;
  align-items: center;
  padding-inline: 8px;
}
.site-menu__nav ul {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 1vh, 12px);
  width: 100%;
}
.site-menu__nav a,
.site-menu__nav button {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 3vw, 40px);
  width: 100%;
  text-align: left;
  padding-block: clamp(4px, .8vh, 10px);
  opacity: 0;
  transform: translateY(30px);
}
.site-menu.is-open .site-menu__nav a,
.site-menu.is-open .site-menu__nav button {
  animation: menuItem 800ms var(--ease-out) forwards;
}
.site-menu__nav li:nth-child(1) a, .site-menu__nav li:nth-child(1) button { animation-delay: 120ms; }
.site-menu__nav li:nth-child(2) a, .site-menu__nav li:nth-child(2) button { animation-delay: 180ms; }
.site-menu__nav li:nth-child(3) a, .site-menu__nav li:nth-child(3) button { animation-delay: 240ms; }
.site-menu__nav li:nth-child(4) a, .site-menu__nav li:nth-child(4) button { animation-delay: 300ms; }
.site-menu__nav li:nth-child(5) a, .site-menu__nav li:nth-child(5) button { animation-delay: 360ms; }
@keyframes menuItem {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
.site-menu__nav .meta {
  color: rgba(245, 245, 242, .36);
  flex: none;
  width: 3ch;
}
.site-menu__label {
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 400;
  color: rgba(245, 245, 242, .72);
  transition: color .5s var(--ease-out), transform .6s var(--ease-out);
}
.site-menu__nav a:hover .site-menu__label,
.site-menu__nav button:hover .site-menu__label {
  color: var(--white);
  transform: translateX(10px);
}

.site-menu__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}


/* ============================================================
   15 · CONTACT MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vh, 40px) var(--gutter);
  opacity: 0;
  transition: opacity .5s var(--ease-out);
}
.modal.is-open { opacity: 1; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: min(88svh, 900px);
  background: rgba(12, 13, 16, .84);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 28px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transform: translateY(14px) scale(.99);
  opacity: 0;
  transition: transform .6s var(--ease-out), opacity .5s var(--ease-out);
  overflow: hidden;
}
.modal.is-open .modal__panel { transform: none; opacity: 1; }

.modal__scroll {
  max-height: min(88svh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(24px, 4vw, 48px);
}
.modal__scroll::-webkit-scrollbar { width: 3px; }
.modal__scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 999px; }

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(12, 13, 16, .6);
  display: grid; place-items: center;
  color: var(--white);
  transition: border-color .4s var(--ease-out), transform .5s var(--ease-out);
}
.modal__close svg { width: 15px; height: 15px; }
.modal__close:hover { border-color: rgba(255, 255, 255, .42); transform: rotate(90deg); }

.modal__title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -.042em;
  line-height: 1.05;
  color: var(--white);
}
.modal__sub {
  margin-top: 14px;
  color: var(--muted-dark);
  font-size: 15px;
  line-height: 1.6;
  max-width: 42ch;
}

.form { margin-top: clamp(26px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 9px; border: 0; }
.field label, .field legend {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-dark);
  padding: 0;
}
.field input,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 15px;
  color: var(--white);
  transition: border-color .4s var(--ease-out), background-color .4s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 108px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: rgba(245, 245, 242, .3); }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .2); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(136, 228, 234, .55);
  background: rgba(255, 255, 255, .055);
}
/* Invalid state has to out-rank :hover and :focus, or a rejected field
   looks identical to an accepted one and the form seems inert. */
.field input[aria-invalid="true"],
.field input[aria-invalid="true"]:hover,
.field input[aria-invalid="true"]:focus,
.field textarea[aria-invalid="true"],
.field textarea[aria-invalid="true"]:hover,
.field textarea[aria-invalid="true"]:focus {
  border-color: rgba(230, 166, 217, .72);
  background: rgba(230, 166, 217, .045);
}

.field__error {
  display: none;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  line-height: 1.4;
  color: #e6a6d9;
  letter-spacing: -.002em;
}
.field__error::before {
  content: "";
  flex: none;
  width: 4px; height: 4px;
  border-radius: 999px;
  background: currentColor;
}
.field.is-invalid .field__error { display: flex; }
.field.is-invalid .field__error { animation: errIn 320ms var(--ease-out) both; }
@keyframes errIn {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: none; }
}

.field--choices { margin-top: 4px; }
.field--choices legend { margin-bottom: 11px; }
.choices { display: flex; flex-wrap: wrap; gap: 7px; }
.choice { position: relative; }
.choice input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.choice span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  font-size: 12.5px;
  color: rgba(245, 245, 242, .66);
  transition: border-color .35s var(--ease-out), color .35s var(--ease-out), background-color .35s var(--ease-out);
}
.choice span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 999px;
  background: rgba(245, 245, 242, .26);
  transition: background .35s var(--ease-out), transform .4s var(--ease-out);
}
.choice input:hover + span { border-color: rgba(255, 255, 255, .26); color: rgba(245, 245, 242, .86); }
.choice input:focus-visible + span { outline: 1px solid var(--cyan); outline-offset: 2px; }
.choice input:checked + span {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .06);
  color: var(--white);
}
.choice input:checked + span::before { background: var(--brand-gradient); transform: scale(1.2); }

.form__note { color: rgba(245, 245, 242, .3); text-align: center; }

.modal__done { text-align: center; padding-block: clamp(24px, 5vw, 48px); }
.modal__done .modal__sub { margin-inline: auto; }
.modal__done .btn { margin-top: 28px; }
.modal__done-node {
  display: block;
  width: 9px; height: 9px;
  border-radius: 999px;
  background: var(--brand-gradient);
  margin: 0 auto 26px;
  box-shadow: 0 0 0 0 rgba(183, 167, 255, .5);
  animation: doneNode 2.4s var(--ease-editorial) infinite;
}
@keyframes doneNode {
  0%   { box-shadow: 0 0 0 0 rgba(183, 167, 255, .38); }
  70%  { box-shadow: 0 0 0 22px rgba(183, 167, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(183, 167, 255, 0); }
}


/* ============================================================
   16 · CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 400;
  pointer-events: none;
  opacity: 0;
  display: none;
  mix-blend-mode: normal;
}
body.has-cursor .cursor { display: block; opacity: 1; }
body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor input,
body.has-cursor textarea,
body.has-cursor label { cursor: none; }

.cursor__dot {
  position: absolute;
  top: 0; left: 0;
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--brand-gradient);
  margin: -2.5px 0 0 -2.5px;
  will-change: transform;
}
.cursor__ring {
  position: absolute;
  top: 0; left: 0;
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .48);
  display: grid;
  place-items: center;
  will-change: transform;
  transition:
    width .5s var(--ease-out),
    height .5s var(--ease-out),
    margin .5s var(--ease-out),
    border-color .5s var(--ease-out),
    background-color .5s var(--ease-out);
}
.cursor.is-hover .cursor__ring {
  width: 54px; height: 54px;
  margin: -27px 0 0 -27px;
  border-color: rgba(255, 255, 255, .75);
}
.cursor.is-light .cursor__ring { border-color: rgba(17, 18, 22, .38); }
.cursor.is-light.is-hover .cursor__ring { border-color: rgba(17, 18, 22, .62); }

.cursor__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.cursor.is-media .cursor__label { opacity: 1; transform: none; }
.cursor.is-media .cursor__ring {
  width: 76px; height: 76px;
  margin: -38px 0 0 -38px;
  background: rgba(12, 13, 16, .3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.cursor.is-media .cursor__dot { opacity: 0; }


/* ============================================================
   17 · SERVICES PAGE
   ============================================================ */
.page--services { background: var(--black); }

/* -- services hero ------------------------------------------ */
.svc-hero {
  position: relative;
  min-height: 82svh;
  display: flex;
  align-items: flex-end;
  padding-top: clamp(140px, 22vh, 220px);
  padding-bottom: clamp(56px, 9vh, 110px);
  background: #050506;
  overflow: hidden;
}
.svc-hero__media { position: absolute; inset: 0; overflow: hidden; }
.svc-hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .62;
}
.svc-hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 60% 30%, transparent 30%, rgba(5, 5, 6, .6) 100%),
    linear-gradient(to top, rgba(5, 5, 6, .92) 0%, rgba(5, 5, 6, .4) 42%, rgba(5, 5, 6, .18) 100%);
}
.svc-hero__shell { position: relative; z-index: 2; }
.svc-hero .meta { color: rgba(245, 245, 242, .62); margin-bottom: clamp(20px, 2.6vw, 32px); }

.hero-title--services {
  font-size: clamp(3.4rem, 7vw, 7.4rem);
  margin-bottom: clamp(24px, 3vw, 36px);
}

.svc-hero__body {
  max-width: 44ch;
  color: var(--muted-light);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.62;
}

.svc-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 46px);
  margin-top: clamp(40px, 5vw, 66px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.svc-node {
  display: flex;
  align-items: center;
  gap: 10px;
  will-change: transform;
  transition: opacity .6s var(--ease-out);
}
.svc-node__dot {
  width: 5px; height: 5px;
  border-radius: 999px;
  background: rgba(245, 245, 242, .5);
  transition: background .5s var(--ease-out), transform .5s var(--ease-out);
}
.svc-node a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(245, 245, 242, .62);
  transition: color .45s var(--ease-out);
}
.svc-node:hover a,
.svc-node.is-current a { color: var(--white); }
.svc-node.is-current .svc-node__dot { background: var(--brand-gradient); }
.svc-node:hover .svc-node__dot { background: var(--brand-gradient); transform: scale(1.5); }

/* -- chapters ----------------------------------------------- */
.chapters {
  position: relative;
  background: var(--white);
  color: var(--ink);
  --bg: var(--white);
  --fg: var(--ink);
  --muted: #6b6e76;
  --line: var(--line-light);
  isolation: isolate;
}
.services-network {
  position: sticky;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 100svh;
  margin-bottom: -100svh;
  pointer-events: none;
  opacity: .9;
}
.chapters .meta { color: #83868e; }

.chapter {
  position: relative;
  z-index: 1;
  padding-block: clamp(76px, 11vh, 150px);
}
.chapter + .chapter { border-top: 1px solid var(--line-light); }
.chapter:first-of-type { padding-top: clamp(90px, 14vh, 180px); }

.chapter__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
@media (min-width: 1000px) {
  .chapter__grid { grid-template-columns: minmax(0, 35fr) minmax(0, 65fr); }
}
.chapter__sticky {
  position: static;
}
@media (min-width: 1000px) {
  .chapter__sticky { position: sticky; top: clamp(120px, 18vh, 200px); }
}
.chapter__sticky .meta { margin-bottom: clamp(18px, 2vw, 28px); }

.chapter__rows { border-top: 1px solid var(--line-light); }

/* Each row is a button: it opens a brief already pointed at itself. */
.svc-row {
  position: relative;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 30px;
  grid-template-areas:
    "index title arrow"
    ". copy .";
  gap: 10px clamp(14px, 2vw, 28px);
  align-items: baseline;
  padding: clamp(26px, 3vw, 38px) clamp(10px, 1.4vw, 20px);
  margin-inline: clamp(-10px, -1.4vw, -20px);
  border-bottom: 1px solid var(--line-light);
  transition: background-color .55s var(--ease-out);
}
@media (min-width: 1180px) {
  .svc-row {
    grid-template-columns: 56px minmax(0, .95fr) minmax(0, 1.05fr) 30px;
    grid-template-areas: "index title copy arrow";
    align-items: start;
  }
}
.svc-row:hover { background-color: rgba(17, 18, 22, .035); }

.svc-row__index { grid-area: index; color: var(--muted); padding-top: .35em; }
.svc-row__title {
  grid-area: title;
  font-size: clamp(1.25rem, 1.9vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -.036em;
  line-height: 1.14;
  color: var(--ink);
  transition: transform .6s var(--ease-out);
  will-change: transform;
}
.svc-row__copy {
  grid-area: copy;
  color: var(--muted);
  font-size: clamp(14.5px, 1vw, 16px);
  line-height: 1.6;
  max-width: 44ch;
}
.svc-row__arrow {
  grid-area: arrow;
  justify-self: end;
  width: 19px; height: 19px;
  color: var(--muted);
  transform: rotate(-5deg);
  transition: transform .6s var(--ease-out), color .5s var(--ease-out);
}
.svc-row__arrow svg { width: 100%; height: 100%; }
.svc-row:hover .svc-row__title,
.svc-row:focus-visible .svc-row__title { transform: translateX(7px); }
.svc-row:hover .svc-row__arrow,
.svc-row:focus-visible .svc-row__arrow { transform: rotate(0deg) translate(2px, -2px); color: var(--ink); }
.svc-row.is-active { background-color: rgba(17, 18, 22, .035); }

/* -- services map ------------------------------------------- */
.svc-map { overflow: hidden; }
.map-figure {
  position: relative;
  margin-top: clamp(48px, 6vw, 84px);
  isolation: isolate;
}
/* A faint bed for the bloom to sit in, so the glow reads as depth
   rather than as marks floating on flat black. */
.map-figure::before {
  content: "";
  position: absolute;
  inset: -12% -6%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 62% at 46% 46%, rgba(136, 228, 234, .05), transparent 70%),
    radial-gradient(46% 54% at 74% 62%, rgba(230, 166, 217, .045), transparent 72%),
    radial-gradient(50% 58% at 22% 34%, rgba(183, 167, 255, .04), transparent 74%);
  filter: blur(6px);
}
#map-canvas {
  width: 100%;
  aspect-ratio: 16 / 8.4;
  height: auto;
  cursor: crosshair;
  /* The tissue is unbounded, so fade it out rather than letting the
     canvas edge slice through it. */
  -webkit-mask-image: radial-gradient(118% 112% at 50% 50%, #000 58%, transparent 96%);
  mask-image: radial-gradient(118% 112% at 50% 50%, #000 58%, transparent 96%);
}
body.has-cursor #map-canvas { cursor: none; }
@media (max-width: 780px) { #map-canvas { aspect-ratio: 4 / 5; } }

.map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(28px, 3.5vw, 44px);
}
.map-legend button {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(245, 245, 242, .5);
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  transition: color .4s var(--ease-out), border-color .4s var(--ease-out), background-color .4s var(--ease-out);
}
.map-legend button:hover,
.map-legend button.is-active {
  color: var(--white);
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .05);
}


/* ============================================================
   18 · REVEALS & DATA-MORPH
   ============================================================ */
[data-reveal] .line__i,
[data-reveal="lines"] .line__i {
  opacity: 0;
  transform: translateY(105%);
}
[data-reveal="lines"].is-in .line__i {
  animation: revealLine 900ms var(--ease-editorial) forwards;
}
[data-reveal="lines"].is-in .line:nth-child(1) .line__i { animation-delay: 0ms; }
[data-reveal="lines"].is-in .line:nth-child(2) .line__i { animation-delay: 90ms; }
[data-reveal="lines"].is-in .line:nth-child(3) .line__i { animation-delay: 180ms; }
@keyframes revealLine {
  from { opacity: 0; transform: translateY(105%); }
  to   { opacity: 1; transform: none; }
}

[data-reveal="fade"] {
  opacity: 0;
  transform: translateY(18px);
}
[data-reveal="fade"].is-in {
  animation: revealFade 700ms var(--ease-out) forwards;
}
@keyframes revealFade {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

[data-reveal="rows"] > * {
  opacity: 0;
  transform: translateY(20px);
}
[data-reveal="rows"].is-in > * {
  animation: revealFade 700ms var(--ease-out) forwards;
}
[data-reveal="rows"].is-in > *:nth-child(1) { animation-delay: 0ms; }
[data-reveal="rows"].is-in > *:nth-child(2) { animation-delay: 55ms; }
[data-reveal="rows"].is-in > *:nth-child(3) { animation-delay: 110ms; }
[data-reveal="rows"].is-in > *:nth-child(4) { animation-delay: 165ms; }

/* Data-morph: one brief displacement per interaction. Never looped. */
.is-morphing {
  animation: dataMorph 180ms steps(3, end) 1;
}
@keyframes dataMorph {
  0% {
    transform: translateX(0);
    filter: blur(0);
    text-shadow: none;
  }
  40% {
    transform: translateX(4px);
    filter: blur(1.4px);
    text-shadow: -2px 0 rgba(136, 228, 234, .55), 2px 0 rgba(230, 166, 217, .5);
  }
  75% {
    transform: translateX(-2px);
    filter: blur(.6px);
    text-shadow: 1px 0 rgba(183, 167, 255, .4), -1px 0 rgba(136, 228, 234, .3);
  }
  100% {
    transform: translateX(0);
    filter: blur(0);
    text-shadow: none;
  }
}


/* ============================================================
   19 · RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  .hero-title { font-size: clamp(3.8rem, 10vw, 6rem); }
}

@media (max-width: 767px) {
  :root { --gutter: 22px; --edge: 22px; }

  .site-nav { display: none; }
  .btn--pill { display: none; }
  .site-header { padding-top: 16px; }
  .site-header.is-solid { padding-top: 10px; }
  .site-header__inner { padding: 7px 8px 7px 12px; }

  .hero { min-height: 125vh; }
  .hero-title { font-size: clamp(3rem, 14vw, 4.8rem); letter-spacing: -.05em; }
  .hero-content { bottom: clamp(48px, 9vh, 84px); width: calc(100% - var(--edge) * 2); }
  .hero-body { font-size: 15px; max-width: 40ch; }
  .hero-actions .btn { flex: 1 1 auto; }

  .hero-hint {
    top: 96px;
    right: var(--edge);
    bottom: auto;
    font-size: 10px;
  }

  .hero-vignette {
    background:
      radial-gradient(140% 90% at 60% 26%, transparent 30%, rgba(5, 5, 6, .5) 100%),
      linear-gradient(to top, rgba(5, 5, 6, .88) 0%, rgba(5, 5, 6, .3) 44%, transparent 70%);
  }

  .cap-row { min-height: 0; padding-block: 28px; }
  .cap-row__name { font-size: clamp(2.2rem, 11vw, 3.2rem); }

  .site-footer__wordmark { font-size: clamp(3rem, 17vw, 6rem); bottom: 8px; }
  .site-footer { padding-bottom: clamp(110px, 18vh, 160px); }

  .modal { padding: 0; place-items: stretch; }
  .modal__panel { max-width: none; max-height: 100svh; border-radius: 0; border: 0; }
  .modal__scroll { max-height: 100svh; padding: 72px 22px 40px; }

  .svc-hero { min-height: 88svh; padding-top: 130px; }
  .hero-title--services { font-size: clamp(2.9rem, 13vw, 4.4rem); }
  .svc-nodes { gap: 12px 22px; }
}

@media (max-width: 400px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}


/* ============================================================
   20 · REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .12s !important;
    scroll-behavior: auto !important;
  }

  .loader { transition: opacity .2s linear; }
  .loader.is-leaving { transform: none; opacity: 0; }

  [data-hero],
  .hero-title .line__i,
  [data-reveal],
  [data-reveal] .line__i,
  [data-reveal="rows"] > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-hint { display: none; }
  .cursor { display: none !important; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: auto; }

  @media (min-width: 900px) {
    .cap-row__services span { opacity: 1; transform: none; }
  }

  .process-line__signal { display: none; }
  .hero-hint__dot { animation: none; }
  .modal__done-node { animation: none; }
}
