/* ==========================================================================
   DataCentral — visual system v2
   Direction: premium dark glass, finance-grade precision, AI-future light.
   Deep void ground, aurora light sources, refractive surfaces, oversized
   neo-grotesque display type, scroll-driven immersion.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: dark;

  /* Ground — near-black with a cold cast, never flat #000 */
  --void: #05060a;
  --void-2: #080a11;
  --void-3: #0c0f18;

  /* Ink — deliberately short of white. Pure #f6f8fc on this ground is ~19:1
     and glares badly at display sizes, so the top end is a cool off-white. */
  --ink: #dbe2f0;
  --ink-2: rgba(219, 226, 240, 0.63);
  --ink-3: rgba(219, 226, 240, 0.41);
  --ink-4: rgba(219, 226, 240, 0.24);

  /* Spectrum — used as light, not as fill. Never colour alone for meaning. */
  --iris: #6d8cff;
  --iris-soft: rgba(109, 140, 255, 0.5);
  --mint: #7cf0c8;
  --amber: #ffc98a;
  --rose: #ff9d8a;

  /* Glass — tinted toward the aurora so surfaces refract rather than fog. */
  --glass-top: rgba(188, 208, 255, 0.085);
  --glass-bottom: rgba(188, 208, 255, 0.022);
  --glass-edge: rgba(198, 214, 255, 0.115);
  --glass-edge-lit: rgba(208, 222, 255, 0.28);
  --glass-highlight: rgba(212, 226, 255, 0.17);
  --hairline: rgba(198, 214, 255, 0.1);
  --hairline-soft: rgba(198, 214, 255, 0.055);

  /* Semantic — always paired with a text label */
  --pos: #7cf0c8;
  --mid: #ffc98a;
  --neg: #ff9d8a;

  /* Type */
  --display: "Switzer", "Helvetica Neue", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --sans: "DM Sans", "Switzer", -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  /* Measure */
  --shell: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --bay: clamp(88px, 11vw, 200px);
  --head: 76px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
}

/* ---------- 1b. Cross-document page transitions ---------- */
/* Turns five separate documents into one continuous surface. Silently ignored
   by browsers without support — navigation just cuts, as it did before. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vt-out 0.34s var(--ease-io) both;
}

::view-transition-new(root) {
  animation: vt-in 0.46s var(--ease) both;
}

@keyframes vt-out {
  to {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head) + 24px);
  -webkit-text-size-adjust: 100%;
  /* The hero crystal bleeds past the right edge on purpose. `clip` contains it
     without turning html into a scroll container, so sticky pins still work. */
  overflow-x: clip;
}

body {
  position: relative;
  min-height: 100%;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  /* `clip`, not `hidden` — `hidden` makes body a scroll container and kills
     position: sticky for the pinned panels and the services jump-nav. */
  overflow-x: clip;
}

/* Ambient aurora. Glass needs something behind it to refract. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 640px at 78% -12%, rgba(109, 140, 255, 0.2), transparent 60%),
    radial-gradient(760px 560px at 2% 42%, rgba(124, 240, 200, 0.085), transparent 62%),
    radial-gradient(880px 620px at 94% 106%, rgba(255, 201, 138, 0.08), transparent 62%),
    radial-gradient(1200px 800px at 50% 50%, rgba(188, 208, 255, 0.045), transparent 70%),
    var(--void);
}

/* Scale stays above the translate distance so no edge is ever exposed. */
/* Pointer-tracked ambient light. --px/--py are written by main.js. Sits above
   the aurora but under the crystal, so the glass figure stays crisp. */
.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(560px circle at var(--px, 50%) var(--py, 35%), rgba(109, 140, 255, 0.1), transparent 62%);
}

/* Film grain. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

ol,
ul {
  list-style: none;
}

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

::selection {
  background: rgba(109, 140, 255, 0.34);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--iris);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------- 3. Micro label ---------- */
.eyebrow,
.spec-label,
.cell-label,
.index-label,
.section-kicker,
.page-kicker,
.service-group-eyebrow,
.service-delivery-label,
.service-group-num,
.badge,
label,
.jump-nav a,
.footer-container h4,
.footer-bottom,
.stat-label,
.marquee-item,
.pin-num,
.process-list li > span,
.principles-grid article > span,
.contact-aside li span,
.industry-num,
.industry-panel-num,
.industry-start-label,
.industry-leaks dt i,
.about-chapter-label .tabular,
.about-refusals li > span,
.scroll-cue,
.rail-tag,
.step-num,
.thesis-fact span,
.ticker-item,
.faq-index,
.mode-card > span {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.4;
}

.eyebrow,
.section-kicker,
.page-kicker,
.index-label,
.service-group-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(22px, 2.6vw, 38px);
  color: var(--ink-3);
}

.eyebrow::before,
.section-kicker::before,
.page-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--iris);
  box-shadow: 0 0 12px 2px var(--iris-soft);
  flex: 0 0 auto;
}

