:root {
    /* typography compliance note: Space Grotesk** for body copy and explanatory passages; **IBM Plex Mono only for tiny lot numbers and tiny annotations. Interactions should reward looking around with weather motion and Instrument Serif clarity. */
    --pre-dawn-blue: #071A3D;
    --horizon-lavender: #B9C7FF;
    --cloud-milk: #F7F4E8;
    --rain-glass-cyan: #76E4F7;
    --sunrise-peach: #FFB38A;
    --kite-vermilion: #E84D3D;
    --storm-violet: #40306F;
    --depth: 0;
    --mx: 50vw;
    --my: 50vh;
}

* { box-sizing: border-box; }

html {
    background: var(--pre-dawn-blue);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--cloud-milk);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 300;
    background: var(--pre-dawn-blue);
}

body.loaded .wordmark { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
body.loaded .mist-curtain { opacity: .32; transform: translateY(-9vh); }

.font-sigil { position: fixed; left: -100vw; top: -100vh; opacity: 0; }

.sky-field {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at calc(var(--mx) * .85) calc(var(--my) * .65), rgba(118, 228, 247, .16), transparent 24rem),
        linear-gradient(180deg, #071A3D 0%, #071A3D 21%, #40306F 48%, #B9C7FF 77%, #FFB38A 100%);
    z-index: -3;
}

.grain {
    position: absolute;
    inset: -20%;
    opacity: .16;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(247, 244, 232, .5) 0 1px, transparent 1.5px),
        radial-gradient(circle at 60% 70%, rgba(185, 199, 255, .45) 0 1px, transparent 1.5px),
        radial-gradient(circle at 80% 20%, rgba(118, 228, 247, .4) 0 1px, transparent 1.5px);
    background-size: 97px 113px, 131px 149px, 181px 167px;
    animation: grainDrift 18s steps(8) infinite;
}

.horizon-wash {
    position: absolute;
    inset: 30% -10% -5%;
    background:
        radial-gradient(ellipse at 50% 78%, rgba(255, 179, 138, .64), transparent 35%),
        radial-gradient(ellipse at 30% 60%, rgba(185, 199, 255, .36), transparent 40%),
        linear-gradient(180deg, transparent, rgba(247, 244, 232, .12));
    opacity: calc(.18 + (var(--depth) * .006));
    filter: blur(12px);
}

.cloud-plane {
    position: absolute;
    left: -15%;
    width: 130%;
    height: 34vh;
    background:
        radial-gradient(ellipse at 12% 58%, rgba(247,244,232,.30) 0 13%, transparent 27%),
        radial-gradient(ellipse at 35% 46%, rgba(185,199,255,.26) 0 18%, transparent 34%),
        radial-gradient(ellipse at 62% 62%, rgba(247,244,232,.24) 0 16%, transparent 33%),
        radial-gradient(ellipse at 84% 50%, rgba(118,228,247,.15) 0 12%, transparent 28%);
    filter: blur(22px);
    opacity: .5;
    transform: translate3d(calc((var(--mx) - 50vw) * -.018), 0, 0);
    animation: cloudSail 34s ease-in-out infinite alternate;
}

.cloud-plane-back { top: 8vh; opacity: .22; animation-duration: 52s; }
.cloud-plane-mid { top: 42vh; opacity: .32; animation-duration: 43s; transform: translate3d(calc((var(--mx) - 50vw) * -.028), calc(var(--depth) * -.6px), 0); }
.cloud-plane-front { bottom: -7vh; opacity: .42; animation-duration: 36s; filter: blur(28px); transform: translate3d(calc((var(--mx) - 50vw) * -.045), calc(var(--depth) * -1px), 0); }

.ledger-sky {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .58;
    transform: translateY(calc(var(--depth) * -.16px));
}

