/* ============================================================
   ELYRIS LABS — LURA (VITALIS design foundation)
   Clinical-luxury editorial minimalism. Whitespace first.
   ============================================================ */

:root {
  --paper:      #FAF9F5;
  --paper-2:    #F2F0E9;
  --sage:       #E9ECE1;
  --ink:        #131711;
  --ink-75:     rgba(19, 23, 17, 0.78);
  --ink-60:     rgba(19, 23, 17, 0.6);
  --ink-40:     rgba(19, 23, 17, 0.4);
  --line:       rgba(19, 23, 17, 0.14);
  --line-soft:  rgba(19, 23, 17, 0.08);
  --green:      #1C4A34;
  --green-soft: #2E6B4F;
  --teal:       #3E8C86;
  --amber:      #B9803D;
  --slate:      #6B7A72;
  --cream:      #F6F4EF;
  --cream-72:   rgba(246, 244, 239, 0.72);
  --cream-60:   rgba(246, 244, 239, 0.6);
  --cream-line: rgba(246, 244, 239, 0.16);

  --serif: "Instrument Serif", Georgia, serif;
  --sans:  "Instrument Sans", -apple-system, sans-serif;
  --mono:  "IBM Plex Mono", "SFMono-Regular", monospace;

  --gutter: clamp(20px, 5vw, 80px);
  --section-pad: clamp(120px, 17vh, 220px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: auto; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--green); color: var(--cream); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

:focus-visible {
  outline: 1.5px solid var(--green);
  outline-offset: 4px;
}

/* ---------- Utilities ---------- */
.mono-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 5.6vw, 5.4rem);
  line-height: 1.01;
  letter-spacing: -0.018em;
}
.section-title em,
.hero-title em,
.cta-title em,
.p-end-text em {
  font-style: italic;
  color: var(--green);
}

.section-shell {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(32px, 6vw, 120px);
  max-width: 1520px;
  margin-inline: auto;
  padding: var(--section-pad) var(--gutter);
}
.section-side .mono-tag { position: sticky; top: 120px; display: inline-block; }

.arrow { font-style: normal; display: inline-block; transition: transform 0.45s var(--ease-out); }

/* Reveal defaults (only when JS is active) */
.js [data-reveal] { opacity: 0; transform: translateY(30px); will-change: opacity, transform; }
.js [data-reveal-group] .line { display: block; opacity: 0; transform: translateY(110%); }
.no-gsap [data-reveal], .no-gsap [data-reveal-group] .line { opacity: 1 !important; transform: none !important; }

/* ---------- Progress bar ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 1002; background: transparent; pointer-events: none;
}
.progress span {
  display: block; height: 100%; width: 100%;
  background: var(--green);
  transform: scaleX(0); transform-origin: left center;
}

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 1003;
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), opacity 0.3s;
  opacity: 0;
}
.cursor.is-active { width: 56px; height: 56px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Grain (static texture — animated grain repaints 4x viewport) ---------- */
.grain {
  position: fixed; inset: 0; z-index: 1001; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  opacity: 0.05;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  letter-spacing: 0.01em;
  padding: 15px 28px; border-radius: 999px;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  cursor: pointer;
}
.btn span, .btn .arrow { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: var(--green);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
  border-radius: inherit;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--cream); border-color: var(--green); }
.btn:hover .arrow { transform: translateX(5px); }

