:root {
  color-scheme: light;
  --ml-paper: #f3eee3;
  --ml-paper-bright: #fbf8f0;
  --ml-ink: #24211b;
  --ml-ink-soft: #5f5a50;
  --ml-copper: #9e6828;
  --ml-jade: #176b5a;
  --ml-jade-soft: #79aa94;
  --ml-border: rgba(53, 47, 38, 0.18);
  --ml-focus: 0 0 0 3px rgba(23, 107, 90, 0.24), 0 0 0 6px rgba(246, 241, 231, 0.92);
  --ml-factor: 1.35;
  --gate-shift: 18.225vw;
  --gate-shift-soft: 10.8vw;
  --cloud-travel: 14.85vw;
  --mist-alpha: 0.38;
  --aura-alpha: 0.46;
  --scale-peak: 1.135;
  --wave-amplitude: 17px;
  --fast-loop: 6.7s;
  --medium-loop: 9.3s;
  --slow-loop: 13.3s;
  --particle-loop: 13.3s;
  --waterline: 57%;
  --water-height: 43%;
  --reflection-strength: 0.78;
  --toolbar-height: 74px;
  --safe-inline: clamp(14px, 2.2vw, 34px);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  height: 100%;
  background: var(--ml-paper);
  overflow: hidden;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--ml-ink);
  background: var(--ml-paper);
  overflow: hidden;
}

.ml-page[data-direction="c"] {
  background: #768c83;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 0;
  box-shadow: var(--ml-focus);
}

