:root {
  --predawn: #141A33;
  --dusk: #2E2F63;
  --light: #F2B45A;
  --morning: #EEF1F6;
  --ink: #1E2340;
  --ink-soft: #4A5170;
  --mist: #D9DEEE;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --measure: 36rem;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--morning);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 500; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--light); color: var(--predawn); padding: .5rem .75rem; }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem var(--gutter);
  color: var(--mist);
  transition: color .4s, background-color .4s;
}
.nav.on-light { color: var(--ink); background: rgba(238, 241, 246, .92); }
.wordmark {
  font-variation-settings: "wdth" 125;
  font-weight: 600; font-size: 1.15rem; letter-spacing: .08em;
  text-decoration: none;
}
.nav nav { display: flex; gap: clamp(.9rem, 2.5vw, 2rem); }
.nav nav a { font-size: .95rem; text-decoration: none; opacity: .85; }
.nav nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* The night: hero and story, with the assembling field behind */
.night {
  position: relative;
  overflow: clip;
  color: var(--mist);
  background: linear-gradient(180deg, var(--predawn) 0%, #1B2046 55%, var(--dusk) 100%);
}
#field {
  position: sticky; top: 0;
  display: block; width: 100%; height: 100vh;
  margin-bottom: -100vh;
}
.hero, .story { position: relative; padding: 0 var(--gutter); }
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; gap: 1.75rem;
  max-width: 64rem;
}
.hero h1 {
  font-variation-settings: "wdth" 125;
  font-weight: 300;
  font-size: clamp(2.5rem, 6.6vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: #fff;
}
.lede { max-width: var(--measure); font-size: 1.3rem; line-height: 1.55; }

.steps { list-style: none; margin: 0; padding: 0 0 20vh; }
.step {
  max-width: var(--measure);
  min-height: 80vh;
  display: flex; flex-direction: column; justify-content: center; gap: .85rem;
  opacity: .32;
  transition: opacity .6s ease;
}
.step.active { opacity: 1; }
.when { font-size: .95rem; color: var(--light); }
.step h2 {
  font-variation-settings: "wdth" 115;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.12; color: #fff;
}
.step-close { color: #fff; font-weight: 500; }

/* Sunrise */
.horizon {
  height: 34vh;
  background: linear-gradient(180deg, var(--dusk) 0%, #8E86A8 45%, #E9C9A0 72%, var(--morning) 100%);
  border-top: 2px solid var(--light);
}

/* Sections on the light side */
.layers, .contact { padding: clamp(4rem, 10vw, 8rem) var(--gutter); }
.section-title {
  font-variation-settings: "wdth" 125;
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.05;
}
.section-intro { margin: 1rem 0 3rem; color: var(--ink-soft); max-width: var(--measure); }

/* Layers as strata, top to bottom: worlds, creations, elements */
.stratum {
  display: grid; grid-template-columns: minmax(11rem, 16rem) minmax(0, var(--measure)) auto;
  gap: 1rem 3rem; align-items: start;
  padding: 2.25rem clamp(1.25rem, 3vw, 2.5rem);
}
.s-products { background: #FFFFFF; }
.s-phanes { background: #F8E7C8; }
.s-ether { background: #D7DEF2; }
.role { font-size: .95rem; color: var(--ink-soft); }
.stratum h3 { font-variation-settings: "wdth" 120; font-size: 1.8rem; margin-top: .2rem; }
.state { font-size: 1rem; font-weight: 500; align-self: center; white-space: nowrap; }
.more { text-underline-offset: 5px; }

/* Contact */
.contact { background: var(--predawn); color: var(--mist); }
.contact .section-title { color: #fff; }
.contact p { margin: 1.25rem 0 2rem; max-width: var(--measure); }
.email {
  font-variation-settings: "wdth" 125; font-weight: 300;
  font-size: clamp(1.6rem, 5vw, 3.4rem);
  color: var(--light); text-underline-offset: 8px; text-decoration-thickness: 1px;
}

.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding: 1.5rem var(--gutter);
  background: var(--predawn); color: #9AA3C4;
  font-size: .9rem;
  border-top: 1px solid #2B3159;
}
.footer a { margin-left: 1.25rem; }

@media (max-width: 820px) {
  .nav nav a:nth-child(2) { display: none; }
  #field { opacity: .28; }
  .stratum { grid-template-columns: 1fr; gap: .75rem; }
  .state { align-self: start; }
  .step { min-height: 72vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step, .nav { transition: none; }
}
