:root {
  --design-font-token: "annotation:pass annotation* annotation:* annotation:**";
  --snowfield: #F4F1EA;
  --mist-gray: #C9D0CC;
  --lichen-sage: #8C9B88;
  --glacial-blue: #A9B9C7;
  --basalt-ink: #22282B;
  --clay-shadow: #A98572;
  --warning-amber: #D7B56D;
  --deep-pine: #39483E;
  --veil: #DDE5E2;
  --display: "Jost", "Futura", "Trebuchet MS", sans-serif;
  --interface: "Outfit", "Inter", Arial, sans-serif;
  --technical: "IBM Plex Sans", "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--snowfield);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--basalt-ink);
  font-family: var(--interface);
  background:
    radial-gradient(circle at 18% 12%, rgba(169, 185, 199, 0.28), transparent 28rem),
    radial-gradient(circle at 82% 34%, rgba(201, 208, 204, 0.55), transparent 32rem),
    linear-gradient(135deg, var(--snowfield) 0%, var(--veil) 56%, var(--mist-gray) 100%);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

svg { display: block; overflow: visible; }

.weather-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.fog {
  position: absolute;
  width: 48vw;
  height: 42vw;
  border-radius: 42% 58% 61% 39% / 48% 42% 58% 52%;
  background: rgba(244, 241, 234, 0.56);
  filter: blur(36px);
  animation: fogDrift 24s ease-in-out infinite alternate;
}

.fog-a { left: -14vw; top: 12vh; }
.fog-b { right: -18vw; top: 4vh; animation-delay: -8s; background: rgba(221, 229, 226, 0.52); }
.fog-c { left: 28vw; bottom: -18vw; animation-delay: -15s; background: rgba(201, 208, 204, 0.36); }

.coordinate-strip {
  position: fixed;
  z-index: 20;
  left: 50%;
  top: 1.15rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
  padding: 0.32rem;
  border: 1px solid rgba(57, 72, 62, 0.16);
  border-radius: 999px;
  background: rgba(244, 241, 234, 0.54);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 55px rgba(34, 40, 43, 0.06);
}

.coordinate-strip a {
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  font: 500 0.7rem/1 var(--technical);
  letter-spacing: 0.08em;
  color: rgba(34, 40, 43, 0.56);
  transition: background 600ms ease, color 600ms ease;
}

.coordinate-strip a.active,
.coordinate-strip a:hover {
  background: rgba(57, 72, 62, 0.12);
  color: var(--deep-pine);
}

.scene {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: clamp(5rem, 8vw, 8rem) clamp(1.3rem, 6vw, 6rem);
  overflow: hidden;
}

.scene-origin {
  display: grid;
  place-items: center;
}

.wordmark-wrap {
  text-align: center;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(12px) scale(0.985);
  animation: revealWord 2s ease forwards 0.45s;
}

.microtag,
.eyebrow,
.blob-panel small,
.archive-icon span {
  font-family: var(--technical);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: rgba(34, 40, 43, 0.48);
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  line-height: 0.94;
}

h1 {
  margin-top: 0.75rem;
  font-size: clamp(2.2rem, 7vw, 7.8rem);
}

h2 {
  margin-top: 1rem;
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 8.6rem);
}

p {
  max-width: 34rem;
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  line-height: 1.65;
  color: rgba(34, 40, 43, 0.64);
}

.drift-icon {
  position: absolute;
  width: clamp(4rem, 8vw, 8rem);
  height: clamp(4rem, 8vw, 8rem);
  padding: 1.25rem;
  border-radius: 42% 58% 61% 39% / 48% 42% 58% 52%;
  background: rgba(244, 241, 234, 0.58);
  box-shadow: inset 0 0 0 1px rgba(57, 72, 62, 0.08), 0 28px 70px rgba(34, 40, 43, 0.08);
  filter: blur(11px);
  opacity: 0.22;
  animation: iconPart 2.4s ease forwards, floatSlow 13s ease-in-out infinite alternate;
}

.drift-icon svg,
.blob-panel svg,
.archive-icon svg,
.cut-icons {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drift-one { left: 16vw; top: 29vh; color: var(--lichen-sage); }
.drift-two { right: 19vw; top: 23vh; color: var(--glacial-blue); animation-delay: 0.22s, -4s; }
.drift-three { left: 62vw; bottom: 23vh; color: var(--clay-shadow); animation-delay: 0.42s, -8s; }

.ridge-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9vh;
  width: 100%;
  height: 23vh;
}