.ml-skip-link {
  position: fixed;
  z-index: 400;
  top: 8px;
  left: 8px;
  min-height: 44px;
  padding: 12px 16px;
  color: #fff;
  background: var(--ml-jade);
  border-radius: 10px;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.ml-skip-link:focus {
  transform: translateY(0);
}

.ml-toolbar {
  position: fixed;
  z-index: 200;
  top: max(12px, env(safe-area-inset-top));
  right: var(--safe-inline);
  left: var(--safe-inline);
  display: grid;
  grid-template-columns: minmax(190px, 0.75fr) minmax(430px, 1.35fr) minmax(410px, 1fr);
  align-items: center;
  gap: 12px;
  min-height: var(--toolbar-height);
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 18px;
  background: rgba(247, 243, 234, 0.76);
  box-shadow: 0 14px 42px rgba(43, 48, 39, 0.12);
  backdrop-filter: blur(18px) saturate(0.92);
  transition: opacity 220ms ease, transform 220ms ease;
}

.ml-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ml-brand a {
  color: var(--ml-ink);
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.ml-brand > span {
  width: 1px;
  height: 18px;
  background: var(--ml-border);
}

.ml-brand p {
  overflow: hidden;
  margin: 0;
  color: var(--ml-ink-soft);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ml-direction-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  min-width: 0;
  padding: 4px;
  border: 1px solid rgba(49, 43, 35, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.3);
}

.ml-direction-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 7px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.ml-direction-tab small {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(112, 77, 36, 0.28);
  border-radius: 50%;
  color: var(--ml-copper);
  font-family: Georgia, serif;
  font-size: 11px;
}

.ml-direction-tab span {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ml-direction-tab:hover {
  background: rgba(255, 255, 255, 0.5);
}

.ml-direction-tab:active {
  transform: scale(0.985);
}

.ml-direction-tab.is-active {
  color: #f9f6ee;
  background: linear-gradient(135deg, #245f51, #0e4f43);
  box-shadow: 0 8px 22px rgba(16, 75, 63, 0.19);
}

.ml-direction-tab.is-active small {
  color: #f0d4a0;
  border-color: rgba(240, 212, 160, 0.58);
}

.ml-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.ml-intensity-control {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 46px;
  padding: 4px;
  border: 1px solid rgba(49, 43, 35, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.28);
}

.ml-intensity-control > span {
  margin-inline: 6px 4px;
  color: var(--ml-ink-soft);
  font-size: 11px;
}

.ml-intensity-control button {
  min-width: 44px;
  min-height: 38px;
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  color: var(--ml-ink-soft);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.ml-intensity-control button:hover {
  color: var(--ml-ink);
  background: rgba(255, 255, 255, 0.52);
}

.ml-intensity-control button.is-active {
  color: #6f481b;
  background: rgba(184, 138, 68, 0.16);
  box-shadow: inset 0 0 0 1px rgba(157, 104, 40, 0.24);
}

.ml-motion-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 78px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid rgba(49, 43, 35, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  cursor: pointer;
}

.ml-motion-toggle__icon {
  width: 12px;
  height: 14px;
  border-inline: 3px solid currentColor;
}

.ml-motion-toggle[aria-pressed="true"] .ml-motion-toggle__icon {
  width: 0;
  height: 0;
  border: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.ml-stage {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: var(--ml-paper);
  isolation: isolate;
}

.ml-page[data-direction="c"] .ml-stage {
  background: #768c83;
}

.ml-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 540ms cubic-bezier(0.2, 0, 0, 1), visibility 540ms linear;
}

.ml-page.is-initializing .ml-scene {
  transition: none;
}

.ml-scene[hidden] {
  display: block;
}

.ml-scene.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
}

.ml-art-base,
.ml-art-base img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ml-art-base {
  z-index: 0;
  overflow: hidden;
}

.ml-art-base img {
  display: block;
  object-fit: cover;
  transform: scale(1.05);
}

.ml-art-base--a img {
  object-position: 58% 54%;
  filter: saturate(0.76) contrast(1.07) brightness(0.98);
}

.ml-art-base--b img {
  object-position: 55% 48%;
  filter: saturate(0.92) contrast(1.08) brightness(0.88);
  transform: scale(1.12);
}

.ml-art-base--c img {
  object-position: 56% 58%;
  filter: saturate(0.82) contrast(1.02) brightness(0.96);
  transform: scale(1.03);
}

.ml-paper-wash {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 52% 42%, rgba(255, 251, 237, 0.06), rgba(247, 242, 229, 0.28) 54%, rgba(96, 126, 111, 0.18) 100%),
    linear-gradient(106deg, rgba(246, 241, 229, 0.26), transparent 42%, rgba(33, 94, 79, 0.1));
  mix-blend-mode: soft-light;
}

.ml-paper-wash::after {
  content: "";
  position: absolute;
  inset: -20%;
  opacity: 0.11;
  background-image:
    radial-gradient(ellipse 13% 1.4% at 18% 22%, rgba(67, 61, 51, 0.18), transparent 76%),
    radial-gradient(ellipse 17% 1% at 67% 48%, rgba(255, 255, 255, 0.24), transparent 78%),
    radial-gradient(ellipse 11% 1.2% at 42% 73%, rgba(67, 61, 51, 0.14), transparent 76%),
    radial-gradient(ellipse 15% 0.9% at 84% 86%, rgba(255, 255, 255, 0.22), transparent 78%);
  transform: rotate(-1.5deg);
}

.ml-paper-wash--jade {
  background:
    radial-gradient(circle at 72% 48%, rgba(76, 132, 112, 0.3), transparent 42%),
    linear-gradient(115deg, rgba(246, 239, 222, 0.62), rgba(32, 91, 76, 0.2) 61%, rgba(14, 60, 51, 0.34));
  mix-blend-mode: multiply;
}

.ml-paper-wash--rose {
  background:
    radial-gradient(circle at 88% 18%, rgba(159, 91, 78, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(249, 244, 232, 0.06), rgba(23, 80, 67, 0.15));
  mix-blend-mode: soft-light;
}

.ml-canvas {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ml-caption {
  position: absolute;
  z-index: 40;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: clamp(22px, 5.5vw, 92px);
  max-width: min(630px, 48vw);
  padding: 18px 22px 20px;
  border-left: 2px solid rgba(153, 101, 38, 0.58);
  color: #27231c;
  background: linear-gradient(90deg, rgba(249, 246, 238, 0.76), rgba(249, 246, 238, 0.16) 72%, transparent);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.68);
  transition: opacity 220ms ease, transform 220ms ease;
}

.ml-caption p,
.ml-caption h1,
.ml-caption small {
  margin: 0;
}

.ml-caption p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6d4b22;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.15em;
}

.ml-caption p span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(140, 91, 34, 0.42);
  border-radius: 50%;
  font-family: Georgia, serif;
}

.ml-caption h1 {
  margin-top: 8px;
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  font-size: clamp(30px, 3.6vw, 58px);
  font-weight: 520;
  letter-spacing: 0.04em;
  line-height: 1.16;
}

.ml-caption small {
  display: block;
  margin-top: 9px;
  color: #625d53;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.ml-status {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.ml-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Direction A — monumental cloud gates reveal the valley. */

.ml-a-moon {
  position: absolute;
  z-index: 2;
  top: 12%;
  right: 16%;
  width: clamp(240px, 29vmin, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: var(--aura-alpha);
  background:
    radial-gradient(circle, rgba(255, 253, 238, 0.98) 0 24%, rgba(248, 227, 174, 0.58) 35%, rgba(232, 213, 168, 0.18) 55%, transparent 72%);
  box-shadow: 0 0 80px rgba(248, 229, 184, 0.26);
  animation: ml-a-moon-breathe var(--fast-loop) ease-in-out infinite;
}

.ml-a-valley-light {
  position: absolute;
  z-index: 3;
  top: 5%;
  left: 42%;
  width: 25vw;
  height: 96vh;
  opacity: 0.52;
  background: linear-gradient(180deg, rgba(255, 250, 224, 0.58), rgba(214, 190, 132, 0.2) 48%, transparent 88%);
  filter: blur(10px);
  clip-path: polygon(42% 0, 63% 0, 98% 100%, 0 100%);
  mix-blend-mode: screen;
  animation: ml-a-valley-light var(--medium-loop) ease-in-out infinite;
}

.ml-a-cloud {
  position: absolute;
  z-index: 12;
  top: -10vh;
  width: 96vw;
  height: 120vh;
  overflow: visible;
  pointer-events: none;
  will-change: transform, opacity;
}

.ml-a-cloud--left {
  left: -25vw;
  transform-origin: 15% 50%;
  animation: ml-a-cloud-gate-left var(--medium-loop) cubic-bezier(0.36, 0, 0.2, 1) infinite;
}

.ml-a-cloud--right {
  right: -25vw;
  transform-origin: 85% 50%;
  animation: ml-a-cloud-gate-right var(--medium-loop) cubic-bezier(0.36, 0, 0.2, 1) infinite;
}

.ml-a-cloudstream {
  position: absolute;
  z-index: 8;
  left: -30vw;
  width: 165vw;
  height: 34vh;
  border-radius: 48%;
  opacity: var(--mist-alpha);
  background:
    radial-gradient(ellipse 26% 65% at 16% 52%, rgba(255, 255, 250, 0.96), transparent 72%),
    radial-gradient(ellipse 32% 62% at 47% 44%, rgba(209, 226, 217, 0.92), transparent 72%),
    radial-gradient(ellipse 31% 64% at 78% 55%, rgba(254, 251, 240, 0.92), transparent 72%),
    linear-gradient(94deg, transparent, rgba(246, 250, 242, 0.76) 12% 85%, transparent);
  filter: blur(9px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent);
  will-change: transform, opacity;
}

.ml-a-cloudstream--one {
  top: 49%;
  animation: ml-a-cloudstream-one var(--medium-loop) ease-in-out infinite;
}

.ml-a-cloudstream--two {
  top: 68%;
  opacity: var(--mist-alpha-soft);
  animation: ml-a-cloudstream-two var(--slow-loop) ease-in-out -4.5s infinite;
}

.ml-canvas--atmosphere {
  z-index: 15;
  inset: 0;
  opacity: 0.72;
  mix-blend-mode: screen;
}

.ml-a-veil {
  position: absolute;
  z-index: 25;
  top: -18vh;
  left: -38vw;
  width: 72vw;
  height: 140vh;
  opacity: 0.54;
  background: linear-gradient(112deg, transparent 11%, rgba(255, 255, 249, 0.72) 46%, rgba(188, 210, 200, 0.32) 62%, transparent 82%);
  filter: blur(12px);
  transform: rotate(9deg);
  animation: ml-a-veil-pass var(--slow-loop) ease-in-out -7s infinite;
}

/* Direction B — asymmetric celestial mechanics inside ink mist. */

.ml-scene--b {
  color: #eff4ea;
  background: #dce6dc;
}

.ml-b-moon {
  position: absolute;
  z-index: 5;
  top: 19%;
  left: 13%;
  width: clamp(250px, 34vmin, 470px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  opacity: 0.76;
  background: radial-gradient(circle at 37% 35%, #fffdf0, #e8dfc2 54%, #b7cbbb 73%, rgba(72, 108, 94, 0.7));
  box-shadow: 0 0 110px rgba(242, 236, 202, 0.3);
  animation: ml-b-moon-aura var(--slow-loop) ease-in-out infinite;
}

.ml-b-moon span {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background: radial-gradient(circle at 57% 43%, rgba(28, 72, 61, 0.88), rgba(19, 54, 47, 0.96));
  mix-blend-mode: multiply;
  animation: ml-b-moon-phase var(--slow-loop) ease-in-out infinite;
}

.ml-b-gold-sweep {
  position: absolute;
  z-index: 18;
  top: -30vh;
  left: -32vw;
  width: 18vw;
  height: 160vh;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(224, 196, 133, 0.42), transparent);
  filter: blur(10px);
  transform: rotate(14deg);
  mix-blend-mode: screen;
  animation: ml-b-gold-sweep var(--fast-loop) ease-in-out -1.5s infinite;
}

.ml-celestial {
  position: absolute;
  z-index: 10;
  top: 50%;
  right: -4vmin;
  width: min(110vmin, 1040px);
  height: min(110vmin, 1040px);
  overflow: visible;
  transform: translateY(-47%) rotate(-7deg);
  filter: drop-shadow(0 12px 26px rgba(25, 63, 53, 0.12));
}

.ml-celestial path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.ml-celestial__halo,
.ml-celestial__main,
.ml-celestial__counter,
.ml-celestial__ticks {
  transform-origin: 50% 50%;
  transform-box: fill-box;
  will-change: transform, opacity;
}

.ml-celestial__halo path {
  stroke: rgba(237, 229, 195, 0.48);
  stroke-width: 3.2;
  stroke-dasharray: 22 18 3 27 91 34;
}

.ml-celestial__halo {
  animation: ml-b-halo-pulse var(--medium-loop) ease-in-out infinite;
}

.ml-celestial__main path {
  stroke: url(#celestialCopper);
  stroke-width: 4.8;
  stroke-linecap: round;
  stroke-dasharray: 148 42 12 64 236 54;
}

.ml-celestial__main {
  animation: ml-b-orbit-main 44s linear infinite;
}

.ml-celestial__counter path {
  stroke: rgba(66, 127, 105, 0.74);
  stroke-width: 3.1;
  stroke-linecap: round;
  stroke-dasharray: 9 21 86 45 17 62;
}

.ml-celestial__counter {
  animation: ml-b-orbit-counter 52s linear infinite reverse;
}

.ml-celestial__ticks path {
  stroke: rgba(87, 65, 35, 0.44);
  stroke-width: 3;
}

.ml-celestial__ticks {
  animation: ml-b-ticks-drift 18s ease-in-out infinite;
}

.ml-celestial__node {
  fill: #cce4d6;
  stroke: rgba(151, 105, 49, 0.88);
  stroke-width: 3px;
  filter: drop-shadow(0 0 8px rgba(231, 219, 170, 0.92));
}

.ml-celestial__node--two {
  fill: #f1d7a2;
}

.ml-celestial__node--three {
  animation: ml-b-node-pulse var(--fast-loop) ease-in-out infinite;
}

.ml-b-mist {
  position: absolute;
  left: -28vw;
  width: 156vw;
  height: 36vh;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 38% 62% at 22% 50%, rgba(248, 247, 235, 0.88), transparent 72%),
    radial-gradient(ellipse 36% 70% at 54% 52%, rgba(169, 197, 183, 0.82), transparent 73%),
    radial-gradient(ellipse 38% 58% at 82% 47%, rgba(248, 243, 226, 0.84), transparent 72%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent);
  will-change: transform, opacity;
}

.ml-b-mist--behind {
  z-index: 7;
  top: 32%;
  opacity: var(--mist-alpha-soft);
  filter: blur(6px);
  animation: ml-b-mist-behind var(--medium-loop) ease-in-out infinite;
}

.ml-b-mist--front {
  z-index: 17;
  top: 58%;
  opacity: var(--mist-alpha);
  filter: blur(10px);
  animation: ml-b-mist-front var(--slow-loop) ease-in-out -5s infinite;
}

.ml-scene--b .ml-canvas--atmosphere {
  z-index: 16;
  opacity: 0.8;
}

.ml-scene--b .ml-caption {
  color: #eff3e9;
  border-left-color: rgba(221, 190, 128, 0.72);
  background: linear-gradient(90deg, rgba(15, 64, 54, 0.78), rgba(15, 64, 54, 0.24) 76%, transparent);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.ml-scene--b .ml-caption p {
  color: #e8c98d;
}

.ml-scene--b .ml-caption small {
  color: rgba(239, 243, 233, 0.76);
}

/* Direction C — one scene, one continuous atmosphere, one physical water field. */

.ml-scene--c {
  background: #e8eee6;
  --waterline: 57%;
  --water-height: 43%;
  perspective: 1500px;
  perspective-origin: 50% var(--camera-target-y, 44%);
}

.ml-c-camera,
.ml-c-depth {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ml-c-camera {
  z-index: 0;
  overflow: visible;
  transform-style: preserve-3d;
  /* Public camera contract mirrors the shader/JS frame for diagnostics. */
  --intro-progress-active: var(--intro-progress, 1);
  --camera-pitch-active: var(--camera-pitch, 26deg);
  --camera-height-active: var(--camera-height, 1);
  --camera-distance-active: var(--camera-distance, 1);
  --focus-progress-active: var(--focus-progress, 1);
}

.ml-c-depth {
  transform-origin: 50% var(--camera-target-y, 44%);
  backface-visibility: hidden;
}

.ml-page.is-cinematic-intro .ml-c-depth {
  will-change: transform, opacity, filter;
}

.ml-c-depth--backdrop {
  z-index: 0;
  transform: translate3d(0, var(--sky-parallax, 0vh), 0);
  filter: blur(var(--focus-blur, 0px));
}

.ml-c-depth--far {
  z-index: 2;
  transform: translate3d(0, var(--background-parallax, 0vh), 0);
}

.ml-c-depth--mid {
  z-index: 4;
  transform: translate3d(0, var(--midground-parallax, 0vh), 0);
}

.ml-c-depth--peach {
  z-index: 5;
  transform: translate3d(0, var(--peach-parallax, 0vh), 0);
}

.ml-c-depth--water {
  z-index: 12;
}

.ml-c-depth--shore {
  z-index: 18;
  transform: translate3d(0, var(--shore-parallax, 0vh), 0);
}

.ml-c-cinematic-waterline-mist {
  position: absolute;
  z-index: 20;
  top: var(--cinematic-waterline-y, 57%);
  left: -20vw;
  width: 140vw;
  height: clamp(190px, 34vh, 380px);
  opacity: var(--cinematic-waterline-mist-opacity, 0);
  border-radius: 50%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(222, 235, 225, 0.24) 22%, rgba(238, 241, 231, 0.72) 48%, rgba(189, 218, 203, 0.34) 75%, transparent 100%),
    radial-gradient(ellipse 34% 50% at 12% 49%, rgba(248, 246, 235, 0.86), transparent 80%),
    radial-gradient(ellipse 49% 60% at 48% 51%, rgba(202, 225, 211, 0.78), transparent 82%),
    radial-gradient(ellipse 36% 52% at 87% 48%, rgba(248, 243, 232, 0.82), transparent 80%);
  filter: blur(26px);
  transform: translate3d(0, -50%, 0);
  pointer-events: none;
  will-change: top, opacity, transform;
}

.ml-c-depth--foreground {
  z-index: 22;
  opacity: var(--foreground-camera-opacity, 1);
  transform: translate3d(0, var(--foreground-parallax, 0vh), 0);
}

.ml-c-cloud-shadow {
  position: absolute;
  z-index: 3;
  left: -32vw;
  width: 164vw;
  height: 46vh;
  border-radius: 48%;
  background:
    radial-gradient(ellipse 31% 46% at 19% 48%, rgba(38, 82, 68, 0.25), transparent 72%),
    radial-gradient(ellipse 38% 58% at 53% 42%, rgba(55, 98, 82, 0.2), transparent 75%),
    radial-gradient(ellipse 27% 44% at 84% 55%, rgba(68, 106, 91, 0.18), transparent 72%);
  filter: blur(22px);
  mix-blend-mode: multiply;
  will-change: transform, opacity;
}

.ml-c-cloud-shadow--one {
  top: 13%;
  opacity: 0.21;
  animation: ml-c-cloud-shadow-one 11.8s ease-in-out -4.6s infinite;
  translate: var(--cloud-open-left, 0vw) 0;
}

.ml-c-cloud-shadow--two {
  top: 37%;
  left: -54vw;
  width: 208vw;
  height: 38vh;
  opacity: 0.15;
  filter: blur(28px);
  animation: ml-c-cloud-shadow-two 16.4s ease-in-out -9.2s infinite;
  translate: var(--cloud-open-right, 0vw) 0;
}

.ml-c-peach-distance {
  position: absolute;
  z-index: 4;
  top: 41%;
  left: -10vw;
  width: 120vw;
  height: 23vh;
  opacity: 0.34;
  background:
    radial-gradient(ellipse 15% 47% at 14% 58%, rgba(159, 96, 88, 0.28), transparent 74%),
    radial-gradient(ellipse 18% 54% at 79% 52%, rgba(178, 113, 101, 0.24), transparent 75%),
    radial-gradient(ellipse 10% 38% at 93% 63%, rgba(136, 82, 78, 0.2), transparent 74%);
  filter: blur(13px) saturate(0.72);
  mix-blend-mode: multiply;
  animation: ml-c-peach-distance 15.6s ease-in-out -6.1s infinite;
}

.ml-c-horizon-mist {
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 34% 60% at 17% 50%, rgba(255, 252, 244, 0.94), transparent 73%),
    radial-gradient(ellipse 42% 70% at 52% 48%, rgba(195, 218, 205, 0.88), transparent 74%),
    radial-gradient(ellipse 30% 58% at 84% 53%, rgba(255, 248, 236, 0.92), transparent 73%);
  pointer-events: none;
  will-change: transform, opacity;
}

.ml-c-horizon-mist--far {
  z-index: 6;
  top: 43%;
  left: -30vw;
  width: 166vw;
  height: 29vh;
  opacity: calc(var(--mist-alpha) * 0.76);
  filter: blur(13px);
  animation: ml-c-horizon-mist-far 13.4s ease-in-out -5.7s infinite;
}

.ml-c-horizon-mist--near {
  z-index: 18;
  top: calc(var(--shore-camera-top, var(--waterline)) - 8vh);
  left: -48vw;
  width: 202vw;
  height: 22vh;
  opacity: var(--mist-alpha);
  filter: blur(9px);
  animation: ml-c-horizon-mist-near 9.6s ease-in-out -2.8s infinite;
}

.ml-c-water-surface {
  position: absolute;
  z-index: 12;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: transparent;
  contain: layout paint size;
  pointer-events: none;
  will-change: opacity;
}

.ml-canvas--water {
  z-index: 1;
  inset: 0;
  opacity: 1;
}

.ml-c-water-depth {
  display: none;
}

.ml-c-surface-veil {
  position: absolute;
  z-index: 4;
  top: var(--cinematic-waterline-y, 57%);
  left: -72vw;
  width: 62vw;
  height: calc(100% - var(--cinematic-waterline-y, 57%));
  opacity: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 45%, rgba(239, 245, 234, 0.36), rgba(198, 220, 207, 0.15) 46%, transparent 76%);
  filter: blur(17px);
  mix-blend-mode: screen;
  animation: ml-c-surface-veil 13.8s cubic-bezier(0.45, 0, 0.28, 1) -7.2s infinite;
  will-change: transform, opacity;
}

.ml-c-shore-mist {
  position: absolute;
  z-index: 20;
  top: calc(var(--shore-camera-top, var(--waterline)) - 5.5vh);
  left: -44vw;
  width: 194vw;
  height: 15vh;
  opacity: 0.52;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 30% 62% at 15% 50%, rgba(251, 248, 238, 0.82), transparent 75%),
    radial-gradient(ellipse 42% 72% at 53% 48%, rgba(210, 229, 217, 0.72), transparent 77%),
    radial-gradient(ellipse 27% 60% at 88% 53%, rgba(251, 246, 234, 0.78), transparent 75%);
  filter: blur(10px);
  animation: ml-c-shore-mist 10.2s ease-in-out -4.9s infinite;
  pointer-events: none;
  will-change: transform, opacity;
}

.ml-c-branch {
  position: absolute;
  z-index: 22;
  top: -12vh;
  right: -3vw;
  width: min(70vw, 1080px);
  height: auto;
  overflow: visible;
  opacity: 0.9;
  transform-origin: 100% 0;
  filter: saturate(0.74) contrast(1.04) drop-shadow(0 18px 24px rgba(35, 54, 44, 0.13));
  animation: ml-c-branch-sway 10.8s ease-in-out -3.4s infinite;
}

.ml-canvas--petals {
  position: absolute;
  z-index: 26;
  inset: 0;
  pointer-events: none;
}

.ml-c-foreground-haze {
  position: absolute;
  z-index: 28;
  right: -36vw;
  bottom: -13vh;
  width: 112vw;
  height: 34vh;
  opacity: 0.34;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 48% 72% at 65% 78%, rgba(231, 240, 230, 0.46), transparent 74%),
    radial-gradient(ellipse 38% 62% at 14% 72%, rgba(196, 220, 207, 0.24), transparent 76%);
  filter: blur(18px);
  animation: ml-c-foreground-haze 14.8s ease-in-out -8s infinite;
  pointer-events: none;
  will-change: transform, opacity;
}

.ml-scene--c .ml-caption {
  bottom: auto;
  top: clamp(120px, 17vh, 190px);
}

body[data-controls="hidden"] .ml-toolbar,
body[data-controls="hidden"] .ml-caption {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

body[data-paused="true"] .ml-animate,
body[data-paused="true"] .ml-celestial__node,
body.is-document-hidden .ml-animate,
body.is-document-hidden .ml-celestial__node,
.ml-scene:not(.is-active) .ml-animate,
.ml-scene:not(.is-active) .ml-celestial__node {
  animation-play-state: paused !important;
}

/* Main narrative keyframes keep large areas in motion every few seconds. */

@keyframes ml-a-cloud-gate-left {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.02); opacity: 0.97; }
  18% { transform: translate3d(var(--gate-shift-left), -2.2vh, 0) scale(0.94); opacity: 0.7; }
  45% { transform: translate3d(var(--gate-shift-soft-left), 1.8vh, 0) scale(1.01); opacity: 0.84; }
  72% { transform: translate3d(var(--gate-shift-left), -1.1vh, 0) scale(0.96); opacity: 0.74; }
}

@keyframes ml-a-cloud-gate-right {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.03); opacity: 0.98; }
  18% { transform: translate3d(var(--gate-shift-right), 2.5vh, 0) scale(0.93); opacity: 0.68; }
  45% { transform: translate3d(var(--gate-shift-soft-right), -1.4vh, 0) scale(1.015); opacity: 0.86; }
  72% { transform: translate3d(var(--gate-shift-right), 1vh, 0) scale(0.955); opacity: 0.72; }
}