.wind-path {
    fill: none;
    stroke: var(--rain-glass-cyan);
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-dasharray: 7 22;
    filter: drop-shadow(0 0 6px rgba(118, 228, 247, .32));
    animation: breezeDash 18s linear infinite;
}
.path-two { stroke: var(--horizon-lavender); animation-duration: 25s; opacity: .62; }
.path-three { stroke: var(--cloud-milk); animation-duration: 31s; opacity: .32; }

.bell-ripple {
    position: fixed;
    left: 50%;
    top: 31vh;
    width: 8px;
    height: 8px;
    border: 1px solid var(--sunrise-peach);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1);
}
.bell-ripple.ringing { animation: bellRipple 1.7s ease-out; }

.pointer-breeze {
    position: fixed;
    left: var(--mx);
    top: var(--my);
    width: 18rem;
    height: 18rem;
    margin: -9rem 0 0 -9rem;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(118, 228, 247, .12), transparent 64%);
    filter: blur(18px);
    opacity: .72;
}

.altitude-gauge {
    position: fixed;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    align-items: center;
    padding: .7rem .45rem;
    border: 1px solid rgba(185,199,255,.28);
    border-radius: 999px;
    background: rgba(7, 26, 61, .34);
    backdrop-filter: blur(12px);
}

.altitude-gauge:before {
    content: "";
    position: absolute;
    top: 2.9rem;
    bottom: 1rem;
    width: 1px;
    background: linear-gradient(var(--rain-glass-cyan), transparent);
    opacity: .36;
}

.gauge-title, .altitude-gauge button {
    position: relative;
    font-family: "IBM Plex Mono", monospace;
    color: var(--cloud-milk);
    font-size: .62rem;
    letter-spacing: .08em;
}

.altitude-gauge button {
    border: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(185,199,255,.08);
    cursor: pointer;
}
.altitude-gauge button.active { background: var(--sunrise-peach); color: var(--pre-dawn-blue); }

main { position: relative; z-index: 2; }

.scene {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) clamp(1.4rem, 6vw, 6rem);
    display: flex;
    align-items: center;
}

.scene:after {
    content: attr(data-altitude) " / WEATHER LEDGER";
    position: absolute;
    left: clamp(1.4rem, 4vw, 4rem);
    bottom: 1.4rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: .68rem;
    color: rgba(247,244,232,.46);
    letter-spacing: .18em;
}

h1, h2 {
    margin: 0;
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    letter-spacing: .045em;
    line-height: .86;
}

h2 { font-size: clamp(4.4rem, 12vw, 13rem); }
p { font-size: clamp(1rem, 1.4vw, 1.35rem); line-height: 1.65; }

.lot-code {
    margin: 0 0 1rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: .72rem;
    line-height: 1.4;
    letter-spacing: .22em;
    color: var(--rain-glass-cyan);
    text-transform: uppercase;
}

.weather-diary {
    font-family: "Noto Serif", serif;
    font-style: italic;
    color: rgba(247,244,232,.72);
}

.reveal-cloud {
    opacity: .18;
    filter: blur(14px);
    transform: translateY(3rem);
    transition: opacity 1.3s ease, filter 1.3s ease, transform 1.3s ease;
}
.reveal-cloud.visible { opacity: 1; filter: blur(0); transform: translateY(0); }

.scene-before { justify-content: center; text-align: center; }
.prebell-copy { width: min(94vw, 1100px); }
.wordmark {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: clamp(.25rem, 1vw, .8rem);
    font-size: clamp(4.8rem, 15vw, 15.5rem);
    opacity: 0;
    filter: blur(24px);
    transform: translateY(2rem) scale(.97);
    transition: opacity 2.4s ease, filter 2.4s ease, transform 2.4s ease;
}