.ridge-line path {
  fill: none;
  stroke: rgba(57, 72, 62, 0.42);
  stroke-width: 2.2;
  stroke-dasharray: 1300;
  stroke-dashoffset: 1300;
  animation: drawRidge 2.4s ease forwards 1.65s;
}

.ridge-line .soft {
  stroke: rgba(140, 155, 136, 0.2);
  stroke-width: 1.2;
  animation-delay: 1.95s;
}

.scene-ridge {
  padding-top: 14vh;
}

.section-copy {
  position: relative;
  z-index: 3;
}

.ridge-copy { margin-left: 4vw; }

.ridge-map {
  position: absolute;
  inset: auto 0 0 0;
  height: 68vh;
}

.mountain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fill-snow {
  fill: rgba(244, 241, 234, 0.66);
  stroke: rgba(57, 72, 62, 0.16);
  stroke-width: 2;
}

.contour {
  fill: none;
  stroke: rgba(57, 72, 62, 0.28);
  stroke-width: 1.6;
}

.contour.faint { stroke: rgba(140, 155, 136, 0.16); filter: blur(1.8px); }

.blob-panel {
  position: absolute;
  width: clamp(11rem, 18vw, 16rem);
  min-height: 8rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(57, 72, 62, 0.12);
  border-radius: 42% 58% 61% 39% / 48% 42% 58% 52%;
  background: rgba(244, 241, 234, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(34, 40, 43, 0.08), inset 0 18px 40px rgba(255,255,255,0.35);
  color: var(--deep-pine);
  filter: blur(1.5px);
  transition: filter 700ms ease, transform 700ms ease, background 700ms ease;
}

.blob-panel svg { width: 2.4rem; height: 2.4rem; margin-bottom: 1rem; }
.blob-panel b { display: block; margin-top: 0.55rem; font: 600 0.95rem/1.2 var(--display); letter-spacing: 0.04em; }
.blob-panel.amber { color: var(--warning-amber); }
.pin-a { left: 17%; top: 24%; }
.pin-b { left: 45%; top: 5%; border-radius: 54% 46% 44% 56% / 44% 58% 42% 56%; }
.pin-c { right: 13%; top: 30%; border-radius: 52% 48% 61% 39% / 52% 39% 61% 48%; }

[data-inspect].inspected,
[data-inspect]:hover {
  filter: blur(0) saturate(1.04);
  opacity: 1;
  transform: translateY(-6px) scale(1.015);
}

.scene-strata {
  display: grid;
  grid-template-columns: minmax(16rem, 0.85fr) minmax(20rem, 1.25fr);
  gap: 6vw;
  align-items: center;
}

.strata-copy { align-self: start; margin-top: 7vh; }

.cutaway {
  position: relative;
  min-height: 68vh;
  border-radius: 42% 58% 51% 49% / 38% 36% 64% 62%;
  padding: clamp(1.4rem, 3vw, 3rem);
  background: rgba(244, 241, 234, 0.42);
  border: 1px solid rgba(57, 72, 62, 0.1);
  box-shadow: inset 0 2rem 5rem rgba(255,255,255,0.45), 0 3rem 7rem rgba(34,40,43,0.07);
  overflow: hidden;
  filter: blur(1.2px);
  transition: filter 800ms ease, transform 800ms ease;
}

.band {
  position: relative;
  z-index: 1;
  height: 13.2%;
  margin: 0.8% 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8% 0 12%;
  border-radius: 999px 48% 999px 52%;
  font-family: var(--technical);
  color: rgba(34,40,43,0.68);
  transform: translateX(var(--shift, 0));
}

.band span { font: 600 0.86rem/1 var(--display); letter-spacing: 0.1em; text-transform: lowercase; }
.band em { font-style: normal; font-size: 0.82rem; color: rgba(34,40,43,0.46); }
.band-material { --shift: -4%; background: rgba(201, 208, 204, 0.64); }
.band-source { --shift: 5%; background: rgba(169, 185, 199, 0.44); }
.band-dependency { --shift: -1%; background: rgba(140, 155, 136, 0.34); }
.band-license { --shift: 8%; background: rgba(244, 241, 234, 0.8); }
.band-vulnerability { --shift: -6%; background: rgba(215, 181, 109, 0.36); }
.band-maintenance { --shift: 3%; background: rgba(169, 133, 114, 0.3); }

.cut-icons {
  position: absolute;
  inset: 4% 4%;
  width: 92%;
  height: 92%;
  color: rgba(57,72,62,0.65);
  pointer-events: none;
}

.marker { fill: rgba(244,241,234,0.44); stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.marker.amber { color: var(--warning-amber); }

.scene-archive {
  display: grid;
  align-items: end;
  min-height: 112vh;
}

.archive-contours {
  position: absolute;
  inset: 4vh 0 auto 0;
  width: 100%;
  height: 62vh;
  filter: blur(0.8px);
}

.archive-contours path {
  fill: none;
  stroke: rgba(57,72,62,0.16);
  stroke-width: 1.5;
}

.archive-cluster {
  position: absolute;
  inset: 12vh 8vw auto auto;
  width: min(45rem, 76vw);
  height: 45vh;
}

.archive-icon {
  position: absolute;
  width: 8rem;
  height: 8rem;
  padding: 1.35rem;
  display: grid;
  gap: 0.6rem;
  place-items: center;
  text-align: center;
  color: var(--deep-pine);
  border-radius: 48% 52% 60% 40% / 58% 44% 56% 42%;
  background: rgba(244, 241, 234, 0.56);
  border: 1px solid rgba(57,72,62,0.1);
  box-shadow: 0 28px 70px rgba(34,40,43,0.07);
  filter: blur(3px);
  transition: filter 700ms ease, transform 700ms ease;
}

.archive-icon svg { width: 2.6rem; height: 2.6rem; }
.archive-icon:nth-child(1) { left: 5%; top: 48%; }
.archive-icon:nth-child(2) { left: 34%; top: 10%; color: var(--clay-shadow); }
.archive-icon:nth-child(3) { right: 18%; top: 42%; color: var(--glacial-blue); }
.archive-icon:nth-child(4) { right: 2%; top: 4%; color: var(--lichen-sage); }
.archive-icon.clear { filter: blur(0); }

.archive-copy {
  justify-self: end;
  max-width: 36rem;
  padding-bottom: 8vh;
}

.quiet-action {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(57,72,62,0.22);
  background: rgba(244, 241, 234, 0.48);
  font: 500 0.8rem/1 var(--technical);
  letter-spacing: 0.1em;
  color: var(--deep-pine);
  transition: background 600ms ease, transform 600ms ease;
}

.quiet-action:hover { background: rgba(57,72,62,0.1); transform: translateY(-3px); }

.inspection-lens {
  position: fixed;
  z-index: 30;
  left: 0;
  top: 0;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(244,241,234,0.16), rgba(169,185,199,0.08) 46%, transparent 70%);
  box-shadow: 0 0 0 1px rgba(57,72,62,0.05), inset 0 0 35px rgba(244,241,234,0.2);
  backdrop-filter: blur(1px);
  transition: opacity 500ms ease;
}

body.lens-active .inspection-lens { opacity: 1; }

@keyframes revealWord {
  to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

@keyframes iconPart {
  to { opacity: 0.76; filter: blur(4px); }
}

@keyframes drawRidge {
  to { stroke-dashoffset: 0; }
}

@keyframes fogDrift {
  0% { transform: translate3d(-2vw, -1vh, 0) scale(1); }
  100% { transform: translate3d(5vw, 3vh, 0) scale(1.08); }
}

@keyframes floatSlow {
  0% { margin-top: -0.5rem; }
  100% { margin-top: 1.1rem; }
}

@media (max-width: 820px) {
  .coordinate-strip { top: auto; bottom: 1rem; }
  .coordinate-strip a { padding: 0.42rem 0.58rem; }
  .scene { padding-inline: 1.2rem; }
  .scene-strata { display: block; }
  .cutaway { margin-top: 3rem; min-height: 34rem; }
  .band { padding-inline: 8%; }
  .band em { display: none; }
  .pin-a { left: 5%; top: 28%; }
  .pin-b { left: 34%; top: 8%; }
  .pin-c { right: 4%; top: 38%; }
  .archive-cluster { inset: 18vh auto auto 1rem; width: calc(100% - 2rem); }
  .archive-icon { width: 6.7rem; height: 6.7rem; }
  .archive-copy { justify-self: start; padding-bottom: 14vh; }
}