@keyframes ml-a-cloudstream-one {
  0%, 100% { transform: translate3d(var(--cloud-travel-soft-left), 12px, 0) scaleY(0.92); opacity: var(--mist-alpha-low); }
  50% { transform: translate3d(var(--cloud-travel), -26px, 0) scaleY(1.14); opacity: var(--mist-alpha); }
}

@keyframes ml-a-cloudstream-two {
  0%, 100% { transform: translate3d(var(--cloud-travel), -8px, 0) scaleY(1.08); }
  50% { transform: translate3d(var(--cloud-travel-left), 30px, 0) scaleY(0.9); }
}

@keyframes ml-a-moon-breathe {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.9); opacity: var(--aura-alpha-low); }
  50% { transform: translate3d(-18px, 10px, 0) scale(var(--scale-peak)); opacity: var(--aura-alpha); }
}

@keyframes ml-a-valley-light {
  0%, 100% { transform: translate3d(-4vw, 0, 0) scaleX(0.82); opacity: 0.3; }
  50% { transform: translate3d(4vw, 0, 0) scaleX(1.18); opacity: 0.68; }
}

@keyframes ml-a-veil-pass {
  0%, 100% { transform: translate3d(-7vw, 2vh, 0) rotate(9deg) scaleX(0.82); opacity: 0.24; }
  50% { transform: translate3d(25vw, -2vh, 0) rotate(5deg) scaleX(1.12); opacity: 0.64; }
}

