:root {
  --ink: #07100e;
  --paper: #eee9dd;
  --muted: #9aa6a0;
  --signal: #ff8520;
  --signal-soft: #ffc06d;
  --line: rgb(238 233 221 / 0.2);
  --journey-progress: 0;
  --scene-drift: 0px;
  --shade-x: 0px;
  --shade-y: 0px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--paper);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
}

body { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button,
a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--signal-soft);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

.site-head {
  position: absolute;
  z-index: 30;
  inset: 0 0 auto;
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0 5vw;
  border-bottom: 1px solid rgb(238 233 221 / .22);
  background: linear-gradient(180deg, rgb(2 8 7 / .68), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  letter-spacing: -.035em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.site-head nav { display: none; }

.head-action {
  padding: .7rem .92rem;
  border: 1px solid rgb(238 233 221 / .55);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 730;
}

.journey {
  position: relative;
  min-height: 700svh;
  background: var(--ink);
}

.journey-stage {
  position: sticky;
  z-index: 0;
  top: 0;
  height: 100svh;
  margin-bottom: -100svh;
  overflow: hidden;
  isolation: isolate;
  background: #14211d;
}

.scene-stack,
.scene,
.scene-cloud,
.scene-shade,
.scene-grade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene {
  object-fit: cover;
  will-change: opacity, transform, filter;
  transition: opacity 1.15s cubic-bezier(.2,.72,.2,1), filter 1.15s ease, transform 1.4s cubic-bezier(.2,.72,.2,1);
  transform: scale(1.075) translateX(var(--scene-drift));
  filter: saturate(.72) contrast(1.04) brightness(.55);
  opacity: 0;
}

.scene--land { object-position: 58% center; }
.scene--granite { object-position: 38% center; }
.scene--map { object-position: center; }
.scene--array { object-position: 47% center; }

.journey-stage[data-scene="land"] .scene--land,
.journey-stage[data-scene="granite"] .scene--granite,
.journey-stage[data-scene="map"] .scene--map,
.journey-stage[data-scene="array"] .scene--array {
  opacity: 1;
  transform: scale(1.035) translateX(var(--scene-drift));
}

.journey-stage[data-scene="map"] .scene--map {
  filter: saturate(.62) contrast(1.08) brightness(.58);
  transform: scale(1.08) translateX(var(--scene-drift));
}

.scene-cloud {
  width: 150%;
  left: -55%;
  background: linear-gradient(108deg, transparent 26%, rgb(15 29 25 / .66) 45%, rgb(210 221 213 / .09) 55%, transparent 68%);
  filter: blur(34px);
  opacity: .62;
  transform: translateX(var(--cloud-shift, 12%));
  transition: transform 1.2s cubic-bezier(.2,.76,.16,1), opacity 500ms ease;
  animation: ambient-cloud 17s ease-in-out infinite alternate;
}

.journey-stage[data-weather="cloud"] .scene-cloud {
  --cloud-shift: 38%;
  opacity: .9;
}

.journey-stage[data-weather="recover"] .scene-cloud {
  --cloud-shift: 76%;
  opacity: .3;
}

.scene-shade {
  opacity: 0;
  background: linear-gradient(132deg, transparent 24%, rgb(3 10 8 / .72) 46%, transparent 68%);
  transform: translate(var(--shade-x), var(--shade-y));
  transition: opacity 850ms ease, transform 850ms cubic-bezier(.2,.75,.2,1);
}

.journey-stage[data-scene="map"] .scene-shade { opacity: .52; }

.scene-grade {
  background:
    linear-gradient(180deg, rgb(2 8 7 / .28), transparent 30%, rgb(2 8 7 / .38) 66%, rgb(2 8 7 / .9)),
    linear-gradient(90deg, rgb(2 8 7 / .78), transparent 74%);
}

.site-marker {
  position: absolute;
  z-index: 2;
  left: 51%;
  top: 43%;
  display: grid;
  gap: .2rem;
  opacity: 0;
  transform: translate(-50%, -38%) scale(.82);
  transition: opacity 700ms ease, transform 900ms cubic-bezier(.2,.76,.18,1);
  font-family: "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}

.journey-stage[data-scene="map"] .site-marker {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.site-marker > span {
  width: 17px;
  height: 17px;
  margin: 0 auto .45rem;
  border: 4px solid var(--signal-soft);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgb(255 192 109 / .18), 0 0 38px rgb(255 133 32 / .52);
}

.site-marker strong { font-size: .72rem; letter-spacing: .12em; }
.site-marker small { font-size: .54rem; letter-spacing: .1em; color: var(--muted); }

.instrument {
  position: absolute;
  z-index: 5;
  left: 5vw;
  right: 5vw;
  bottom: 2rem;
  min-height: 252px;
  overflow: hidden;
  padding: .95rem;
  background: rgb(4 13 11 / .94);
  border: 1px solid rgb(255 255 255 / .17);
  box-shadow: 0 28px 80px rgb(0 0 0 / .34);
  backdrop-filter: blur(18px);
  transition: transform 850ms cubic-bezier(.2,.76,.18,1), min-height 700ms ease;
}

.instrument__top,
.instrument__foot,
.instrument__coordinates,
.instrument__power,
.instrument__finder-label {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .57rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.instrument__top,
.instrument__foot,
.instrument__coordinates {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.instrument__screens {
  position: absolute;
  inset: 2.5rem 0 3.5rem;
  overflow: hidden;
  opacity: .34;
}

.instrument__screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(1.18) translateY(-7%);
  transform-origin: center top;
  transition: opacity 700ms ease, transform 900ms cubic-bezier(.2,.76,.18,1);
}

.journey-stage[data-screen="forecast"] .instrument__screen--forecast,
.journey-stage[data-screen="outlook"] .instrument__screen--outlook,
.journey-stage[data-screen="calibration"] .instrument__screen--calibration {
  opacity: 1;
  transform: scale(1.08) translateY(-4%);
}

.instrument__finder {
  position: absolute;
  inset: 3.05rem .95rem 3.4rem;
  display: grid;
  align-content: start;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 750ms cubic-bezier(.2,.76,.18,1);
}

.journey-stage[data-screen="finder"] .instrument__screens,
.journey-stage[data-screen="finder"] .instrument__readout { opacity: 0; }

.journey-stage[data-screen="finder"] .instrument__finder {
  opacity: 1;
  transform: none;
}

.instrument__finder-label { color: var(--signal-soft); }
.instrument__finder strong { margin-top: .25rem; font-size: 1.9rem; letter-spacing: -.045em; }
.instrument__finder > small { margin-top: .1rem; color: var(--muted); font-size: .65rem; }

.instrument__coordinates {
  margin-top: .8rem;
  padding-top: .65rem;
  border-top: 1px solid var(--line);
}

.instrument__bearing {
  height: 45px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .7rem;
  margin-top: .35rem;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .57rem;
  color: var(--muted);
}

.instrument__bearing i {
  position: relative;
  display: block;
  height: 1px;
  background: var(--signal-soft);
  transform-origin: 6px center;
  transform: rotate(-22deg);
  transition: transform 800ms cubic-bezier(.2,.75,.2,1);
}

.instrument__bearing i::before,
.instrument__bearing i::after {
  content: "";
  position: absolute;
  top: 50%;
  border-radius: 50%;
  background: var(--signal-soft);
  transform: translateY(-50%);
}

.instrument__bearing i::before { left: 0; width: 8px; height: 8px; }
.instrument__bearing i::after { right: 0; width: 5px; height: 5px; }

.instrument__readout {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  min-height: 174px;
  padding-top: 2rem;
  transition: opacity 500ms ease;
}

.instrument__readout > div:first-child {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  gap: .15rem .48rem;
}

.instrument__readout span,
.instrument__readout small {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .57rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.instrument__readout > div:first-child > span { grid-column: 1 / -1; color: var(--signal-soft); }

.instrument__readout > div:first-child > strong {
  color: var(--signal);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(3rem, 14vw, 4.6rem);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.08em;
}

.instrument__power {
  display: grid;
  gap: .25rem;
  padding-bottom: .2rem;
  text-align: right;
}

.instrument__power strong { color: var(--signal-soft); font-size: 1rem; }

.instrument__progress {
  position: absolute;
  z-index: 4;
  left: .95rem;
  right: .95rem;
  bottom: 2.15rem;
  height: 2px;
  background: rgb(255 255 255 / .16);
}

.instrument__progress span {
  display: block;
  width: calc(var(--journey-progress) * 100%);
  height: 100%;
  background: var(--signal-soft);
}

.instrument__foot {
  position: absolute;
  z-index: 4;
  left: .95rem;
  right: .95rem;
  bottom: .75rem;
}

.journey-progress {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: rgb(255 255 255 / .12);
}

.journey-progress span {
  display: block;
  width: 100%;
  height: calc(var(--journey-progress) * 100%);
  background: var(--signal);
}

.chapter {
  position: relative;
  z-index: 1;
  min-height: 115svh;
  padding: 0 5vw 24rem;
  pointer-events: none;
}

.chapter--hero { min-height: 118svh; }

.chapter__copy {
  position: sticky;
  top: 6.4rem;
  width: 100%;
  max-width: 46rem;
  opacity: .28;
  transform: translateY(45px);
  transition: opacity 700ms ease, transform 900ms cubic-bezier(.2,.76,.18,1);
  pointer-events: auto;
}

.chapter.is-current .chapter__copy {
  opacity: 1;
  transform: none;
}

.chapter__copy--hero {
  top: 17svh;
  opacity: 1;
  transform: none;
}

.eyebrow,
.chapter__detail,
.chapter__note,
.chapter__coordinate,
.rig-tag,
.site-conditions,
.map-times,
.calibration-proof span,
.calibration-proof small,
.download__copy small {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.eyebrow {
  margin: 0;
  color: var(--signal-soft);
  font-size: .66rem;
  line-height: 1.2;
  letter-spacing: .2em;
  text-transform: uppercase;
}

h1,
h2,
p { margin-top: 0; }

h1,
h2 {
  margin-bottom: 0;
  font-weight: 620;
  line-height: .9;
  letter-spacing: -.065em;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgb(0 0 0 / .46);
}

h1 {
  max-width: 8ch;
  margin-top: 1rem;
  font-size: clamp(3.35rem, 15vw, 9rem);
}

h2 {
  max-width: 8.7ch;
  margin-top: .85rem;
  font-size: clamp(3rem, 12vw, 7rem);
}

.text-action,
.download-action {
  display: inline-flex;
  align-items: center;
  gap: 1.3rem;
  margin-top: 1.7rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid currentColor;
  font-size: .84rem;
  font-weight: 720;
}

.chapter__coordinate,
.chapter__note {
  position: absolute;
  right: 5vw;
  top: 6.4rem;
  margin: 0;
  font-size: .55rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: .68;
}

.chapter__note { display: none; }

.chapter__detail {
  max-width: 31rem;
  margin-top: 1.4rem;
  font-size: .68rem;
  line-height: 1.7;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.condition-list {
  display: grid;
  max-width: 34rem;
  margin-top: 2rem;
  border-top: 1px solid rgb(238 233 221 / .32);
}

.condition-list button {
  display: grid;
  grid-template-columns: .8fr 1fr 1fr;
  align-items: center;
  gap: .6rem;
  padding: .9rem 0;
  color: var(--paper);
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgb(238 233 221 / .22);
  background: transparent;
  cursor: pointer;
}

.condition-list span,
.condition-list small {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.condition-list strong { font-size: 1.05rem; transition: color 220ms ease; }
.condition-list button[aria-pressed="true"] strong { color: var(--signal-soft); }

.map-times {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .45rem;
  margin-top: 1.8rem;
}

.map-times button {
  padding: .75rem .2rem;
  color: var(--paper);
  border: 1px solid rgb(238 233 221 / .26);
  background: rgb(4 13 11 / .34);
  cursor: pointer;
  font-size: .66rem;
}

.map-times button[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--signal-soft);
  background: var(--signal-soft);
}

.site-conditions {
  display: grid;
  margin-top: 1.2rem;
  padding: 0;
  background: rgb(4 13 11 / .68);
  border-top: 1px solid rgb(238 233 221 / .24);
}

.site-conditions div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .72rem 0;
  border-bottom: 1px solid rgb(238 233 221 / .18);
}

.site-conditions dt,
.site-conditions dd {
  margin: 0;
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-conditions dt { color: var(--muted); }

.rig-tag {
  position: absolute;
  right: 5vw;
  bottom: 23rem;
  display: grid;
  min-width: 13rem;
  padding: 1rem;
  background: rgb(4 13 11 / .82);
  border-left: 2px solid var(--signal);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 800ms cubic-bezier(.2,.76,.18,1);
}

.chapter--rig.is-current .rig-tag { opacity: 1; transform: none; }
.rig-tag span,
.rig-tag small { font-size: .58rem; letter-spacing: .11em; text-transform: uppercase; }
.rig-tag strong { margin: .25rem 0; color: var(--signal-soft); font-size: 1.55rem; }
.rig-tag small { color: var(--muted); }

.calibration-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  max-width: 40rem;
  margin-top: 2rem;
  background: rgb(238 233 221 / .22);
  border: 1px solid rgb(238 233 221 / .22);
}

.calibration-proof > div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  gap: .1rem .4rem;
  padding: .9rem;
  background: rgb(4 13 11 / .82);
}

.calibration-proof span { grid-column: 1 / -1; min-height: 2.2em; font-size: .53rem; line-height: 1.35; letter-spacing: .09em; }
.calibration-proof strong { color: var(--signal-soft); font-size: clamp(2.3rem, 10vw, 4rem); line-height: .9; letter-spacing: -.065em; }
.calibration-proof small { padding-bottom: .25rem; color: var(--muted); font-size: .55rem; }
.calibration-proof__reading { grid-column: 1 / -1; grid-row: 2; }
.calibration-proof__reading strong { color: var(--paper); }

.download {
  min-height: 1000px;
  display: grid;
  align-content: center;
  gap: 4rem;
  padding: 7rem 5vw;
  overflow: hidden;
  color: var(--ink);
  background: #e5e0d4;
}

.download__phone {
  width: min(78vw, 350px);
  height: 710px;
  justify-self: center;
  overflow: hidden;
  border: 10px solid #0a100f;
  border-radius: 48px;
  background: #060c0f;
  box-shadow: 0 50px 100px rgb(15 22 19 / .28);
  transform: rotate(-2deg);
}

.download__phone img { width: 100%; height: 100%; object-fit: cover; }
.download__copy { display: flex; flex-direction: column; align-items: flex-start; }
.download__copy > img { margin-bottom: 1rem; border-radius: 16px; }
.download__copy h2 { text-shadow: none; }
.download__copy small { margin-top: 1.25rem; font-size: .6rem; letter-spacing: .16em; }

.site-foot {
  padding: 4rem 5vw 1.5rem;
  background: #07100e;
  border-top: 1px solid var(--line);
}

.site-foot__brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: 1.2rem;
  font-weight: 680;
}

.site-foot__brand img { border-radius: 12px; }

.site-foot__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 4rem;
}

.site-foot__links div { display: grid; align-content: start; gap: .7rem; }
.site-foot__links strong { margin-bottom: .25rem; color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; }
.site-foot__links a { font-size: .73rem; }

.site-foot__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.motion-note {
  position: fixed;
  z-index: 50;
  left: 1rem;
  bottom: 1rem;
  max-width: 22rem;
  margin: 0;
  padding: .8rem 1rem;
  color: var(--ink);
  background: var(--paper);
  font-size: .75rem;
}

@keyframes ambient-cloud {
  to { transform: translateX(42%); }
}

@media (min-width: 800px) {
  .site-head {
    min-height: 88px;
    grid-template-columns: 1fr auto 1fr;
    padding: 0 3vw;
  }

  .site-head nav { display: flex; gap: 2rem; font-size: .78rem; }
  .head-action { justify-self: end; }

  .scene--land { object-position: center; }

  .instrument {
    left: auto;
    right: 3vw;
    bottom: 4vh;
    width: min(31vw, 450px);
    min-height: 300px;
    padding: 1.1rem;
  }

  .instrument__screens { inset: 2.8rem 0 3.8rem; }
  .instrument__finder { inset: 3.25rem 1.1rem 3.6rem; }
  .instrument__readout { min-height: 215px; }
  .instrument__progress { left: 1.1rem; right: 1.1rem; bottom: 2.35rem; }
  .instrument__foot { left: 1.1rem; right: 1.1rem; bottom: .85rem; }

  .chapter {
    min-height: 114svh;
    padding: 0 calc(3vw + min(31vw, 450px) + 5vw) 7rem 3vw;
  }

  .chapter--hero { min-height: 118svh; }
  .chapter--right { padding-right: 3vw; padding-left: calc(3vw + min(31vw, 450px) + 5vw); }
  .chapter__copy { top: 18svh; }
  .chapter__copy--hero { top: 18svh; }

  h1 { max-width: 9ch; font-size: clamp(5rem, 9vw, 10rem); }
  h2 { max-width: 8.2ch; font-size: clamp(4.5rem, 7.4vw, 8rem); }
  .chapter__copy--compact h2 { font-size: clamp(3.7rem, 5.9vw, 6.2rem); }

  .chapter__coordinate,
  .chapter__note { top: auto; right: 3vw; bottom: 4vh; }

  .chapter__note { display: block; }

  .chapter--right .chapter__copy { margin-left: auto; }
  .chapter--right .chapter__note { right: auto; left: 3vw; }

  .rig-tag { right: auto; left: 3vw; bottom: 4vh; }

  .calibration-proof { grid-template-columns: 1fr .62fr 1fr; }
  .calibration-proof__reading { grid-column: auto; grid-row: auto; }

  .download {
    min-height: 980px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 9vw;
    padding: 7rem 8vw 0;
  }

  .download__phone { align-self: end; width: min(31vw, 480px); height: 880px; }
  .site-foot { padding: 5rem 3vw 1.5rem; }
  .site-foot__links { width: min(56vw, 760px); margin-left: auto; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .chapter__copy { opacity: 1; transform: none; }
  .scene { transform: scale(1.035); }
  .scene-cloud { display: none; }
}
