:root {
  color-scheme: dark;
  --bg: #0c1015;
  --text: #edf1f5;
  --muted: #82909e;
  --accent: #83b6ed;
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  scroll-behavior: smooth;
}
body {
  position: fixed;
  inset: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 7px;
}
.navigation {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 5.5vw;
  pointer-events: none;
}
.navigation a {
  pointer-events: auto;
}
.wordmark {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand-dot {
  color: var(--accent);
}
.launch {
  font-size: 12px;
  border: 1px solid #36424e;
  border-radius: 30px;
  padding: 12px 20px;
  background: #0c1015c9;
}
.launch span {
  margin-left: 18px;
  color: var(--accent);
}
.launch:hover {
  background: #1b2733;
}
.scroll-story {
  height: 950vh;
  height: 950svh;
  position: relative;
}
.stage {
  position: fixed;
  inset: 0 0 auto;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.ambient {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 76% 48%,
    #17334a40 0%,
    transparent 54%
  );
  pointer-events: none;
}
.intro,
.mesh-copy {
  position: absolute;
  z-index: 5;
  left: 9vw;
  top: 50%;
  transform: translateY(-50%);
  width: 38vw;
  pointer-events: none;
  will-change: opacity, transform;
}
.intro-brand {
  display: flex;
  align-items: center;
  gap: 0.2em;
  font-size: clamp(60px, 7vw, 108px);
  margin-bottom: 25px;
}
.logo {
  display: block;
  width: 0.8em;
  height: 0.8em;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.86;
}
h1 {
  font-size: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}
p {
  font-size: clamp(18px, 2.1vw, 28px);
  line-height: 1.45;
  color: #a0adb9;
  margin: 0;
  font-weight: 350;
}
.mesh-copy {
  opacity: 0;
  transform: translateY(calc(-50% + 25px));
}
.intro p {
  font-size: clamp(16px, 1.6vw, 24px);
}
.mesh-copy h2 {
  font-size: clamp(30px, 4.2vw, 64px);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -0.01em;
  margin: 22px 0;
}
.model-wrap {
  position: absolute;
  inset: 0;
  transform: none;
}
#scene {
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#scene canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.load-status {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.load-status[hidden] {
  display: none;
}
.bottom-line {
  position: absolute;
  z-index: 6;
  bottom: 40px;
  left: 5.5vw;
  right: 5.5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.scroll-cue {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font:
    11px ui-monospace,
    monospace;
  letter-spacing: 0.4px;
}
.scroll-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 42px;
  border: 1px solid #36424e;
  border-radius: 20px;
  color: #dae5f0;
}
.progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #1b2631;
}
.progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.scroll-target {
  position: absolute;
  top: 215vh;
  top: 215svh;
  width: 1px;
  height: 1px;
}
@media (max-width: 700px) {
  .navigation {
    padding: 20px 6vw;
  }
  .launch {
    padding: 10px 15px;
  }
  .intro,
  .mesh-copy {
    left: 8vw;
    top: 19%;
    width: 84vw;
    transform: none;
  }
  .intro-brand {
    font-size: clamp(48px, 12vw, 62px);
    margin-bottom: 14px;
  }
  .intro p {
    font-size: 18px;
  }
  .mesh-copy h2 {
    font-size: 34px;
    margin: 15px 0;
  }
  .bottom-line {
    bottom: 24px;
    left: 6vw;
    right: 6vw;
    gap: 12px;
  }
  .scroll-cue {
    font-size: 9px;
    gap: 8px;
  }
  .scroll-icon {
    width: 24px;
    height: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .intro,
  .mesh-copy,
  .model-wrap {
    will-change: auto;
  }
}

.analysis-copy {
  display: grid;
  position: absolute;
  z-index: 5;
  left: 57vw;
  top: 45%;
  transform: translateY(-50%);
  width: 34vw;
  opacity: 0;
  pointer-events: none;
}
.analysis-stage {
  grid-area: 1 / 1;
  min-width: 0;
  will-change: opacity, translate, filter;
}
.analysis-copy h2 {
  font-size: clamp(30px, 4.2vw, 64px);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -0.01em;
  margin: 22px 0;
}
.stage-subtitle {
  font-size: 15px;
  line-height: 1.6;
  max-width: 350px;
}
@media (prefers-reduced-motion: reduce) {
  .analysis-stage {
    will-change: auto;
  }
}
.contour-legend {
  opacity: 0;
  margin-top: 32px;
  max-width: 310px;
  font:
    10px ui-monospace,
    monospace;
  color: #a5b7c6;
}
.legend-title {
  margin-bottom: 12px;
}
.color-ramp {
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    #2856c7,
    #179ee2,
    #2dc5b2,
    #e4dc55,
    #f59b42,
    #eb4f4d
  );
}
.legend-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}
.analysis-copy .scale-note {
  font:
    10px ui-monospace,
    monospace;
  color: #82909e;
  margin-top: 16px;
  opacity: 0;
}
@media (max-width: 700px) {
  .analysis-copy {
    left: 8vw;
    top: 19%;
    width: 84vw;
    transform: none;
  }
  .analysis-copy h2 {
    font-size: 34px;
    margin: 15px 0;
  }
  .stage-subtitle {
    font-size: 13px;
  }
  .contour-legend {
    margin-top: 16px;
    max-width: 260px;
  }
  .analysis-copy .scale-note {
    margin-top: 10px;
  }
}

.scroll-viewport {
  position: fixed;
  inset: 0 0 auto;
  height: 100vh;
  height: 100svh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: none;
  touch-action: pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  z-index: 0;
}
.scroll-viewport::-webkit-scrollbar {
  display: none;
}
.navigation {
  padding-top: max(28px, env(safe-area-inset-top));
}
.bottom-line {
  bottom: max(40px, env(safe-area-inset-bottom));
}
@media (max-width: 700px) {
  .navigation {
    padding-top: max(20px, env(safe-area-inset-top));
  }
  .bottom-line {
    bottom: max(24px, env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-viewport {
    scroll-behavior: auto;
  }
}

.navigation-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  color: var(--muted);
}
.navigation-links .launch {
  color: var(--text);
}
.github {
  display: flex;
  color: var(--muted);
}
.github:hover {
  color: var(--text);
}
@media (max-width: 700px) {
  .navigation-links {
    gap: 12px;
    font-size: 10px;
  }
}

.navigation-more {
  position: relative;
  pointer-events: auto;
}
.navigation-more summary {
  cursor: pointer;
  list-style: none;
}
.navigation-more summary::-webkit-details-marker {
  display: none;
}
.navigation-more > div {
  position: absolute;
  right: 0;
  top: 28px;
  min-width: 145px;
  padding: 16px;
  border: 1px solid #36424e;
  border-radius: 12px;
  background: var(--bg);
  display: grid;
  gap: 16px;
}
.navigation-more:focus-within {
  outline-color: var(--accent);
}