.tabular,
.stat-value,
.pin-num,
.service-group-num,
.step-num,
.industry-num,
.industry-panel-num,
.industry-leaks dt i,
.faq-index {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 9996;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--iris);
  color: #05060a;
  font-size: 0.8rem;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.4s var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

/* ---------- 4. Glass primitive ---------- */
.glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(158deg, var(--glass-top), var(--glass-bottom));
  backdrop-filter: blur(26px) saturate(1.7);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    inset 0 -1px 0 rgba(188, 208, 255, 0.05),
    0 34px 70px -34px rgba(0, 0, 0, 0.95);
  /* `translate` carries the hover lift, not `transform`: the reveal system owns
     `transform`, and `.is-in { transform: none }` outranks any :hover rule. */
  transition: border-color 0.5s var(--ease), translate 0.6s var(--ease), box-shadow 0.5s var(--ease),
    rotate 0.5s var(--ease);
}

/* Card tilt. main.js writes the `rotate` property directly, which the browser
   applies before `transform`, so a card's hover lift and a button's magnetic
   `translate` all compose instead of overwriting each other. */
.modes-grid,
.stats-grid,
.service-list,
.rail {
  perspective: 1600px;
}

/* Pointer-tracked sheen. --mx/--my are written by main.js. */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(140, 165, 255, 0.16), transparent 62%);
  transition: opacity 0.5s var(--ease);
}

.glass:hover {
  border-color: var(--glass-edge-lit);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    inset 0 -1px 0 rgba(188, 208, 255, 0.05),
    0 44px 90px -40px rgba(0, 0, 0, 1);
}

.glass:hover::after {
  opacity: 1;
}

/* ---------- 5. Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  padding: var(--gutter);
  background: var(--void);
  transition: transform 1s var(--ease);
  animation: preloader-failsafe 0s linear 7s forwards;
}

.preloader.is-done {
  transform: translateY(-101%);
}

/* Failsafes: never let the curtain trap the page if JS is off or throws. */
html:not(.js) .preloader,
html.intro-done .preloader {
  display: none;
}

@keyframes preloader-failsafe {
  to {
    transform: translateY(-101%);
    visibility: hidden;
  }
}

.preloader-brand {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.preloader-mark {
  align-self: center;
  justify-self: center;
  font-family: var(--display);
  font-size: clamp(3.4rem, 15vw, 12rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.preloader-bar {
  height: 1px;
  background: var(--hairline);
}

.preloader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--iris), var(--ink));
  transition: width 0.25s linear;
}

/* ---------- 6. Reveal ---------- */
/* The revealed state is an animation, not a transition. A `transition` here
   would be the winning declaration for the whole element, silently replacing
   the hover transitions each card sets for itself. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
}

.js [data-reveal].is-in {
  animation: reveal-in 1s var(--ease) both;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* The extra padding is descender room — at hero sizes a `g` or `q` was being
   clipped by the overflow that makes the line-mask reveal work. */
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.26em;
  margin-bottom: -0.26em;
}

.line > span {
  display: block;
  will-change: transform;
}

.js [data-lines] .line > span {
  transform: translateY(108%);
  transition: transform 1.15s var(--ease);
}

.js [data-lines].is-in .line > span {
  transform: none;
}

.js [data-lines].is-in .line:nth-child(2) > span {
  transition-delay: 0.09s;
}

.js [data-lines].is-in .line:nth-child(3) > span {
  transition-delay: 0.18s;
}

.js [data-lines].is-in .line:nth-child(4) > span {
  transition-delay: 0.27s;
}

/* Word masks. main.js rebuilds plain headings into these, trading the block
   fade of [data-reveal] for type rising out of its own line box. */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}

.js [data-words] .word > span {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 1.05s var(--ease);
  transition-delay: calc(var(--w, 0) * 42ms);
}

.js [data-words].is-in .word > span {
  transform: none;
}

/* The `js` class is set in the document head so the preloader can avoid a
   flash. If main.js does not arrive, make the hidden reveal content usable
   when the preloader's own seven-second failsafe clears the screen. */
@keyframes reveal-failsafe {
  to {
    opacity: 1;
    transform: none;
  }
}

.js:not(.script-ready) [data-reveal],
.js:not(.script-ready) [data-lines] .line > span {
  animation: reveal-failsafe 0s linear 7s forwards;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal],
  .js [data-lines] .line > span,
  .js [data-words] .word > span {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .preloader,
  .hero-canvas,
  .page-canvas {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 8. Header ---------- */
/* Direct-child scoped: `header` alone also caught the <header> inside cards
   and made them fixed page furniture. */
body > header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}

header.is-stuck {
  background: rgba(5, 6, 10, 0.62);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border-bottom-color: var(--hairline);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--iris), var(--mint));
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

