:root {
  /* Typography compliance token from DESIGN.md parser: Sans** */
  --deep-moss: #0D2F24;
  --fern-glass: #2F7D4B;
  --aero-aqua: #B9F4E6;
  --linen-cream: #FFF7E6;
  --porcelain-blue: #DCEFFF;
  --apricot-signal: #FFB38A;
  --silver-highlight: #E8F5EF;
  --serif-primary: "Libre Baskerville", Georgia, serif;
  --serif-secondary: "Cormorant Garamond", Georgia, serif;
  --interface: "Nunito Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--deep-moss);
  background: var(--linen-cream);
  font-family: var(--interface);
  overflow-x: hidden;
}

.linen-field {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 7%, rgba(185, 244, 230, .65), transparent 24rem),
    radial-gradient(circle at 88% 18%, rgba(220, 239, 255, .78), transparent 22rem),
    linear-gradient(115deg, rgba(255, 247, 230, .98), rgba(232, 245, 239, .86) 42%, rgba(255, 247, 230, .94));
  isolation: isolate;
}

.linen-field::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    repeating-linear-gradient(108deg, rgba(13, 47, 36, .045) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(18deg, rgba(47, 125, 75, .04) 0 1px, transparent 1px 32px);
}

.aero-orb {
  position: fixed;
  border-radius: 50%;
  z-index: -2;
  background: radial-gradient(circle at 30% 24%, #FFFFFF 0 8%, var(--aero-aqua) 9% 28%, rgba(185, 244, 230, .25) 62%, transparent 72%);
  box-shadow: inset -18px -22px 42px rgba(47, 125, 75, .22), 0 18px 55px rgba(13, 47, 36, .12);
  animation: orbFloat 10s ease-in-out infinite alternate;
}

.orb-one { width: 12rem; height: 12rem; left: 5vw; top: 20vh; }
.orb-two { width: 19rem; height: 19rem; right: -4rem; top: 38vh; animation-delay: -4s; }
.orb-three { width: 9rem; height: 9rem; left: 56vw; bottom: 8vh; animation-delay: -7s; }

.route-nav {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  display: flex;
  gap: .45rem;
  padding: .45rem;
  border: 1px solid rgba(232, 245, 239, .85);
  border-radius: 999px;
  background: rgba(13, 47, 36, .48);
  box-shadow: inset 0 1px 18px rgba(185, 244, 230, .27), 0 16px 45px rgba(13, 47, 36, .24);
  backdrop-filter: blur(14px);
}

.route-chip {
  color: var(--silver-highlight);
  text-decoration: none;
  font: 800 .68rem/1 var(--interface);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .7rem .78rem;
  border-radius: 999px;
  transition: color .35s ease, background .35s ease, transform .35s ease;
}

.route-chip span { color: var(--apricot-signal); margin-right: .35rem; }
.route-chip.active, .route-chip:hover { color: var(--deep-moss); background: linear-gradient(135deg, var(--silver-highlight), var(--aero-aqua)); transform: translateY(-1px); }

.daily-route {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
}

.route-line {
  position: absolute;
  left: -8vw;
  top: 8vh;
  width: 128vw;
  height: 3px;
  transform: rotate(32deg);
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(47, 125, 75, .12), var(--fern-glass), rgba(185, 244, 230, .75), transparent);
  box-shadow: 0 0 24px rgba(185, 244, 230, .72);
}

.route-marker {
  position: absolute;
  pointer-events: auto;
  width: 1.25rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(232, 245, 239, .9);
  border-radius: 70% 30% 70% 30%;
  background: linear-gradient(145deg, rgba(232, 245, 239, .92), rgba(47, 125, 75, .88));
  box-shadow: inset 0 2px 8px rgba(255,255,255,.55), 0 0 0 rgba(255, 179, 138, 0);
  transform: rotate(32deg);
  cursor: pointer;
  transition: box-shadow .4s ease, scale .4s ease;
}