@keyframes ml-b-moon-aura {
  0%, 100% { transform: translate3d(-14px, 6px, 0) scale(0.92); box-shadow: 0 0 70px rgba(242, 236, 202, 0.2); }
  50% { transform: translate3d(18px, -9px, 0) scale(1.1); box-shadow: 0 0 130px rgba(242, 236, 202, 0.44); }
}

@keyframes ml-b-moon-phase {
  0%, 100% { transform: translate3d(-46%, 0, 0) scale(1.04); opacity: 0.82; }
  48% { transform: translate3d(52%, -3%, 0) scale(1.1); opacity: 0.94; }
  72% { transform: translate3d(12%, 2%, 0) scale(0.96); opacity: 0.7; }
}

@keyframes ml-b-orbit-main {
  to { transform: rotate(360deg); }
}

@keyframes ml-b-orbit-counter {
  to { transform: rotate(360deg); }
}

@keyframes ml-b-halo-pulse {
  0%, 100% { transform: rotate(-10deg) scale(0.9); opacity: 0.36; }
  50% { transform: rotate(13deg) scale(1.1); opacity: 0.72; }
}

@keyframes ml-b-ticks-drift {
  0%, 100% { transform: rotate(-6deg) scale(0.96); opacity: 0.38; }
  50% { transform: rotate(8deg) scale(1.06); opacity: 0.68; }
}