.btn-solid { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-pill { padding: 11px 22px; font-size: 13px; background: transparent; }
.btn-lg { padding: 19px 38px; font-size: 15px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500;
  border-bottom: 1px solid var(--line); padding-bottom: 6px;
  transition: border-color 0.4s, color 0.4s;
}
.link-arrow:hover { color: var(--green); border-color: var(--green); }
.link-arrow:hover .arrow { transform: translateX(5px); }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.5s, backdrop-filter 0.5s, border-color 0.5s, color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav--over-hero .wordmark,
.nav--over-hero .nav-links a {
  color: var(--ink);
  text-shadow: 0 1px 14px rgba(252, 251, 247, 0.9);
}
.nav--over-hero .nav-links a:hover { color: var(--green); }
.nav--over-hero .nav-links a::after { background: var(--green); }
.nav--over-hero .btn-pill-light {
  color: var(--ink);
  background: rgba(252, 251, 247, 0.38);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-color: rgba(252, 251, 247, 0.6);
}
.nav--over-hero .btn-pill-light::before { background: var(--green); }
.nav--over-hero .btn-pill-light:hover { color: var(--cream); border-color: var(--green); }

.nav.is-scrolled {
  background: rgba(250, 249, 245, 0.94);
  border-bottom-color: var(--line-soft);
}
.nav.is-scrolled .wordmark,
.nav.is-scrolled .nav-links a { color: var(--ink-60); }
.nav.is-scrolled .nav-links a:hover { color: var(--ink); }
.nav.is-scrolled .nav-links a::after { background: var(--green); }
.nav.is-scrolled .btn-pill-light {
  color: var(--ink);
  border-color: var(--line);
}
.nav.is-scrolled .btn-pill-light::before { background: var(--green); }
.nav.is-scrolled .btn-pill-light:hover { color: var(--cream); border-color: var(--green); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: 1520px; margin-inline: auto;
}
.wordmark {
  font-family: var(--serif); font-size: 22px; letter-spacing: 0.02em;
  transition: color 0.4s;
}
.wordmark sup { font-size: 9px; font-family: var(--mono); letter-spacing: 0; }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-60);
  position: relative; padding: 4px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--green);
  transform: scaleX(0); transform-origin: right center;
  transition: transform 0.45s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left center; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 120px;
  overflow: hidden;
}
.hero--stage {
  color: var(--ink);
  background: radial-gradient(ellipse 130% 100% at 50% 36%, #fcfbf7 0%, #f4f2ea 55%, #ece9de 100%);
  min-height: 100svh;
  padding-bottom: 0;
}

/* Full-bleed cinematic stage */
.hero-stage {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-stage-img {
  position: absolute; inset: -8%;
  width: 116%; height: 116%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 46%;
  filter: saturate(1) contrast(1.04) brightness(1.02);
  transform: scale(1.08);
  will-change: transform;
}
.hero-stage-field {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  mix-blend-mode: soft-light;
  opacity: 0.22;
  transform: scale(1.06);
}
.hero-stage-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 72% 78% at 30% 52%, rgba(252, 251, 247, 0.95) 0%, rgba(252, 251, 247, 0.8) 46%, rgba(252, 251, 247, 0.3) 76%, transparent 100%),
    linear-gradient(180deg, rgba(252, 251, 247, 0.42) 0%, rgba(252, 251, 247, 0.05) 24%, rgba(252, 251, 247, 0.04) 56%, rgba(252, 251, 247, 0.72) 100%),
    linear-gradient(90deg, rgba(252, 251, 247, 0.62) 0%, rgba(252, 251, 247, 0.14) 42%, rgba(252, 251, 247, 0.02) 62%, rgba(252, 251, 247, 0.06) 100%);
}
.hero-particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-stage-noise {
  position: absolute; inset: 0;
  opacity: 0.1;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.35fr 0.65fr;
  align-items: end; gap: clamp(32px, 5vw, 80px);
  max-width: 1520px; width: 100%; margin-inline: auto;
  padding: 0 var(--gutter) clamp(36px, 5vh, 64px);
  flex: 1;
}
.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 1px 16px rgba(252, 251, 247, 0.9);
  margin-bottom: clamp(22px, 3.5vh, 40px);
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #3d5a6b;
  box-shadow: 0 0 14px rgba(61, 90, 107, 0.45);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.6rem, 8.6vw, 9rem);
  line-height: 0.95; letter-spacing: -0.028em;
  margin-bottom: clamp(24px, 3.5vh, 40px);
  color: var(--ink);
  text-shadow: 0 1px 28px rgba(252, 251, 247, 0.8);
}
.hero-title .line { overflow: hidden; }
.hero--stage .hero-title em {
  color: #2f4a58;
  text-shadow: 0 1px 28px rgba(252, 251, 247, 0.85);
}

