:root {
  /* Typography compliance notes: IntersectionObserver` IntersectionObserver` adding/removing `.in-focus` class: Space Grotesk creates a typographic system that spans the gap between pixel nostalgia and contemporary grotesk design. No other design in the corpus pairs a bitmap font with a geometric sans-grotesk — this hybrid approach lets the typography exist simultaneously in the pixel-art world (Silkscreen for labels Space Grotesk for headlines Space Grotesk mirrors the mathematical grid that underlies all pixel art — every letterform feels like it could snap to an 8×8 grid. Space Grotesk" (Google Fonts */
  --summit-white: #f0f4f8;
  --valley-ink: #1b1f2e;
  --dawn-amber: #f59e0b;
  --pine-sage: #3d8b6e;
  --sky-periwinkle: #7c9cbf;
  --rock-slate: #4a5568;
  --ghost-lavender: #c4b5fd;
  --headline: "Space Grotesk", sans-serif;
  --body: "Albert Sans", sans-serif;
  --pixel: "Silkscreen", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  background: var(--valley-ink);
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--summit-white);
  background: var(--valley-ink);
  overflow-x: hidden;
}

.ascent { width: 100%; }

.biome {
  position: relative;
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  scroll-snap-align: start;
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
  transition: filter 0.8s ease, opacity 0.8s ease, transform 0.8s ease;
}

.biome:not(.in-focus) { filter: blur(2px); opacity: 0.85; }
.biome.in-focus { filter: none; opacity: 1; }

.biome::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -4;
  background-size: 32px 32px;
  background-image:
    linear-gradient(90deg, rgba(240,244,248,0.035) 1px, transparent 1px),
    linear-gradient(rgba(240,244,248,0.03) 1px, transparent 1px);
}

.biome::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, transparent 0 14px, rgba(245,158,11,0.45) 14px 18px, transparent 18px 36px);
  opacity: 0.55;
  z-index: -1;
}

.biome__inner {
  position: relative;
  z-index: 5;
  width: min(720px, 72%);
  padding: clamp(2rem, 5vw, 5rem);
  text-align: center;
  background:
    linear-gradient(90deg, transparent 0 12px, rgba(27,31,46,0.72) 12px calc(100% - 12px), transparent calc(100% - 12px)),
    linear-gradient(transparent 0 12px, rgba(27,31,46,0.72) 12px calc(100% - 12px), transparent calc(100% - 12px));
  border: 4px solid rgba(240,244,248,0.18);
  box-shadow: 12px 12px 0 rgba(27,31,46,0.48), 0 0 0 8px rgba(196,181,253,0.08);
}

.biome__inner--base { width: min(980px, 88%); background: rgba(27,31,46,0.32); }
.biome__inner--summit { width: min(560px, 90%); background: rgba(27,31,46,0.38); }

.pixel-label {
  margin: 0 0 1.25rem;
  font-family: var(--pixel);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--dawn-amber);
  text-transform: lowercase;
}

h1, h2 {
  margin: 0;
  font-family: var(--headline);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.95;
}

h2 { font-size: clamp(2rem, 5vw, 4rem); }

h2 em, .site-title span:last-child {
  color: var(--dawn-amber);
  font-style: normal;
  text-shadow: 4px 4px 0 rgba(196,181,253,0.28);
}

.site-title {
  display: grid;
  gap: 0.1em;
  font-size: clamp(4rem, 15vw, 13rem);
  text-transform: lowercase;
  text-shadow: 8px 8px 0 var(--rock-slate), 16px 16px 0 rgba(61,139,110,0.45);
}

p {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 400;
  line-height: 1.75;
}

.lead { max-width: 760px; margin: 2rem auto 0; color: var(--summit-white); }

