/* =========================================================
   ZEER SERVICES — Liquid Galaxy Editorial (v3 · Constellation)
   ========================================================= */

:root {
  --void: #060418;
  --void-2: #0b0720;
  --ink: #f5f1ff;
  --ink-dim: #8a7fa8;
  --ink-faint: rgba(245, 241, 255, 0.35);

  --chr-magenta: #ff2bd1;
  --chr-cyan: #22f1ff;
  --chr-violet: #8b5cff;

  --chr-gradient: linear-gradient(
    120deg,
    #ff2bd1 0%,
    #8b5cff 50%,
    #22f1ff 100%
  );

  --font-display: "Fraunces", serif;
  --font-italic: "Instrument Serif", serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.76, 0, 0.24, 1);

  --pad-x: clamp(1.5rem, 5vw, 5rem);
  --pad-y: clamp(6rem, 14vh, 12rem);

  /* Site-wide max-width shell: sections stay full-bleed but their
     content is gently centered and capped on ultrawide displays.    */
  --site-max: 1640px;
  --shell-pad: max(var(--pad-x), calc((100vw - var(--site-max)) / 2));
}

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

html, body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* =========================================================
   Scrollbars — themed to match the liquid-galaxy palette
   ========================================================= */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 255, 0.45) transparent;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(139, 92, 255, 0.55) 0%,
    rgba(255, 43, 209, 0.45) 50%,
    rgba(34, 241, 255, 0.5) 100%
  );
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px rgba(245, 241, 255, 0.08);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(139, 92, 255, 0.85) 0%,
    rgba(255, 43, 209, 0.75) 50%,
    rgba(34, 241, 255, 0.8) 100%
  );
  background-clip: padding-box;
}
::-webkit-scrollbar-corner { background: transparent; }

body {
  min-height: 100dvh;
  cursor: none;
  position: relative;
}

html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

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

::selection {
  background: var(--chr-magenta);
  color: var(--void);
}

/* =========================================================
   Atmosphere (grain · vignette · canvas)
   ========================================================= */

.grain {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 4;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

.vignette {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 3;
  background:
    radial-gradient(ellipse at 50% 50%,
      transparent 40%,
      rgba(5, 3, 9, 0.85) 100%),
    radial-gradient(circle at 15% 8%,
      rgba(139, 92, 255, 0.14) 0%,
      transparent 42%),
    radial-gradient(circle at 88% 92%,
      rgba(255, 43, 209, 0.08) 0%,
      transparent 45%);
}

#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 1;
  pointer-events: none;
  display: block;
}

main {
  position: relative;
  z-index: 2;
}

/* =========================================================
   Typography helpers
   ========================================================= */

.display {
  font-family: var(--font-display);
  font-variation-settings: "wght" 900, "SOFT" 100, "opsz" 144;
  letter-spacing: -0.035em;
  line-height: 0.86;
}

.italic {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.9;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  /* Fluidly scale mono labels across the viewport: 11.2px min → 14.5px
     max on ultrawide. Previous fixed 0.7rem was tiny on 4K monitors. */
  font-size: clamp(0.72rem, 0.22vw + 0.66rem, 0.92rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.45;
}

.body {
  font-family: var(--font-display);
  font-variation-settings: "wght" 420, "SOFT" 50, "opsz" 18;
  /* 17px min → 21-22px on big monitors */
  font-size: clamp(1.08rem, 0.35vw + 1.0rem, 1.4rem);
  line-height: 1.58;
  color: var(--ink-dim);
  letter-spacing: -0.005em;
}

.chr {
  background: var(--chr-gradient);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(139, 92, 255, 0.25));
  animation: chrFlow 9s var(--ease-inout) infinite;
}
@keyframes chrFlow {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.outline {
  -webkit-text-stroke: 1.2px var(--ink);
  color: transparent;
}

/* =========================================================
   Custom cursor
   ========================================================= */

.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  pointer-events: none;
  z-index: 200;
  mix-blend-mode: difference;
  transform: translate3d(-100px, -100px, 0);
  transition: transform 0.05s linear;
}
.cursor__dot {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #fff;
  transform: scale(0.25);
  transition: transform 0.35s var(--ease-out),
              background 0.3s;
}
.cursor.is-hover .cursor__dot {
  transform: scale(1);
  background: var(--chr-cyan);
}
@media (pointer: coarse) {
  .cursor { display: none; }
  body { cursor: auto; }
  button, a { cursor: pointer; }
}

/* =========================================================
   Nav
   ========================================================= */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.1rem, 2.2vw, 1.8rem) clamp(1.5rem, 3vw, 2.4rem);
  pointer-events: none;
  /* Transparent at top of page — no backdrop, no rule. The brand +
     index float directly on the scene. Once the user scrolls, the
     `.is-scrolled` class is added and a graduated glass backdrop
     + hairline rule fade in. */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background 0.55s var(--ease-out),
    backdrop-filter 0.55s var(--ease-out),
    -webkit-backdrop-filter 0.55s var(--ease-out);
}
.nav.is-scrolled {
  background: linear-gradient(
    180deg,
    rgba(5, 3, 9, 0.78) 0%,
    rgba(5, 3, 9, 0.38) 55%,
    transparent 100%
  );
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
}
/* Hairline chromatic rule — only visible after scroll */
.nav::after {
  content: "";
  position: absolute;
  left: clamp(1.5rem, 3vw, 2.4rem);
  right: clamp(1.5rem, 3vw, 2.4rem);
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(34, 241, 255, 0.5) 20%,
    rgba(139, 92, 255, 0.6) 50%,
    rgba(255, 43, 209, 0.45) 80%,
    transparent 100%
  );
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: center;
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.9s var(--ease-out);
  pointer-events: none;
}
.nav.is-scrolled::after {
  opacity: 0.6;
  transform: scaleX(1);
}
.nav > * { pointer-events: auto; }

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  transition: opacity 0.4s var(--ease-out);
}
.nav__brand:hover { opacity: 0.82; }
.nav__mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(32px, 2.6vw, 42px);
  height: clamp(32px, 2.6vw, 42px);
}
.nav__symbol {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  animation: navMarkFloat 7s ease-in-out infinite;
  transition: transform 0.7s var(--ease-out);
}
.nav__brand:hover .nav__symbol {
  transform: rotate(-18deg) scale(1.06);
}
/* Video already self-rotates; only layer a gentle Y-bob on top */
@keyframes navMarkFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}
.nav__wordmark {
  display: inline-flex;
  align-items: baseline;
  /* No gap — the dynamic word runs directly off the static prefix:
     "WE ARE ZEER" + "SERVICES" → "WE ARE ZEERSERVICES" */
  gap: 0;
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 0.35vw + 0.72rem, 1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 400;
}
.nav__wordmark-static {
  color: var(--ink-dim);
  font-weight: 400;
  letter-spacing: 0.12em;
  padding-right: 0.45em;
}
.nav__wordmark-dynamic {
  font-weight: 800;
  color: var(--ink);
  min-width: 1ch;
  letter-spacing: 0.02em;
  white-space: nowrap;
  /* Subtle extra weight via a faint text-stroke fill */
  text-shadow:
    0 0 0.5px currentColor,
    0 0 0.5px currentColor;
}
.nav__wordmark-caret {
  display: inline-block;
  width: 0.55ch;
  height: 1em;
  margin-left: 0.12em;
  background: var(--chr-cyan);
  box-shadow: 0 0 10px rgba(34, 241, 255, 0.8);
  transform: translateY(0.18em);
  animation: navCaretBlink 1.05s steps(2, jump-none) infinite;
}
@keyframes navCaretBlink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (max-width: 820px) {
  .nav__wordmark { font-size: 0.68rem; }
}

