:root {
  --dawn-paper: #FFF7E8;
  --sora-blue: #78C7FF;
  --high-noon-cyan: #B8F4FF;
  --kite-vermilion: #FF6B4A;
  --lavender-shadow: #8B7CFF;
  --star-ink: #18213A;
  --moon-gold: #F6D36B;
  --display: "Yeseva One", serif;
  --body: "M PLUS Rounded 1c", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--star-ink);
  font-family: var(--body);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 8%, rgba(246, 211, 107, .52), transparent 20rem),
    linear-gradient(180deg, var(--dawn-paper) 0%, var(--high-noon-cyan) 28%, var(--sora-blue) 58%, var(--lavender-shadow) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: .22;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(24, 33, 58, .08) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(255, 247, 232, .22) 0 1px, transparent 1px);
  background-size: 23px 29px, 31px 37px;
  mix-blend-mode: multiply;
}

.sky-climb { position: relative; z-index: 2; }

.altitude {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 5rem);
}

.altitude::before,
.altitude::after {
  content: "";
  position: absolute;
  border-radius: 48% 52% 49% 51% / 62% 40% 60% 38%;
  background: rgba(255, 247, 232, .36);
  filter: blur(18px);
  z-index: -1;
  animation: cloudMorph 16s ease-in-out infinite alternate;
}

.altitude::before { width: 36vw; height: 13vw; left: -8vw; top: 18vh; }
.altitude::after { width: 42vw; height: 16vw; right: -14vw; bottom: 12vh; animation-delay: -7s; }

.wind-chart {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 600vh;
  z-index: 7;
  pointer-events: none;
  overflow: visible;
}

.wind-path,
.hidden-thread {
  fill: none;
  stroke: var(--star-ink);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: .62;
  filter: drop-shadow(0 0 14px rgba(184, 244, 255, .85));
}

.hidden-thread { stroke: var(--moon-gold); stroke-width: 2.5; opacity: .5; stroke-dasharray: 9 16; stroke-dashoffset: 0; }
.route-knots circle { fill: var(--kite-vermilion); stroke: var(--dawn-paper); stroke-width: 4; filter: drop-shadow(0 0 12px rgba(255,107,74,.7)); }

.altitude-gauge {
  position: fixed;
  right: 1.5rem;
  top: 14vh;
  width: 1px;
  height: 72vh;
  background: rgba(24, 33, 58, .35);
  z-index: 80;
}

.tick { position: absolute; right: -8px; width: 17px; height: 1px; background: var(--star-ink); opacity: .45; transform: rotate(-8deg); }
.t1 { top: 0; } .t2 { top: 18%; } .t3 { top: 38%; } .t4 { top: 56%; } .t5 { top: 76%; } .t6 { top: 100%; }
.gauge-charm { position: absolute; left: -7px; top: 0; width: 15px; height: 15px; background: var(--moon-gold); border: 3px solid var(--kite-vermilion); transform: rotate(45deg); box-shadow: 0 0 22px var(--moon-gold); }

h1, h2 { font-family: var(--display); font-weight: 400; }
h1 {
  position: absolute;
  left: -2vw;
  top: 12vh;
  margin: 0;
  font-size: clamp(5.7rem, 17vw, 17rem);
  line-height: .75;
  letter-spacing: -.055em;
  color: var(--star-ink);
  text-shadow: 0 22px 55px rgba(120, 199, 255, .35);
}
h2 { margin: .25rem 0 1rem; font-size: clamp(2.1rem, 5vw, 5.3rem); line-height: .9; color: var(--star-ink); }
p { font-size: clamp(1rem, 1.45vw, 1.28rem); line-height: 1.68; margin: 0; }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; }
.stamp { position: absolute; left: 7vw; bottom: 8vh; opacity: .62; }

.floating-tag {
  position: absolute;
  width: min(31rem, 78vw);
  padding: 1.35rem 1.55rem 1.6rem;
  background: linear-gradient(135deg, rgba(255,247,232,.78), rgba(184,244,255,.32));
  border: 1px solid rgba(255, 247, 232, .72);
  border-radius: 2rem 1.2rem 2.4rem 1.5rem;
  box-shadow: 0 26px 80px rgba(24, 33, 58, .12), inset 0 0 0 1px rgba(255,255,255,.26);
  backdrop-filter: blur(10px);
  transform: rotate(-1.6deg);
  z-index: 12;
}