.route-marker span { display: block; width: .35rem; height: .35rem; border-radius: 50%; margin: .4rem auto 0; background: var(--apricot-signal); }
.route-marker.glowing { box-shadow: inset 0 2px 8px rgba(255,255,255,.55), 0 0 22px rgba(255, 179, 138, .9), 0 0 44px rgba(185, 244, 230, .62); scale: 1.12; }
.marker-1 { left: 10vw; top: 25vh; }
.marker-2 { left: 31vw; top: 42vh; }
.marker-3 { left: 49vw; top: 58vh; }
.marker-4 { left: 68vw; top: 74vh; }
.marker-5 { left: 86vw; top: 88vh; }

.hero-pane, .diagonal-chapter {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 7rem 7vw;
}

.hero-pane {
  grid-template-columns: minmax(18rem, .9fr) minmax(20rem, 1fr);
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
  background:
    linear-gradient(126deg, rgba(47, 125, 75, .82), rgba(185, 244, 230, .28) 47%, rgba(255, 247, 230, .38)),
    linear-gradient(38deg, rgba(13, 47, 36, .84), rgba(47, 125, 75, .18));
  color: var(--linen-cream);
}

.diagonal-chapter { margin-top: -9vh; }
.rinse-pane { clip-path: polygon(0 14%, 100% 0, 100% 86%, 0 100%); background: linear-gradient(144deg, rgba(220, 239, 255, .78), rgba(185, 244, 230, .52), rgba(47, 125, 75, .36)); }
.fold-pane { clip-path: polygon(0 0, 100% 15%, 100% 100%, 0 86%); background: linear-gradient(118deg, rgba(255, 247, 230, .96), rgba(232, 245, 239, .7) 45%, rgba(47, 125, 75, .34)); }
.polish-pane { clip-path: polygon(0 13%, 100% 0, 100% 88%, 0 100%); background: linear-gradient(140deg, rgba(13, 47, 36, .93), rgba(47, 125, 75, .72), rgba(185, 244, 230, .24)); color: var(--linen-cream); }
.settle-pane { min-height: 108vh; margin-top: -10vh; clip-path: polygon(0 0, 100% 12%, 100% 100%, 0 100%); background: radial-gradient(circle at 65% 58%, rgba(185, 244, 230, .28), transparent 24rem), linear-gradient(155deg, #0D2F24, #164934 48%, #081f18); color: var(--linen-cream); }

.pane-gloss {
  position: absolute;
  inset: 1.1rem;
  border: 1px solid rgba(232, 245, 239, .72);
  border-radius: 2.2rem;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,.28), transparent 28%, rgba(185,244,230,.18) 50%, transparent 68%, rgba(255,255,255,.16));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.52), inset 0 -24px 55px rgba(13, 47, 36, .12);
}

.pane-gloss::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18%;
  transform: skewX(-16deg) translateX(-180%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), rgba(185,244,230,.42), transparent);
  animation: glintPass 6.8s ease-in-out infinite;
}

.wordmark-wrap { position: relative; z-index: 2; max-width: 36rem; transform: rotate(-2deg); }
.system-label, .step-number, .tip-row span, .instruction-capsule { font-family: var(--interface); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.system-label { color: var(--aero-aqua); font-size: .78rem; }
h1, h2 { font-family: var(--serif-primary); margin: 0; font-weight: 700; letter-spacing: -.04em; }
h1 { font-size: clamp(4.8rem, 14vw, 12rem); line-height: .85; text-shadow: 0 2px 0 rgba(232,245,239,.2), 0 22px 55px rgba(13,47,36,.45); }
h2 { font-size: clamp(3rem, 7vw, 7.8rem); line-height: .95; }
.opening-instruction, .chapter-panel p { font-family: var(--serif-secondary); font-size: clamp(1.35rem, 2.2vw, 2.05rem); line-height: 1.28; }

.chapter-panel {
  position: relative;
  z-index: 3;
  max-width: 42rem;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid rgba(232, 245, 239, .78);
  border-radius: 2rem;
  background: linear-gradient(145deg, rgba(255, 247, 230, .84), rgba(232, 245, 239, .58) 58%, rgba(185, 244, 230, .34));
  color: var(--deep-moss);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.72), 0 26px 70px rgba(13, 47, 36, .22);
  backdrop-filter: blur(12px);
}