.dot-bell {
    position: relative;
    display: inline-block;
    width: clamp(.9rem, 2vw, 1.9rem);
    height: clamp(.9rem, 2vw, 1.9rem);
    border-radius: 46% 46% 54% 54%;
    background: linear-gradient(180deg, var(--sunrise-peach), var(--kite-vermilion));
    box-shadow: 0 0 24px rgba(255,179,138,.55);
    transform-origin: 50% -90%;
    animation: bellSway 5s ease-in-out infinite;
}
.dot-bell:before { content: ""; position: absolute; left: 50%; bottom: -28%; width: 32%; height: 32%; border-radius: 50%; background: var(--cloud-milk); transform: translateX(-50%); }
.dot-bell:after { content: ""; position: absolute; left: 50%; top: -180%; width: 1px; height: 190%; background: rgba(247,244,232,.5); }
.bell-string { position: absolute; left: 50%; top: 0; height: 31vh; width: 1px; background: linear-gradient(transparent, rgba(247,244,232,.38)); }
.mist-curtain { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(247,244,232,.38), transparent 38%), linear-gradient(180deg, rgba(7,26,61,.96), transparent); opacity: .88; filter: blur(12px); transition: 2.5s ease; }

.condensation-ring { position: absolute; border: 1px solid rgba(118,228,247,.24); border-radius: 50%; opacity: .5; }
.ring-a { width: 42vw; height: 12vw; left: 8vw; top: 18vh; transform: rotate(-12deg); }
.ring-b { width: 30vw; height: 9vw; right: 12vw; bottom: 18vh; transform: rotate(9deg); }

.scene-mist { background: linear-gradient(180deg, rgba(7,26,61,.42), rgba(185,199,255,.09)); }
.cloud-shelf, .silk-placard, .arcade-copy, .rain-copy, .close-copy {
    position: relative;
    max-width: 640px;
    padding: clamp(1.4rem, 3vw, 2.7rem);
    border: 1px solid rgba(247,244,232,.18);
    background: linear-gradient(135deg, rgba(247,244,232,.12), rgba(185,199,255,.07));
    border-radius: 42% 58% 48% 52% / 18% 24% 20% 26%;
    box-shadow: 0 30px 100px rgba(7,26,61,.28), inset 0 0 60px rgba(247,244,232,.06);
    backdrop-filter: blur(13px);
}
.cloud-shelf { margin-left: 6vw; }

.paper-slip, .sealed-slip, .departing-label {
    position: absolute;
    padding: .9rem .8rem;
    min-width: 5.6rem;
    text-align: center;
    font-family: "Space Grotesk", sans-serif;
    font-size: .9rem;
    line-height: 1.1;
    color: var(--pre-dawn-blue);
    background: rgba(247,244,232,.86);
    border: 1px solid rgba(185,199,255,.62);
    box-shadow: 0 18px 40px rgba(7,26,61,.25);
    transform-style: preserve-3d;
    transition: transform .7s ease, box-shadow .7s ease, background .7s ease;
}
.paper-slip small, .sealed-slip small { font-family: "IBM Plex Mono", monospace; font-size: .62rem; color: var(--storm-violet); }
.interactive-tag:hover { transform: rotateY(18deg) rotateZ(-3deg) translateY(-.5rem); background: var(--cloud-milk); box-shadow: 0 25px 60px rgba(118,228,247,.24); }
.slip-one { left: 57vw; top: 19vh; transform: rotate(-8deg); }
.slip-two { right: 12vw; top: 43vh; transform: rotate(7deg); }
.slip-three { left: 44vw; bottom: 13vh; transform: rotate(2deg); }

.string-lines { position: absolute; inset: 9vh 4vw; width: 92vw; height: 82vh; pointer-events: none; }
.string-lines path { fill: none; stroke: rgba(118,228,247,.55); stroke-width: 1.1; stroke-dasharray: 4 10; animation: breezeDash 20s linear infinite; }