.floating-tag::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  right: 1.2rem;
  top: -16px;
  background: var(--moon-gold);
  border-radius: 50% 50% 45% 55%;
  box-shadow: 0 0 0 7px rgba(246,211,107,.18);
}

.first-tag { right: 9vw; bottom: 13vh; }
.orchard-tag { left: 11vw; top: 19vh; }
.bell-tag { right: 9vw; top: 22vh; transform: rotate(1.2deg); }
.archive-tag { left: 16vw; bottom: 18vh; }
.stair-tag { right: 12vw; top: 12vh; }
.seal-tag { left: 8vw; bottom: 13vh; transform: rotate(.8deg); }

.revealable { opacity: 0; filter: blur(14px); transform: translateY(42px) rotate(-2deg); transition: opacity .9s ease, filter .9s ease, transform .9s cubic-bezier(.2,.9,.1,1); }
.revealable.is-visible { opacity: 1; filter: blur(0); transform: translateY(0) rotate(-1deg); }
.bell-tag.is-visible { transform: translateY(0) rotate(1deg); }

.cloud.veil { position: absolute; background: rgba(255,247,232,.66); filter: blur(12px); z-index: 20; animation: drift 22s ease-in-out infinite alternate; }
.veil-a { width: 58vw; height: 14vh; left: -12vw; top: 22vh; border-radius: 44% 56% 52% 48%; }
.veil-b { width: 70vw; height: 17vh; right: -25vw; top: 34vh; border-radius: 56% 44% 60% 40%; animation-delay: -11s; }
.veil-c { width: 74vw; height: 20vh; left: 24vw; top: 18vh; border-radius: 60% 40% 48% 52%; opacity: .82; }
.sun-halo, .archive-moon { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(246,211,107,.74), rgba(246,211,107,.15) 48%, transparent 70%); }
.sun-halo { width: 48vw; height: 48vw; right: -14vw; top: -15vw; }
.archive-moon { width: 58vw; height: 58vw; right: -18vw; top: 5vh; background: radial-gradient(circle, rgba(184,244,255,.55), rgba(139,124,255,.18) 52%, transparent 72%); }

.kite-knot { position: absolute; left: 10vw; top: 58vh; width: 34px; height: 34px; background: var(--kite-vermilion); clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); z-index: 25; animation: tug 2.8s ease-in-out infinite; }
.paper-plane { position: absolute; width: 0; height: 0; border-left: 38px solid var(--dawn-paper); border-top: 15px solid transparent; border-bottom: 15px solid transparent; filter: drop-shadow(0 10px 18px rgba(24,33,58,.16)); }
.compass { left: 42vw; bottom: 18vh; transform: rotate(-18deg); animation: planeFloat 9s ease-in-out infinite; }

.kite-orchard { background: linear-gradient(180deg, rgba(184,244,255,.24), rgba(120,199,255,.22)); }
.cloud-island { position: absolute; right: 8vw; top: 16vh; width: 26vw; height: 10vw; background: var(--dawn-paper); border-radius: 55% 45% 52% 48%; box-shadow: 0 25px 70px rgba(24,33,58,.12); animation: float 10s ease-in-out infinite; }
.cloud-island span, .cloud-island i { position: absolute; background: var(--dawn-paper); border-radius: 50%; }
.cloud-island span { width: 12vw; height: 12vw; left: 4vw; top: -5vw; }
.cloud-island i { width: 1px; height: 12vw; left: 50%; top: 88%; background: linear-gradient(var(--star-ink), transparent); opacity: .35; }
.kite-field span { position: absolute; }
.kite { width: 42px; height: 42px; background: linear-gradient(135deg, var(--moon-gold), var(--kite-vermilion)); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); animation: kiteSway 6s ease-in-out infinite; }
.k1 { left: 58vw; top: 28vh; } .k2 { left: 73vw; top: 42vh; animation-delay: -2s; background: linear-gradient(135deg, var(--high-noon-cyan), var(--lavender-shadow)); } .k3 { left: 49vw; top: 64vh; animation-delay: -4s; }
.thread { width: 1px; height: 220px; background: rgba(24,33,58,.28); transform: rotate(28deg); transform-origin: top; }
.th1 { left: 60vw; top: 34vh; } .th2 { left: 75vw; top: 48vh; }
.shrine-tag { position: absolute; left: 72vw; bottom: 14vh; padding: 1rem .8rem; background: var(--dawn-paper); color: var(--kite-vermilion); font-weight: 700; border-top: 8px solid var(--kite-vermilion); writing-mode: vertical-rl; box-shadow: 0 18px 44px rgba(24,33,58,.14); animation: tagSwing 4.4s ease-in-out infinite; }
.shrine-tag small { color: var(--star-ink); font-family: var(--mono); font-size: .55rem; }