.hero-pane .chapter-panel { justify-self: end; transform: rotate(4deg); }
.offset-right { justify-self: end; transform: rotate(-3deg); }
.offset-left { justify-self: start; transform: rotate(3deg); }
.narrow { max-width: 34rem; }
.final-panel { margin: 0 auto; text-align: center; background: linear-gradient(145deg, rgba(13, 47, 36, .72), rgba(47, 125, 75, .5)); color: var(--linen-cream); }
.step-number { display: inline-block; margin-bottom: .75rem; color: var(--apricot-signal); font-size: .78rem; }

.instruction-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.instruction-list li { margin: .55rem 0; padding-left: 1.6rem; position: relative; font-family: var(--interface); font-weight: 700; }
.instruction-list li::before { content: ""; position: absolute; left: 0; top: .25rem; width: .72rem; height: 1rem; border-radius: 70% 30%; background: var(--fern-glass); box-shadow: inset 0 0 0 1px var(--silver-highlight); }

.dew-bubble {
  position: absolute;
  top: 7rem;
  left: 47%;
  z-index: 5;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--deep-moss);
  text-align: center;
  font: 800 .8rem/1.05 var(--interface);
  letter-spacing: .11em;
  text-transform: uppercase;
  background: radial-gradient(circle at 32% 23%, #fff 0 9%, var(--porcelain-blue) 10% 26%, rgba(185,244,230,.84) 45%, rgba(255,255,255,.28) 70%);
  box-shadow: inset -12px -15px 28px rgba(47,125,75,.2), 0 24px 55px rgba(13,47,36,.28);
  cursor: grab;
  animation: dewSlide 5s ease-in-out infinite alternate;
}

.botanical { position: absolute; z-index: 1; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: .86; }
.botanical .stem { stroke: var(--deep-moss); stroke-width: 5; }
.botanical .leaflets path { stroke: var(--fern-glass); stroke-width: 3.4; fill: rgba(185, 244, 230, .18); }
.fern-left { left: 4vw; bottom: 4vh; width: min(26vw, 22rem); filter: drop-shadow(0 20px 18px rgba(13,47,36,.22)); }
.fern-right { right: 8vw; top: 14vh; width: min(34vw, 24rem); }

.bubble-cluster { position: absolute; left: 10vw; top: 24vh; width: 30rem; height: 28rem; }
.bubble { position: absolute; display: grid; place-items: center; border-radius: 50%; color: var(--deep-moss); font-family: var(--serif-secondary); background: radial-gradient(circle at 28% 22%, white 0 8%, var(--porcelain-blue) 9% 24%, rgba(185,244,230,.42) 62%, rgba(255,255,255,.2)); border: 1px solid rgba(232,245,239,.82); box-shadow: inset -16px -22px 38px rgba(47,125,75,.14), 0 18px 38px rgba(13,47,36,.12); animation: bubbleDrift 7s ease-in-out infinite alternate; }
.bubble em { font-style: italic; font-size: 1.3rem; }
.large { width: 13rem; height: 13rem; left: 2rem; top: 5rem; }
.medium { width: 8rem; height: 8rem; left: 15rem; top: 1rem; animation-delay: -2s; }
.small { width: 5.5rem; height: 5.5rem; left: 18rem; top: 15rem; animation-delay: -4s; }
.tiny { width: 2.4rem; height: 2.4rem; left: 7rem; top: 21rem; animation-delay: -5s; }