/* Under-title block: hairline rule separates statement from explanation */
.hero-under {
  border-top: 1px solid rgba(19, 23, 17, 0.16);
  padding-top: clamp(20px, 2.8vh, 28px);
  display: flex; flex-direction: column;
  gap: clamp(24px, 3.2vh, 38px);
  max-width: 640px;
}
.hero-sub {
  max-width: 46ch; font-size: 16.5px;
  color: var(--ink);
  text-shadow: 0 1px 20px rgba(252, 251, 247, 0.85);
}
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.btn-on-dark {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.btn-on-dark::before { background: #3d5a6b; }
.btn-on-dark:hover { color: var(--cream); border-color: #3d5a6b; }

.btn-ghost-on-dark {
  color: var(--ink);
  border-color: rgba(19, 23, 17, 0.28);
}
.btn-ghost-on-dark::before { background: rgba(19, 23, 17, 0.08); }
.btn-ghost-on-dark:hover { color: var(--ink); border-color: rgba(19, 23, 17, 0.55); }

.hero-aside {
  justify-self: end;
  width: min(100%, 280px);
  margin-bottom: 8px;
}
.hero-aside-card {
  position: relative;
  border: 1px solid rgba(252, 251, 247, 0.65);
  background: linear-gradient(135deg, rgba(252, 251, 247, 0.42) 0%, rgba(252, 251, 247, 0.18) 100%);
  box-shadow: 0 24px 60px rgba(19, 23, 17, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  border-radius: 4px;
  padding: 26px 26px 24px;
}
.hero-aside-card .mono-tag { color: var(--ink-60); }
.hac-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.hac-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green);
}
.hac-live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(28, 74, 52, 0.5);
  animation: pulse 2.6s ease-in-out infinite;
}
.hero-aside-card p {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.hero-aside-meter {
  margin-top: 22px;
  height: 2px;
  background: rgba(19, 23, 17, 0.12);
  overflow: hidden;
}
.hero-aside-meter span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #3d5a6b, #6f93a5);
  animation: meterFill 2.4s var(--ease-out) 0.9s forwards;
}
@keyframes meterFill { to { width: 78%; } }
.hac-foot {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 12px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-40);
}

.fig-frame {
  border: 1px solid var(--line);
  padding: 10px;
  background: var(--paper);
  overflow: hidden;
}
.fig-frame img {
  width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 1.2s var(--ease-out);
  filter: saturate(0.92);
}
.fig-frame:hover img { transform: scale(1.035); filter: saturate(1); }
.fig-cap {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 12px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-40);
}

.hero-stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 64px);
  max-width: 1520px; width: 100%; margin-inline: auto;
  padding: clamp(56px, 9vh, 104px) var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}
.stat {
  display: flex; flex-direction: column; gap: 16px;
  padding-left: clamp(20px, 2.2vw, 32px);
  border-left: 1px solid var(--line-soft);
}
.stat:first-child { padding-left: 0; border-left: none; }
.stat-value {
  font-family: var(--serif); font-size: clamp(3.1rem, 5.6vw, 5.4rem);
  line-height: 0.95; letter-spacing: -0.02em;
  color: var(--ink);
}
.stat-label {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-75);
  display: flex; flex-direction: column; gap: 7px; line-height: 1.6;
}
.stat-scope {
  font-size: 10px; letter-spacing: 0.1em;
  color: var(--ink-40); text-transform: none;
  font-weight: 400; letter-spacing: 0.04em;
}

