body.pail-next.research-next {
  --research-white: #f5fbff;
  --research-muted: #b5c8d2;
  --research-cyan: #8ee9db;
  --research-blue: #7ee7ff;
  --research-gold: #efc34f;
  --research-line: rgba(181, 220, 235, .2);
  --research-night: #040c15;
  color: var(--research-white);
  background: var(--research-night);
}

.research-next::before,
.research-next::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.research-next::before {
  background: #040c15 url("cosmos-journey-v1.webp") 72% center / cover no-repeat;
  filter: saturate(1.02) brightness(.5);
  transform: scale(1.035);
}

.research-next::after {
  background:
    linear-gradient(90deg, rgba(3, 10, 18, .97) 0%, rgba(3, 10, 18, .82) 42%, rgba(3, 10, 18, .38) 72%, rgba(3, 10, 18, .68) 100%),
    linear-gradient(180deg, rgba(3, 10, 18, .15), rgba(3, 10, 18, .88) 72%, #040c15 100%);
}

.research-next > header,
.research-next > main,
.research-next > footer {
  position: relative;
  z-index: 1;
}

.research-next .next-header {
  color: var(--research-white);
  background: rgba(4, 12, 21, .78);
  border-color: var(--research-line);
}

.research-next .next-brand small { color: #9bb4bf; }
.research-next .next-brand-mark { border-color: rgba(238, 250, 255, .7); }
.research-next .next-menu { color: var(--research-white); }
.research-next .next-nav a[aria-current="page"] { color: var(--research-cyan); }
.research-next .next-nav a::after { background: var(--research-cyan); }
.research-next .next-header .next-button.dark { color: #06131b; background: var(--research-gold); border-color: var(--research-gold); }

.research-cosmos-hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--research-line);
}

.research-cosmos-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 42%, rgba(126, 231, 255, .13), transparent 26%),
    linear-gradient(180deg, transparent 63%, rgba(4, 12, 21, .94) 100%);
}

.research-stars {
  position: absolute;
  inset: -20%;
  opacity: .35;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.95) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(142,233,219,.82) 0 1px, transparent 1.5px);
  background-size: 97px 97px, 151px 151px;
  background-position: 0 0, 43px 61px;
  mask-image: linear-gradient(90deg, transparent 5%, #000 48%, #000 100%);
}

.research-orbit { position: absolute; border: 1px solid rgba(142, 233, 219, .18); border-radius: 50%; }
.research-orbit::before { content: ""; position: absolute; width: 8px; height: 8px; background: var(--research-cyan); border-radius: 50%; box-shadow: 0 0 25px rgba(126, 231, 255, .85); }
.research-orbit.orbit-one { width: 720px; height: 720px; right: -280px; top: -230px; }
.research-orbit.orbit-one::before { left: 78px; bottom: 124px; }
.research-orbit.orbit-two { width: 420px; height: 420px; right: 14%; bottom: -290px; }
.research-orbit.orbit-two::before { right: 49px; top: 80px; }

.research-hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: clamp(55px, 9vw, 140px);
  align-items: end;
  padding-block: 120px 145px;
}

