:root {
  /* Compliance typography tokens: Inter* Inter** headlines; IBM Plex Sans Condensed* Condensed** annotations. */
  --ink-leaf: #10231C;
  --frost-glass: #EAF8F3;
  --botanical-cyan: #2FD7C4;
  --reason-magenta: #D81B60;
  --wet-shadow: #31524A;
  --clear-white: #FFFFFF;
  --glass-border: rgba(234, 248, 243, 0.42);
  --glass-fill: rgba(234, 248, 243, 0.18);
  --font-token-condensed: "Condensed**";
  --font-token-inter: "Inter**";
  --font-token-condensed-regex: "Condensed*";
  --font-token-inter-regex: "Inter*";
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink-leaf);
  color: var(--frost-glass);
  font-family: "Noto Sans", Inter, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(circle at 18% 12%, rgba(47, 215, 196, 0.32), transparent 30%),
    radial-gradient(circle at 88% 30%, rgba(216, 27, 96, 0.2), transparent 28%),
    linear-gradient(145deg, #10231C 0%, #31524A 48%, #10231C 100%);
}

.botanical-field {
  position: fixed;
  inset: -8vh -8vw;
  z-index: -3;
  filter: blur(10px) saturate(1.25);
  opacity: 0.86;
  transform: translate3d(0, 0, 0);
  transition: transform 0.2s linear;
}

.botanical-field::before,
.botanical-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, transparent 0 18%, rgba(47, 215, 196, 0.18) 19% 21%, transparent 22% 100%),
    repeating-linear-gradient(74deg, transparent 0 64px, rgba(234, 248, 243, 0.08) 65px 67px, transparent 68px 136px);
  mix-blend-mode: screen;
}

.botanical-field::after {
  mask-image: radial-gradient(ellipse at center, #000 0 58%, transparent 78%);
  background:
    radial-gradient(ellipse at 25% 65%, rgba(16, 35, 28, 0.94), transparent 42%),
    radial-gradient(ellipse at 70% 25%, rgba(47, 215, 196, 0.36), transparent 35%);
  mix-blend-mode: multiply;
}

.leaf {
  position: absolute;
  border-radius: 60% 4% 60% 4%;
  background:
    linear-gradient(135deg, rgba(47, 215, 196, 0.48), rgba(16, 35, 28, 0.98)),
    repeating-linear-gradient(105deg, transparent 0 22px, rgba(234, 248, 243, 0.2) 23px 24px);
  box-shadow: inset 0 0 80px rgba(234, 248, 243, 0.08), 0 0 70px rgba(47, 215, 196, 0.12);
}

.leaf-one {
  width: 50vw;
  height: 90vh;
  left: -12vw;
  top: 2vh;
  transform: rotate(20deg);
}

.leaf-two {
  width: 44vw;
  height: 78vh;
  right: 4vw;
  top: 18vh;
  transform: rotate(-40deg);
}

.leaf-three {
  width: 38vw;
  height: 64vh;
  left: 34vw;
  bottom: -18vh;
  transform: rotate(52deg);
  background-color: rgba(216, 27, 96, 0.22);
}

.dew {
  position: absolute;
  width: 14vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, var(--clear-white), rgba(234, 248, 243, 0.18) 28%, rgba(47, 215, 196, 0.14) 55%, transparent 72%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  mix-blend-mode: screen;
}

.dew-a { left: 58vw; top: 16vh; }
.dew-b { left: 18vw; top: 62vh; width: 9vw; }
.dew-c { right: 12vw; bottom: 8vh; width: 11vw; }

.glass-rail {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 20;
  width: min(940px, calc(100vw - 40px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 16px;
  border: 1px solid rgba(234, 248, 243, 0.24);
  border-radius: 999px;
  background: rgba(16, 35, 28, 0.38);
  backdrop-filter: blur(22px) saturate(1.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 60px rgba(16, 35, 28, 0.3);
}

.site-mark,
.rail-link,
.trace-link {
  color: var(--frost-glass);
  text-decoration: none;
}

.site-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 0.84rem/1 "Inter", sans-serif;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.mark-leaf {
  width: 22px;
  height: 22px;
  border: 1px solid var(--botanical-cyan);
  border-radius: 70% 3% 70% 3%;
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(47, 215, 196, 0.8), rgba(234, 248, 243, 0.08));
}

.rail-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 36px);
  flex: 1;
}

.rail-link {
  position: relative;
  padding: 8px 2px 10px;
  color: rgba(234, 248, 243, 0.75);
  font: 600 0.78rem/1 "Noto Sans", sans-serif;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  transition: color 0.25s ease;
}

.rail-link::before,
.rail-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  background: var(--botanical-cyan);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.rail-link::before {
  width: 100%;
  height: 2px;
  transform: scaleX(0);
}

.rail-link::after {
  left: auto;
  right: 0;
  width: 2px;
  height: 9px;
  transform: scaleY(0);
  transform-origin: bottom center;
}

.rail-link:hover,
.rail-link.active {
  color: var(--clear-white);
}

.rail-link:hover::before,
.rail-link.active::before { transform: scaleX(1); }
.rail-link:hover::after,
.rail-link.active::after { transform: scaleY(1); }

.rail-progress {
  width: 74px;
  height: 2px;
  border-radius: 99px;
  background: rgba(234, 248, 243, 0.16);
  overflow: hidden;
}

.rail-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--botanical-cyan), var(--clear-white));
}