.instruction-capsule { position: absolute; z-index: 4; padding: .75rem 1rem; border-radius: 999px; color: var(--deep-moss); font-size: .72rem; background: rgba(255, 179, 138, .86); border: 1px solid rgba(255,247,230,.85); box-shadow: 0 12px 28px rgba(13,47,36,.18); }
.cap-a { left: 16vw; bottom: 20vh; transform: rotate(-8deg); }
.cap-b { right: 13vw; top: 29vh; transform: rotate(7deg); }

.tip-row { display: flex; gap: 1rem; align-items: center; margin-top: 1.4rem; padding: .7rem .9rem; border-radius: 999px; background: rgba(220, 239, 255, .62); }
.tip-row span { font-size: .66rem; color: var(--fern-glass); }
.tip-row strong { font-family: var(--serif-secondary); font-size: 1.25rem; }

.folded-linen { position: absolute; inset: 14vh -4vw auto auto; width: 76vw; height: 58vh; transform: rotate(-10deg); opacity: .72; }
.folded-linen span { position: absolute; inset: auto; height: 36%; width: 72%; border-radius: 2rem; background: linear-gradient(135deg, rgba(255,247,230,.85), rgba(220,239,255,.48), rgba(185,244,230,.34)); box-shadow: inset 0 1px 0 white, 0 18px 45px rgba(13,47,36,.11); }
.folded-linen span:nth-child(1) { left: 8%; top: 0; }
.folded-linen span:nth-child(2) { left: 18%; top: 19%; }
.folded-linen span:nth-child(3) { left: 28%; top: 38%; }
.folded-linen span:nth-child(4) { left: 38%; top: 57%; }
.leaf-tabs { list-style: none; display: flex; gap: .75rem; padding: 0; margin: 1.5rem 0 0; }
.leaf-tabs li { padding: .7rem 1.25rem; border-radius: 68% 32% 65% 35%; color: var(--linen-cream); background: var(--fern-glass); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }

.porcelain-oval { position: absolute; left: 9vw; top: 26vh; width: min(42vw, 34rem); aspect-ratio: 1.42; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(ellipse at 40% 30%, white 0 14%, var(--porcelain-blue) 15% 45%, rgba(185,244,230,.34) 72%); box-shadow: inset -24px -28px 50px rgba(47,125,75,.22), 0 40px 80px rgba(0,0,0,.24); }
.quiet-room { font-family: var(--serif-secondary); font-style: italic; font-size: clamp(2rem, 5vw, 4rem); color: var(--deep-moss); text-align: center; }
.squeegee-arc { position: absolute; left: 16vw; top: 19vh; width: 40vw; height: 36vw; border: 2px solid transparent; border-top-color: var(--aero-aqua); border-left-color: rgba(185,244,230,.42); border-radius: 50%; transform: rotate(-24deg); filter: drop-shadow(0 0 18px rgba(185,244,230,.62)); }
.led-strip { display: flex; gap: .7rem; margin-top: 1.5rem; }
.led-strip i { width: .8rem; height: .8rem; border-radius: 50%; background: var(--apricot-signal); box-shadow: 0 0 18px var(--apricot-signal); animation: ledPulse 1.9s ease-in-out infinite alternate; }
.led-strip i:nth-child(2) { animation-delay: .25s; }
.led-strip i:nth-child(3) { animation-delay: .5s; }
.led-strip i:nth-child(4) { animation-delay: .75s; }