@keyframes ml-b-node-pulse {
  0%, 100% { transform: scale(0.7); opacity: 0.42; }
  50% { transform: scale(1.55); opacity: 1; }
}

@keyframes ml-b-mist-behind {
  0%, 100% { transform: translate3d(var(--cloud-travel-left), 18px, 0) scaleY(0.9); }
  50% { transform: translate3d(var(--cloud-travel), -24px, 0) scaleY(1.14); }
}

@keyframes ml-b-mist-front {
  0%, 100% { transform: translate3d(var(--cloud-travel), -14px, 0) scaleY(1.12); }
  50% { transform: translate3d(var(--cloud-travel-left), 28px, 0) scaleY(0.88); }
}

@keyframes ml-b-gold-sweep {
  0%, 12% { transform: translate3d(-24vw, 0, 0) rotate(14deg); opacity: 0; }
  32% { opacity: 0.52; }
  68% { opacity: 0.28; }
  88%, 100% { transform: translate3d(164vw, 0, 0) rotate(14deg); opacity: 0; }
}

@keyframes ml-c-cloud-shadow-one {
  0%, 100% { transform: translate3d(-8vw, 3vh, 0) scale3d(0.92, 0.86, 1); opacity: 0.12; }
  44% { transform: translate3d(7vw, -2vh, 0) scale3d(1.08, 1.12, 1); opacity: 0.27; }
  72% { transform: translate3d(2vw, 1vh, 0) scale3d(1.02, 0.96, 1); opacity: 0.2; }
}

@keyframes ml-c-cloud-shadow-two {
  0%, 100% { transform: translate3d(11vw, -1vh, 0) scale3d(1.05, 0.92, 1); opacity: 0.1; }
  52% { transform: translate3d(-9vw, 3vh, 0) scale3d(0.9, 1.14, 1); opacity: 0.22; }
}

@keyframes ml-c-peach-distance {
  0%, 100% { transform: translate3d(-2.5vw, 4px, 0) scaleX(0.96); opacity: 0.22; }
  46% { transform: translate3d(3.8vw, -7px, 0) scaleX(1.08); opacity: 0.42; }
  74% { transform: translate3d(1.2vw, 2px, 0) scaleX(1.02); opacity: 0.31; }
}

@keyframes ml-c-horizon-mist-far {
  0%, 100% { transform: translate3d(-9vw, 12px, 0) scale3d(0.92, 0.88, 1); opacity: var(--mist-alpha-low); }
  50% { transform: translate3d(8vw, -19px, 0) scale3d(1.1, 1.16, 1); opacity: var(--mist-alpha); }
}

@keyframes ml-c-horizon-mist-near {
  0%, 100% { transform: translate3d(10vw, -4px, 0) scale3d(1.08, 0.9, 1); opacity: var(--mist-alpha-low); }
  45% { transform: translate3d(-11vw, 18px, 0) scale3d(0.92, 1.18, 1); opacity: calc(var(--mist-alpha) * 1.12); }
}

@keyframes ml-c-surface-veil {
  0%, 8% { transform: translate3d(-6vw, 0, 0) scaleX(0.84); opacity: 0; }
  25% { opacity: 0.34; }
  58% { opacity: 0.2; }
  88%, 100% { transform: translate3d(226vw, -3%, 0) scaleX(1.18); opacity: 0; }
}

@keyframes ml-c-shore-mist {
  0%, 100% { transform: translate3d(-7vw, 5px, 0) scale3d(0.94, 0.86, 1); opacity: 0.38; }
  48% { transform: translate3d(8vw, -11px, 0) scale3d(1.08, 1.17, 1); opacity: 0.62; }
}

@keyframes ml-c-branch-sway {
  0%, 100% { transform: rotate(-2.6deg) translate3d(0, -5px, 0) scale(0.98); }
  50% { transform: rotate(3.2deg) translate3d(-28px, 14px, 0) scale(1.04); }
}

@keyframes ml-c-foreground-haze {
  0%, 100% { transform: translate3d(8vw, 2vh, 0) scale3d(0.9, 0.88, 1); opacity: 0.2; }
  52% { transform: translate3d(-8vw, -2vh, 0) scale3d(1.12, 1.16, 1); opacity: 0.42; }
}

@media (max-width: 1180px) {
  .ml-toolbar {
    grid-template-columns: minmax(150px, 0.58fr) minmax(390px, 1.2fr) auto;
  }

  .ml-brand p,
  .ml-intensity-control > span,
  .ml-intensity-control button:not(.is-active) {
    display: none;
  }

  .ml-intensity-control button.is-active {
    display: block;
    min-width: 58px;
  }
}

@media (max-width: 820px) {
  :root {
    --toolbar-height: 116px;
  }

  .ml-toolbar {
    top: max(8px, env(safe-area-inset-top));
    right: 10px;
    left: 10px;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "tabs tabs";
    gap: 7px 10px;
    padding: 8px;
    border-radius: 16px;
  }

  .ml-brand { grid-area: brand; padding-left: 6px; }
  .ml-toolbar-actions { grid-area: actions; }
  .ml-direction-tabs { grid-area: tabs; }
  .ml-motion-toggle { min-width: 72px; min-height: 44px; }

  .ml-caption {
    bottom: max(20px, env(safe-area-inset-bottom));
    left: 16px;
    max-width: calc(100vw - 32px);
    padding: 14px 17px 16px;
  }

  .ml-caption h1 {
    font-size: clamp(27px, 8vw, 42px);
  }

  .ml-caption small {
    max-width: 34ch;
    line-height: 1.55;
  }

  .ml-a-cloud {
    top: -8vh;
    width: 114vw;
    height: 118vh;
  }

  .ml-a-cloud--left { left: -47vw; transform: rotate(-8deg); }
  .ml-a-cloud--right { right: -48vw; transform: rotate(7deg); }

  .ml-celestial {
    top: 45%;
    right: -27vmin;
    width: 116vmin;
    height: 116vmin;
  }

  .ml-b-moon {
    top: 17%;
    left: 5%;
  }
}