.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(28px, 5vh, 52px);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-40);
}
.hero-scroll i {
  display: block; width: 1px; height: 48px;
  background: linear-gradient(180deg, rgba(19,23,17,0.4), transparent);
  position: relative; overflow: hidden;
}
.hero-scroll i::after {
  content: ""; position: absolute; left: 0; top: -40%;
  width: 100%; height: 40%;
  background: #3d5a6b;
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { top: -40%; opacity: 0; }
  30% { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 20px 0;
  background: var(--paper);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-60);
  white-space: nowrap;
}
.marquee-track b { color: var(--green); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ INFRASTRUCTURE ============ */
.backing {
  background: var(--sage);
  border-bottom: 1px solid var(--line-soft);
}
.backing-shell {
  max-width: 1520px;
  margin-inline: auto;
  padding: clamp(110px, 16vh, 190px) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.backing-copy {
  max-width: 1240px;
  margin-inline: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.backing-copy .mono-tag {
  display: block;
  color: var(--green);
  margin-bottom: 34px;
}
.backing-title {
  max-width: 1040px;
  margin: 48px auto 28px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.2vw, 5.4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.backing-copy > p {
  max-width: 780px;
  margin-inline: auto;
  color: var(--ink-60);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.65;
}
.backing-figure { width: min(100%, 1120px); margin: 0 auto; }
.backing-logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: hidden;
}
.backing-logo-frame img {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
  mix-blend-mode: normal;
  filter: saturate(0.92) contrast(1.04);
}

/* ============ MANIFESTO ============ */
.manifesto { background: var(--paper); }
.manifesto-text {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  line-height: 1.26; letter-spacing: -0.012em;
  max-width: 1080px;
}
.manifesto-text .w { opacity: 0.14; }
.manifesto-sig { margin-top: 40px; }

/* ============ PLATFORMA ============ */
.platforma .section-title { margin-bottom: clamp(48px, 7vh, 80px); }
.pillar-list { border-bottom: 1px solid var(--line); }
.pillar {
  display: grid; grid-template-columns: 90px 1fr clamp(88px, 9vw, 116px);
  align-items: start; gap: clamp(16px, 3vw, 40px);
  padding: clamp(36px, 5vh, 56px) 12px;
  border-top: 1px solid var(--line);
  position: relative;
  transition: background 0.5s var(--ease-out);
  cursor: pointer;
}
.pillar:hover { background: var(--sage); }
.pillar-index {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  color: var(--ink-40); padding-top: 10px;
}
.pillar-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 16px;
}
.pillar-head h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.05; letter-spacing: -0.01em;
  transition: transform 0.5s var(--ease-out);
}
.pillar:hover .pillar-head h3 { transform: translateX(8px); }
.pillar-body p { max-width: 62ch; color: var(--ink-60); font-size: 15.5px; }
.pillar-end {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.pillar-vignette {
  width: 100%; aspect-ratio: 1 / 1; max-width: 96px;
  opacity: 0.9;
}
.pillar-arrow {
  padding-top: 2px;
  font-size: 20px; color: var(--ink-40);
  transition: transform 0.5s var(--ease-out), color 0.4s;
}
.pillar:hover .pillar-arrow { transform: translateX(8px); color: var(--green); }
@media (max-width: 900px) {
  .pillar-vignette { display: none; }
}

/* ============ PIPELINE ============ */
.pipeline { background: var(--paper-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.pipeline-pin {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(80px, 10vh, 120px) 0;
  overflow: hidden;
}
.pipeline-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  max-width: 1520px; width: 100%; margin-inline: auto;
  padding: 0 var(--gutter);
  margin-bottom: clamp(40px, 6vh, 72px);
}
.pipeline-head .mono-tag { display: block; margin-bottom: 20px; }
.pipeline-hint { color: var(--ink-40); }

.pipeline-track {
  display: flex; gap: clamp(16px, 2vw, 28px);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: max-content;
  will-change: transform;
}
.p-card {
  width: clamp(320px, 30vw, 430px);
  min-height: 440px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(24px, 2.4vw, 36px);
  display: flex; flex-direction: column;
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
}
.p-card:hover { border-color: var(--green); transform: translateY(-6px); }
.p-card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: clamp(48px, 7vh, 90px);
}
.p-index { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--ink-40); }
.p-card h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1.08;
  margin-bottom: 14px; letter-spacing: -0.01em;
}
.p-card p { font-size: 14.5px; color: var(--ink-60); margin-bottom: auto; }
.p-meter {
  height: 2px; background: var(--line-soft); margin: 32px 0 14px;
  position: relative; overflow: hidden;
}
.p-meter span {
  position: absolute; inset: 0; width: var(--p, 0%);
  background: var(--green);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1.4s var(--ease-out) 0.15s;
}
.p-card.in-view .p-meter span { transform: scaleX(1); }
.p-card-foot {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-40);
}
.p-card-end {
  background: transparent; border-color: transparent;
  align-items: flex-start; justify-content: center; gap: 28px;
}
.p-card-end:hover { transform: none; }
.p-end-text {
  font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.05; letter-spacing: -0.01em;
}