/* Editorial index nav — numbered entries, no pill container. */
.nav__index {
  display: flex;
  align-items: baseline;
  gap: clamp(0.9rem, 2vw, 2.2rem);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  list-style: none;
}
.nav__index li {
  display: inline-flex;
}
.nav__index a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.5rem 0.1rem;
  color: var(--ink-dim);
  transition: color 0.5s var(--ease-out),
              transform 0.5s var(--ease-out);
}
.nav__index a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.25rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--chr-cyan) 0%,
    var(--chr-violet) 55%,
    var(--chr-magenta) 100%
  );
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease-out);
}
.nav__index-num {
  font-size: 0.52rem;
  font-weight: 500;
  color: var(--chr-cyan);
  opacity: 0.55;
  transition: opacity 0.4s var(--ease-out),
              transform 0.5s var(--ease-out);
}
.nav__index-label {
  font-weight: 400;
  transition: letter-spacing 0.5s var(--ease-out);
}
.nav__index a:hover {
  color: var(--ink);
  transform: translateY(-1px);
}
.nav__index a:hover::before {
  transform: scaleX(1);
}
.nav__index a:hover .nav__index-num {
  opacity: 1;
  transform: translateY(-1px);
}
.nav__index a:hover .nav__index-label {
  letter-spacing: 0.24em;
}
.nav__index a.is-active {
  color: var(--ink);
}
.nav__index a.is-active::before {
  transform: scaleX(1);
}
.nav__index a.is-active .nav__index-num {
  opacity: 1;
}

@media (max-width: 920px) {
  .nav { padding: 0.9rem 1rem; }
  .nav__wordmark { display: none; }
  .nav__index {
    gap: clamp(0.55rem, 1.5vw, 1.1rem);
    font-size: 0.54rem;
    letter-spacing: 0.14em;
  }
  .nav__index-num { font-size: 0.44rem; }
}
@media (max-width: 560px) {
  .nav__index-label { display: none; }
  .nav__index a { padding: 0.6rem 0.2rem; gap: 0; }
  .nav__index-num { font-size: 0.58rem; opacity: 0.9; }
  .nav__index a.is-active .nav__index-num {
    color: var(--ink);
  }
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 100dvh;
  padding: var(--shell-pad);
  /* Asymmetric padding — bigger top than bottom pushes the centered
     content downward so the eye lands around the 55-60% viewport
     mark instead of dead center. */
  padding-top: clamp(11rem, 22vh, 22rem);
  padding-bottom: clamp(4rem, 8vh, 7rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero__grid {
  display: grid;
  /* Text column gets more room than the video on mid-size viewports,
     then evens out on ultrawide. Previously 1.1/0.9 was cramming the
     headline at 1200-1600px. */
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4.5vw, 5.5rem);
  align-items: center;
  width: 100%;
}

.hero__main {
  display: flex;
  flex-direction: column;
  gap: clamp(1.6rem, 3vh, 2.6rem);
  min-width: 0;
  position: relative;
  z-index: 2;
}

.hero__headline {
  /* Smoother scaling — smaller vw coefficient + lower max prevents
     the font from outgrowing its column. */
  font-size: clamp(2.8rem, 5.8vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variation-settings: "wght" 900, "SOFT" 100, "opsz" 144;
  max-width: 17ch;
  /* Auto-balance line breaks so wraps look intentional instead of
     mechanical. Supported Chrome 114+, Firefox 121+, Safari 17.5+ */
  text-wrap: balance;
  /* Prevent orphan characters and awkward mid-word breaks */
  overflow-wrap: break-word;
  hyphens: none;
  perspective: 1400px;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero__rule {
  display: block;
  width: clamp(180px, 22vw, 320px);
  height: 6px;
  color: var(--chr-cyan);
  margin-top: clamp(0.6rem, 1.5vh, 1.2rem);
  overflow: visible;
  filter: drop-shadow(0 0 14px rgba(34, 241, 255, 0.55));
}
.hero__rule path {
  vector-effect: non-scaling-stroke;
}
.hero__headline .split-char {
  display: inline-block;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}
.hero__headline .split-char-word {
  display: inline-block;
  transform-style: preserve-3d;
}
.hero__headline em {
  /* Stay inline so text-wrap: balance can flow the italic phrase
     naturally across lines instead of keeping it as a rigid unit. */
  display: inline;
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.hero__subhead {
  font-family: var(--font-display);
  font-variation-settings: "wght" 420, "SOFT" 60, "opsz" 72;
  font-size: clamp(1.15rem, 0.55vw + 1.05rem, 1.7rem);
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 52ch;
  /* Prevent single-word orphans on the last line */
  text-wrap: pretty;
}
.hero__subhead em {
  color: var(--ink);
  font-style: normal;
  font-variation-settings: "wght" 500, "SOFT" 40, "opsz" 72;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 2.2rem;
  margin-top: clamp(0.6rem, 2vh, 1.4rem);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: clamp(0.82rem, 0.25vw + 0.76rem, 1.02rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: none;
  transition: color 0.4s var(--ease-out);
}
.hero__cta--primary {
  position: relative;
  padding: 1.15rem 1.9rem;
  border: 1px solid rgba(245, 241, 255, 0.2);
  border-radius: 999px;
  color: var(--ink);
  backdrop-filter: blur(6px);
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
}
.hero__cta--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--chr-gradient);
  transform: translateX(-101%);
  transition: transform 0.7s var(--ease-out);
  z-index: -1;
}
.hero__cta--primary:hover::before { transform: translateX(0); }
.hero__cta--primary:hover {
  color: var(--void);
  border-color: transparent;
}
.hero__cta--primary:active { transform: scale(0.98); }
.hero__cta-arrow {
  font-family: var(--font-italic);
  font-size: 1.1rem;
  transition: transform 0.5s var(--ease-out);
}
.hero__cta--primary:hover .hero__cta-arrow {
  transform: translateX(4px);
}

.hero__cta--ghost {
  color: var(--ink-dim);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.4s var(--ease-out),
              border-color 0.6s var(--ease-out);
}
.hero__cta--ghost:hover {
  color: var(--ink);
  border-bottom-color: var(--chr-cyan);
}

/* Video knot — the brand's motion anchor.
   Uses a VP9+alpha WebM, so no blend-mode or mask tricks are needed. */
.hero__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  min-width: 0;
  z-index: 1;
}
.hero__media-video {
  width: 115%;
  height: 115%;
  object-fit: contain;
  pointer-events: none;
  will-change: transform;
}

/* Tighten the grid at mid-desktop so text and video don't crowd each
   other through the 1100-1440px range. */
@media (max-width: 1440px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr);
    gap: clamp(1.8rem, 3.5vw, 4rem);
  }
  .hero__headline {
    font-size: clamp(2.6rem, 5.4vw, 6.8rem);
    max-width: 16ch;
  }
}