@media (max-width: 639px) {
  :root {
    --safe-inline: 10px;
  }

  .ml-brand a {
    font-size: 18px;
  }

  .ml-brand > span,
  .ml-brand p {
    display: none;
  }

  .ml-intensity-control {
    position: fixed;
    z-index: 220;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    display: flex;
    justify-content: center;
    min-height: 50px;
    padding: 5px;
    border-color: rgba(255, 255, 255, 0.52);
    background: rgba(247, 243, 234, 0.78);
    box-shadow: 0 12px 32px rgba(32, 49, 41, 0.14);
    backdrop-filter: blur(16px) saturate(0.94);
  }

  .ml-intensity-control > span,
  .ml-intensity-control button,
  .ml-intensity-control button:not(.is-active) {
    display: block;
  }

  .ml-intensity-control > span {
    align-self: center;
    margin-inline: 3px 5px;
  }

  .ml-intensity-control button {
    flex: 1 1 0;
    min-width: 44px;
    min-height: 40px;
  }

  .ml-caption:not(.ml-scene--c .ml-caption) {
    bottom: max(74px, calc(env(safe-area-inset-bottom) + 66px));
  }

  .ml-direction-tab {
    min-height: 44px;
    padding-inline: 5px;
  }

  .ml-direction-tab small {
    width: 22px;
    height: 22px;
  }

  .ml-direction-tab span {
    font-size: 11px;
    letter-spacing: 0;
  }

  .ml-motion-toggle {
    min-width: 68px;
    padding-inline: 9px;
  }

  .ml-art-base--a img {
    object-position: 50% 52%;
    transform: scale(1.08);
  }

  .ml-art-base--c img {
    object-position: 50% 50%;
    transform: scale(1);
  }

  .ml-art-base--b img {
    object-position: 50% 46%;
    transform: scale(1.12);
  }

  .ml-a-moon {
    top: 22%;
    right: 2%;
    width: 48vmin;
  }

  .ml-a-valley-light {
    top: 16%;
    left: 37%;
    width: 44vw;
    height: 72vh;
  }

  .ml-a-cloud {
    top: -4vh;
    width: 138vw;
    height: 112vh;
  }

  .ml-a-cloud--left {
    left: -72vw;
    transform-origin: 6% 18%;
  }

  .ml-a-cloud--right {
    right: -74vw;
    transform-origin: 95% 80%;
  }

  .ml-a-cloudstream {
    left: -70vw;
    width: 240vw;
    height: 28vh;
    filter: blur(6px);
  }

  .ml-a-cloudstream--one { top: 46%; }
  .ml-a-cloudstream--two { top: 65%; }

  .ml-a-veil {
    left: -80vw;
    width: 120vw;
    opacity: 0.44;
  }

  .ml-b-moon {
    top: 17%;
    left: 11%;
    width: 44vmin;
  }

  .ml-celestial {
    top: 46%;
    right: -54vmin;
    width: 124vmin;
    height: 124vmin;
    transform: translateY(-50%) rotate(-11deg);
  }

  .ml-b-mist {
    left: -70vw;
    width: 240vw;
    height: 27vh;
  }

  .ml-b-mist--behind { top: 38%; }
  .ml-b-mist--front { top: 60%; }

  .ml-scene--b .ml-caption {
    max-width: calc(100vw - 34px);
  }

  .ml-c-horizon-mist {
    left: -72vw;
    width: 244vw;
  }

  .ml-c-horizon-mist--far {
    top: 48%;
    height: 23vh;
  }

  .ml-c-horizon-mist--near {
    top: calc(var(--shore-camera-top, var(--waterline)) - 7vh);
    height: 18vh;
  }

  .ml-scene--c {
    --waterline: 62%;
    --water-height: 38%;
  }

  .ml-c-cloud-shadow {
    left: -78vw;
    width: 256vw;
    height: 38vh;
    filter: blur(18px);
  }

  .ml-c-cloud-shadow--one {
    top: 20%;
  }

  .ml-c-cloud-shadow--two {
    top: 43%;
  }

  .ml-c-peach-distance {
    top: 50%;
    left: -36vw;
    width: 174vw;
    height: 18vh;
  }

  .ml-c-shore-mist {
    top: calc(var(--shore-camera-top, var(--waterline)) - 4.5vh);
    left: -84vw;
    width: 268vw;
    height: 13vh;
  }

  .ml-c-branch {
    top: 7vh;
    right: -45vw;
    width: 150vw;
  }

  .ml-c-foreground-haze {
    right: -72vw;
    width: 190vw;
    height: 27vh;
  }

  .ml-scene--c .ml-caption {
    top: 15vh;
    right: 14px;
    left: 14px;
    max-width: none;
  }
}

@media (min-width: 640px) and (max-width: 1024px) and (orientation: portrait) {
  .ml-art-base--c img {
    object-position: 50% 50%;
    transform: scale(1.01);
  }
}