.bell-crossing { background: linear-gradient(180deg, rgba(120,199,255,.15), rgba(184,244,255,.18) 46%, rgba(255,247,232,.12)); }
.thermal-ring { position: absolute; border: 1px solid rgba(255,247,232,.72); border-radius: 50%; animation: thermal 7s ease-in-out infinite; }
.r1 { width: 45vw; height: 45vw; left: -6vw; top: 17vh; } .r2 { width: 36vw; height: 36vw; right: 18vw; bottom: 4vh; animation-delay: -3s; }
.bell-row { position: absolute; left: 16vw; bottom: 18vh; display: flex; gap: 4rem; }
.bell { position: relative; width: 46px; height: 58px; background: linear-gradient(var(--moon-gold), var(--kite-vermilion)); border-radius: 24px 24px 12px 12px; transform-origin: top center; animation: ring 3.2s ease-in-out infinite; }
.bell::before { content: ""; position: absolute; left: 19px; top: -42px; width: 2px; height: 42px; background: var(--star-ink); opacity: .35; }
.bell::after { content: ""; position: absolute; left: 18px; bottom: -14px; width: 10px; height: 10px; background: var(--moon-gold); border-radius: 50%; }
.b2 { animation-delay: -.8s; } .b3 { animation-delay: -1.6s; }
.mist-curtain { position: absolute; inset: 28vh -10vw auto; height: 28vh; background: linear-gradient(90deg, transparent, rgba(255,247,232,.62), rgba(184,244,255,.48), transparent); filter: blur(16px); z-index: 30; animation: drift 18s ease-in-out infinite alternate-reverse; }

.blue-archive { background: linear-gradient(180deg, rgba(120,199,255,.28), rgba(139,124,255,.32)); }
.glyph-sheet { position: absolute; right: 12vw; bottom: 18vh; display: grid; grid-template-columns: repeat(3, 70px); gap: 1.2rem; transform: rotate(5deg); }
.glyph-sheet span { height: 70px; display: grid; place-items: center; border-radius: 1.3rem; background: rgba(255,247,232,.38); color: var(--star-ink); font-size: 2rem; box-shadow: inset 0 0 0 1px rgba(255,247,232,.45); animation: glyphBlur 5s ease-in-out infinite; }
.glyph-sheet span:nth-child(even) { animation-delay: -2.5s; }

.moon-stair { background: linear-gradient(180deg, rgba(139,124,255,.24), rgba(24,33,58,.26)); color: var(--dawn-paper); }
.moon-stair h2, .moon-stair p { color: var(--dawn-paper); }
.moon-stair .floating-tag { background: linear-gradient(135deg, rgba(24,33,58,.48), rgba(184,244,255,.18)); border-color: rgba(246,211,107,.24); }
.moon-ladder { position: absolute; left: 19vw; top: 14vh; width: 28vw; height: 70vh; border-left: 3px solid rgba(246,211,107,.7); border-right: 3px solid rgba(246,211,107,.36); transform: rotate(31deg); filter: drop-shadow(0 0 18px rgba(246,211,107,.4)); }
.moon-ladder span { position: absolute; left: -2vw; width: 32vw; height: 3px; background: linear-gradient(90deg, transparent, var(--moon-gold), transparent); }
.moon-ladder span:nth-child(1) { top: 8%; } .moon-ladder span:nth-child(2) { top: 23%; } .moon-ladder span:nth-child(3) { top: 38%; } .moon-ladder span:nth-child(4) { top: 53%; } .moon-ladder span:nth-child(5) { top: 68%; } .moon-ladder span:nth-child(6) { top: 83%; }
.star-stream i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--moon-gold); box-shadow: 0 0 16px var(--moon-gold); animation: starRise 7s linear infinite; }
.star-stream i:nth-child(1) { left: 55vw; bottom: 12vh; } .star-stream i:nth-child(2) { left: 61vw; bottom: 24vh; animation-delay: -1s; } .star-stream i:nth-child(3) { left: 68vw; bottom: 18vh; animation-delay: -2s; } .star-stream i:nth-child(4) { left: 77vw; bottom: 31vh; animation-delay: -3s; } .star-stream i:nth-child(5) { left: 83vw; bottom: 19vh; animation-delay: -4s; } .star-stream i:nth-child(6) { left: 49vw; bottom: 38vh; animation-delay: -5s; } .star-stream i:nth-child(7) { left: 72vw; bottom: 48vh; animation-delay: -6s; }