/* ============ SCIENTIA ============ */
.scientia-shell { grid-template-columns: 1fr 1fr; align-items: center; }
.sci-fig { max-width: 560px; width: 100%; }
.sci-frame { padding: 12px; }
.sci-frame img { aspect-ratio: 4 / 3; transform: scale(1.15); will-change: transform; }
.sci-frame:hover img { transform: scale(1.15); }
.sci-copy .mono-tag { display: block; margin-bottom: 24px; }
.sci-copy .section-title { margin-bottom: 28px; }
.sci-copy > p { max-width: 52ch; color: var(--ink-60); margin-bottom: 36px; }
.sci-list { margin-bottom: 40px; border-top: 1px solid var(--line); }
.sci-list li {
  display: flex; align-items: baseline; gap: 20px;
  padding: 14px 2px; border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.sci-list .mono-tag { min-width: 64px; color: var(--green); }

/* ============ NUMERI (dark) ============ */
.numeri {
  position: relative;
  background: var(--ink); color: var(--cream);
  overflow: hidden;
}
.numeri-helix { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.numeri-inner {
  position: relative; z-index: 1;
  max-width: 1520px; margin-inline: auto;
  padding: var(--section-pad) var(--gutter);
}
.numeri .mono-tag { color: var(--cream-60); display: block; margin-bottom: 24px; }
.numeri .section-title { margin-bottom: clamp(56px, 9vh, 110px); }
.numeri .section-title em { color: var(--green-soft); }
.numeri-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 5vw, 80px);
  border-top: 1px solid var(--cream-line);
  padding-top: clamp(40px, 6vh, 64px);
}
.n-value {
  display: block;
  font-family: var(--serif); font-size: clamp(3.4rem, 6.5vw, 6.2rem);
  line-height: 1; letter-spacing: -0.02em; margin-bottom: 16px;
}
.n-label {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-60);
  max-width: 24ch; display: block; line-height: 1.7;
}

/* ============ ACTA ============ */
.acta .section-title { margin-bottom: clamp(44px, 6vh, 72px); }
.acta-list { border-bottom: 1px solid var(--line); }
.acta-row {
  display: grid; grid-template-columns: 150px 1fr auto 40px;
  align-items: center; gap: clamp(16px, 3vw, 48px);
  padding: 30px 12px;
  border-top: 1px solid var(--line);
  transition: background 0.5s var(--ease-out);
}
.acta-row:hover { background: var(--sage); }
.acta-row h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.2; letter-spacing: -0.01em;
  transition: transform 0.5s var(--ease-out);
}
.acta-row:hover h3 { transform: translateX(8px); }
.acta-tag {
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  font-size: 10px;
}
.acta-arrow {
  justify-self: end; color: var(--ink-40); font-size: 18px;
  transition: transform 0.5s var(--ease-out), color 0.4s;
}
.acta-row:hover .acta-arrow { transform: translateX(6px); color: var(--green); }