@media (max-height: 640px) and (orientation: landscape) {
  :root { --toolbar-height: 68px; }
  .ml-toolbar { grid-template-columns: auto 1fr auto; grid-template-areas: none; }
  .ml-brand { grid-area: auto; }
  .ml-direction-tabs { grid-area: auto; }
  .ml-toolbar-actions { grid-area: auto; }
  .ml-caption { bottom: 14px; }
  .ml-caption h1 { font-size: 28px; }
  .ml-scene--c {
    --waterline: 55%;
    --water-height: 45%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .ml-animate,
  .ml-celestial__node {
    animation: none !important;
  }

  .ml-a-cloud--left {
    transform: translate3d(var(--gate-shift-left), -2vh, 0) scale(0.96);
    opacity: 0.72;
  }

  .ml-a-cloud--right {
    transform: translate3d(var(--gate-shift-right), 2vh, 0) scale(0.96);
    opacity: 0.72;
  }

  .ml-a-moon,
  .ml-b-moon,
  .ml-celestial,
  .ml-c-water-surface {
    opacity: 1;
  }
}

/* C cinematic entry — one physical water plane, one synchronized 2.5D camera. */

html.ml-intro-pending,
html.ml-intro-scroll-locked {
  background: #123f35;
  overscroll-behavior: none;
}

html.ml-intro-pending body.ml-page {
  --intro-progress: 0;
  --camera-progress: 0;
  --cinematic-waterline-y: 0%;
  --shore-camera-top: 0%;
  --cinematic-waterline-mist-opacity: 0;
  --sky-parallax: 0.55vh;
  --background-parallax: 1.7vh;
  --midground-parallax: 3.2vh;
  --peach-parallax: 5.5vh;
  --shore-parallax: 8vh;
  --foreground-parallax: 14vh;
  --foreground-camera-opacity: 0;
  --focus-blur: 3.2px;
  --content-reveal-progress: 0;
  --content-reveal-y: 22px;
  --content-reveal-blur: 8px;
}

@media (max-width: 639px) and (orientation: portrait) {
  html.ml-intro-pending body.ml-page {
    --sky-parallax: 0.682vh;
    --background-parallax: 2.108vh;
    --midground-parallax: 3.968vh;
    --peach-parallax: 6.82vh;
    --shore-parallax: 9.92vh;
    --foreground-parallax: 17.36vh;
  }
}

.ml-intro {
  position: fixed;
  z-index: 600;
  inset: 0;
  display: block;
  overflow: hidden;
  color: rgba(249, 246, 237, 0.92);
  background: transparent;
  isolation: isolate;
  user-select: none;
  transition: opacity 180ms cubic-bezier(0.2, 0, 0, 1), visibility 180ms linear;
}

.ml-intro__water-vapor,
.ml-intro__water-vapor::before,
.ml-intro__water-vapor::after {
  position: absolute;
  pointer-events: none;
}

.ml-intro > .ml-canvas--petals {
  z-index: 3;
}

.ml-intro__water-vapor {
  z-index: 1;
  inset: -10vh -18vw;
  overflow: hidden;
  opacity: var(--intro-vapor-opacity, 0.7);
  filter: blur(12px);
  mix-blend-mode: screen;
  will-change: opacity, transform;
}

.ml-intro__water-vapor::before,
.ml-intro__water-vapor::after {
  content: "";
  top: 24%;
  bottom: -8%;
  width: 96vw;
  border-radius: 48%;
  background:
    radial-gradient(ellipse 58% 34% at 38% 52%, rgba(240, 243, 230, 0.19), transparent 75%),
    radial-gradient(ellipse 48% 56% at 68% 67%, rgba(150, 189, 170, 0.14), transparent 78%);
  filter: blur(24px);
  will-change: transform, opacity;
}

.ml-intro__water-vapor::before {
  left: -31vw;
  transform: translate3d(calc(-1 * var(--intro-vapor-shift, 0vw)), 0, 0);
  animation: ml-intro-loading-mist-left 8.4s ease-in-out -3.7s infinite alternate;
}

.ml-intro__water-vapor::after {
  right: -33vw;
  transform: scaleX(-1);
  animation: ml-intro-loading-mist-right 10.8s ease-in-out -7.1s infinite alternate-reverse;
}

.ml-intro__water-vapor--side {
  z-index: 2;
  inset: 10% -28vw -18%;
  opacity: var(--intro-vapor-side-opacity, 0.39);
  transform: translate3d(var(--intro-vapor-shift, 0vw), 0, 0) rotate(-3deg);
}

.ml-intro__loading {
  position: absolute;
  z-index: 4;
  top: clamp(54%, 58vh, 64%);
  left: 50%;
  width: min(82vw, 360px);
  padding: 18px 22px;
  color: rgba(244, 241, 229, 0.94);
  text-align: center;
  text-shadow: 0 2px 20px rgba(2, 26, 24, 0.78);
  transform: translateX(-50%);
  opacity: var(--intro-loading-opacity, 1);
  transition: opacity 180ms linear, transform 520ms ease;
}

.ml-intro__loading p {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  font-size: clamp(18px, 2.1vw, 28px);
  font-weight: 520;
  letter-spacing: 0.32em;
}

.ml-intro__skip,
.ml-intro__retry,
.ml-intro-replay,
.ml-local-load button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(232, 226, 207, 0.32);
  color: inherit;
  background: rgba(17, 65, 55, 0.32);
  cursor: pointer;
}

.ml-intro__skip {
  position: absolute;
  z-index: 6;
  right: max(22px, calc(env(safe-area-inset-right) + 16px));
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 16px));
  padding: 10px 17px;
  border-radius: 999px;
  opacity: 0;
  color: rgba(246, 242, 229, 0.82);
  background: rgba(11, 54, 46, 0.34);
  box-shadow: 0 8px 26px rgba(4, 33, 29, 0.15);
  backdrop-filter: blur(10px);
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 280ms ease, transform 280ms ease, background 180ms ease;
}

.ml-intro__skip.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ml-intro__skip:disabled,
.ml-intro[inert] .ml-intro__skip,
.ml-intro[inert] .ml-intro__retry {
  pointer-events: none !important;
}

.ml-intro__skip:hover,
.ml-intro__retry:hover {
  background: rgba(25, 91, 76, 0.58);
}

.ml-intro__retry {
  margin-top: 14px;
  padding: 9px 17px;
  border-radius: 999px;
  color: rgba(248, 244, 233, 0.94);
}

.ml-intro__retry[hidden],
.ml-local-load [hidden] {
  display: none !important;
}

.ml-intro.is-slow .ml-intro__loading {
  width: min(88vw, 430px);
}

.ml-page[data-water-debug="true"] .ml-canvas--petals,
.ml-page[data-water-debug="true"] .ml-c-cloud-shadow,
.ml-page[data-water-debug="true"] .ml-c-horizon-mist,
.ml-page[data-water-debug="true"] .ml-c-shore-mist,
.ml-page[data-water-debug="true"] .ml-c-cinematic-waterline-mist,
.ml-page[data-water-debug="true"] .ml-c-peach-distance,
.ml-page[data-water-debug="true"] .ml-c-branch,
.ml-page[data-water-debug="true"] .ml-c-foreground-haze {
  display: none !important;
}

/* Final-scene calibration is a development-only geometry view.  It removes
   narrative/UI layers so horizon, shore, lake depth, and reflection projection
   can be judged without animation or atmospheric camouflage. */
.ml-page[data-scene-debug="final"] .ml-toolbar,
.ml-page[data-scene-debug="final"] .ml-caption,
.ml-page[data-scene-debug="final"] .ml-status,
.ml-page[data-scene-debug="final"] .ml-intro,
.ml-page[data-scene-debug="final"] .ml-c-depth--far,
.ml-page[data-scene-debug="final"] .ml-c-depth--mid,
.ml-page[data-scene-debug="final"] .ml-c-depth--peach,
.ml-page[data-scene-debug="final"] .ml-c-depth--shore,
.ml-page[data-scene-debug="final"] .ml-c-depth--foreground,
.ml-page[data-scene-debug="final"] .ml-c-cinematic-waterline-mist,
.ml-page[data-scene-debug="final"] .ml-c-surface-veil,
.ml-page[data-scene-debug="final"] .ml-paper-wash {
  display: none !important;
}

.ml-page[data-scene-projection-ready="true"] .ml-art-base--c {
  display: none !important;
}

.ml-page[data-scene-debug="final"] .ml-scene--c,
.ml-page[data-scene-debug="final"] .ml-c-camera,
.ml-page[data-scene-debug="final"] .ml-c-depth--water,
.ml-page[data-scene-debug="final"] .ml-c-water-surface {
  inset: 0;
  width: 100%;
  height: 100%;
}

.ml-page[data-scene-debug="final"] .ml-scene--c *,
.ml-page[data-scene-debug="final"] .ml-scene--c *::before,
.ml-page[data-scene-debug="final"] .ml-scene--c *::after {
  animation-play-state: paused !important;
  transition: none !important;
}