/* Further tighten at laptop sizes — give the text most of the width,
   shrink the video so the headline can reach a readable line length. */
@media (max-width: 1200px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr);
    gap: clamp(1.5rem, 3vw, 3rem);
  }
  .hero__headline {
    font-size: clamp(2.6rem, 5.2vw, 5.8rem);
    max-width: 15ch;
  }
  .hero__subhead { max-width: 44ch; }
}

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vh, 3rem);
  }
  .hero__headline {
    max-width: 18ch;
    font-size: clamp(2.6rem, 9vw, 5.6rem);
  }
  .hero__subhead { max-width: 56ch; }
  .hero__media {
    order: -1;
    width: min(80vw, 420px);
    margin: 0 auto;
    aspect-ratio: 1 / 1;
  }
  .hero__media-video { width: 110%; height: 110%; }
}
@media (max-width: 600px) {
  .hero__media { width: min(75vw, 340px); }
  .hero__headline {
    font-size: clamp(2.4rem, 10vw, 4.8rem);
    max-width: 100%;
    letter-spacing: -0.03em;
  }
  .hero__subhead {
    font-size: clamp(1.02rem, 3.5vw, 1.3rem);
  }
  .hero__ctas { gap: 0.9rem 1.4rem; }
  .hero__cta--primary { padding: 1rem 1.5rem; }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   MANIFESTO · ABOUT
   ========================================================= */

.manifesto {
  position: relative;
  /* Chapter break after the hero — reduced ~15% from prior values. */
  padding: clamp(12rem, 20.5vh, 22rem) 0 clamp(8rem, 13vh, 14rem);
  overflow: hidden;
}

/* Shell — wraps the body + stats with consistent shell padding. */
.manifesto__shell {
  position: relative;
  padding: 0 var(--shell-pad);
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(245, 241, 255, 0.08);
  border-bottom: 1px solid rgba(245, 241, 255, 0.08);
  padding: 1.4rem 0;
}
.marquee__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(1.8rem, 3.5vw, 3rem);
  padding-right: clamp(1.8rem, 3.5vw, 3rem);
  flex-shrink: 0;
  white-space: nowrap;
}
.marquee__item {
  font-size: clamp(3rem, 7vw, 7.5rem);
  font-weight: 400;
  line-height: 0.9;
  flex-shrink: 0;
}
.marquee__item.italic { color: var(--ink-dim); }
.marquee__sep {
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  color: var(--chr-cyan);
  font-family: var(--font-italic);
  flex-shrink: 0;
  display: inline-block;
  animation: spin 14s linear infinite;
  transform-origin: center;
}

.manifesto__body {
  position: relative;
  z-index: 1;
  /* Even more breathing room after the marquee so the lead quote
     drops in from a long beat of dark negative space. */
  margin-top: clamp(8rem, 22vh, 20rem);
  display: grid;
  /* Lead column takes most of the width; secondary column is narrow. */
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.75fr);
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: end;
}
.manifesto__head {
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 3.5vh, 3rem);
}
.manifesto__lead {
  /* Bigger than before — now that the bg numeral and index header are
     gone, the lead carries the whole section and should dominate. */
  font-size: clamp(3rem, 5.8vw, 7.6rem);
  font-variation-settings: "wght" 520, "SOFT" 100, "opsz" 144;
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 22ch;
}
/* Word spans injected by JS for the scroll-scrub reveal */
.manifesto__lead .mani-word {
  display: inline-block;
  will-change: opacity, transform, filter;
}
.manifesto__lead em { color: var(--chr-cyan); }
.manifesto__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 40ch;
  padding-bottom: clamp(0.5rem, 1.5vh, 1.5rem);
  padding-top: clamp(1rem, 2.5vh, 2rem);
  border-top: 1px solid rgba(245, 241, 255, 0.12);
}
.manifesto__text-tag {
  color: var(--chr-cyan);
  font-size: clamp(0.66rem, 0.2vw + 0.6rem, 0.82rem);
  letter-spacing: 0.28em;
  opacity: 0.9;
}
.manifesto__text-mark {
  color: var(--chr-cyan);
  opacity: 0.7;
}
.manifesto__p {
  font-size: clamp(1.4rem, 1.9vw, 2.1rem);
  font-variation-settings: "wght" 420, "SOFT" 80, "opsz" 72;
  line-height: 1.24;
  color: var(--ink-dim);
  margin-top: 0.4rem;
}
.manifesto__p em { color: var(--ink); }