/* ============ SLIPSTREAM (funnel) ============ */
.slipstream { background: var(--paper-2); border-top: 1px solid var(--line-soft); }
.slip-lede {
  max-width: 48ch;
  color: var(--ink-60);
  font-size: 16px;
  line-height: 1.65;
  margin: 20px 0 clamp(40px, 6vh, 64px);
}
.funnel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.funnel::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 2px; width: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 2;
  pointer-events: none;
}
.funnel.is-active::after {
  animation: funnelLine 1.35s var(--ease-out) forwards;
}
@keyframes funnelLine { to { transform: scaleX(1); } }
.funnel-step {
  background: var(--paper);
  padding: clamp(24px, 3vw, 36px) clamp(18px, 2vw, 28px);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.45s var(--ease-out);
}
.funnel-step:hover { background: var(--sage); }
.funnel-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--green);
}
.funnel-step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.funnel-step p {
  font-size: 14px;
  color: var(--ink-60);
  line-height: 1.55;
  margin-top: auto;
}
.slip-foot {
  margin-top: clamp(28px, 4vh, 40px);
  color: var(--ink-40);
}
@media (max-width: 900px) {
  .funnel { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .funnel { grid-template-columns: 1fr; }
}

/* ============ HORIZON ============ */
.horizon { background: var(--paper); border-top: 1px solid var(--line-soft); }
.horizon-lede {
  max-width: 50ch;
  color: var(--ink-60);
  font-size: 16px;
  line-height: 1.65;
  margin: 20px 0 clamp(40px, 6vh, 56px);
}
.horizon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.horizon-card {
  background: var(--paper);
  padding: clamp(24px, 3vw, 32px);
  min-height: 180px;
  transition: background 0.45s var(--ease-out);
}
.horizon-card:hover { background: var(--sage); }
.horizon-card .mono-tag {
  display: block;
  color: var(--green);
  margin-bottom: 14px;
}
.horizon-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.horizon-card p {
  font-size: 14px;
  color: var(--ink-60);
  line-height: 1.55;
}
@media (max-width: 900px) {
  .horizon-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .horizon-grid { grid-template-columns: 1fr; }
}

/* ============ TEAM ============ */
.team { background: var(--paper); border-top: 1px solid var(--line-soft); }
.team .section-title { margin-bottom: 22px; }
.team-lede {
  max-width: 38ch;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.team-body {
  max-width: 58ch;
  color: var(--ink-60);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: clamp(48px, 7vh, 80px);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1200px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
.person {
  background: var(--paper);
  padding: clamp(28px, 3vw, 40px) clamp(20px, 2vw, 28px);
  display: flex; flex-direction: column; gap: 18px;
  min-height: 240px;
  transition: background 0.5s var(--ease-out);
}
.person:hover { background: var(--sage); }
.person-photo {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper-2);
}
.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(0.92);
  transition: transform 1.1s var(--ease-out), filter 1.1s var(--ease-out);
}
.person:hover .person-photo img {
  transform: scale(1.03);
  filter: saturate(1);
}
.person h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.person p {
  font-size: 13.5px; color: var(--ink-60); line-height: 1.55;
}
.person-role {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green); margin-top: auto; padding-top: 12px;
}
@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ============ CTA ============ */
.cta { text-align: center; border-top: 1px solid var(--line-soft); }
.cta-inner {
  max-width: 900px; margin-inline: auto;
  padding: calc(var(--section-pad) * 1.1) var(--gutter);
  display: flex; flex-direction: column; align-items: center;
}
.cta .mono-tag { margin-bottom: 32px; }
.cta-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.6rem, 9vw, 8.4rem);
  line-height: 0.98; letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.cta p { max-width: 44ch; color: var(--ink-60); margin-bottom: 48px; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta-mail { color: var(--ink-40); }

/* ============ FOOTER ============ */
.footer {
  position: relative;
  border-top: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  max-width: 1520px; margin-inline: auto;
  padding: clamp(64px, 9vh, 110px) var(--gutter) clamp(48px, 7vh, 80px);
}
.f-col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.f-col .mono-tag { margin-bottom: 10px; color: var(--ink-40); }
.f-col a { color: var(--ink-60); width: fit-content; transition: color 0.3s; }
.f-col a:hover { color: var(--green); }
.f-brand .wordmark { font-size: 28px; margin-bottom: 8px; }
.f-brand p { color: var(--ink-60); }
.f-col p { color: var(--ink-60); line-height: 1.8; }
.footer-legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1520px; margin-inline: auto;
  padding: 22px var(--gutter);
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-40);
}
.footer-watermark {
  font-family: var(--serif);
  font-size: clamp(6rem, 21vw, 22rem);
  line-height: 0.72;
  text-align: center;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(19, 23, 17, 0.14);
  transform: translateY(18%);
  user-select: none;
  pointer-events: none;
}

/* ============ PROOF (frontier receipts) ============ */
.proof {
  background: var(--ink); color: var(--cream);
  border-top: 1px solid var(--line-soft);
  position: relative; overflow: hidden;
}
.proof .section-side .mono-tag { color: var(--cream-60); }
.proof > .section-shell > .section-main > .mono-tag { color: var(--cream-60); display: block; margin-bottom: 22px; }
.proof .section-title { color: var(--cream); margin-bottom: clamp(28px, 4vh, 44px); }
.proof .section-title em { color: var(--green-soft); }
.proof-lede {
  max-width: 56ch; color: var(--cream-72);
  font-size: 17px; line-height: 1.7; margin-bottom: clamp(40px, 6vh, 64px);
}
.proof-list { border-bottom: 1px solid var(--cream-line); }
.proof-row {
  display: grid; grid-template-columns: clamp(130px, 12vw, 200px) 1fr auto;
  align-items: center; gap: clamp(24px, 4vw, 56px);
  padding: clamp(26px, 4vh, 40px) 0;
  border-top: 1px solid var(--cream-line);
  transition: background 0.45s var(--ease-out);
}
.proof-row:hover { background: rgba(246, 244, 239, 0.03); }
.proof-value {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.7rem, 4.8vw, 4.3rem);
  line-height: 1; letter-spacing: -0.02em; color: var(--cream);
}
.proof-value sup { font-size: 0.42em; color: var(--green-soft); }
.proof-body h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.3rem, 1.9vw, 1.7rem); color: var(--cream);
  margin-bottom: 10px; letter-spacing: -0.01em;
}
.proof-gate {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green-soft);
  border: 1px solid rgba(46, 107, 79, 0.45); border-radius: 999px;
  padding: 3px 10px; margin-left: 10px; vertical-align: middle;
}
.proof-body p {
  max-width: 52ch; color: var(--cream-72);
  font-size: 15.5px; line-height: 1.65;
}
.proof-tag {
  justify-self: end; text-align: right;
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--cream-72);
  max-width: 21ch; line-height: 1.7;
}
.proof-foot { margin-top: clamp(28px, 4vh, 44px); color: var(--cream-72); font-size: 12px; }