header.is-stuck .scroll-progress {
  opacity: 1;
}

.nav-container {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--head);
  padding: 0 var(--gutter);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  fill: currentColor;
  animation: pulse 3.4s var(--ease-io) infinite;
  transition: rotate 0.9s var(--ease);
}

/* A third of a turn maps the mark exactly onto itself. */
.logo:hover .logo-mark {
  rotate: 120deg;
}

.logo-core {
  fill: var(--iris);
  opacity: 0.5;
}

.logo-web {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes pulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(109, 140, 255, 0.42)); }
  50% { filter: drop-shadow(0 0 13px rgba(109, 140, 255, 0.72)); }
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

header nav ul li a {
  position: relative;
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-2);
  transition: color 0.35s var(--ease);
}

header nav ul li a::before {
  content: "";
  position: absolute;
  inset: 4px 8px;
  border-radius: 999px;
  background: rgba(188, 208, 255, 0.1);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

header nav ul li a:hover,
header nav ul li a.active {
  color: var(--ink);
}

header nav ul li a:hover::before,
header nav ul li a.active::before {
  opacity: 1;
  transform: none;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- 9. Buttons ---------- */
/* Magnetism is applied through --mag-x/--mag-y so hover transforms still compose. */
.btn {
  position: relative;
  /* isolate: without it the -1 layer below paints behind the button's own
     background and the gradient never shows. */
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  border: 1px solid var(--glass-edge-lit);
  border-radius: 999px;
  background: linear-gradient(150deg, rgba(196, 214, 255, 0.17), rgba(196, 214, 255, 0.05));
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  overflow: hidden;
  translate: var(--mag-x, 0) var(--mag-y, 0);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 20px 44px -26px rgba(0, 0, 0, 0.95);
  transition: border-color 0.45s var(--ease), color 0.45s var(--ease),
    translate 0.35s var(--ease), box-shadow 0.45s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--iris), var(--mint));
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.btn:hover {
  border-color: rgba(140, 168, 255, 0.55);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 0 46px -10px var(--iris-soft);
}

.btn:hover::before {
  opacity: 0.26;
}

.btn-sm {
  padding: 11px 22px;
  font-size: 0.82rem;
}

.btn-ghost,
.btn-outline {
  background: rgba(188, 208, 255, 0.045);
  border-color: var(--glass-edge);
}

.btn-ghost:hover,
.btn-outline:hover {
  border-color: var(--glass-edge-lit);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-2);
  transition: color 0.35s var(--ease);
}

.link-arrow span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--glass-edge);
  border-radius: 50%;
  translate: var(--mag-x, 0) var(--mag-y, 0);
  transition: transform 0.45s var(--ease), translate 0.35s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.link-arrow:hover {
  color: var(--ink);
}

.link-arrow:hover span {
  transform: translateX(5px);
  background: rgba(109, 140, 255, 0.22);
  border-color: rgba(140, 168, 255, 0.5);
  color: var(--ink);
}

/* ---------- 10. Shell ---------- */
main {
  min-height: 60vh;
}

.section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--bay) var(--gutter);
}

.section-alt {
  max-width: none;
  border-block: 1px solid var(--hairline);
  background: rgba(188, 208, 255, 0.018);
}

.section-alt > * {
  max-width: var(--shell);
  margin-inline: auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}

.section-title,
.section-head h2 {
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  max-width: 16ch;
}

.section-lede {
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 1.05rem;
}

/* ---------- 11. Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 140px var(--gutter) clamp(36px, 4vw, 56px);
}

/* WebGL crystal. Sits behind the type, never intercepts pointer events. */
.hero-canvas {
  position: absolute;
  top: 40%;
  right: -12%;
  z-index: -1;
  width: min(44vw, 620px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
  /* Radial keeps the crystal from ending on a hard edge; the linear fades the
     side that runs under the headline so type always stays first. Both spellings
     carry both layers — a lone `-webkit-mask-image` after the standard property
     is an alias for it in Blink and silently drops the second layer. */
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 46%);
  mask-image: radial-gradient(closest-side, #000 58%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 46%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

@supports not (mask-composite: intersect) {
  .hero-canvas {
    -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
  }
}

.hero-canvas.is-live {
  opacity: 1;
}

.hero-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(3rem, 10.4vw, 11rem);
  line-height: 0.86;
  letter-spacing: -0.052em;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.hero h1 .dim {
  color: var(--ink-3);
}

.hero h1 .glow {
  background: linear-gradient(100deg, var(--ink) 8%, var(--iris) 42%, var(--mint) 62%, var(--ink) 96%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: glow-drift 11s var(--ease-io) infinite;
}

@keyframes glow-drift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-lower {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}

.hero-lede {
  max-width: 42ch;
  font-size: clamp(1.05rem, 1.4vw, 1.24rem);
  color: var(--ink-2);
}

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

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(56px, 7vw, 104px);
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}

.hero-foot p {
  max-width: 44ch;
  font-size: 0.88rem;
  color: var(--ink-3);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  white-space: nowrap;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--ink-3), transparent);
  animation: cue 2.4s var(--ease-io) infinite;
}