/* Stats strip — four data anchors at the bottom of the manifesto.
   Each column centers its content both horizontally and vertically
   within its cell, hairline dividers between columns, no cards. */
.manifesto__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(4rem, 8vh, 7rem);
  list-style: none;
  border-top: 1px solid rgba(245, 241, 255, 0.1);
}
.manifesto__stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: clamp(0.9rem, 1.6vh, 1.5rem);
  padding: clamp(1.8rem, 3.5vh, 3rem) clamp(1rem, 2vw, 2rem);
  border-right: 1px solid rgba(245, 241, 255, 0.08);
  min-height: clamp(8rem, 14vh, 12rem);
}
.manifesto__stat:last-child {
  border-right: 0;
}
.manifesto__stat-num {
  font-size: clamp(3.4rem, 5.2vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-variation-settings: "wght" 900, "SOFT" 100, "opsz" 144;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
}
.manifesto__stat-num em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--chr-cyan);
  font-size: 0.55em;
  letter-spacing: -0.01em;
  margin-left: 0.08em;
}
.manifesto__stat-label {
  color: var(--ink-dim);
  font-size: clamp(0.66rem, 0.2vw + 0.58rem, 0.82rem);
  letter-spacing: 0.22em;
  line-height: 1.6;
  max-width: 22ch;
  text-align: center;
}
.manifesto__stat-label em {
  color: var(--ink);
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.12em;
  letter-spacing: 0;
  text-transform: none;
}

/* =========================================================
   PRODUCTS
   ========================================================= */

.product {
  position: relative;
  padding: var(--pad-y) var(--shell-pad);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vh, 5rem);
  --accent: var(--chr-cyan);
}
.product--cyan    { --accent: var(--chr-cyan); }
.product--magenta { --accent: var(--chr-magenta); }
.product--violet  { --accent: var(--chr-violet); }

.product + .product {
  border-top: 1px solid rgba(245, 241, 255, 0.06);
}

.product__name {
  font-size: clamp(7rem, 22vw, 28rem);
  line-height: 0.82;
  color: var(--ink);
  font-variation-settings: "wght" 900, "SOFT" 100, "opsz" 144;
  margin-left: -0.03em;
}
.product__name em {
  color: var(--accent);
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  font-size: 0.98em;
}

.product__lead {
  font-size: clamp(1.6rem, 2.6vw, 3.6rem);
  font-variation-settings: "wght" 400, "SOFT" 80, "opsz" 72;
  line-height: 1.18;
  color: var(--ink-dim);
  max-width: 32ch;
  margin-top: 1.5rem;
}
.product__lead em {
  color: var(--ink);
}

.product__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 3rem;
  padding-top: 2rem;
  margin-top: 1rem;
  max-width: 52rem;
  border-top: 1px solid rgba(245, 241, 255, 0.08);
}
.product__features li {
  font-family: var(--font-display);
  font-variation-settings: "wght" 500, "SOFT" 60, "opsz" 48;
  font-size: clamp(1.1rem, 1.4vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink);
  position: relative;
  padding-left: 1.2rem;
  transition: transform 0.45s var(--ease-out), color 0.3s;
}
.product__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.5rem;
  height: 1px;
  background: var(--accent);
}
.product__features li:hover {
  transform: translateX(6px);
}

/* =========================================================
   CAPABILITIES · Disciplines
   ========================================================= */

.disciplines {
  position: relative;
  padding: var(--pad-y) var(--shell-pad);
}
.disciplines__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 7vw, 9rem);
  align-items: start;
}
.disciplines__aside {
  position: sticky;
  top: clamp(10vh, 18vh, 20vh);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vh, 2.5rem);
  padding-right: 1rem;
}
.disciplines__title {
  font-size: clamp(3rem, 6.2vw, 9.5rem);
  line-height: 0.9;
  max-width: 14ch;
}
.disciplines__title em {
  color: var(--chr-cyan);
}
.disciplines__lede {
  font-family: var(--font-display);
  font-variation-settings: "wght" 420, "SOFT" 70, "opsz" 72;
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.45rem);
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 42ch;
}
.disciplines__hint {
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}
.disciplines__hint span {
  color: var(--chr-cyan);
  display: inline-block;
  animation: hintPulse 2.2s ease-in-out infinite;
}
@keyframes hintPulse {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%      { transform: translateY(5px); opacity: 1; }
}

.disciplines__list {
  display: flex;
  flex-direction: column;
}
.discipline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.2rem, 2.4vw, 2.5rem);
  padding: clamp(2.8rem, 5vh, 5rem) 0;
  border-top: 1px solid rgba(245, 241, 255, 0.08);
  align-items: start;
}
.discipline:last-child {
  border-bottom: 1px solid rgba(245, 241, 255, 0.08);
}
.discipline__num {
  color: var(--chr-cyan);
  font-size: clamp(0.68rem, 0.22vw + 0.62rem, 0.88rem);
  padding-top: 0.9rem;
  min-width: 4ch;
}
.discipline__body {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.discipline__name {
  font-size: clamp(2.4rem, 4.2vw, 6.4rem);
  line-height: 0.92;
  color: var(--ink);
  font-variation-settings: "wght" 900, "SOFT" 100, "opsz" 144;
  letter-spacing: -0.035em;
}
.discipline__name em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--chr-cyan);
}
.discipline:nth-child(1) .discipline__name em { color: var(--chr-cyan); }
.discipline:nth-child(2) .discipline__name em { color: var(--chr-magenta); }
.discipline:nth-child(3) .discipline__name em { color: var(--chr-violet); }
.discipline:nth-child(4) .discipline__name em { color: var(--chr-violet); }
.discipline:nth-child(5) .discipline__name em { color: var(--chr-cyan); }