/* ============ STATEMENT (Xaira-scale editorial copy) ============ */
.statement {
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
}
.statement-inner {
  max-width: 1280px;
  margin-inline: auto;
  padding: calc(var(--section-pad) * 1.2) var(--gutter);
}
.statement .mono-tag {
  display: block;
  color: var(--green);
  margin-bottom: clamp(30px, 5vh, 52px);
}
.statement-text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.7rem, 5.8vw, 5.6rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink);
  max-width: 20ch;
}
.statement-text em {
  font-style: italic;
  color: var(--green);
}
.statement-text .w { opacity: 0.12; }
.statement--closing {
  border-top: none;
  background: linear-gradient(180deg, var(--paper) 0%, var(--sage) 100%);
}
.statement--closing .statement-inner { text-align: left; }
.statement--closing .statement-text { max-width: 22ch; }

/* ============ CHAPTER RAIL (evolving scroll indicator) ============ */
.chapter-rail {
  position: fixed;
  left: clamp(14px, 2vw, 30px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-40);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s var(--ease-out), color 0.5s;
}
.chapter-rail.is-visible { opacity: 1; }
.chapter-rail.on-dark { color: var(--cream-60); }
.chapter-index { color: var(--green); transition: color 0.5s; }
.chapter-rail.on-dark .chapter-index { color: var(--green-soft); }
.chapter-line {
  position: relative;
  width: 1px;
  height: 72px;
  background: var(--line);
  overflow: hidden;
}
.chapter-rail.on-dark .chapter-line { background: var(--cream-line); }
.chapter-line span {
  position: absolute; inset: 0;
  background: var(--green);
  transform: scaleY(0);
  transform-origin: top center;
}
.chapter-rail.on-dark .chapter-line span { background: var(--green-soft); }
.chapter-name {
  writing-mode: vertical-rl;
  letter-spacing: 0.3em;
}
@media (max-width: 1280px) { .chapter-rail { display: none; } }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; align-items: start; }
  .hero-aside { justify-self: start; margin-top: 8px; }
  .hero-scroll { display: none; }
  .section-shell { grid-template-columns: 1fr; gap: 28px; }
  .section-side .mono-tag { position: static; }
  .scientia-shell { grid-template-columns: 1fr; gap: 48px; }
  .sci-fig { max-width: 640px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .pipeline-pin { min-height: 0; }
  .pipeline-track {
    flex-direction: column; width: auto;
    padding-inline: var(--gutter);
  }
  .p-card { width: 100%; min-height: 0; }
  .p-card-top { margin-bottom: 36px; }
  .p-card p { margin-bottom: 8px; }
  .numeri-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .acta-row { grid-template-columns: 1fr auto; grid-template-rows: auto auto; }
  .acta-row .mono-tag:first-child { grid-column: 1 / -1; }
  .acta-tag { display: none; }
}

@media (max-width: 900px) {
  .proof-row { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .proof-tag { justify-self: start; text-align: left; max-width: none; }
  .proof-value { font-size: clamp(2.2rem, 8vw, 3rem); }
}

@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .pillar { grid-template-columns: 1fr; gap: 12px; }
  .pillar-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Section title clip polish */
.section-title {
  overflow: visible;
}
.js .section-title[data-reveal] {
  clip-path: inset(0 0 100% 0);
}

/* Sticky slipstream accent */
.slipstream .section-side .mono-tag {
  color: var(--green);
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .js [data-reveal], .js [data-reveal-group] .line { opacity: 1; transform: none; }
  .js .section-title[data-reveal] { clip-path: none; }
  .manifesto-text .w, .statement-text .w { opacity: 1; }
  .grain { display: none; }
  .hero-scroll i::after, .hero-aside-meter span { animation: none !important; }
  .hero-aside-meter span { width: 78%; }
  .funnel::before { transform: scaleX(1); }
}