@keyframes cue {
  0%, 100% { transform: scaleY(0.35); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* The hero recedes as the page moves past it rather than simply scrolling
   away. Applied to the wrappers, so the reveal animations on their children
   are untouched. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-body,
    .hero-foot {
      animation: hero-recede linear both;
      animation-timeline: view();
      animation-range: exit 50% exit 100%;
    }

    @keyframes hero-recede {
      to {
        opacity: 0.12;
        transform: translateY(-40px);
      }
    }
  }
}

/* ---------- 12. Marquee ---------- */
.marquee {
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 30px) 0;
  border-block: 1px solid var(--hairline);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding-right: clamp(28px, 4vw, 56px);
  color: var(--ink-3);
  white-space: nowrap;
}

.marquee-item::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--iris);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 13. Thesis band ---------- */
.thesis {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--bay) var(--gutter);
}

.thesis-quote {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4.2vw, 3.6rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.04em;
  max-width: 22ch;
  text-wrap: balance;
}

.thesis-quote em {
  font-style: normal;
  color: var(--ink-3);
}

.thesis-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--hairline);
}

.thesis-fact span {
  display: block;
  margin-bottom: 14px;
  color: var(--ink-3);
}

.thesis-fact p {
  max-width: 34ch;
  color: var(--ink-2);
  font-size: 0.98rem;
}

/* ---------- 14. Pinned leak panels ---------- */
.pins {
  position: relative;
  padding-bottom: clamp(40px, 6vw, 96px);
}

.pin {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 96px var(--gutter) var(--gutter);
}

.pin-inner {
  width: 100%;
  max-width: var(--shell);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 72px);
  padding: clamp(32px, 4vw, 68px);
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .pin-inner {
      animation: recede linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 92%;
    }

    @keyframes recede {
      to {
        transform: scale(0.9) translateY(-30px);
        opacity: 0.28;
        filter: blur(3px);
      }
    }
  }
}

.pin-num {
  color: var(--ink-3);
  margin-bottom: 22px;
}

.pin-inner h3 {
  font-size: clamp(2.4rem, 6.4vw, 5.6rem);
  line-height: 0.9;
  margin-bottom: 20px;
}

.pin-tag {
  max-width: 24ch;
  font-size: 1.05rem;
  color: var(--ink-2);
}

.pin-cells {
  display: grid;
  gap: clamp(20px, 2.4vw, 34px);
  align-content: center;
}

.pin-cell {
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

.cell-label {
  display: block;
  margin-bottom: 12px;
  color: var(--ink-3);
}

.pin-cell p {
  max-width: 52ch;
  color: var(--ink-2);
  font-size: 1rem;
}

/* ---------- 15. Mode cards ---------- */
.modes {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--bay) var(--gutter);
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mode-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 44px);
  min-height: 300px;
}

.mode-card > span {
  color: var(--ink-3);
}

.mode-card h3 {
  margin: clamp(40px, 5vw, 72px) 0 14px;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.mode-card p {
  color: var(--ink-2);
  font-size: 0.97rem;
}

.mode-card:hover {
  translate: 0 -6px;
}

/* ---------- 16. Systems rail ---------- */
.rail-section {
  padding: var(--bay) 0;
}

.rail-head {
  max-width: var(--shell);
  margin: 0 auto clamp(40px, 5vw, 72px);
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
}

.rail-head h2 {
  font-size: clamp(2.2rem, 5.2vw, 4.6rem);
  max-width: 14ch;
}

.rail-head p {
  max-width: 40ch;
  color: var(--ink-2);
}

.rail {
  display: flex;
  gap: 14px;
  padding: 8px var(--gutter) 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}

.rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail-card {
  flex: 0 0 min(78vw, 390px);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 38px);
  min-height: 340px;
}

.rail.is-dragging .rail-card * {
  pointer-events: none;
}

.rail-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 7px 13px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink-3);
}

.rail-card h3 {
  margin: clamp(36px, 4vw, 56px) 0 12px;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}

.rail-card p {
  color: var(--ink-2);
  font-size: 0.96rem;
  margin-bottom: auto;
}

.rail-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