.moonwater-dish { position: absolute; left: 50%; top: 17vh; translate: -50% 0; width: min(58vw, 46rem); height: 19rem; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(185,244,230,.62) 0 24%, rgba(47,125,75,.48) 44%, rgba(13,47,36,.2) 66%, transparent 68%); border: 1px solid rgba(232,245,239,.6); box-shadow: inset 0 12px 34px rgba(255,255,255,.2), 0 30px 80px rgba(0,0,0,.28); }
.moonwater-dish span { position: absolute; left: 18%; right: 18%; top: 45%; height: 7px; border-radius: 999px; background: var(--aero-aqua); box-shadow: 0 0 28px var(--aero-aqua); animation: waterGlow 3s ease-in-out infinite alternate; }
.completion-row { display: flex; justify-content: center; gap: .8rem; margin-top: 1.4rem; }
.completion-row b { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 70% 30%; color: var(--deep-moss); background: var(--aero-aqua); box-shadow: 0 0 24px rgba(185,244,230,.82); font-family: var(--interface); }
.closing-caption { position: absolute; bottom: 6vh; left: 50%; translate: -50% 0; font-family: var(--serif-secondary); font-size: clamp(1.5rem, 3vw, 2.6rem); color: var(--silver-highlight); text-align: center; }

.reveal-pane .chapter-panel, .reveal-pane .botanical, .reveal-pane .bubble-cluster, .reveal-pane .instruction-capsule, .reveal-pane .folded-linen, .reveal-pane .porcelain-oval, .reveal-pane .moonwater-dish, .reveal-pane .closing-caption {
  opacity: 0;
  filter: blur(12px);
  translate: 0 2.5rem;
  transition: opacity 1.1s ease, filter 1.1s ease, translate 1.1s ease;
}

.reveal-pane.in-view .chapter-panel, .reveal-pane.in-view .botanical, .reveal-pane.in-view .bubble-cluster, .reveal-pane.in-view .instruction-capsule, .reveal-pane.in-view .folded-linen, .reveal-pane.in-view .porcelain-oval, .reveal-pane.in-view .moonwater-dish, .reveal-pane.in-view .closing-caption {
  opacity: 1;
  filter: blur(0);
  translate: 0 0;
}

.reveal-pane.in-view .botanical .leaflets path { animation: leafUnfurl 1.6s ease both; }
.reveal-pane.in-view .instruction-list li { animation: labelBloom .7s ease both; }
.reveal-pane.in-view .instruction-list li:nth-child(2) { animation-delay: .16s; }
.reveal-pane.in-view .instruction-list li:nth-child(3) { animation-delay: .32s; }

@keyframes orbFloat { to { transform: translate3d(1.4rem, -1.2rem, 0) scale(1.05); } }
@keyframes dewSlide { to { transform: translateY(4.5rem); } }
@keyframes glintPass { 0%, 42% { transform: skewX(-16deg) translateX(-180%); } 72%, 100% { transform: skewX(-16deg) translateX(720%); } }
@keyframes bubbleDrift { to { transform: translateY(-1.8rem) translateX(.6rem); } }
@keyframes leafUnfurl { from { stroke-dasharray: 1 220; opacity: .1; } to { stroke-dasharray: 220 0; opacity: 1; } }
@keyframes labelBloom { from { opacity: 0; transform: translateX(-1rem); } to { opacity: 1; transform: translateX(0); } }
@keyframes ledPulse { to { background: var(--aero-aqua); box-shadow: 0 0 24px var(--aero-aqua); } }
@keyframes waterGlow { to { transform: scaleX(1.08); opacity: .72; } }

@media (max-width: 820px) {
  .route-nav { left: .6rem; right: .6rem; justify-content: center; flex-wrap: wrap; border-radius: 1.4rem; }
  .route-chip { padding: .55rem .6rem; font-size: .6rem; }
  .hero-pane, .diagonal-chapter { grid-template-columns: 1fr; padding: 8.5rem 1rem 5rem; }
  .hero-pane .chapter-panel, .offset-right, .offset-left { justify-self: stretch; transform: none; }
  .wordmark-wrap { transform: none; margin-bottom: 2rem; }
  .daily-route { display: none; }
  .bubble-cluster, .porcelain-oval, .moonwater-dish { opacity: .44; transform: scale(.78); transform-origin: left top; }
  .fern-left, .fern-right { width: 13rem; opacity: .45; }
  .instruction-capsule { display: none; }
}