.discipline__text {
  max-width: 52ch;
  font-family: var(--font-display);
  font-variation-settings: "wght" 420, "SOFT" 60, "opsz" 72;
  font-size: clamp(1.05rem, 0.45vw + 0.95rem, 1.4rem);
  line-height: 1.58;
  color: var(--ink-dim);
}

.discipline__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  color: var(--ink-dim);
  padding-top: 1rem;
  margin-top: 0.2rem;
  border-top: 1px solid rgba(245, 241, 255, 0.05);
}
.discipline__tags li {
  position: relative;
  padding-left: 0.9rem;
}
.discipline__tags li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.45rem;
  height: 1px;
  background: var(--chr-cyan);
  opacity: 0.6;
}

/* =========================================================
   TEAM
   ========================================================= */

.team {
  position: relative;
  padding: var(--pad-y) var(--shell-pad);
}
.team__title {
  font-size: clamp(6rem, 18vw, 22rem);
  line-height: 0.85;
  margin-top: 1.5rem;
  margin-bottom: clamp(4rem, 9vh, 9rem);
}
.team__title em { color: var(--chr-violet); }

.roster {
  display: flex;
  flex-direction: column;
}
.roster__row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 5rem);
  padding: clamp(3rem, 6vh, 6rem) 0;
  border-top: 1px solid rgba(245, 241, 255, 0.1);
  align-items: start;
}
.roster__row:last-child { border-bottom: 1px solid rgba(245, 241, 255, 0.1); }
.roster__name {
  font-size: clamp(5rem, 11vw, 18rem);
  line-height: 0.85;
  color: var(--ink);
  font-variation-settings: "wght" 900, "SOFT" 100, "opsz" 144;
}
.roster__bio {
  font-size: clamp(1.3rem, 1.8vw, 2.4rem);
  line-height: 1.22;
  font-variation-settings: "wght" 420, "SOFT" 80, "opsz" 48;
  color: var(--ink-dim);
  padding-top: 1.2rem;
  max-width: 40ch;
  justify-self: end;
}
.roster__bio em { color: var(--ink); }

/* =========================================================
   JOBS
   ========================================================= */

.jobs {
  position: relative;
  padding: var(--pad-y) var(--shell-pad);
}
.jobs__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vh, 5rem);
}
.jobs__head-left {
  display: flex;
  flex-direction: column;
  gap: clamp(0.8rem, 1.5vh, 1.2rem);
}
.jobs__eyebrow {
  color: var(--chr-cyan);
  font-size: clamp(0.68rem, 0.22vw + 0.6rem, 0.88rem);
  letter-spacing: 0.28em;
  opacity: 0.85;
}
.jobs__title {
  font-size: clamp(3rem, 6.8vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variation-settings: "wght" 900, "SOFT" 100, "opsz" 144;
  max-width: 18ch;
}
.jobs__title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.jobs__lede {
  font-family: var(--font-display);
  font-variation-settings: "wght" 420, "SOFT" 60, "opsz" 72;
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.45rem);
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 46ch;
  padding-bottom: 0.4rem;
}

/* Filter pills */
.jobs__filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
  padding: clamp(1.2rem, 2.5vh, 2rem) 0;
  border-top: 1px solid rgba(245, 241, 255, 0.08);
  border-bottom: 1px solid rgba(245, 241, 255, 0.08);
  margin-bottom: clamp(1.6rem, 3vh, 2.4rem);
}
.jobs__filter-label {
  color: var(--ink-dim);
  font-size: clamp(0.68rem, 0.2vw + 0.62rem, 0.84rem);
  letter-spacing: 0.24em;
}
.jobs__filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.jobs__filter-pill {
  position: relative;
  padding: 0.75rem 1.3rem;
  border: 1px solid rgba(245, 241, 255, 0.14);
  border-radius: 999px;
  color: var(--ink-dim);
  font-size: clamp(0.68rem, 0.22vw + 0.6rem, 0.86rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: none;
  transition:
    color 0.4s var(--ease-out),
    border-color 0.5s var(--ease-out),
    background 0.5s var(--ease-out),
    transform 0.4s var(--ease-out);
}
.jobs__filter-pill:hover {
  color: var(--ink);
  border-color: rgba(245, 241, 255, 0.3);
  transform: translateY(-1px);
}
.jobs__filter-pill.is-active {
  color: var(--void);
  background: var(--ink);
  border-color: var(--ink);
}
.jobs__filter-pill.is-active:hover {
  transform: translateY(-1px) scale(1.01);
}
.jobs__filter-count {
  opacity: 0.55;
  margin-left: 0.25em;
}

/* Job rows — no cards, just dividers */
.jobs__list {
  display: flex;
  flex-direction: column;
  list-style: none;
}
.job {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.6rem, 3vh, 2.4rem) 0;
  border-top: 1px solid rgba(245, 241, 255, 0.08);
  transition:
    transform 0.6s var(--ease-out),
    background 0.5s var(--ease-out),
    opacity 0.5s var(--ease-out);
  will-change: transform, opacity;
}
.job:last-child {
  border-bottom: 1px solid rgba(245, 241, 255, 0.08);
}
.job:hover {
  transform: translateX(8px);
}
.job.is-hidden {
  display: none;
}
.job__num {
  color: var(--chr-cyan);
  font-size: clamp(0.68rem, 0.22vw + 0.6rem, 0.86rem);
  letter-spacing: 0.22em;
  opacity: 0.7;
}
.job__body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 0;
}
.job__title {
  font-size: clamp(1.7rem, 2.8vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-variation-settings: "wght" 800, "SOFT" 80, "opsz" 96;
  color: var(--ink);
}
.job__title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--chr-cyan);
  letter-spacing: -0.01em;
}
.job__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  color: var(--ink-dim);
  font-size: clamp(0.66rem, 0.2vw + 0.6rem, 0.82rem);
  letter-spacing: 0.22em;
}
.job__tags li {
  position: relative;
  padding-left: 0.9rem;
}
.job__tags li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 1px;
  background: var(--chr-cyan);
  opacity: 0.6;
}
.job__apply {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.8rem;
  border: 1px solid rgba(245, 241, 255, 0.16);
  border-radius: 999px;
  color: var(--ink);
  font-size: clamp(0.72rem, 0.22vw + 0.66rem, 0.9rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition:
    border-color 0.5s var(--ease-out),
    background 0.5s var(--ease-out),
    color 0.4s var(--ease-out),
    transform 0.5s var(--ease-out);
}
.job__apply em {
  font-family: var(--font-italic);
  font-style: normal;
  font-size: 1.05rem;
  transition: transform 0.5s var(--ease-out);
}
.job__apply:hover {
  border-color: var(--chr-cyan);
  color: var(--chr-cyan);
}
.job__apply:hover em {
  transform: translateX(4px);
}

.jobs__footer {
  margin-top: clamp(2rem, 4vh, 3rem);
  color: var(--ink-dim);
  font-size: clamp(0.72rem, 0.22vw + 0.64rem, 0.92rem);
  letter-spacing: 0.2em;
  text-align: center;
}
.jobs__footer a {
  color: var(--ink);
  border-bottom: 1px solid var(--chr-cyan);
  padding-bottom: 2px;
  transition: color 0.4s var(--ease-out);
}
.jobs__footer a:hover { color: var(--chr-cyan); }

/* =========================================================
   PARTNERS
   ========================================================= */

.partners {
  position: relative;
  padding: var(--pad-y) var(--shell-pad);
}
.partners__head {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vh, 1.5rem);
  max-width: 68ch;
  margin-bottom: clamp(3rem, 7vh, 6rem);
}
.partners__eyebrow {
  color: var(--chr-cyan);
  font-size: clamp(0.66rem, 0.22vw + 0.6rem, 0.86rem);
  letter-spacing: 0.28em;
  opacity: 0.85;
}
.partners__title {
  font-size: clamp(3rem, 6.8vw, 10rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-variation-settings: "wght" 900, "SOFT" 100, "opsz" 144;
  max-width: 28ch;
}
.partners__title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.partners__lede {
  font-family: var(--font-display);
  font-variation-settings: "wght" 420, "SOFT" 60, "opsz" 72;
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.45rem);
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 64ch;
  margin-top: 0.8rem;
}
.partners__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  list-style: none;
}