.research-label,
.research-eyebrow {
  color: var(--research-cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.research-label::before { content: ""; display: inline-block; width: 28px; height: 1px; margin: 0 11px 3px 0; background: currentColor; }
.research-hero-copy h1 { max-width: 880px; margin: 22px 0 28px; color: var(--research-white); font-size: clamp(4.2rem, 7.3vw, 8rem); line-height: .88; letter-spacing: -.075em; text-shadow: 0 5px 40px rgba(0, 0, 0, .5); }
.research-hero-copy h1 em { display: block; color: var(--research-cyan); font: 500 .9em/1.05 var(--next-serif); letter-spacing: -.045em; }
.research-hero-copy > p { max-width: 700px; margin: 0; color: #cfdee5; font-size: 19px; line-height: 1.75; }
.research-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.research-next .research-glass { color: white; border-color: rgba(222, 243, 250, .42); background: rgba(7, 26, 38, .42); backdrop-filter: blur(12px); }

.research-contract { padding: 0 0 5px 30px; border-left: 1px solid rgba(142, 233, 219, .5); }
.research-contract > span { color: var(--research-gold); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.research-contract > p { margin: 18px 0 30px; color: #e4eff3; font: 500 25px/1.35 var(--next-serif); }
.research-contract dl { margin: 0; }
.research-contract dl div { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--research-line); }
.research-contract dt { color: #86a4b1; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.research-contract dd { margin: 0; color: #dbe9ee; font-size: 12px; font-weight: 700; }

.research-scroll { position: absolute; left: 50%; bottom: 30px; display: grid; justify-items: center; gap: 9px; color: #a9c3cc; font-size: 8px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; transform: translateX(-50%); }
.research-scroll i { width: 1px; height: 34px; background: linear-gradient(var(--research-cyan), transparent); }

.research-chapter { position: relative; padding: 130px 0; border-bottom: 1px solid var(--research-line); }
.research-chapter::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, rgba(4, 12, 21, .96), rgba(4, 12, 21, .76) 68%, rgba(4, 12, 21, .53)); }
.research-problem::before,
.research-evidence::before,
.research-future::before { background: linear-gradient(105deg, rgba(5, 18, 27, .97), rgba(6, 22, 31, .76) 68%, rgba(5, 15, 24, .57)); }
.research-method::before,
.research-hypotheses::before,
.research-limits::before { background: linear-gradient(105deg, rgba(4, 12, 21, .88), rgba(4, 12, 21, .66) 68%, rgba(4, 12, 21, .42)); }

.research-two-column { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(70px, 10vw, 150px); align-items: start; }
.research-chapter-heading { max-width: 930px; }
.research-chapter-heading .research-index { display: block; margin-bottom: 45px; color: rgba(142, 233, 219, .46); font: 500 58px/1 var(--next-serif); }
.research-chapter-heading h2 { margin: 14px 0 0; color: var(--research-white); font-size: clamp(3rem, 5.2vw, 5.7rem); line-height: .96; letter-spacing: -.06em; }
.research-chapter-heading > p:last-child { max-width: 780px; margin: 25px 0 0; color: var(--research-muted); font-size: 17px; line-height: 1.8; }

.research-prose p { margin: 0 0 26px; color: #d1e0e6; font-size: 18px; line-height: 1.85; }
.research-prose-large p:first-child { color: white; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.35; letter-spacing: -.03em; }
.research-prose blockquote { margin: 55px 0 0; padding: 25px 0 25px 35px; color: var(--research-gold); border-left: 1px solid var(--research-gold); font: 500 27px/1.45 var(--next-serif); }

.method-heading { display: grid; grid-template-columns: 100px 1fr; column-gap: 35px; max-width: none; }
.method-heading .research-index { grid-row: 1 / 4; }
.method-heading .research-eyebrow { align-self: end; }
.method-heading h2 { max-width: 950px; }

.sutra-flow { position: relative; margin: 90px 0 0; padding: 0; list-style: none; }
.sutra-flow::before { content: ""; position: absolute; left: 47px; top: 40px; bottom: 40px; width: 1px; background: linear-gradient(var(--research-cyan), rgba(142,233,219,.08)); }
.sutra-flow li { position: relative; display: grid; grid-template-columns: 95px minmax(0, 1fr) 150px; gap: 30px; align-items: start; padding: 34px 0; border-top: 1px solid var(--research-line); }
.sutra-flow li:last-child { border-bottom: 1px solid var(--research-line); }
.sutra-number { position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; margin-left: 25px; color: #06141c; background: var(--research-cyan); border-radius: 50%; font-size: 10px; font-weight: 900; box-shadow: 0 0 0 9px rgba(142,233,219,.08); }
.sutra-flow b { display: block; color: white; font-size: 25px; letter-spacing: -.025em; }
.sutra-flow p { max-width: 720px; margin: 8px 0 0; color: var(--research-muted); }
.sutra-flow small { padding-top: 8px; color: #829da8; font-size: 8px; font-weight: 900; letter-spacing: .14em; text-align: right; }

.boundary-heading,
.evidence-heading,
.future-heading { max-width: 1060px; }
.research-status-lines { margin-top: 78px; border-top: 1px solid var(--research-line); }
.research-status-lines article { display: grid; grid-template-columns: 260px minmax(0, 1fr) 210px; gap: 45px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--research-line); }
.research-status-lines article > div { display: flex; align-items: center; gap: 12px; }
.research-status-lines b { font-size: 19px; }
.research-status-lines p { margin: 0; color: var(--research-muted); }
.research-status-lines strong { color: var(--research-cyan); font-size: 10px; letter-spacing: .1em; text-align: right; text-transform: uppercase; }
.status-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; }
.status-dot.live { background: var(--research-cyan); box-shadow: 0 0 18px rgba(142,233,219,.7); }
.status-dot.catalog { border: 2px solid var(--research-gold); }
.status-dot.research { border: 1px solid #9aabb4; }

.sticky-heading { position: sticky; top: 125px; }
.hypothesis-list { border-top: 1px solid var(--research-line); }
.hypothesis-list article { position: relative; padding: 40px 0 42px 73px; border-bottom: 1px solid var(--research-line); }
.hypothesis-list article > span { position: absolute; left: 0; top: 48px; color: var(--research-cyan); font: 500 22px/1 var(--next-serif); }
.hypothesis-list h3 { margin: 0 0 13px; color: white; font-size: 29px; letter-spacing: -.035em; }
.hypothesis-list p { margin: 0 0 18px; color: var(--research-muted); }
.hypothesis-list small { display: block; color: #e0bd66; font-size: 11px; line-height: 1.7; }
.hypothesis-list small::before { content: "FAILS IF: "; font-weight: 900; letter-spacing: .08em; }

.evidence-ledger { margin-top: 75px; border-top: 1px solid rgba(142,233,219,.48); }
.ledger-head,
.evidence-ledger article { display: grid; grid-template-columns: .72fr 1.2fr 1.08fr; gap: 35px; }
.ledger-head { padding: 15px 0; color: #7f9ca7; border-bottom: 1px solid var(--research-line); font-size: 8px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.evidence-ledger article { padding: 33px 0; border-bottom: 1px solid var(--research-line); }
.evidence-ledger h3 { margin: 0; color: white; font-size: 20px; }
.evidence-ledger p { margin: 0; color: var(--research-muted); font-size: 14px; }
.evidence-ledger article p:last-child { color: #d7b96c; }
.research-disclosure { max-width: 840px; margin: 38px 0 0 auto; padding-left: 26px; color: #a9bec7; border-left: 1px solid var(--research-gold); font-size: 12px; }

.limits-manifesto { border-top: 1px solid var(--research-line); }
.limits-manifesto p { margin: 0; padding: 23px 0; color: #d2e0e6; border-bottom: 1px solid var(--research-line); font-size: 18px; }
.limits-manifesto p::before { content: "NOT "; display: inline-block; width: 58px; color: #d9b75f; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.limits-manifesto strong { display: block; margin-top: 42px; color: var(--research-cyan); font: 500 29px/1.35 var(--next-serif); }

.research-map { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 80px; margin-top: 75px; padding-left: 72px; }
.research-map-axis { position: absolute; left: 20px; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--research-cyan), rgba(142,233,219,.05)); }
.research-map-axis i { position: absolute; left: -5px; width: 11px; height: 11px; background: #07131d; border: 1px solid var(--research-cyan); border-radius: 50%; }
.research-map-axis i:nth-child(1) { top: 8%; }
.research-map-axis i:nth-child(2) { top: 34%; }
.research-map-axis i:nth-child(3) { top: 61%; }
.research-map-axis i:nth-child(4) { top: 88%; }
.research-map article { min-height: 230px; padding: 27px 0 38px; border-top: 1px solid var(--research-line); }
.research-map article:nth-child(2n) { margin-top: 105px; }
.research-map span { color: var(--research-cyan); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.research-map h3 { margin: 38px 0 13px; color: white; font-size: 28px; line-height: 1.1; letter-spacing: -.035em; }
.research-map p { margin: 0; color: var(--research-muted); }

.research-collaboration { position: relative; padding: 125px 0; overflow: hidden; border-bottom: 1px solid var(--research-line); }
.research-collaboration::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 82% 50%, rgba(126,231,255,.13), transparent 30%), rgba(4,12,21,.72); }
.collaboration-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 100px; align-items: end; }
.collaboration-layout h2 { max-width: 880px; margin: 21px 0 22px; color: white; font-size: clamp(3rem, 5.2vw, 5.7rem); line-height: .96; letter-spacing: -.06em; }
.collaboration-layout p { max-width: 800px; margin: 0; color: var(--research-muted); font-size: 17px; }
.collaboration-actions { display: grid; gap: 12px; }
.collaboration-actions small { margin-top: 8px; color: #91aab4; line-height: 1.6; }
.research-next .next-footer { color: white; background: rgba(3, 10, 18, .97); border-top: 0; }

@media (max-width: 980px) {
  .research-hero-layout,
  .research-two-column,
  .collaboration-layout { grid-template-columns: 1fr; }
  .research-contract { max-width: 600px; }
  .sticky-heading { position: static; }
  .research-status-lines article { grid-template-columns: 220px 1fr; }
  .research-status-lines strong { grid-column: 2; text-align: left; }
  .research-map { gap: 0 40px; }
}

@media (max-width: 820px) {
  .research-next .next-nav { color: var(--next-ink); background: var(--next-paper-2); }
  .research-cosmos-hero { min-height: auto; }
  .research-hero-layout { padding-block: 100px 130px; }
  .research-contract { margin-top: 25px; }
  .research-chapter { padding: 95px 0; }
  .method-heading { display: block; }
  .sutra-flow li { grid-template-columns: 82px 1fr; }
  .sutra-flow small { grid-column: 2; padding-top: 0; text-align: left; }
  .sutra-flow::before { left: 37px; }
  .sutra-number { margin-left: 15px; }
  .ledger-head { display: none; }
  .evidence-ledger article { grid-template-columns: 1fr; gap: 12px; }
  .evidence-ledger h3 { color: var(--research-cyan); }
}

@media (max-width: 640px) {
  .research-next::before { background-position: 67% center; }
  .research-next::after { background: linear-gradient(180deg, rgba(3,10,18,.82), rgba(3,10,18,.64) 32%, rgba(3,10,18,.93) 100%); }
  .research-hero-copy h1 { font-size: clamp(3.65rem, 17vw, 5.2rem); }
  .research-hero-copy > p { font-size: 16px; }
  .research-hero-actions { display: grid; }
  .research-contract { padding-left: 20px; }
  .research-scroll { display: none; }
  .research-chapter-heading .research-index { margin-bottom: 28px; font-size: 43px; }
  .research-chapter-heading h2,
  .collaboration-layout h2 { font-size: 3.1rem; }
  .research-prose-large p:first-child { font-size: 1.7rem; }
  .sutra-flow li { grid-template-columns: 62px 1fr; gap: 16px; }
  .sutra-flow::before { left: 24px; }
  .sutra-number { width: 38px; height: 38px; margin-left: 5px; }
  .sutra-flow b { font-size: 21px; }
  .research-status-lines article { grid-template-columns: 1fr; gap: 13px; }
  .research-status-lines strong { grid-column: 1; }
  .hypothesis-list article { padding-left: 50px; }
  .research-map { grid-template-columns: 1fr; padding-left: 48px; }
  .research-map article:nth-child(2n) { margin-top: 0; }
  .research-map-axis { left: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .research-next::before { transform: none; }
  .research-scroll { display: none; }
}