.rail-hint {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  color: var(--ink-4);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- 17. Process ---------- */
.process-band {
  padding: var(--bay) var(--gutter);
}

.process-inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.process-intro h2,
.principles-inner > h2,
.closing-cta h2 {
  font-size: clamp(2.4rem, 5.6vw, 5rem);
  max-width: 14ch;
}

.process-intro p {
  margin-top: 26px;
  max-width: 38ch;
  color: var(--ink-2);
}

.process-list {
  display: grid;
  gap: 14px;
}

.process-list li {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(16px, 2.4vw, 34px);
  padding: clamp(24px, 2.8vw, 38px);
  border-radius: var(--radius-sm);
  background: linear-gradient(158deg, var(--glass-top), var(--glass-bottom));
  border: 1px solid var(--glass-edge);
  overflow: hidden;
  transition: border-color 0.5s var(--ease), translate 0.5s var(--ease);
}

.process-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--iris), transparent);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.process-list li:hover {
  border-color: var(--glass-edge-lit);
  translate: 6px 0;
}

.process-list li:hover::before {
  opacity: 1;
}

.process-list li > span {
  color: var(--ink-3);
  padding-top: 6px;
}

.process-list h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  margin-bottom: 8px;
}

.process-list p {
  max-width: 48ch;
  color: var(--ink-2);
  font-size: 0.98rem;
}

/* ---------- 18. Stats ---------- */
.stats {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--bay);
}

.stats-head {
  display: grid;
  justify-items: start;
  padding-bottom: clamp(28px, 3vw, 44px);
}

.stats-head .section-kicker {
  margin-bottom: 18px;
}

.stats-head p {
  max-width: 54ch;
  color: var(--ink-3);
  font-size: 0.97rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 44px);
}

.stat-value {
  display: block;
  font-family: var(--display);
  font-size: clamp(3rem, 6.4vw, 6rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

.stat-label {
  display: block;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.stat p {
  font-size: 0.94rem;
  color: var(--ink-2);
  margin-bottom: 20px;
}

.spark {
  display: block;
  width: 100%;
  height: 34px;
  margin-top: auto;
  overflow: visible;
}

.spark path {
  fill: none;
  stroke: var(--iris);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--dash, 400);
  stroke-dashoffset: var(--dash, 400);
  transition: stroke-dashoffset 1.6s var(--ease);
}

.stat.is-in .spark path {
  stroke-dashoffset: 0;
}

/* ---------- 19. FAQ ---------- */
.faq-section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--bay) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}

.faq-section h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  max-width: 12ch;
}

.faq-list {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--hairline);
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: 48px 1fr 32px;
  align-items: start;
  gap: 16px;
  padding: clamp(22px, 2.4vw, 30px) 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: color 0.35s var(--ease);
}

.faq-q:hover {
  color: var(--ink);
}

.faq-index {
  color: var(--ink-4);
  padding-top: 6px;
}

.faq-sign {
  position: relative;
  width: 16px;
  height: 16px;
  justify-self: end;
  margin-top: 6px;
}

.faq-sign::before,
.faq-sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: var(--ink-2);
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
}

.faq-sign::after {
  transform: rotate(90deg);
}

.faq-q[aria-expanded="true"] .faq-sign::after {
  transform: rotate(0deg);
  opacity: 0;
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a > div {
  overflow: hidden;
}

.faq-a p {
  max-width: 62ch;
  padding: 0 64px 28px;
  color: var(--ink-2);
  font-size: 0.99rem;
}

/* Collapsed answers are inert, so they leave the tab order and the
   accessibility tree instead of being read out at zero height. */
.faq-a[inert] {
  pointer-events: none;
}

/* ---------- 20. Closing ---------- */
.closing-cta {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--bay) var(--gutter);
  text-align: center;
}

.closing-cta .section-kicker {
  margin-bottom: 26px;
}

.closing-cta h2 {
  max-width: 18ch;
  margin: 0 auto 28px;
}

.closing-cta p {
  max-width: 46ch;
  margin: 0 auto 40px;
  color: var(--ink-2);
  font-size: 1.05rem;
}

/* ---------- 21. Page openers ---------- */
.page-header {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(150px, 17vw, 250px) var(--gutter) clamp(56px, 7vw, 104px);
}

/* The same WebGL crystal as the hero, sunk further back so interior pages
   share the home page's depth without competing with the headline. */