/* Each partner has its own chromatic accent pair (set inline on the li) */
.partner {
  --p-a: var(--chr-violet);
  --p-b: var(--chr-cyan);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 2.8vh, 2.2rem);
  padding: clamp(1.8rem, 3vh, 2.4rem) 0 0;
  /* Smooth ease-in-out on the card itself — lift on hover */
  transition: all 0.8s ease-in-out;
}
.partner:hover {
  transform: translateY(-4px);
}
.partner__num {
  position: absolute;
  top: clamp(1.8rem, 3vh, 2.4rem);
  left: 0;
  color: var(--p-a);
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  opacity: 0.85;
  z-index: 2;
}

/* Art tile — chromatic wash backdrop + screen-blended duotone logo */
.partner__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  /* Hairline edges instead of a boxed card; the tile floats */
  border-top: 1px solid rgba(245, 241, 255, 0.08);
  border-bottom: 1px solid rgba(245, 241, 255, 0.08);
}
/* Chromatic backdrop — mesh gradient in the partner's accent colors */
.partner__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 25% 35%,
      color-mix(in srgb, var(--p-a) 32%, transparent) 0%,
      transparent 65%),
    radial-gradient(ellipse 55% 65% at 80% 65%,
      color-mix(in srgb, var(--p-b) 28%, transparent) 0%,
      transparent 60%),
    linear-gradient(135deg,
      rgba(8, 5, 26, 0.4) 0%,
      rgba(13, 8, 36, 0.6) 100%);
  opacity: 0.85;
  transition: all 0.9s ease-in-out;
  z-index: 0;
}
.partner:hover .partner__art::before {
  opacity: 1;
  filter: brightness(1.15);
}

/* Animated chromatic wash that slides across on hover */
.partner__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 35%,
    color-mix(in srgb, var(--p-a) 18%, transparent) 48%,
    color-mix(in srgb, var(--p-b) 22%, transparent) 52%,
    transparent 65%
  );
  transform: translateX(-110%);
  transition: all 1.2s ease-in-out;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}
.partner:hover .partner__wash {
  transform: translateX(110%);
}

/* Logo: duotone treatment by default → real brand colors on hover */
.partner__logo {
  position: relative;
  z-index: 2;
  max-width: 68%;
  max-height: 82%;
  object-fit: contain;
  /* Screen-blend drops the baked-in black bg against the chromatic wash */
  mix-blend-mode: screen;
  /* Desaturate by default so the logo tints toward our palette via
     the backdrop; reduce on hover to let the real brand show through. */
  filter: grayscale(0.82) brightness(1.3) contrast(1.12);
  transition: all 0.9s ease-in-out;
  will-change: transform, filter;
}
.partner:hover .partner__logo {
  filter: grayscale(0) brightness(1.15) contrast(1.05);
  transform: scale(1.04);
}

/* Thin accent bar that grows in from the left under the art — echoes
   the partner's accent colors and becomes the visual "underline". */
.partner__art::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 24%;
  background: linear-gradient(
    90deg,
    var(--p-a),
    var(--p-b)
  );
  transform-origin: left center;
  transition: all 1s ease-in-out;
  z-index: 3;
}
.partner:hover .partner__art::after {
  width: 100%;
}

