:root {
  color-scheme: dark;
  --ink: #07111f;
  --paper: #e8edf2;
  --muted: #9eabb9;
  --cyan: #86e1d1;
  --gold: #e7b56a;
  --line: rgba(232, 237, 242, 0.14);
  --display: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, sans-serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; overflow-x: hidden; color: var(--paper); background: var(--ink); font-family: var(--sans); }
a { color: inherit; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; transform: translateY(-160%); background: white; color: black; }
.skip-link:focus { transform: none; }

.site-header { position: fixed; z-index: 30; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(24px, 4vw, 68px); background: linear-gradient(to bottom, rgba(7,17,31,.74), transparent); }
.identity { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.identity-mark { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid rgba(134,225,209,.55); border-radius: 50%; color: var(--cyan); font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.identity strong, .identity small { display: block; }
.identity strong { font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.identity small { margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
nav { display: flex; gap: 30px; }
nav a { color: #cad3dd; font-size: 12px; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
nav a:hover, nav a:focus-visible { color: var(--cyan); }

.hero { position: relative; display: grid; min-height: 100svh; align-items: center; padding: 140px clamp(24px, 8vw, 130px) 80px; isolation: isolate; }
.hero::before { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(7,17,31,.98) 0%, rgba(7,17,31,.82) 37%, rgba(7,17,31,.25) 67%, rgba(7,17,31,.72)), url("assets/research-world.webp") center / cover; content: ""; transform: scale(1.04); }
.hero::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(to bottom, transparent 70%, var(--ink)); content: ""; }
.hero-glow { position: absolute; z-index: -1; width: 34vw; height: 34vw; border-radius: 50%; background: rgba(70,156,165,.11); filter: blur(80px); }
.hero-copy { width: min(770px, 78vw); }
.announcement { display: inline-flex; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 24px; padding: 9px 14px; border: 1px solid rgba(231,181,106,.38); border-radius: 999px; background: rgba(7,17,31,.52); color: #d7dee5; font-size: 11px; letter-spacing: .04em; line-height: 1.4; backdrop-filter: blur(12px); }
.announcement span { color: var(--gold); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { margin: 0 0 22px; color: var(--cyan); font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -.055em; text-wrap: balance; }
h1 { font-size: clamp(54px, 6.6vw, 102px); line-height: .96; }
h1 span { color: var(--gold); font-weight: 400; }
.lede { width: min(600px, 100%); margin: 34px 0 0; color: #c1ccd6; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; letter-spacing: .08em; text-decoration: none; transition: .25s ease; }
.button-primary { border-color: var(--cyan); background: var(--cyan); color: var(--ink); }
.button:hover, .button:focus-visible { border-color: var(--gold); transform: translateY(-2px); }
.button-primary:hover, .button-primary:focus-visible { background: var(--gold); }
.scroll-cue { position: absolute; right: clamp(24px, 4vw, 68px); bottom: 36px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.scroll-cue span { width: 44px; height: 1px; background: var(--cyan); animation: breathe 2s ease-in-out infinite; transform-origin: left; }

.journey { position: relative; background: #07111f; }
.world-stage { position: fixed; z-index: 0; inset: 0; height: 100vh; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .7s ease; }
.world-stage.is-visible { opacity: 1; }
.world-image { position: absolute; inset: -5%; background-position: center; background-size: cover; opacity: 0; filter: saturate(.78) brightness(.62) blur(5px); transform: scale(1.12); transition: opacity 1s ease, filter 1.2s ease, transform 1.4s ease; will-change: transform, filter, opacity; }
.world-image.is-active { opacity: 1; filter: saturate(.94) brightness(.78) blur(0); transform: scale(1.04); }
.scene-evidence { background-image: url("assets/scene-evidence.webp"); }
.scene-alphascience { background-image: url("assets/scene-alphascience.webp"); }
.scene-calibration { background-image: url("assets/scene-calibration.webp"); }
.scene-mathematics { background-image: url("assets/scene-mathematics.webp"); }
.scene-collaboration { background-image: url("assets/scene-collaboration.webp"); }
.world-vignette { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,17,31,.76), transparent 38% 62%, rgba(7,17,31,.7)), linear-gradient(to bottom, rgba(7,17,31,.18), rgba(7,17,31,.38)); }
.world-grain { position: absolute; inset: 0; opacity: .18; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
.journey-progress { position: sticky; z-index: 10; top: 44%; float: right; width: 170px; margin: 0 40px 0 0; padding: 0; list-style: none; }
.journey-progress li { display: flex; align-items: center; gap: 10px; margin: 13px 0; color: rgba(232,237,242,.34); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; transition: .35s; }
.journey-progress li::before { width: 20px; height: 1px; background: currentColor; content: ""; transition: width .35s; }
.journey-progress li span { display: none; }
.journey-progress .is-active { color: var(--cyan); }
.journey-progress .is-active::before { width: 42px; }
.chapter { position: relative; z-index: 3; display: flex; min-height: 115vh; align-items: center; padding: 13vh clamp(24px, 8vw, 130px); }
.chapter-right { justify-content: flex-end; padding-right: clamp(190px, 14vw, 260px); }
.chapter-copy { width: min(590px, 48vw); padding: clamp(26px, 4vw, 54px); border: 1px solid rgba(232,237,242,.13); background: linear-gradient(135deg, rgba(7,17,31,.92), rgba(13,35,64,.62)); box-shadow: 0 24px 100px rgba(0,0,0,.35); backdrop-filter: blur(18px); opacity: .28; transform: translateY(42px); transition: opacity .6s, transform .6s, border-color .6s; }
.chapter.is-active .chapter-copy { border-color: rgba(134,225,209,.32); opacity: 1; transform: none; }
h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.04; }
.chapter p:not(.eyebrow) { color: #c1ccd6; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.72; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.tags li { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: #cbd4dc; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.text-link { display: inline-block; margin-top: 18px; color: var(--gold); font-size: 14px; font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.final-chapter { min-height: 125vh; }
footer { position: relative; z-index: 4; display: flex; justify-content: space-between; padding: 28px clamp(24px, 4vw, 68px); border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }

@keyframes breathe { 50% { transform: scaleX(.45); opacity: .45; } }

@media (max-width: 820px) {
  .identity small, .journey-progress { display: none; }
  .site-header { padding: 18px 20px; }
  nav { gap: 18px; }
  .hero { padding-inline: 24px; }
  .hero-copy { width: 100%; }
  h1 { font-size: clamp(50px, 15vw, 76px); }
  .chapter, .chapter-right { min-height: 105vh; justify-content: center; padding: 12vh 20px; }
  .chapter-copy { width: min(620px, 100%); }
  .world-image { inset: -10% -45%; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .chapter-copy { opacity: 1; transform: none; }
}

/* New-site preview: editorial index, not a continuation of the old scroll narrative. */
.preview { position: relative; z-index: 2; padding: 110px clamp(24px, 8vw, 130px) 0; background: #0b1829; }
.preview-intro { max-width: 930px; padding-bottom: 120px; }
.preview-intro h2 { font-size: clamp(43px, 6vw, 84px); }
.preview-intro em { color: var(--gold); font-style: normal; }
.preview-intro > p:last-child { max-width: 620px; margin-top: 34px; color: #c1ccd6; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.65; }
.preview-block { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 2fr); gap: 40px; padding: 64px 0 100px; border-top: 1px solid var(--line); }
.preview-heading > span, .work-type { color: var(--cyan); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.preview-heading h3, .preview-contact h3 { max-width: 380px; margin: 24px 0 0; font: 500 clamp(30px, 3.1vw, 48px)/1.12 var(--display); letter-spacing: -.04em; }
.work-item { display: grid; grid-template-columns: minmax(105px, 150px) minmax(0, 1fr) auto; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.work-item:first-child { padding-top: 0; }
.work-item h4, .writing-feature h4 { margin: 0; font: 500 clamp(22px, 2.2vw, 32px)/1.18 var(--display); }
.work-item p, .writing-feature p, .preview-contact > p:not(.eyebrow) { max-width: 520px; color: #b9c6d0; font-size: 15px; line-height: 1.6; }
.work-item a { color: var(--gold); white-space: nowrap; text-underline-offset: 5px; }
.writing-feature { display: flex; justify-content: space-between; gap: 24px; padding: 36px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.writing-feature h4 { max-width: 550px; margin-top: 20px; }
.writing-index { color: rgba(231,181,106,.3); font: 500 80px/1 var(--display); }
.preview-contact { padding: 80px 0 130px; border-top: 1px solid var(--line); }
.preview-contact h3 { max-width: 700px; }
.preview a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@media (max-width: 820px) { .preview { padding: 72px 24px 0; } .preview-intro { padding-bottom: 72px; } .preview-block { display: block; padding: 48px 0 72px; } .preview-heading { margin-bottom: 40px; } .work-item { grid-template-columns: 1fr; gap: 12px; } .writing-feature { padding: 24px; } .writing-index { display: none; } .preview-contact { padding: 64px 0 90px; } }