.page-canvas {
  position: absolute;
  top: 54%;
  right: -6%;
  z-index: -1;
  width: min(42vw, 560px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
  mask-image: radial-gradient(closest-side, #000 54%, transparent 100%);
  -webkit-mask-image: radial-gradient(closest-side, #000 54%, transparent 100%);
}

.page-canvas.is-live {
  opacity: 0.68;
}

.page-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.page-header h1 {
  font-size: clamp(2.8rem, 8.4vw, 8rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  max-width: 15ch;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}

.page-header p {
  max-width: 52ch;
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
}

.page-header .btn {
  margin-top: 38px;
}

/* ---------- 22. Services ---------- */
.jump-nav {
  position: sticky;
  top: var(--head);
  z-index: 60;
  display: flex;
  gap: 8px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}

.jump-nav::-webkit-scrollbar {
  display: none;
}

.jump-nav a {
  flex: 0 0 auto;
  padding: 11px 20px;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: rgba(188, 208, 255, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--ink-3);
  transition: color 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.jump-nav a:hover {
  color: var(--ink);
  border-color: var(--glass-edge-lit);
}

.jump-nav a.active {
  background: rgba(109, 140, 255, 0.2);
  border-color: rgba(140, 168, 255, 0.5);
  color: var(--ink);
}

.service-group {
  padding-top: clamp(64px, 8vw, 128px);
  padding-bottom: clamp(64px, 8vw, 128px);
}

.service-group-header {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(16px, 2.4vw, 34px);
  align-items: start;
  margin-bottom: 20px;
}

.service-group-num {
  color: var(--ink-3);
  padding-top: 14px;
}

.service-group-eyebrow {
  margin-bottom: 10px;
}

.service-group-header h2 {
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
}

.service-group-intro {
  max-width: 56ch;
  margin: 0 0 clamp(32px, 4vw, 52px) calc(64px + clamp(16px, 2.4vw, 34px));
  color: var(--ink-2);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 36px);
}

.service-card:hover {
  translate: 0 -5px;
}

.service-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.service-card-head h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  max-width: 18ch;
}

.service-does {
  margin-bottom: auto;
  padding-bottom: 24px;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.service-delivery {
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

.service-delivery-label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-3);
}

.service-delivery p {
  font-size: 0.92rem;
  color: var(--ink-3);
}

.service-note {
  margin-top: clamp(28px, 3.4vw, 44px);
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-edge);
  background: rgba(188, 208, 255, 0.04);
}

.service-note p {
  max-width: 68ch;
  color: var(--ink-2);
  font-size: 0.98rem;
}

/* ---------- 23. Badges ---------- */
.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.625rem;
  color: var(--ink-3);
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
}

.badge-effort-verylow::before,
.badge-effort-low::before {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.badge-effort-medium::before {
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.badge-impact-medium::before,
.badge-impact-high::before,
.badge-impact-highest::before {
  border-radius: 50%;
}

.badge-effort-verylow,
.badge-effort-low {
  color: var(--pos);
}

.badge-effort-medium {
  color: var(--mid);
}

.badge-effort-high {
  color: var(--neg);
}

.badge-impact-high {
  color: var(--ink-2);
}

.badge-impact-highest {
  color: var(--ink);
  background: rgba(109, 140, 255, 0.2);
  border-color: rgba(140, 168, 255, 0.48);
}

/* ---------- 24. Industries ---------- */
.industry-index {
  display: grid;
  grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr);
  gap: clamp(28px, 4vw, 76px);
  align-items: start;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--bay);
}

.industry-list {
  position: sticky;
  top: calc(var(--head) + 30px);
  display: grid;
  padding: clamp(10px, 1.2vw, 18px) clamp(16px, 1.8vw, 26px);
  border-radius: var(--radius);
  border: 1px solid var(--glass-edge);
  background: linear-gradient(158deg, var(--glass-top), var(--glass-bottom));
  backdrop-filter: blur(26px) saturate(1.7);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 34px 70px -34px rgba(0, 0, 0, 0.95);
}

.industry-row {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: baseline;
  gap: 6px 12px;
  width: 100%;
  padding: clamp(14px, 1.5vw, 19px) 0;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

/* Draws along the row's own bottom rule, so the active item reads as a
   position in a list rather than a selected button. */
.industry-row::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--iris), var(--iris-soft) 45%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
}

.industry-row[aria-selected="true"]::after {
  transform: scaleX(1);
}

.industry-row:last-child {
  border-bottom: 0;
}

.industry-num {
  grid-row: 1 / span 2;
  padding-top: 0.4em;
  color: var(--ink-4);
  transition: color 0.45s var(--ease);
}

.industry-row[aria-selected="true"] .industry-num {
  color: var(--iris);
}

.industry-name {
  grid-column: 2;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.1vw, 1.7rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.038em;
  color: var(--ink-3);
  transition: color 0.45s var(--ease), transform 0.6s var(--ease);
}

.industry-hint {
  grid-column: 2;
  font-size: 0.83rem;
  line-height: 1.35;
  color: var(--ink-4);
  transition: color 0.45s var(--ease), transform 0.6s var(--ease);
}

.industry-row:hover .industry-name {
  color: var(--ink-2);
}

.industry-row[aria-selected="true"] .industry-name {
  color: var(--ink);
}

.industry-row[aria-selected="true"] .industry-hint {
  color: var(--ink-3);
}

.industry-row[aria-selected="true"] .industry-name,
.industry-row[aria-selected="true"] .industry-hint {
  transform: translateX(7px);
}

.industry-panel {
  padding: clamp(28px, 3.4vw, 54px);
}

.industry-panel:focus-visible {
  outline-offset: 2px;
}

/* Only the panel that just became visible animates — the first paint of the
   page is handled by the shared reveal system instead. */
.industry-panel.is-swapping {
  animation: industry-swap 0.62s var(--ease) both;
}