.scene-kite { justify-content: flex-end; background: linear-gradient(180deg, rgba(185,199,255,.08), rgba(255,179,138,.1)); }
.kite-copy { margin-right: 7vw; }
.kite-rig { position: absolute; width: 38vw; height: 1px; background: rgba(247,244,232,.42); transform-origin: left center; transition: transform .7s ease; }
.kite-rig span { position: absolute; right: -1rem; top: -.55rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--kite-vermilion); box-shadow: 0 0 16px rgba(232,77,61,.5); }
.kite-rig em { position: absolute; right: 1.2rem; top: -2.1rem; font-family: "IBM Plex Mono", monospace; font-size: .68rem; color: var(--rain-glass-cyan); font-style: normal; letter-spacing: .12em; }
.interactive-string:hover { transform: rotate(var(--r)) scaleX(1.08); }
.rig-a { --r: -18deg; left: 7vw; top: 26vh; transform: rotate(-18deg); }
.rig-b { --r: 10deg; left: 9vw; top: 51vh; transform: rotate(10deg); }
.rig-c { --r: -5deg; left: 16vw; bottom: 22vh; transform: rotate(-5deg); }
.auction-flag { position: absolute; width: 5.5rem; height: 7rem; display: grid; place-items: center; text-align: center; color: var(--pre-dawn-blue); background: linear-gradient(180deg, var(--sunrise-peach), var(--cloud-milk)); clip-path: polygon(0 0,100% 8%,88% 100%,48% 82%,12% 100%); font-family: "IBM Plex Mono", monospace; font-size: .7rem; letter-spacing: .1em; animation: flagTug 4s ease-in-out infinite; }
.flag-a { left: 38vw; top: 18vh; }
.flag-b { left: 22vw; top: 55vh; animation-delay: -1.4s; background: linear-gradient(180deg, var(--horizon-lavender), var(--cloud-milk)); }
.flag-c { right: 8vw; bottom: 16vh; animation-delay: -2.1s; }

.scene-arcade { display: block; padding-top: 12vh; background: linear-gradient(180deg, rgba(64,48,111,.16), rgba(7,26,61,.18)); }
.arcade-copy { margin: 0 0 3vh auto; }
.nimbus-arches { position: absolute; left: 5vw; right: 12vw; bottom: 8vh; height: 58vh; display: flex; align-items: flex-end; gap: 3vw; }
.arch { position: relative; flex: 1; height: 78%; border: 2px solid rgba(247,244,232,.22); border-bottom: 0; border-radius: 50% 50% 0 0 / 30% 30% 0 0; background: radial-gradient(ellipse at 50% 0, rgba(247,244,232,.14), transparent 56%); filter: drop-shadow(0 0 30px rgba(185,199,255,.14)); }
.arch.tall { height: 100%; }
.lantern { position: absolute; left: 50%; top: 28%; width: 4.6rem; height: 5.4rem; display: grid; place-items: center; transform: translateX(-50%); border-radius: 50% 50% 44% 44%; color: var(--pre-dawn-blue); background: radial-gradient(circle at 50% 30%, var(--cloud-milk), var(--sunrise-peach)); box-shadow: 0 0 28px rgba(255,179,138,.46); font-family: "IBM Plex Mono", monospace; font-size: .72rem; }
.compass-gauge { position: absolute; left: 8vw; top: 13vh; width: 8rem; height: 8rem; border: 1px solid rgba(118,228,247,.45); border-radius: 50%; display: grid; place-items: center; color: var(--rain-glass-cyan); font-family: "IBM Plex Mono", monospace; font-size: .65rem; text-transform: uppercase; }
.compass-gauge i { position: absolute; width: 1px; height: 42%; background: var(--kite-vermilion); transform-origin: bottom; animation: compass 9s ease-in-out infinite; }
.compass-gauge span { position: absolute; bottom: -1.4rem; width: 10rem; text-align: center; }