.partner__meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.partner__name {
  font-size: clamp(1.8rem, 3.4vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: "wght" 800, "SOFT" 80, "opsz" 96;
}
.partner__role {
  font-family: var(--font-display);
  font-variation-settings: "wght" 420, "SOFT" 60, "opsz" 24;
  font-size: clamp(1rem, 0.45vw + 0.88rem, 1.3rem);
  line-height: 1.55;
  color: var(--ink-dim);
  letter-spacing: -0.005em;
  max-width: 42ch;
  margin-top: 0.15rem;
}
.partner__role em {
  color: var(--ink);
  font-style: normal;
  font-variation-settings: "wght" 550, "SOFT" 50, "opsz" 24;
}
.partner__since {
  color: var(--ink-faint);
  font-size: clamp(0.58rem, 0.2vw + 0.52rem, 0.74rem);
  letter-spacing: 0.22em;
  margin-top: 0.4rem;
}
.partner__since em {
  font-family: var(--font-italic);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.1em;
  color: var(--p-a);
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact {
  position: relative;
  min-height: 100dvh;
  padding: 14vh var(--shell-pad) 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.contact__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 7vh, 7rem);
  width: 100%;
}

.contact__head {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vh, 2.5rem);
  /* No ch-based max — ch resolves against the container's body-size
     font, which strangles the display-size title inside. Let the title
     take its natural width and cap only the lede paragraph below. */
  max-width: 100%;
}
.contact__title {
  font-size: clamp(2.6rem, 7.6vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  max-width: 18ch;
  word-break: normal;
  hyphens: manual;
}
.contact__title em {
  display: block;
  font-size: 0.86em;
  line-height: 0.98;
  margin-top: 0.18em;
  max-width: 14ch;
}
.contact__lede {
  font-family: var(--font-display);
  font-variation-settings: "wght" 420, "SOFT" 70, "opsz" 72;
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.45rem);
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 48ch;
  margin-top: 1rem;
}

/* --- Contact grid: form left, side meta right ---------------- */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr);
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}

/* --- Form ---------------------------------------------------- */

.contact-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 3vw, 2.6rem);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}
.field--full { grid-column: 1 / -1; }
.field label {
  color: var(--ink-dim);
  font-size: clamp(0.8rem, 0.25vw + 0.72rem, 1rem);
  letter-spacing: 0.22em;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-display);
  font-variation-settings: "wght" 500, "SOFT" 50, "opsz" 48;
  font-size: clamp(1.3rem, 0.7vw + 1.1rem, 2.2rem);
  line-height: 1.35;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(245, 241, 255, 0.2);
  padding: 0.8rem 0 0.9rem;
  outline: none;
  cursor: none;
  width: 100%;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.6s var(--ease-out),
              color 0.4s var(--ease-out),
              transform 0.5s var(--ease-out);
  resize: none;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-faint);
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 0.92em;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--chr-cyan);
}
.field textarea {
  min-height: 9rem;
  max-height: 16rem;
  padding-top: 1rem;
  padding-right: 0.6rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 241, 255, 0.45) rgba(245, 241, 255, 0.04);
}
.field textarea::-webkit-scrollbar {
  width: 6px;
}
.field textarea::-webkit-scrollbar-track {
  background: rgba(245, 241, 255, 0.04);
  border-radius: 999px;
  margin: 0.4rem 0;
}
.field textarea::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(34, 241, 255, 0.5),
    rgba(139, 92, 255, 0.55)
  );
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(34, 241, 255, 0.25);
}
.field textarea::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(34, 241, 255, 0.8),
    rgba(139, 92, 255, 0.85)
  );
}
.field__select {
  position: relative;
}
.field__select select {
  padding-right: 2rem;
  cursor: none;
}
.field__select select option {
  background: var(--void-2);
  color: var(--ink);
  font-family: var(--font-display);
}
.field__chevron {
  position: absolute;
  right: 0.2rem;
  bottom: 1.1rem;
  color: var(--chr-cyan);
  font-size: 1.1rem;
  pointer-events: none;
  transition: transform 0.5s var(--ease-out);
}
.field__select:hover .field__chevron {
  transform: translateY(3px);
}

.contact-form__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem 2.5rem;
  margin-top: 1.6rem;
}
.contact-form__note {
  color: var(--ink-dim);
  font-size: 0.78rem;
}
.contact-form__note a {
  color: var(--ink);
  border-bottom: 1px solid var(--chr-cyan);
  padding-bottom: 2px;
  transition: color 0.4s;
}
.contact-form__note a:hover {
  color: var(--chr-cyan);
}
.contact-form__status {
  color: var(--chr-cyan);
  min-height: 1em;
  flex-basis: 100%;
  font-size: 0.78rem;
}
.contact-form__status.is-error { color: var(--chr-magenta); }

/* --- CTA button ---------------------------------------------- */

.contact__cta {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.3rem 2.1rem;
  border: 1px solid rgba(245, 241, 255, 0.22);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--ink);
  backdrop-filter: blur(8px);
  transition: border-color 0.5s var(--ease-out),
              color 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: none;
  will-change: transform;
}
.contact__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--chr-gradient);
  transform: translateX(-101%);
  transition: transform 0.7s var(--ease-out);
  z-index: -1;
}
.contact__cta:hover::before { transform: translateX(0); }
.contact__cta:hover {
  border-color: transparent;
  color: var(--void);
}
.contact__cta:active {
  transform: scale(0.98);
}
.contact__arrow {
  font-family: var(--font-italic);
  font-size: 1.05rem;
  transition: transform 0.5s var(--ease-out);
}
.contact__cta:hover .contact__arrow {
  transform: translateX(4px);
}

/* --- Side meta ----------------------------------------------- */