@keyframes industry-swap {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.industry-panel-num {
  display: block;
  margin-bottom: 20px;
  color: var(--iris);
}

.industry-panel-head h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  margin-bottom: 18px;
}

.industry-panel-head p {
  max-width: 46ch;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
}

.industry-leaks {
  margin: clamp(30px, 3.4vw, 48px) 0 0;
  border-top: 1px solid var(--hairline);
}

.industry-leaks > div {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: 8px 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.industry-leaks dt {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
}

.industry-leaks dt i {
  font-style: normal;
  color: var(--ink-4);
}

.industry-leaks dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.industry-start {
  display: grid;
  gap: 12px;
  margin-top: clamp(26px, 3vw, 38px);
  padding: clamp(20px, 2.2vw, 28px);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-edge);
  background: linear-gradient(150deg, rgba(109, 140, 255, 0.1), rgba(109, 140, 255, 0.02));
}

.industry-start-label {
  color: var(--ink-3);
}

.industry-start p {
  color: var(--ink-2);
  font-size: 0.97rem;
}

.industry-start strong {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- 25. About ---------- */
.about-chapter {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(24px, 4vw, 76px);
  align-items: start;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(52px, 6vw, 96px) var(--gutter);
}

.about-chapter-label {
  position: sticky;
  top: calc(var(--head) + 34px);
  display: grid;
  gap: 14px;
  padding-top: 6px;
}

.about-chapter-label .tabular {
  color: var(--iris);
}

.about-chapter-label h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  color: var(--ink-3);
}

.about-chapter-body {
  max-width: 62ch;
}

.about-chapter-body p {
  margin-bottom: 22px;
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.68;
}

.about-chapter-body p.about-lead {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 2.05rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.035em;
  margin-bottom: clamp(26px, 3vw, 38px);
}