.scene-rain { justify-content: center; background: linear-gradient(180deg, rgba(185,199,255,.1), rgba(64,48,111,.32)); }
.rain-copy { margin-left: -28vw; }
.droplet-ledger { position: absolute; right: 14vw; top: 17vh; width: 24vw; height: 65vh; border-left: 1px dashed rgba(118,228,247,.44); }
.droplet-ledger span { position: absolute; width: .62rem; height: .9rem; border-radius: 50% 50% 55% 55%; background: var(--rain-glass-cyan); box-shadow: 0 0 16px rgba(118,228,247,.6); opacity: .72; animation: dropletJoin 4.5s ease-in-out infinite; }
.droplet-ledger span:nth-child(1){ left: 12%; top: 4%; animation-delay: -.4s; }.droplet-ledger span:nth-child(2){ left: 44%; top: 16%; animation-delay: -1s; }.droplet-ledger span:nth-child(3){ left: 72%; top: 27%; animation-delay: -1.8s; }.droplet-ledger span:nth-child(4){ left: 30%; top: 39%; animation-delay: -2.4s; }.droplet-ledger span:nth-child(5){ left: 82%; top: 50%; animation-delay: -2.8s; }.droplet-ledger span:nth-child(6){ left: 18%; top: 64%; animation-delay: -3.2s; }.droplet-ledger span:nth-child(7){ left: 56%; top: 76%; animation-delay: -3.8s; }.droplet-ledger span:nth-child(8){ left: 37%; top: 89%; animation-delay: -4.2s; }
.sealed-slip { right: 12vw; bottom: 18vh; }
.sealed-slip:after { content: ""; position: absolute; right: -.55rem; top: -.55rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--kite-vermilion); }
.sealed-slip.second { right: 31vw; top: 22vh; transform: rotate(-6deg); }

.scene-horizon { justify-content: center; min-height: 112vh; background: linear-gradient(180deg, rgba(255,179,138,.08), rgba(185,199,255,.18)); text-align: center; }
.horizon-bowl { position: absolute; left: -8vw; right: -8vw; bottom: 4vh; height: 42vh; border-radius: 50% 50% 0 0; background: radial-gradient(ellipse at 50% 100%, rgba(255,179,138,.35), transparent 63%), linear-gradient(180deg, transparent, rgba(247,244,232,.18)); }
.close-copy { max-width: 820px; }
.departing-label { color: var(--storm-violet); animation: depart 10s ease-in-out infinite alternate; }
.label-a { left: 10vw; top: 24vh; transform: rotate(-8deg); }
.label-b { right: 12vw; top: 18vh; animation-delay: -3s; }
.label-c { left: 22vw; bottom: 22vh; animation-delay: -5s; }

@keyframes grainDrift { 0% { transform: translate(0,0); } 100% { transform: translate(-4%, 3%); } }
@keyframes cloudSail { from { margin-left: -4vw; } to { margin-left: 4vw; } }
@keyframes breezeDash { to { stroke-dashoffset: -220; } }
@keyframes bellSway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
@keyframes bellRipple { 0% { opacity: .85; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(84); } }
@keyframes flagTug { 0%,100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-.45rem); } }
@keyframes compass { 0%,100% { transform: rotate(-28deg); } 50% { transform: rotate(42deg); } }
@keyframes dropletJoin { 0%,100% { transform: translateY(0) scale(1); opacity: .36; } 50% { transform: translateY(1.8rem) scale(1.35); opacity: 1; } }
@keyframes depart { from { transform: translateY(0) rotate(-6deg); opacity: .8; } to { transform: translateY(-3rem) rotate(7deg); opacity: .38; } }

@media (max-width: 760px) {
    .altitude-gauge { right: .5rem; transform: translateY(-50%) scale(.86); }
    .scene { padding-right: 3.5rem; }
    .wordmark { flex-wrap: wrap; gap: 0 .4rem; }
    h2 { font-size: clamp(3.5rem, 19vw, 7rem); }
    .cloud-shelf, .silk-placard, .arcade-copy, .rain-copy, .close-copy { max-width: 100%; }
    .paper-slip, .sealed-slip { transform: scale(.82); }
    .slip-one { left: 54vw; }.slip-two { right: 16vw; }.slip-three { left: 12vw; }
    .kite-copy, .rain-copy { margin: 0; }
    .kite-rig { width: 60vw; }
    .nimbus-arches { left: 2vw; right: 15vw; gap: 1vw; opacity: .72; }
    .droplet-ledger { right: 8vw; width: 34vw; opacity: .75; }
}