.sora-seal { background: radial-gradient(circle at 50% 42%, rgba(246,211,107,.28), transparent 24rem), linear-gradient(180deg, rgba(24,33,58,.42), var(--star-ink)); color: var(--dawn-paper); }
.sora-seal h2, .sora-seal p { color: var(--dawn-paper); }
.sora-seal .floating-tag { background: linear-gradient(135deg, rgba(24,33,58,.62), rgba(139,124,255,.24)); border-color: rgba(246,211,107,.35); }
.seal { position: absolute; right: 14vw; top: 16vh; width: min(48vw, 560px); aspect-ratio: 1; display: grid; place-items: center; }
.seal-ring { position: absolute; inset: 6%; border: 4px solid var(--moon-gold); border-radius: 50%; box-shadow: 0 0 42px rgba(246,211,107,.65), inset 0 0 50px rgba(246,211,107,.22); animation: sealPulse 3.2s ease-in-out infinite; }
.seal-thread { position: absolute; inset: 18%; border: 2px dashed rgba(184,244,255,.72); border-radius: 48% 52% 45% 55%; animation: rotateSeal 18s linear infinite; }
.seal strong { font-family: var(--display); font-size: clamp(4rem, 9vw, 8rem); font-weight: 400; color: var(--moon-gold); text-shadow: 0 0 24px rgba(246,211,107,.55); }
.seal-star { position: absolute; width: 12px; height: 12px; background: var(--dawn-paper); clip-path: polygon(50% 0, 62% 35%, 100% 50%, 62% 65%, 50% 100%, 38% 65%, 0 50%, 38% 35%); box-shadow: 0 0 16px var(--high-noon-cyan); }
.s1 { left: 18%; top: 25%; } .s2 { right: 18%; top: 34%; } .s3 { left: 35%; bottom: 14%; } .s4 { right: 31%; bottom: 21%; }

@keyframes drift { from { transform: translateX(-3vw) translateY(0); } to { transform: translateX(5vw) translateY(2vh); } }
@keyframes cloudMorph { from { border-radius: 44% 56% 49% 51% / 58% 42% 58% 42%; transform: translateY(-1vh); } to { border-radius: 61% 39% 54% 46% / 42% 61% 39% 58%; transform: translateY(2vh); } }
@keyframes tug { 0%,100% { transform: rotate(45deg) translate(0,0); } 50% { transform: rotate(52deg) translate(7px,-5px); } }
@keyframes planeFloat { 0%,100% { transform: translate(0,0) rotate(-18deg); } 50% { transform: translate(24px,-18px) rotate(-8deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
@keyframes kiteSway { 0%,100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-26px) rotate(8deg); } }
@keyframes tagSwing { 0%,100% { transform: rotate(3deg); } 50% { transform: rotate(-5deg); } }
@keyframes thermal { 0%,100% { transform: scale(.94); opacity: .22; } 50% { transform: scale(1.06); opacity: .56; } }
@keyframes ring { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(7deg); } }
@keyframes glyphBlur { 0%,100% { filter: blur(0); transform: translateY(0); } 50% { filter: blur(1.5px); transform: translateY(-8px); } }
@keyframes starRise { from { transform: translateY(30px); opacity: 0; } 20%,80% { opacity: 1; } to { transform: translateY(-130px); opacity: 0; } }
@keyframes sealPulse { 0%,100% { transform: scale(.98); opacity: .75; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes rotateSeal { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .altitude { padding: 1.4rem; }
  .altitude-gauge { right: .7rem; }
  h1 { top: 16vh; font-size: 5.4rem; }
  .floating-tag { width: calc(100vw - 3.4rem); left: 1.4rem !important; right: auto !important; }
  .first-tag { bottom: 9vh; }
  .orchard-tag, .bell-tag, .stair-tag { top: 12vh; }
  .archive-tag, .seal-tag { bottom: 10vh; }
  .seal { right: 2vw; top: 28vh; width: 82vw; opacity: .72; }
  .bell-row { left: 8vw; gap: 2rem; }
  .glyph-sheet { right: 6vw; grid-template-columns: repeat(3, 50px); }
  .glyph-sheet span { width: 50px; height: 50px; }
}