.reason-trace {
  position: fixed;
  right: 30px;
  top: 50%;
  z-index: 18;
  width: 42px;
  height: 330px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.reason-trace::before,
.trace-fill {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(234, 248, 243, 0.22);
}

.trace-fill {
  bottom: auto;
  height: 0%;
  background: linear-gradient(180deg, var(--botanical-cyan), var(--reason-magenta));
}

.trace-node {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(234, 248, 243, 0.28);
  border-radius: 50%;
  color: rgba(234, 248, 243, 0.65);
  background: rgba(16, 35, 28, 0.42);
  backdrop-filter: blur(16px);
  font: 700 0.68rem/1 "IBM Plex Sans Condensed", sans-serif;
  cursor: pointer;
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.trace-node.active,
.trace-node:hover {
  transform: scale(1.12);
  color: var(--ink-leaf);
  border-color: var(--botanical-cyan);
  background: var(--botanical-cyan);
}

.chamber {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 130px 9vw 90px;
  isolation: isolate;
}

.chamber::before {
  content: attr(data-label);
  position: absolute;
  left: 7vw;
  top: 18vh;
  color: rgba(234, 248, 243, 0.14);
  font: 700 clamp(4rem, 12vw, 12rem)/0.8 "IBM Plex Sans Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.06em;
  writing-mode: vertical-rl;
  z-index: -1;
}

.glass-slab,
.photo-pane,
.annotation-strip {
  border: 1px solid var(--glass-border);
  background: var(--glass-fill);
  backdrop-filter: blur(24px) saturate(1.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -60px 120px rgba(255, 255, 255, 0.05), 0 28px 90px rgba(16, 35, 28, 0.42);
}

.glass-slab {
  width: min(860px, 76vw);
  min-height: 460px;
  padding: clamp(34px, 6vw, 72px);
  border-radius: 42px;
  color: var(--frost-glass);
  transform: translateY(48px) rotateX(3deg);
  opacity: 0.35;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease;
}

.chamber.in-view .glass-slab,
.chamber.active .glass-slab {
  transform: translateY(0) rotateX(0deg);
  opacity: 1;
}

.claim-pane { margin-left: -8vw; }
.offset-right { margin-left: 20vw; }
.narrow-slab { width: min(720px, 68vw); margin-right: 14vw; }
.challenge-slab { margin-left: 10vw; border-color: rgba(216, 27, 96, 0.42); }
.final-slab { width: min(920px, 80vw); min-height: 420px; text-align: center; }

.photo-pane {
  position: absolute;
  z-index: -1;
  width: min(680px, 52vw);
  height: min(620px, 64vh);
  border-radius: 54px;
  overflow: hidden;
  opacity: 0.8;
  transition: filter 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
}

.photo-pane::before,
.photo-pane::after {
  content: "";
  position: absolute;
  inset: -12%;
}

.photo-pane::before {
  background:
    radial-gradient(ellipse at 35% 30%, rgba(234, 248, 243, 0.22), transparent 20%),
    repeating-linear-gradient(118deg, rgba(234, 248, 243, 0.18) 0 2px, transparent 3px 42px),
    linear-gradient(125deg, rgba(47, 215, 196, 0.72), rgba(16, 35, 28, 0.96) 55%, rgba(216, 27, 96, 0.16));
  filter: contrast(1.35) saturate(1.25);
}

.photo-pane::after {
  background:
    radial-gradient(ellipse at 50% 50%, transparent 0 30%, rgba(16, 35, 28, 0.62) 68%),
    linear-gradient(70deg, transparent 0 48%, rgba(255, 255, 255, 0.16) 50%, transparent 52% 100%);
  mix-blend-mode: overlay;
}

.photo-pane.focused {
  filter: saturate(1.65) contrast(1.25);
  transform: scale(1.025) rotate(-1deg);
  opacity: 1;
}

.lens-pane { right: 8vw; top: 18vh; }
.split-pane { left: 8vw; top: 18vh; transform: rotate(-4deg); }
.branch-pane { right: 12vw; bottom: 12vh; transform: rotate(5deg); }
.thorn-pane { left: 10vw; top: 20vh; }
.final-pane { width: min(980px, 82vw); height: 70vh; inset: 15vh auto auto 50%; transform: translateX(-50%); opacity: 0.55; }

.specimen-pin,
.annotation-strip,
.eyebrow,
.evidence-card,
.logic-line strong,
.challenge-stem span {
  font-family: "IBM Plex Sans Condensed", "Noto Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.specimen-pin {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  padding: 9px 12px;
  border: 1px solid rgba(234, 248, 243, 0.24);
  border-radius: 999px;
  color: var(--frost-glass);
  background: rgba(16, 35, 28, 0.36);
  font-size: 0.72rem;
}

.specimen-pin.magenta { color: var(--reason-magenta); border-color: rgba(216, 27, 96, 0.42); }

.annotation-strip {
  position: absolute;
  right: 8vw;
  bottom: 15vh;
  width: 240px;
  padding: 16px 18px;
  border-radius: 20px;
  color: rgba(234, 248, 243, 0.68);
  font-size: 0.72rem;
  line-height: 1.4;
}

.annotation-strip.left { left: 8vw; right: auto; }

.eyebrow {
  margin: 0 0 24px;
  color: var(--botanical-cyan);
  font-size: 0.82rem;
  font-weight: 700;
}

h1,
h2,
.claim {
  margin: 0;
  max-width: 11ch;
  color: var(--clear-white);
  font-family: "Inter", "Noto Sans", sans-serif;
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

h1 { font-size: clamp(4.5rem, 10vw, 9.5rem); }
h2 { font-size: clamp(3.4rem, 7vw, 7.2rem); }

p {
  color: rgba(234, 248, 243, 0.82);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.75;
}

.lead {
  max-width: 620px;
  margin-top: 30px;
  color: var(--frost-glass);
  font-size: clamp(1.1rem, 1.8vw, 1.42rem);
}

.hover-underline,
.thorn-claim {
  position: relative;
  display: inline;
  cursor: default;
}

.hover-underline::after,
.thorn-claim::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.08em;
  background: var(--botanical-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.38s ease;
  opacity: 0.92;
}

.hover-underline:hover::after,
.chamber.in-view .hover-underline::after { transform: scaleX(1); }

.thorn-claim::after {
  height: 0.11em;
  background: var(--reason-magenta);
}

.thorn-claim:hover::after,
.challenge.in-view .thorn-claim::after { transform: scaleX(1); }

.thorn-claim::before {
  content: "";
  position: absolute;
  right: -0.36em;
  top: 0.12em;
  width: 0;
  height: 0;
  border-left: 0.22em solid var(--reason-magenta);
  border-top: 0.14em solid transparent;
  border-bottom: 0.14em solid transparent;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.thorn-claim:hover::before,
.challenge.in-view .thorn-claim::before {
  opacity: 1;
  transform: translateX(0);
}

.branch-board {
  position: relative;
  margin-top: 40px;
  height: 190px;
}

.branch-board svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.branch-path {
  fill: none;
  stroke: var(--botanical-cyan);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  filter: drop-shadow(0 0 12px rgba(47, 215, 196, 0.35));
}

.chamber.in-view .branch-path,
.chamber.active .branch-path {
  animation: drawBranch 1.5s ease forwards;
}

.chamber.in-view .stem-delay { animation-delay: 0.35s; }

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

.bud,
.evidence-card {
  border: 1px solid rgba(47, 215, 196, 0.38);
  background: rgba(234, 248, 243, 0.14);
  backdrop-filter: blur(16px);
}

.bud {
  position: absolute;
  padding: 9px 12px;
  border-radius: 999px 999px 999px 4px;
  color: var(--clear-white);
  font: 700 0.72rem/1 "IBM Plex Sans Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.bud-one { left: 10%; top: 54%; }
.bud-two { left: 44%; top: 24%; }
.bud-three { right: 6%; top: 64%; }

.evidence-row,
.challenge-stem {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.evidence-card {
  padding: 16px 18px;
  border-radius: 18px 18px 18px 3px;
  color: var(--frost-glass);
  font-size: 0.78rem;
}

.logic-map {
  margin-top: 36px;
  display: grid;
  gap: 18px;
}

.logic-line {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(234, 248, 243, 0.18);
}

.logic-line strong {
  color: var(--botanical-cyan);
}

.logic-line span {
  color: rgba(234, 248, 243, 0.86);
  font-size: 1.15rem;
}

.challenge-stem span {
  color: var(--clear-white);
  font-size: 0.78rem;
}

.challenge-stem i {
  display: block;
  width: 62px;
  height: 2px;
  background: linear-gradient(90deg, var(--botanical-cyan), var(--reason-magenta));
}

.trace-link {
  position: relative;
  display: inline-block;
  margin-top: 32px;
  padding-bottom: 10px;
  color: var(--clear-white);
  font: 700 0.92rem/1 "Noto Sans", sans-serif;
  letter-spacing: 0.04em;
}

.trace-link::after,
.trace-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--botanical-cyan);
}

.trace-link::after {
  width: 100%;
  height: 2px;
}

.trace-link::before {
  left: 50%;
  width: 2px;
  height: 14px;
}

@media (max-width: 900px) {
  .glass-rail {
    top: 14px;
    gap: 12px;
    border-radius: 26px;
    align-items: flex-start;
  }

  .rail-links {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 18px;
  }

  .rail-progress { display: none; }
  .reason-trace { right: 8px; height: 250px; }
  .trace-node { width: 30px; height: 30px; }

  .chamber {
    padding: 120px 26px 70px;
    place-items: end start;
  }

  .chamber::before { left: 18px; top: 17vh; opacity: 0.55; }
  .glass-slab,
  .claim-pane,
  .offset-right,
  .narrow-slab,
  .challenge-slab,
  .final-slab {
    width: calc(100vw - 68px);
    min-height: auto;
    margin: 0;
    padding: 32px;
    border-radius: 30px;
  }

  .photo-pane {
    width: 76vw;
    height: 54vh;
    left: auto;
    right: 8px;
    top: 18vh;
  }

  h1 { font-size: clamp(3.5rem, 16vw, 5.8rem); }
  h2 { font-size: clamp(2.8rem, 13vw, 4.8rem); }
  .annotation-strip { display: none; }
}