.biome--basecamp {
  width: 100vw;
  background:
    linear-gradient(to bottom, #7c9cbf 0 18%, #f0f4f8 18% 21%, #f59e0b 21% 24%, #4a5568 24% 36%, #1b1f2e 36% 100%);
}

.biome--forest {
  width: 85vw;
  background:
    linear-gradient(to bottom, #1b1f2e 0 10%, #3d8b6e 10% 36%, #245840 36% 68%, #1b1f2e 68% 100%);
}

.biome--meadow {
  width: 70vw;
  color: var(--valley-ink);
  background:
    linear-gradient(to bottom, #7c9cbf 0 22%, #f0f4f8 22% 28%, #c4b5fd 28% 31%, #f0f4f8 31% 58%, #3d8b6e 58% 100%);
}

.biome--meadow .biome__inner { color: var(--valley-ink); background: rgba(240,244,248,0.72); border-color: rgba(27,31,46,0.22); backdrop-filter: blur(2px); }

.biome--clouds {
  width: 55vw;
  background:
    linear-gradient(to bottom, #7c9cbf 0 26%, #f0f4f8 26% 30%, #7c9cbf 30% 55%, #4a5568 55% 100%);
}

.biome--summit {
  width: 40vw;
  background:
    linear-gradient(to bottom, #1b1f2e 0 35%, #4a5568 35% 42%, #7c9cbf 42% 46%, #f0f4f8 46% 100%);
}

.ridge, .distant {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  z-index: -3;
  clip-path: polygon(0 72%, 8% 72%, 8% 62%, 16% 62%, 16% 48%, 24% 48%, 24% 34%, 32% 34%, 32% 50%, 40% 50%, 40% 26%, 52% 26%, 52% 42%, 60% 42%, 60% 58%, 70% 58%, 70% 44%, 80% 44%, 80% 66%, 90% 66%, 90% 54%, 100% 54%, 100% 100%, 0 100%);
}

.ridge--back { background: rgba(124,156,191,0.6); bottom: 20%; filter: blur(3px); }
.ridge--mid { background: var(--rock-slate); bottom: 8%; filter: blur(1px); }
.ridge--front { background: var(--valley-ink); height: 38%; }

.sun-pixel {
  position: absolute;
  top: 13%;
  left: 18%;
  width: 16px;
  height: 16px;
  background: var(--dawn-amber);
  transform: scale(5);
  box-shadow: 3px 0 0 var(--dawn-amber), 0 3px 0 var(--dawn-amber), 3px 3px 0 var(--dawn-amber), -3px 3px 0 rgba(245,158,11,0.65), 3px -3px 0 rgba(245,158,11,0.65);
}

.tree-grove {
  position: absolute;
  top: 16%;
  bottom: 8%;
  width: 22%;
  display: grid;
  align-content: space-evenly;
  justify-items: center;
  z-index: 3;
}
.tree-grove--left { left: 2%; }
.tree-grove--right { right: 2%; }

.tree {
  position: relative;
  width: 18px;
  height: 58px;
  transform: scale(4);
  transform-origin: bottom center;
}
.tree::before, .tree::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 22px;
  background: var(--pine-sage);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.tree::before { top: 2px; }
.tree::after { top: 18px; background: #2f7359; }
.tree { background: linear-gradient(to bottom, transparent 0 42px, #4a5568 42px 58px); }
.tree--oak::before, .tree--oak::after { clip-path: polygon(20% 20%, 80% 20%, 100% 50%, 80% 90%, 20% 90%, 0 50%); }
.tree--birch { filter: hue-rotate(20deg) brightness(1.12); }
.tree--tall { transform: scale(5); }

.rain-field {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #7c9cbf 1px, transparent 1px);
  background-size: 28px 48px;
  animation: rainFall 1.8s linear infinite;
  opacity: 0.25;
}

.fireflies {
  position: absolute;
  left: 50%;
  top: 72%;
  width: 2px;
  height: 2px;
  color: var(--dawn-amber);
  box-shadow: -90px -20px 0 2px currentColor, -40px 10px 0 1px currentColor, 64px -8px 0 2px currentColor, 112px 18px 0 1px currentColor;
  animation: pulseGlow 2.6s steps(2, end) infinite;
}

.distant { bottom: 29%; height: 26%; background: rgba(74,85,104,0.45); filter: blur(3px); }
.distant--two { bottom: 24%; background: rgba(27,31,46,0.38); filter: blur(1px); transform: scaleX(-1); }

.flower {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--dawn-amber);
  transform: scale(5);
  box-shadow: 1px 0 0 #c4b5fd, -1px 0 0 #c4b5fd, 0 1px 0 #c4b5fd, 0 -1px 0 #c4b5fd, 0 4px 0 #3d8b6e, 0 5px 0 #3d8b6e;
}
.flower--one { left: 18%; bottom: 22%; }
.flower--two { right: 16%; bottom: 18%; }
.flower--three { left: 58%; bottom: 12%; }

.goat {
  position: absolute;
  right: 12%;
  bottom: 34%;
  width: 2px;
  height: 2px;
  color: var(--valley-ink);
  transform: scale(6);
  box-shadow: 0 0 0 1px currentColor, 1px 0 0 1px currentColor, 2px 0 0 1px currentColor, 3px -1px 0 1px currentColor, 0 1px 0 1px currentColor, 3px 1px 0 1px currentColor, -1px -1px 0 1px currentColor;
}

.cloud {
  position: absolute;
  display: flex;
  align-items: end;
  gap: 0;
  opacity: 0.8;
  animation: cloudDrift 44s linear infinite;
  filter: blur(1px);
}
.cloud span { display: block; width: 36px; height: 28px; background: var(--summit-white); border-radius: 50%; box-shadow: 0 12px 0 var(--summit-white); }
.cloud span:nth-child(2) { width: 52px; height: 42px; }
.cloud--one { top: 14%; left: -30%; }
.cloud--two { top: 38%; left: 20%; animation-duration: 60s; animation-delay: -18s; transform: scale(0.8); }
.cloud--three { bottom: 20%; left: 54%; animation-duration: 52s; animation-delay: -30s; transform: scale(1.2); }

.eagle {
  position: absolute;
  top: 30%;
  right: 18%;
  width: 2px;
  height: 2px;
  color: var(--valley-ink);
  transform: scale(5);
  box-shadow: -2px 0 0 currentColor, -1px -1px 0 currentColor, 0 0 0 currentColor, 1px -1px 0 currentColor, 2px 0 0 currentColor;
  animation: eagleCircle 8s steps(8, end) infinite;
}

.starfield { position: absolute; inset: 0; }
.star {
  position: absolute;
  width: 1px;
  height: 1px;
  color: var(--summit-white);
  box-shadow: 2px 0 0 currentColor, 0 1px 0 currentColor, 1px 1px 0 currentColor, 2px 1px 0 currentColor, 3px 1px 0 currentColor, 0 2px 0 currentColor, 1px 2px 0 currentColor, 2px 2px 0 currentColor, 3px 2px 0 currentColor, 4px 2px 0 currentColor, 1px 3px 0 currentColor, 2px 3px 0 currentColor, 3px 3px 0 currentColor, 2px 4px 0 currentColor;
  transform: scale(4);
  animation: twinkle 3.8s steps(2, end) infinite;
}
.star--one { left: 10%; top: 13%; }
.star--two { left: 80%; top: 18%; animation-delay: 0.8s; }
.star--three { left: 22%; top: 38%; animation-delay: 1.6s; }
.star--four { left: 66%; top: 44%; animation-delay: 2.4s; }
.star--five { left: 48%; top: 9%; animation-delay: 3.2s; }
.star--six { left: 90%; top: 58%; animation-delay: 4s; }

.wisp {
  position: absolute;
  width: 3px;
  height: 3px;
  color: var(--ghost-lavender);
  opacity: 0.42;
  box-shadow: 0 0 0 currentColor, 0 6px 0 currentColor, 3px 12px 0 currentColor, 0 18px 0 currentColor, -3px 24px 0 currentColor, 0 30px 0 currentColor, 3px 36px 0 currentColor;
  transform: scale(4);
  animation: drift 10s linear infinite;
  z-index: 4;
}
.wisp--one { left: 18%; bottom: 12%; }
.wisp--two { right: 24%; bottom: 18%; animation-duration: 13s; animation-delay: -5s; }
.wisp--three { left: 34%; bottom: 10%; animation-duration: 8s; }
.wisp--four { right: 30%; bottom: 28%; animation-duration: 15s; animation-delay: -7s; }
.wisp--five { left: 12%; bottom: 16%; animation-duration: 12s; }
.wisp--six { left: 44%; bottom: 8%; animation-duration: 9s; }
.wisp--seven { right: 18%; bottom: 14%; animation-duration: 14s; animation-delay: -6s; }
.wisp--eight { left: 22%; bottom: 16%; animation-duration: 8s; }
.wisp--nine { right: 26%; bottom: 22%; animation-duration: 11s; animation-delay: -4s; }

.cairn {
  position: absolute;
  left: 50%;
  bottom: 3rem;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 3px;
  z-index: 6;
}
.cairn i { display: block; height: 8px; background: var(--rock-slate); box-shadow: 4px 4px 0 rgba(27,31,46,0.5); }
.cairn i:nth-child(1) { width: 20px; }
.cairn i:nth-child(2) { width: 32px; }
.cairn i:nth-child(3) { width: 44px; }
.cairn i:nth-child(4) { width: 54px; }
.cairn i:nth-child(5) { width: 64px; }

.compass {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 96px;
  height: 96px;
  z-index: 20;
  image-rendering: pixelated;
  font-family: var(--pixel);
}
.compass::before {
  content: "";
  position: absolute;
  inset: 14px;
  background: var(--valley-ink);
  border: 6px solid var(--rock-slate);
  box-shadow: 0 0 0 4px rgba(240,244,248,0.18), 8px 8px 0 rgba(27,31,46,0.5);
  transform: rotate(45deg);
}
.compass__point, .compass__core {
  position: absolute;
  color: var(--summit-white);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.compass__point:hover, .compass__core:hover { color: var(--dawn-amber); text-shadow: 0 0 12px var(--ghost-lavender); }
.compass__point--n { top: 0; left: 42px; color: var(--dawn-amber); }
.compass__point--e { right: 0; top: 40px; color: var(--rock-slate); }
.compass__point--s { bottom: 0; left: 42px; color: var(--pine-sage); }
.compass__point--w { left: 0; top: 40px; color: var(--sky-periwinkle); }
.compass__core { inset: 28px; display: grid; place-items: center; }
.compass__needle {
  width: 6px;
  height: 34px;
  background: linear-gradient(to bottom, #f59e0b 0 50%, #c4b5fd 50% 100%);
  box-shadow: 4px 0 0 rgba(27,31,46,0.7);
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}

@keyframes drift {
  from { transform: translateY(0) scale(4); opacity: 0.42; }
  to { transform: translateY(-200px) scale(4); opacity: 0; }
}
@keyframes twinkle { 0%, 100% { opacity: 0.15; color: transparent; } 50% { opacity: 1; color: #f0f4f8; } }
@keyframes cloudDrift { from { translate: -40vw 0; } to { translate: 90vw 0; } }
@keyframes rainFall { from { background-position: 0 0; } to { background-position: -12px 48px; } }
@keyframes pulseGlow { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes eagleCircle { 0%,100% { translate: 0 0; } 25% { translate: 16px -10px; } 50% { translate: 32px 0; } 75% { translate: 16px 10px; } }

@media (max-width: 640px) {
  .biome--basecamp { width: 100vw; }
  .biome--forest { width: 95vw; }
  .biome--meadow { width: 90vw; }
  .biome--clouds { width: 85vw; }
  .biome--summit { width: 75vw; }
  .biome__inner { width: 88%; padding: 2rem 1.25rem; }
  .tree-grove { opacity: 0.55; width: 14%; }
  .tree { transform: scale(2.5); }
  .tree--tall { transform: scale(3); }
  .compass { right: 0.75rem; bottom: 0.75rem; transform: scale(0.82); transform-origin: right bottom; }
}