.contact__side {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vh, 4rem);
  padding-left: clamp(1rem, 2vw, 3rem);
  border-left: 1px solid rgba(245, 241, 255, 0.08);
}
.contact__meta {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.contact__meta-label {
  color: var(--ink-dim);
  font-size: clamp(0.68rem, 0.2vw + 0.62rem, 0.84rem);
  letter-spacing: 0.24em;
}
.contact__meta-value {
  font-size: clamp(2.6rem, 3.6vw, 5rem);
  line-height: 0.9;
  color: var(--ink);
  font-variation-settings: "wght" 800, "SOFT" 100, "opsz" 144;
  letter-spacing: -0.03em;
}
.contact__meta-value em {
  color: var(--chr-cyan);
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
}

.contact__socials {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  color: var(--ink-dim);
}
.contact__socials a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  transition: color 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.contact__socials a em {
  color: var(--chr-cyan);
  font-family: var(--font-mono);
  font-style: normal;
  opacity: 0.5;
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
}
.contact__socials a:hover {
  color: var(--ink);
  transform: translateX(3px);
}
.contact__socials a:hover em {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* =========================================================
   FOOTER — editorial multi-row layout
   ========================================================= */

.foot {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vh, 3.5rem);
  padding: clamp(3rem, 6vh, 5rem) 0 clamp(2rem, 4vh, 3rem);
  margin-top: 10vh;
  color: var(--ink-dim);
  border-top: 1px solid rgba(245, 241, 255, 0.1);
}

/* --- Top row: brand on left, nav columns on right --------- */

.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.foot__brand {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 1.8vw, 1.6rem);
}
.foot__mark-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(56px, 4.5vw, 76px);
  height: clamp(56px, 4.5vw, 76px);
  flex-shrink: 0;
}
.foot__mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.95;
}
.foot__brand-text {
  display: flex;
  flex-direction: column;
  gap: clamp(0.8rem, 1.4vh, 1.2rem);
  min-width: 0;
}
.foot__tag {
  font-family: var(--font-display);
  font-variation-settings: "wght" 500, "SOFT" 70, "opsz" 48;
  font-size: clamp(1.2rem, 1.1vw + 0.9rem, 1.95rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 26ch;
}
.foot__tag em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--chr-cyan);
}
.foot__mail {
  display: inline-flex;
  align-self: flex-start;
  padding-bottom: 0.3rem;
  color: var(--ink);
  font-size: clamp(0.74rem, 0.22vw + 0.68rem, 0.94rem);
  border-bottom: 1px solid var(--chr-cyan);
  transition: color 0.4s var(--ease-out),
              border-color 0.5s var(--ease-out);
}
.foot__mail:hover {
  color: var(--chr-cyan);
  border-bottom-color: var(--chr-magenta);
}

/* --- Nav columns --- */
.foot__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 2.5vw, 3rem);
}
.foot__nav-col {
  display: flex;
  flex-direction: column;
  gap: clamp(0.8rem, 1.4vh, 1.2rem);
}
.foot__nav-head {
  color: var(--chr-cyan);
  font-size: clamp(0.62rem, 0.2vw + 0.56rem, 0.78rem);
  letter-spacing: 0.28em;
  opacity: 0.85;
}
.foot__nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  list-style: none;
}
.foot__nav-col a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-dim);
  font-family: var(--font-display);
  font-variation-settings: "wght" 450, "SOFT" 60, "opsz" 24;
  font-size: clamp(0.96rem, 0.3vw + 0.88rem, 1.22rem);
  letter-spacing: -0.005em;
  transition: color 0.4s var(--ease-out),
              transform 0.5s var(--ease-out);
}
.foot__nav-col a:hover {
  color: var(--ink);
  transform: translateX(3px);
}
.foot__nav-col a::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 1px;
  background: var(--chr-cyan);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out),
              width 0.5s var(--ease-out);
}
.foot__nav-col a:hover::before {
  opacity: 0.8;
  width: 0.9rem;
}

/* --- Bottom row: copyright / tagline / version --- */

.foot__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  padding-top: clamp(1.4rem, 2.5vh, 2rem);
  border-top: 1px solid rgba(245, 241, 255, 0.06);
  color: var(--ink-dim);
  font-size: clamp(0.66rem, 0.2vw + 0.6rem, 0.82rem);
  letter-spacing: 0.16em;
  text-transform: none;
}
.foot__copy {
  justify-self: start;
  color: var(--ink);
}
.foot__copy em,
.foot__note em,
.foot__version em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--chr-cyan);
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.08em;
}
.foot__note {
  justify-self: center;
  text-align: center;
  color: var(--ink-dim);
}
.foot__version {
  justify-self: end;
  color: var(--ink-dim);
  text-transform: uppercase;
}

/* =========================================================
   Reveals + Split text
   ========================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  will-change: transform, opacity;
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}

[data-split] {
  visibility: hidden;
}
[data-split].is-split {
  visibility: visible;
}
.split-char {
  display: inline-block;
  will-change: transform, opacity;
}
.split-char-word {
  display: inline-block;
  white-space: nowrap;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
  .manifesto__body {
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 6vh, 5rem);
  }
  .manifesto__text { max-width: 100%; }
  .manifesto__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .manifesto__stat {
    padding: clamp(1.6rem, 3vh, 2.4rem) clamp(1rem, 2vw, 1.6rem) 0 0;
  }
  .manifesto__stat:nth-child(2) { border-right: 0; padding-right: 0; }
  .manifesto__stat:nth-child(3),
  .manifesto__stat:nth-child(4) {
    border-top: 1px solid rgba(245, 241, 255, 0.08);
    margin-top: clamp(1rem, 2vh, 1.6rem);
  }

  .product__features { grid-template-columns: 1fr; }

  .roster__row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .roster__bio { justify-self: start; max-width: 48ch; }

  .disciplines__grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .disciplines__aside {
    position: relative;
    top: auto;
    padding-right: 0;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .contact__side {
    padding-left: 0;
    border-left: 0;
    padding-top: 3rem;
    border-top: 1px solid rgba(245, 241, 255, 0.08);
  }

  .jobs__head {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 3vh, 2.5rem);
    align-items: start;
  }
  .jobs__title { max-width: 100%; }

  .partners__list {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vh, 3rem);
  }

  .foot__top {
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 4vh, 3.5rem);
  }
  .foot__bottom {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: left;
  }
  .foot__copy, .foot__note, .foot__version {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .foot { flex-direction: column; gap: 0.6rem; text-align: center; }
  .discipline {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .discipline__num { padding-top: 0; }
  .contact-form {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .contact__title {
    font-size: clamp(2.6rem, 11vw, 5rem);
    max-width: 100%;
  }
  .contact__title em { max-width: 100%; }

  .foot__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
  .foot__brand {
    flex-direction: column;
    gap: 1.2rem;
  }

  .manifesto__stats {
    grid-template-columns: 1fr;
  }
  .manifesto__stat {
    border-right: 0;
    padding-right: 0;
  }
  .manifesto__stat + .manifesto__stat {
    border-top: 1px solid rgba(245, 241, 255, 0.08);
    margin-top: 1.2rem;
  }
  .job {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
  }
  .job__apply {
    grid-column: 2;
    justify-self: start;
    padding: 0.7rem 1.2rem;
    font-size: 0.56rem;
  }
}

/* =========================================================
   Reduced motion fallback
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  [data-split] { visibility: visible; }
}