.ml-scene-debug-overlay {
  position: absolute;
  z-index: 80;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.ml-scene-debug-line {
  position: absolute;
  top: var(--debug-line-y);
  left: 0;
  width: 100%;
  border-top: 1px dashed rgba(24, 93, 78, 0.82);
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.72));
}

.ml-scene-debug-line--shore {
  border-top-color: rgba(157, 94, 48, 0.92);
}

.ml-scene-debug-line span,
.ml-scene-debug-marker span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid rgba(34, 62, 52, 0.28);
  border-radius: 999px;
  background: rgba(247, 244, 232, 0.9);
  color: #183d34;
  font: 600 11px/1.2 Inter, "PingFang SC", sans-serif;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(26, 49, 41, 0.13);
}

.ml-scene-debug-line span {
  position: absolute;
  top: 4px;
  left: 12px;
}

.ml-scene-debug-marker {
  position: absolute;
  top: var(--debug-marker-y);
  left: var(--debug-marker-x);
  width: 9px;
  height: 9px;
  border: 2px solid rgba(247, 244, 232, 0.95);
  border-radius: 50%;
  background: #a7683c;
  box-shadow: 0 0 0 1px rgba(56, 43, 30, 0.56);
  transform: translate(-50%, -50%);
}

.ml-scene-debug-marker span {
  position: absolute;
  top: 12px;
  left: 7px;
}

.ml-scene-debug-marker--target {
  background: #176452;
}

.ml-scene-debug-marker--reflection {
  background: #557d70;
}

.ml-scene-debug-marker--reflection span {
  color: #214c42;
  background: rgba(225, 238, 230, 0.9);
}

.ml-intro.is-quick .ml-intro__loading {
  opacity: 0;
}

.ml-intro.is-exiting {
  opacity: 0;
  pointer-events: none;
}

.ml-intro.is-complete {
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
}

.ml-page.is-document-hidden .ml-intro,
.ml-page.is-document-hidden .ml-intro *,
.ml-page.is-document-hidden .ml-intro *::before,
.ml-page.is-document-hidden .ml-intro *::after {
  animation-play-state: paused !important;
}

html.ml-intro-pending .ml-toolbar,
html.ml-intro-pending .ml-scene--c .ml-caption,
html.ml-intro-pending .ml-status {
  opacity: var(--content-reveal-progress, 0);
  filter: blur(var(--content-reveal-blur, 8px));
  pointer-events: none;
  transform: translateY(var(--content-reveal-y, 22px));
}

.ml-local-load {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid rgba(49, 43, 35, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.28);
  isolation: isolate;
}

.ml-local-load::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -25% auto -25% -70%;
  width: 62%;
  opacity: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(172, 216, 194, 0.58), rgba(230, 238, 218, 0.18) 48%, transparent 76%);
  filter: blur(7px);
  pointer-events: none;
}

.ml-local-load button {
  border: 0;
  color: var(--ml-ink-soft);
  background: transparent;
  font-size: 11px;
}

.ml-local-load [data-local-load-status] {
  max-width: 0;
  overflow: hidden;
  color: var(--ml-jade);
  font-size: 10px;
  white-space: nowrap;
  transition: max-width 240ms ease, padding 240ms ease;
}

.ml-local-load.is-loading::before {
  opacity: 1;
  animation: ml-local-water-pass 1.65s ease-in-out infinite;
}

.ml-local-load.is-loading [data-local-load-status],
.ml-local-load.has-error [data-local-load-status] {
  max-width: 92px;
  padding-right: 8px;
}

.ml-local-load.has-error {
  border-color: rgba(154, 92, 48, 0.34);
  background: rgba(178, 112, 66, 0.08);
}

.ml-local-load.is-success {
  animation: ml-local-success 520ms ease both;
}

.ml-intro-replay {
  padding: 8px 11px;
  border-color: rgba(49, 43, 35, 0.14);
  border-radius: 12px;
  color: var(--ml-ink-soft);
  background: rgba(255, 255, 255, 0.34);
  font-size: 11px;
  white-space: nowrap;
}

.ml-intro-replay:hover,
.ml-local-load button:hover {
  color: var(--ml-ink);
  background: rgba(255, 255, 255, 0.52);
}

.ml-canvas--water.is-static-water {
  opacity: 0;
}

@keyframes ml-intro-loading-mist-left {
  0% { transform: translate3d(-7vw, 12px, 0) scale3d(0.94, 0.9, 1); opacity: 0.52; }
  100% { transform: translate3d(6vw, -8px, 0) scale3d(1.08, 1.12, 1); opacity: 0.84; }
}

@keyframes ml-intro-loading-mist-right {
  0% { transform: translate3d(9vw, -10px, 0) scale3d(-0.92, 0.94, 1); opacity: 0.5; }
  100% { transform: translate3d(-7vw, 13px, 0) scale3d(-1.1, 1.1, 1); opacity: 0.8; }
}

@keyframes ml-local-water-pass {
  0% { transform: translate3d(0, 0, 0) scaleX(0.8); opacity: 0; }
  28%, 72% { opacity: 0.78; }
  100% { transform: translate3d(300%, 0, 0) scaleX(1.18); opacity: 0; }
}

@keyframes ml-local-success {
  0%, 100% { box-shadow: none; }
  48% { box-shadow: 0 0 0 5px rgba(84, 151, 122, 0.1), inset 0 0 20px rgba(199, 224, 207, 0.24); }
}

@keyframes ml-intro-emergency-release {
  0%, 88% { opacity: 1; visibility: visible; pointer-events: auto; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

@media (max-width: 1180px) {
  .ml-local-load {
    display: none;
  }

  .ml-intro-replay {
    min-width: 54px;
  }
}

@media (max-width: 820px) {
  .ml-intro__skip {
    right: max(14px, calc(env(safe-area-inset-right) + 10px));
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 10px));
  }

  .ml-intro-replay {
    padding-inline: 8px;
  }
}

@media (max-width: 639px) {
  .ml-intro__water-vapor--near {
    display: none;
  }

  .ml-intro__water-vapor--side {
    display: none;
  }

  .ml-intro__water-vapor::before,
  .ml-intro__water-vapor::after {
    top: -8%;
    bottom: -4%;
    width: 126vw;
  }

  .ml-intro__water-vapor::before {
    left: -72vw;
    transform: rotate(-8deg);
  }

  .ml-intro__water-vapor::after {
    right: -74vw;
    transform: scaleX(-1) rotate(9deg);
  }

  .ml-intro__loading {
    top: 57%;
    width: min(88vw, 340px);
    padding-inline: 15px;
  }

  .ml-intro__loading p {
    font-size: clamp(18px, 6vw, 25px);
  }

  .ml-intro__skip {
    top: max(14px, calc(env(safe-area-inset-top) + 10px));
    right: max(14px, calc(env(safe-area-inset-right) + 10px));
    bottom: auto;
  }

  .ml-intro-replay {
    min-width: 44px;
    max-width: 56px;
    overflow: hidden;
    padding-inline: 7px;
    text-overflow: ellipsis;
  }

}

@media (max-height: 640px) and (orientation: landscape) {
  .ml-intro__loading {
    top: calc(55% - 74px);
  }

  .ml-intro__skip {
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    bottom: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ml-intro__water-vapor::before,
  .ml-intro__water-vapor::after,
  .ml-local-load::before {
    animation: none !important;
  }
}