.has-dropcap::first-letter {
  float: left;
  margin: 0.03em 0.1em 0 0;
  font-family: var(--display);
  font-size: 2.7em;
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.about-pull {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 80px) var(--gutter);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.about-pull p {
  font-family: var(--display);
  font-size: clamp(2rem, 5.4vw, 4.4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.about-pull em {
  font-style: normal;
  color: var(--ink-3);
}

.about-pull cite {
  display: block;
  max-width: 44ch;
  margin-top: clamp(22px, 2.6vw, 34px);
  color: var(--ink-3);
  font-size: 0.95rem;
  font-style: normal;
}

.about-refusals {
  display: grid;
  margin-top: clamp(30px, 3.4vw, 44px);
  border-top: 1px solid var(--hairline);
}

.about-refusals li {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 8px 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}

.about-refusals li > span {
  color: var(--ink);
}

.about-refusals p {
  margin: 0;
  font-size: 0.96rem;
}

.principles-band {
  padding: var(--bay) var(--gutter);
}

.principles-inner {
  max-width: var(--shell);
  margin: 0 auto;
}

.principles-inner > h2 {
  margin-bottom: clamp(40px, 5vw, 72px);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.principles-grid article {
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-edge);
  background: linear-gradient(158deg, var(--glass-top), var(--glass-bottom));
  transition: border-color 0.5s var(--ease), translate 0.5s var(--ease);
}

.principles-grid article:hover {
  border-color: var(--glass-edge-lit);
  translate: 0 -5px;
}

.principles-grid article > span {
  color: var(--ink-3);
}

.principles-grid h3 {
  margin: 34px 0 12px;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}

.principles-grid p {
  color: var(--ink-2);
  font-size: 0.97rem;
}

/* ---------- 26. Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
}

.contact-aside h3 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  margin-bottom: clamp(28px, 3.4vw, 40px);
}

.contact-aside li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
}

.contact-aside li span {
  color: var(--ink-3);
  padding-top: 4px;
}

.contact-aside li p {
  color: var(--ink-2);
  font-size: 0.98rem;
}

.contact-direct {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-3);
  font-size: 0.94rem;
}

.contact-direct a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink-4);
  padding-bottom: 2px;
  transition: border-color 0.35s var(--ease);
}

.contact-direct a:hover {
  border-color: var(--ink);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 30px);
  padding: clamp(26px, 3.2vw, 46px);
}

.contact-form > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form > div:nth-child(5),
.contact-form > div:nth-child(6),
.contact-form > button,
.contact-form > .contact-form-status {
  grid-column: 1 / -1;
}

label {
  color: var(--ink-3);
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: rgba(188, 208, 255, 0.04);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-4);
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--glass-edge-lit);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--iris);
  background: rgba(188, 208, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(109, 140, 255, 0.14);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--neg);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

select {
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(50% + 1px), calc(100% - 16px) calc(50% + 1px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

select option {
  background: var(--void-2);
  color: var(--ink);
}

.contact-form .btn {
  justify-self: start;
}

.field-error {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neg);
}

.contact-form-status {
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  font-size: 0.94rem;
}

.contact-form-status.is-success {
  color: var(--pos);
  border-color: rgba(124, 240, 200, 0.35);
  background: rgba(124, 240, 200, 0.08);
}

.contact-form-status.is-error {
  color: var(--neg);
  border-color: rgba(255, 157, 138, 0.35);
  background: rgba(255, 157, 138, 0.08);
}

/* ---------- 27. Footer ---------- */
body > footer {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(56px, 6vw, 96px) var(--gutter) 28px;
  border-top: 1px solid var(--hairline);
}

.footer-container {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3.5fr) minmax(0, 3.5fr);
  gap: clamp(32px, 4vw, 72px);
  padding-bottom: clamp(40px, 5vw, 68px);
}

.footer-brand .logo {
  margin: 0 0 18px;
}

.footer-container h4 {
  margin-bottom: 22px;
  color: var(--ink-3);
}

.footer-container p {
  max-width: 32ch;
  color: var(--ink-2);
  font-size: 0.97rem;
}

.footer-container ul li + li {
  margin-top: 4px;
}

.footer-container ul a {
  display: inline-block;
  padding: 5px 0;
  font-size: 0.96rem;
  color: var(--ink-2);
  transition: color 0.35s var(--ease), transform 0.4s var(--ease);
}

.footer-container ul a:hover {
  color: var(--ink);
  transform: translateX(6px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-4);
}

/* ---------- 28. Responsive ---------- */
@media (max-width: 1080px) {
  .section-head,
  .hero-lower,
  .process-inner,
  .pin-inner,
  .contact-layout,
  .rail-head,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
  }

  .stats-grid,
  .service-list,
  .principles-grid,
  .modes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industry-index,
  .about-chapter {
    grid-template-columns: 1fr;
  }

  .industry-list,
  .about-chapter-label {
    position: static;
  }

  .about-chapter-label {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    padding-bottom: 8px;
  }

  .thesis-facts {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .hero-canvas {
    right: -20%;
    width: min(88vw, 640px);
    opacity: 0;
  }

  .hero-canvas.is-live {
    opacity: 0.55;
  }

  .page-canvas {
    right: -32%;
    width: min(80vw, 520px);
  }

  .page-canvas.is-live {
    opacity: 0.42;
  }

  .pin {
    min-height: auto;
    position: static;
    padding: 0 var(--gutter) 14px;
  }

  .pins {
    padding-top: 0;
  }

  @supports (animation-timeline: view()) {
    .pin-inner {
      animation: none;
    }
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
    order: 3;
  }

  .nav-actions {
    order: 2;
  }

  .nav-cta {
    display: none;
  }

  header nav {
    order: 4;
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gutter);
    right: var(--gutter);
    display: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-edge);
    background: rgba(8, 10, 17, 0.88);
    backdrop-filter: blur(26px) saturate(1.6);
    -webkit-backdrop-filter: blur(26px) saturate(1.6);
  }

  header nav.open {
    display: block;
  }

  header nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  header nav ul li a {
    padding: 14px 16px;
    font-size: 1rem;
  }

  /* Keep navigation reachable when JavaScript is disabled. */
  html:not(.js) body > header {
    position: static;
  }

  html:not(.js) .nav-container {
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  html:not(.js) .nav-toggle {
    display: none;
  }

  html:not(.js) header nav {
    order: 4;
    display: block;
    position: static;
    flex-basis: 100%;
    padding: 0;
    border: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  html:not(.js) header nav ul {
    align-items: stretch;
  }

  .hero {
    padding-top: 128px;
  }

  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .stats-grid,
  .service-list,
  .principles-grid,
  .modes-grid,
  .contact-form,
  .footer-container {
    grid-template-columns: 1fr;
  }

  .industry-leaks > div,
  .about-refusals li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .service-group-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-group-num {
    padding-top: 0;
  }

  .service-group-intro {
    margin-left: 0;
  }

  .process-list li {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .faq-q {
    grid-template-columns: 1fr 24px;
  }

  .faq-index {
    display: none;
  }

  .faq-a p {
    padding: 0 0 26px;
  }
}

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

  .hero-actions .btn {
    width: 100%;
  }

  .service-card,
  .mode-card {
    min-height: 0;
  }

  .industry-hint {
    display: none;
  }
}

@media print {
  body > header,
  .jump-nav,
  .preloader,
  .marquee,
  .hero-canvas,
  .page-canvas,
  body::before,
  body::after {
    display: none;
  }

  /* Reveals never run for a print-only render, so opt every one of them in. */
  .js [data-reveal],
  .js [data-lines] .line > span,
  .js [data-words] .word > span {
    opacity: 1;
    transform: none;
  }

  .industry-panel[hidden] {
    display: block;
  }

  body {
    background: #fff;
    color: #000;
  }
}
