:root {
  --cream: #FFF1D8;
  --apricot: #FFB86B;
  --coral: #FF7A74;
  --rose: #D95F74;
  --lavender: #A78BFA;
  --mint: #BEE8C8;
  --violet: #4654A3;
  --periwinkle: #7CA7FF;
  --shadow: rgba(70, 84, 163, 0.22);
  --ink: #4654A3;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

button { font: inherit; color: inherit; }

.sky-wash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 16%, rgba(255,184,107,.62), transparent 25%),
    radial-gradient(circle at 82% 22%, rgba(167,139,250,.42), transparent 30%),
    linear-gradient(180deg, #FFF1D8 0%, #FFB86B 42%, #A78BFA 78%, #4654A3 100%);
  z-index: -5;
}

.scene {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 8vh clamp(22px, 5vw, 72px);
  isolation: isolate;
}

.scene::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(255,241,216,.3), transparent 48%);
  z-index: -4;
}

.hero { background: linear-gradient(180deg, rgba(255,241,216,.92), rgba(255,184,107,.74)); }
.stamp-scene { background: linear-gradient(180deg, rgba(255,184,107,.74), rgba(255,122,116,.5) 62%, rgba(255,241,216,.35)); }
.cloudline { background: linear-gradient(180deg, rgba(255,241,216,.55), rgba(124,167,255,.42), rgba(190,232,200,.55)); }
.ridge { background: linear-gradient(180deg, rgba(190,232,200,.58), rgba(167,139,250,.62), rgba(124,167,255,.45)); }
.summit { background: linear-gradient(180deg, rgba(167,139,250,.55), rgba(124,167,255,.48), rgba(70,84,163,.62)); }
.return { background: linear-gradient(180deg, rgba(70,84,163,.72), rgba(217,95,116,.42), rgba(255,184,107,.32)); color: #FFF1D8; }

.scene-content {
  position: relative;
  z-index: 5;
  max-width: 760px;
  transition: transform .15s linear;
}

.trailhead-copy { margin-left: min(9vw, 130px); margin-top: -8vh; }
.offset-left { margin-left: 6vw; }
.cloud-copy { margin-left: auto; margin-right: 8vw; max-width: 560px; }
.ridge-copy { margin-left: 8vw; margin-top: -8vh; }
.summit-copy { margin-left: auto; margin-right: 11vw; max-width: 590px; }
.return-copy { margin: 0 auto; text-align: center; max-width: 780px; }

h1, h2, .signature {
  font-family: "Caveat", cursive;
  font-weight: 700;
  line-height: .82;
  margin: 0;
  text-shadow: 0 12px 28px rgba(70, 84, 163, 0.18);
}

h1 {
  font-size: clamp(5.8rem, 16vw, 16rem);
  letter-spacing: -.05em;
  color: var(--violet);
  transform: rotate(-4deg);
  filter: drop-shadow(0 18px 0 rgba(255, 255, 255, .26));
}

h2 {
  font-size: clamp(4rem, 9vw, 9rem);
  color: var(--violet);
}

.return h2, .return .signature { color: #FFF1D8; }

p { font-size: clamp(1.08rem, 1.75vw, 1.45rem); line-height: 1.55; }

.map-note, .stamp-caption, .pin-label, .pass-state, .pass-label {
  font-family: "Patrick Hand", cursive;
  letter-spacing: .04em;
}

.map-note {
  display: inline-block;
  font-size: clamp(1.4rem, 2.8vw, 2.5rem);
  color: var(--rose);
  margin: 0 0 1rem;
}

.rotate-left { transform: rotate(-7deg); }
.rotate-right { transform: rotate(6deg); }

.puffy-sign, .trail-card {
  display: inline-block;
  margin-top: clamp(18px, 3vw, 38px);
  padding: clamp(18px, 2.5vw, 34px) clamp(22px, 3vw, 46px);
  border-radius: 38px 48px 42px 54px;
  background: linear-gradient(145deg, rgba(255,241,216,.96), rgba(255,184,107,.54));
  box-shadow: 0 24px 48px var(--shadow), inset 10px 10px 18px rgba(255,255,255,.55), inset -12px -12px 18px rgba(217,95,116,.12);
  border: 2px solid rgba(255,255,255,.45);
}

.puffy-sign p, .trail-card p { margin: .35rem 0 0; max-width: 480px; }
.altitude { font-family: "Baloo 2", cursive; font-size: 2.5rem; color: var(--coral); }
.coral-sign { background: linear-gradient(145deg, #FFF1D8, rgba(255,122,116,.62)); transform: rotate(-2deg); }
.final-sign { background: linear-gradient(145deg, rgba(255,241,216,.24), rgba(167,139,250,.32)); color: #FFF1D8; }

.hover-puff { transition: transform .35s cubic-bezier(.2,1.45,.35,1), box-shadow .35s ease, filter .35s ease; cursor: pointer; }
.hover-puff:hover, .hover-puff.popped { transform: scale(1.08) rotate(var(--hover-rotate, 0deg)); filter: brightness(1.04); }

.trail-nav {
  position: fixed;
  right: clamp(16px, 3vw, 36px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: grid;
  gap: 13px;
}

.trail-bead {
  width: 27px;
  height: 27px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 25%, #FFF1D8, #FFB86B 48%, #FF7A74 72%);
  box-shadow: 0 8px 18px var(--shadow), inset -4px -5px 8px rgba(217,95,116,.26);
  transition: transform .28s cubic-bezier(.2,1.5,.4,1), background .25s ease;
}

.trail-bead span { display: none; }
.trail-bead:hover, .trail-bead.active { transform: scale(1.34); background: radial-gradient(circle at 32% 25%, #FFF1D8, #BEE8C8 48%, #7CA7FF 76%); }

.sticky-pass {
  position: fixed;
  left: clamp(16px, 5vw, 76px);
  top: 18vh;
  z-index: 20;
  width: clamp(158px, 18vw, 248px);
  pointer-events: auto;
  transition: transform .18s linear, opacity .25s ease;
  animation: passBob 4.8s ease-in-out infinite;
}

.lanyard {
  width: 72px;
  height: 44px;
  border: 12px solid var(--lavender);
  border-bottom: 0;
  border-radius: 50px 50px 0 0;
  margin: 0 auto -8px;
  box-shadow: inset 0 8px 8px rgba(255,255,255,.28);
}

.pass-card {
  position: relative;
  aspect-ratio: .72 / 1;
  border-radius: 34px;
  background: linear-gradient(145deg, #FFF1D8 0%, #FFB86B 56%, #FF7A74 100%);
  box-shadow: 0 34px 56px rgba(70,84,163,.3), inset 12px 12px 20px rgba(255,255,255,.62), inset -15px -18px 24px rgba(217,95,116,.26);
  border: 3px solid rgba(255,255,255,.62);
  overflow: hidden;
  transition: transform .5s cubic-bezier(.2,1.5,.35,1), background .5s ease, box-shadow .5s ease;
}

.sticky-pass:hover .pass-card { transform: scale(1.07); }
.pass-shine { position: absolute; inset: 12px auto auto 16px; width: 54%; height: 22%; border-radius: 50%; background: rgba(255,255,255,.48); filter: blur(8px); }
.pass-face { position: relative; height: 100%; padding: 14%; display: grid; align-content: start; gap: 10px; }
.pass-label { font-size: clamp(1.28rem, 2.4vw, 2.2rem); color: var(--violet); transform: rotate(-4deg); display: inline-block; }
.pass-state { font-size: clamp(.98rem, 1.25vw, 1.25rem); color: var(--rose); }
.soft-portrait { width: 58%; aspect-ratio: 1; margin: 11% auto 0; border-radius: 42% 58% 48% 52%; background: radial-gradient(circle at 35% 28%, #FFF1D8 0 12%, #BEE8C8 13% 36%, #7CA7FF 65%); box-shadow: inset 8px 8px 14px rgba(255,255,255,.62), 0 12px 26px rgba(70,84,163,.16); opacity: .36; }
.stamp-mark { position: absolute; right: 10%; bottom: 18%; width: 42%; aspect-ratio: 1; display: grid; place-items: center; border: 6px solid var(--rose); border-radius: 50%; color: var(--rose); font-family: "Caveat", cursive; font-size: clamp(2rem, 4vw, 4rem); font-weight: 700; transform: rotate(-13deg) scale(.2); opacity: 0; }
.identity-lines { display: grid; gap: 8px; margin-top: auto; opacity: 0; }
.identity-lines i { display: block; height: 12px; border-radius: 20px; background: rgba(70,84,163,.62); box-shadow: inset 5px 5px 8px rgba(255,255,255,.28); }
.identity-lines i:nth-child(2) { width: 76%; background: rgba(167,139,250,.76); }
.identity-lines i:nth-child(3) { width: 58%; background: rgba(190,232,200,.9); }
.token-glow { position: absolute; inset: auto 12% 10% auto; width: 58px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #BEE8C8, rgba(190,232,200,.02) 68%); opacity: 0; filter: blur(2px); }

.sticky-pass.stamped .pass-card { animation: stampSquish .75s cubic-bezier(.2,1.5,.35,1); }
.sticky-pass.stamped .stamp-mark, .sticky-pass.marked .stamp-mark, .sticky-pass.glowing .stamp-mark, .sticky-pass.summit .stamp-mark, .sticky-pass.resting .stamp-mark { opacity: .9; transform: rotate(-13deg) scale(1); }
.sticky-pass.glowing .pass-card { background: linear-gradient(145deg, #FFF1D8, #BEE8C8 54%, #7CA7FF); box-shadow: 0 34px 70px rgba(190,232,200,.52), inset 12px 12px 20px rgba(255,255,255,.62); }
.sticky-pass.glowing .token-glow, .sticky-pass.summit .token-glow { opacity: 1; }
.sticky-pass.marked .identity-lines, .sticky-pass.summit .identity-lines, .sticky-pass.resting .identity-lines { opacity: 1; }
.sticky-pass.summit { transform: translate(8vw, 8vh) scale(.72); }
.sticky-pass.summit .pass-card { background: linear-gradient(145deg, #BEE8C8, #7CA7FF, #A78BFA); }
.sticky-pass.resting { transform: translate(34vw, 16vh) scale(.58); opacity: .86; }

.bokeh-field, .mountains, .cloud, .winding-trail, .identity-constellation, .cairn, .arrow-sign, .floating-tokens, .trail-lights { position: absolute; transition: transform .15s linear; }
.bokeh-field { inset: 0; z-index: -1; pointer-events: none; }
.bokeh { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,241,216,.92), rgba(255,184,107,.42) 42%, rgba(255,122,116,.06) 72%); filter: blur(5px); animation: lanternDrift 8s ease-in-out infinite; }
.b1 { width: 22vw; height: 22vw; left: 7%; top: 8%; opacity: .45; }
.b2 { width: 12vw; height: 12vw; right: 16%; top: 22%; opacity: .38; animation-delay: -2s; }
.b3 { width: 8vw; height: 8vw; left: 58%; top: 68%; opacity: .42; animation-delay: -4s; }
.b4 { width: 18vw; height: 18vw; right: -3%; bottom: 10%; opacity: .3; }
.b5,.b8,.b12,.b15,.b18 { width: 10vw; height: 10vw; left: 16%; top: 22%; opacity: .34; }
.b6,.b9,.b13,.b16,.b19 { width: 6vw; height: 6vw; right: 23%; top: 52%; opacity: .4; animation-delay: -3s; }
.b7,.b10,.b11,.b14,.b17,.b20 { width: 15vw; height: 15vw; right: 8%; bottom: 18%; opacity: .28; animation-delay: -5s; }

.mountains { left: -8%; right: -8%; bottom: -4%; height: 48vh; z-index: 0; filter: drop-shadow(0 -18px 36px rgba(70,84,163,.12)); }
.mountains::before, .mountains::after { content: ""; position: absolute; inset: auto 0 0; height: 100%; border-radius: 48% 52% 0 0 / 42% 46% 0 0; }
.mountains::before { background: linear-gradient(145deg, rgba(167,139,250,.74), rgba(124,167,255,.68)); clip-path: ellipse(58% 44% at 28% 78%); }
.mountains::after { background: linear-gradient(145deg, rgba(255,241,216,.66), rgba(190,232,200,.56)); clip-path: ellipse(62% 42% at 76% 82%); }
.mountains.back { bottom: 7%; opacity: .42; transform: scale(1.18); }
.mountains.mid { bottom: -5%; opacity: .78; }
.mountains.rose::before { background: linear-gradient(145deg, rgba(217,95,116,.5), rgba(255,122,116,.6)); }
.mountains.lavender::before { background: linear-gradient(145deg, rgba(167,139,250,.7), rgba(124,167,255,.5)); }
.mountains.blue::before, .mountains.summit-range::before { background: linear-gradient(145deg, rgba(70,84,163,.64), rgba(124,167,255,.62)); }
.mountains.night::before { background: linear-gradient(145deg, rgba(70,84,163,.88), rgba(167,139,250,.52)); }

.hill { position: absolute; left: -10%; right: -10%; bottom: -18vh; height: 36vh; border-radius: 50% 50% 0 0; z-index: 3; box-shadow: inset 18px 20px 30px rgba(255,255,255,.24), 0 -18px 38px rgba(70,84,163,.08); }
.foreground { background: linear-gradient(145deg, #BEE8C8, #FFF1D8); }
.peach { background: linear-gradient(145deg, #FFB86B, #FFF1D8); }
.mint { background: linear-gradient(145deg, #BEE8C8, #7CA7FF); }
.violet { background: linear-gradient(145deg, #A78BFA, #7CA7FF); }
.dusk { background: linear-gradient(145deg, #4654A3, #A78BFA); }
.deep { background: linear-gradient(145deg, #4654A3, #D95F74); }

.winding-trail { left: 6%; bottom: 3vh; width: 74vw; height: 42vh; z-index: 4; border: 38px solid transparent; border-bottom-color: rgba(255,241,216,.82); border-left-color: rgba(255,241,216,.58); border-radius: 50%; transform: rotate(-13deg); filter: drop-shadow(0 18px 18px rgba(70,84,163,.12)); }

.cloud { width: 210px; height: 86px; border-radius: 80px; background: radial-gradient(circle at 28% 22%, #FFF1D8 0 18%, rgba(255,255,255,.72) 19% 38%, rgba(255,241,216,.7)); box-shadow: 45px 8px 0 rgba(255,241,216,.82), 85px -8px 0 rgba(255,241,216,.7), inset 12px 12px 18px rgba(255,255,255,.48), 0 22px 34px rgba(70,84,163,.12); z-index: 2; animation: cloudFloat 7s ease-in-out infinite; }
.cloud-a { right: 18%; top: 16%; }
.cluster-one { left: 18%; top: 24%; }
.cluster-two { right: 12%; bottom: 30%; transform: scale(1.2); animation-delay: -3s; }

.stamp-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.squish-stamp { width: 110px; aspect-ratio: 1; border-radius: 50%; border: 7px solid var(--rose); background: rgba(255,241,216,.72); color: var(--rose); font-family: "Caveat", cursive; font-size: 2.8rem; font-weight: 700; box-shadow: 0 18px 30px var(--shadow), inset 8px 8px 14px rgba(255,255,255,.48); }

.cairn { right: 18%; bottom: 22%; display: grid; justify-items: center; gap: 0; z-index: 5; }
.cairn i { display: block; border-radius: 50%; background: linear-gradient(145deg, #BEE8C8, #7CA7FF); box-shadow: inset 8px 8px 12px rgba(255,255,255,.44), 0 12px 24px var(--shadow); }
.cairn i:nth-child(1) { width: 78px; height: 48px; }
.cairn i:nth-child(2) { width: 118px; height: 62px; background: linear-gradient(145deg, #FFB86B, #FF7A74); }
.cairn i:nth-child(3) { width: 158px; height: 76px; background: linear-gradient(145deg, #A78BFA, #7CA7FF); }

.soft-copy { max-width: 460px; }
.identity-constellation { width: min(38vw, 390px); height: 240px; left: 12%; top: 18%; z-index: 4; }
.identity-constellation span { position: absolute; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle, #FFF1D8, #BEE8C8 58%, #7CA7FF); box-shadow: 0 0 28px #BEE8C8; }
.identity-constellation span:nth-child(1) { left: 8%; top: 70%; }
.identity-constellation span:nth-child(2) { left: 28%; top: 18%; }
.identity-constellation span:nth-child(3) { left: 54%; top: 58%; }
.identity-constellation span:nth-child(4) { right: 18%; top: 12%; }
.identity-constellation span:nth-child(5) { right: 6%; top: 62%; }
.identity-constellation svg { position: absolute; inset: 0; }
.identity-constellation path { fill: none; stroke: rgba(70,84,163,.55); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 14 17; }

.trail-card { background: linear-gradient(145deg, rgba(255,241,216,.88), rgba(167,139,250,.45)); }
.pin-label { color: var(--rose); font-size: 1.35rem; }
.scribble-notes { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.scribble-notes span, .floating-tokens span, .arrow-sign { font-family: "Patrick Hand", cursive; font-size: clamp(1.3rem, 2.1vw, 2rem); padding: 12px 22px; border-radius: 999px; background: rgba(255,241,216,.72); box-shadow: 0 16px 26px var(--shadow), inset 8px 8px 13px rgba(255,255,255,.44); color: var(--violet); }
.arrow-sign { right: 12%; top: 18%; z-index: 6; transform: rotate(8deg); --hover-rotate: 8deg; }
.floating-tokens { inset: 26% 8% auto auto; display: grid; gap: 18px; z-index: 6; }
.floating-tokens span:nth-child(1) { transform: rotate(-8deg); }
.floating-tokens span:nth-child(2) { transform: translateX(-60px) rotate(6deg); background: rgba(190,232,200,.82); }
.floating-tokens span:nth-child(3) { transform: translateX(18px) rotate(-3deg); background: rgba(255,184,107,.82); }
.signature { margin-top: 28px; font-size: clamp(3rem, 9vw, 9rem); transform: rotate(-3deg); }
.trail-lights { left: 12%; right: 12%; bottom: 24%; display: flex; justify-content: space-around; z-index: 4; }
.trail-lights i { width: 20px; height: 20px; border-radius: 50%; background: #FFB86B; box-shadow: 0 0 26px #FFB86B, 0 0 54px rgba(255,184,107,.55); animation: lanternDrift 5s ease-in-out infinite; }
.trail-lights i:nth-child(even) { background: #BEE8C8; box-shadow: 0 0 26px #BEE8C8; animation-delay: -2s; }

.bubble-pop { position: fixed; width: 18px; height: 18px; border-radius: 50%; pointer-events: none; z-index: 60; background: radial-gradient(circle at 30% 25%, #FFF1D8, #BEE8C8 54%, rgba(124,167,255,.08)); animation: popBubble .8s ease-out forwards; }

@keyframes passBob { 0%,100% { margin-top: 0; } 50% { margin-top: -15px; } }
@keyframes stampSquish { 0% { transform: scale(1); } 35% { transform: scale(1.1,.91); } 70% { transform: scale(.96,1.04); } 100% { transform: scale(1); } }
@keyframes lanternDrift { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-18px) scale(1.06); } }
@keyframes cloudFloat { 0%,100% { margin-top: 0; } 50% { margin-top: -22px; } }
@keyframes popBubble { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.3); } 100% { opacity: 0; transform: translate(-50%, -86px) scale(1.9); } }

@media (max-width: 820px) {
  .sticky-pass { left: auto; right: 18px; top: 12vh; width: 132px; }
  .trail-nav { right: 10px; gap: 9px; }
  .trail-bead { width: 20px; height: 20px; }
  .trailhead-copy, .offset-left, .cloud-copy, .ridge-copy, .summit-copy { margin-left: 0; margin-right: 48px; }
  h1 { font-size: clamp(4.4rem, 22vw, 8rem); }
  h2 { font-size: clamp(3.4rem, 16vw, 6rem); }
  .identity-constellation { opacity: .45; width: 78vw; left: 4%; }
  .floating-tokens { right: 22%; top: auto; bottom: 22%; }
}
