@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=DM+Sans:wght@400;500;600&display=swap');

:root{color-scheme:dark;--ink:#f0eee7;--dim:#a0abbc;--gold:#e4d7b1;--serif:'Cormorant Garamond',Georgia,'Times New Roman',serif;--sans:'DM Sans',Arial,sans-serif}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{background:#040b19;color:var(--ink);font-family:var(--sans);font-weight:400;-webkit-font-smoothing:antialiased}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:7px}button{border:0}button:disabled{cursor:default}#world{position:fixed;inset:0;width:100%;height:100%;display:block;background:radial-gradient(ellipse at 68% 24%,#1c2845 0,#080f22 45%,#030913 100%)}
.film-grain{position:fixed;inset:0;pointer-events:none;z-index:8;opacity:.048;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.6' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}.vignette{position:fixed;inset:0;pointer-events:none;z-index:1;background:linear-gradient(180deg,rgba(1,4,13,.23),transparent 23%,transparent 65%,rgba(1,4,13,.5)),radial-gradient(ellipse at center,transparent 30%,rgba(1,4,13,.33) 100%)}
.masthead{position:fixed;z-index:10;top:0;left:0;width:100%;padding:32px 46px;display:flex;align-items:center;justify-content:space-between}.wordmark{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--ink);font-family:var(--serif);font-size:27px;letter-spacing:-.9px}.wordmark svg{width:22px;height:22px;color:var(--gold)}.wordmark-dot{color:var(--gold)}.dedication{position:absolute;left:50%;transform:translateX(-50%);font-size:9px;letter-spacing:3px;color:#a1aaba}.sound-button{display:flex;align-items:center;gap:13px;padding:10px 0 10px 12px;background:transparent}.sound-label{font-size:9px;letter-spacing:1.6px;color:#c6cbd5}.sound-bars{display:flex;gap:3px;align-items:center;height:19px}.sound-bars i{display:block;width:2px;background:#d8cfb9;height:5px;animation:equalize 1.35s ease-in-out infinite alternate}.sound-bars i:nth-child(2){height:15px;animation-delay:-.5s}.sound-bars i:nth-child(3){height:10px;animation-delay:-.9s}.sound-bars i:nth-child(4){height:7px;animation-delay:-.2s}.sound-button[aria-pressed=false] .sound-bars i{animation-play-state:paused;height:3px}.sound-button[aria-pressed=false] .sound-label{color:#7d8798}
#experience{position:fixed;inset:0;z-index:3}.scene{position:absolute;left:0;top:49%;width:100%;padding:0 24px;transform:translateY(calc(-50% + 20px));text-align:center;opacity:0;visibility:hidden;pointer-events:none;transition:opacity 1.3s ease,transform 1.6s cubic-bezier(.2,.7,.2,1),visibility 1.3s}.scene.active{opacity:1;visibility:visible;transform:translateY(-50%);pointer-events:auto}.scene[inert]{pointer-events:none}.eyebrow{font-size:9px;letter-spacing:3.8px;font-weight:500;color:var(--gold);margin:0 0 21px;display:flex;align-items:center;justify-content:center;gap:15px}.eyebrow>span{display:inline-block;width:22px;height:1px;background:var(--gold);opacity:.5}h1,h2,p{margin-top:0}h1,h2{font-family:var(--serif);font-weight:400;letter-spacing:-2.8px;line-height:.97;margin-bottom:24px;text-shadow:0 3px 35px rgba(0,0,0,.24)}h1{font-size:clamp(58px,6.4vw,102px)}h1 em,h2 em{font-weight:400;color:var(--gold)}.intro{top:48.5%}.intro-copy,.scene-copy{font-size:12px;line-height:1.95;letter-spacing:.25px;color:#b4bdcc;margin:0 auto 28px;max-width:360px;text-shadow:0 1px 12px #040a18}.pill-button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:28px;min-height:47px;padding:0 23px;border:1px solid rgba(225,218,199,.4);border-radius:100px;background:rgba(10,19,33,.2);backdrop-filter:blur(7px);font-size:11px;letter-spacing:.5px;transition:background .3s,border-color .3s,box-shadow .3s,transform .3s}.pill-button svg{width:17px;height:17px;color:var(--gold)}.pill-button:hover{background:rgba(225,218,199,.1);border-color:var(--gold);box-shadow:0 0 25px #daca9a0d;transform:translateY(-2px)}.ocean-hit{position:absolute;inset:55% 0 0;z-index:-1;background:transparent;cursor:crosshair}.ocean-hit:focus-visible{outline-offset:-9px}.ocean-hit[hidden]{display:none}.water-hint{position:fixed;bottom:106px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:13px;font-size:8px;letter-spacing:2px;color:#a9b6c7;pointer-events:none;transition:opacity .6s}.touch-ring{width:21px;height:9px;border:1px solid #b9c8d680;border-radius:50%;position:relative;animation:ripple 3s ease-in-out infinite}.touch-ring:before{content:'';position:absolute;inset:-6px -10px;border:1px solid #b9c8d62a;border-radius:50%}.hint-line{height:30px;width:1px;background:linear-gradient(#a9b6c77a,transparent)}body[data-stage]:not([data-stage="0"]) .water-hint{opacity:0}
.flight{top:59%}.flight .eyebrow{font-size:8px;letter-spacing:3.5px;margin-bottom:28px}.flight-title{font-size:clamp(76px,9.2vw,140px);line-height:.96;letter-spacing:-4px;margin-bottom:30px;color:var(--ink)}.flight-title em{color:var(--gold)}.flight-note{font-family:var(--serif);font-size:19px;font-style:italic;color:#a7adbb;letter-spacing:.1px}
.wish{top:60%}.wish h2,.birthday h2{font-size:clamp(52px,5.8vw,86px);line-height:1.02}.wish .eyebrow{margin-bottom:22px}.wish .scene-copy{margin-bottom:16px}.wish-star{position:relative;display:block;margin:0 auto 16px;width:76px;height:76px;background:transparent;color:var(--gold);transition:transform .6s,filter .6s}.wish-star svg{position:absolute;left:23px;top:23px;width:30px;height:30px;filter:drop-shadow(0 0 13px #e8d5a0aa);animation:star-breathe 3s ease-in-out infinite}.star-orbit{position:absolute;inset:0;border:1px solid #e4d7b12a;border-radius:50%}.star-orbit:after{position:absolute;content:'';inset:9px;border:1px solid #e4d7b110;border-radius:50%}.wish-star:hover{transform:scale(1.14);filter:brightness(1.3)}.small-note{font-size:8px;color:#a2acbf;letter-spacing:2.7px}.birthday{top:61%}.korean{font-size:12px;letter-spacing:5px}.birthday .scene-copy{margin-bottom:25px}.text-button{display:block;margin:24px auto 0;padding:4px 8px;font-size:10px;letter-spacing:.7px;color:#96a2b5;background:transparent;transition:color .3s}.text-button span{padding-left:5px}.text-button:hover{color:var(--gold)}
.footer{position:fixed;bottom:0;left:0;width:100%;padding:0 46px 29px;z-index:9;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.chapter-label{font-size:8px;letter-spacing:2.2px;color:#929eaf;min-width:175px}.chapter-label>span{color:var(--gold);padding-right:8px}.chapters{display:flex;gap:9px;position:absolute;left:50%;transform:translateX(-50%);align-items:center}.chapter{width:4px;height:4px;background:#b3bec533;border-radius:3px;transition:background 1s,width 1s}.chapter.current{width:22px;background:#d9ceb0}.footer-note{font-size:7px;letter-spacing:1.9px;color:#8b97aa}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}#shooting-star{pointer-events:none;position:fixed;left:20%;top:16%;height:1px;width:0;background:linear-gradient(90deg,transparent,#f7e9bb);box-shadow:0 0 8px #e8ddbb;transform:rotate(30deg);opacity:0}#shooting-star.shoot{animation:shoot 1.7s ease-in forwards}
dialog{position:fixed;inset:0;z-index:30;max-width:min(520px,calc(100vw - 32px));max-height:calc(100svh - 48px);width:100%;padding:37px 38px 34px;text-align:center;color:var(--ink);border:1px solid #d6caa62b;border-radius:4px;background:linear-gradient(155deg,#182237f5,#0b1224fa);box-shadow:0 20px 120px #0008}dialog::backdrop{background:#020511a8;backdrop-filter:blur(10px)}.close-button{position:absolute;right:15px;top:10px;background:transparent;color:#b2bbca;font-size:27px;font-weight:400;padding:0 8px}.letter-moon{display:block;font-family:var(--serif);font-size:44px;color:var(--gold);margin:0 0 12px;line-height:1}dialog .eyebrow{font-size:8px;letter-spacing:2.6px;margin-bottom:17px}dialog h2{font-size:51px;letter-spacing:-1.5px;line-height:.95;margin-bottom:24px}.letter-body{font-family:var(--serif);font-size:18px;line-height:1.4;color:#c7cfda}.letter-body p{margin-bottom:17px}.letter-body p:last-child{margin-bottom:0}.letter-signature{font-style:italic;color:var(--gold)}.letter-signature span{display:block;margin-top:11px;font:10px/1.6 var(--sans);letter-spacing:1px;color:#abb6c8}.no-script{position:fixed;inset:35% 10%;z-index:50;text-align:center;padding:25px;background:#0d172b}
@keyframes equalize{to{height:4px}}@keyframes ripple{50%{transform:scale(1.16);opacity:.5}}@keyframes star-breathe{50%{filter:drop-shadow(0 0 24px #e8d5a0cc);transform:scale(1.13)}}@keyframes shoot{0%{width:0;opacity:0;transform:translate(0,0) rotate(30deg)}15%{width:180px;opacity:1}75%{opacity:1}100%{width:100px;opacity:0;transform:translate(75vw,40vh) rotate(30deg)}}
@media(min-width:1600px){.intro{top:49%}.masthead{padding:38px 60px}.footer{padding:0 60px 34px}}
@media(max-width:700px){.masthead{padding:23px 23px}.wordmark{font-size:25px}.dedication{display:none}.sound-label{font-size:8px}.sound-button{gap:10px}.eyebrow{font-size:8px;letter-spacing:3px}.scene{padding:0 21px}.intro{top:49%}h1{font-size:clamp(51px,12vw,78px);letter-spacing:-1.8px;line-height:1.01;margin-bottom:23px}.intro-copy,.scene-copy{font-size:11px;line-height:1.9}.pill-button{font-size:10px;min-height:46px;padding:0 22px}.water-hint{bottom:92px;font-size:7px}.footer{padding:0 23px 24px}.chapter-label{font-size:7px;letter-spacing:1.3px;min-width:0}.footer-note{font-size:6px;letter-spacing:1px;max-width:105px;text-align:right;line-height:1.7}.chapters{gap:6px}.chapter.current{width:17px}.flight{top:58%}.flight .eyebrow{font-size:7px;letter-spacing:2px;margin-bottom:29px}.flight-title{font-size:clamp(79px,18vw,110px);letter-spacing:-3px}.flight-note{font-size:17px}.wish{top:60%}.wish h2,.birthday h2{font-size:clamp(45px,10vw,66px);letter-spacing:-1.8px}.wish .eyebrow{margin-bottom:19px}.birthday{top:61%}.wish-star{width:68px;height:68px;margin-bottom:12px}.wish-star svg{left:20px;top:20px;width:28px;height:28px}.small-note{font-size:7px}dialog{padding:28px 22px}dialog h2{font-size:44px}.letter-body{font-size:17px}.letter-moon{font-size:35px}}
@media(max-height:650px){.masthead{padding-top:17px;padding-bottom:17px}.intro{top:47%}h1{font-size:58px}.intro .eyebrow{margin-bottom:14px}.intro-copy{margin-bottom:17px}.water-hint{bottom:56px;gap:8px}.hint-line{height:14px}.wish,.birthday{top:58%}.wish h2,.birthday h2{font-size:49px;margin-bottom:15px}.wish .eyebrow,.birthday .eyebrow{margin-bottom:14px}.wish .scene-copy{margin-bottom:5px}.wish-star{width:56px;height:56px;margin-bottom:8px}.wish-star svg{top:15px;left:15px;width:26px;height:26px}.scene-copy{font-size:11px;margin-bottom:16px}.text-button{margin-top:14px}.flight-title{font-size:88px}.flight .eyebrow{margin-bottom:21px}.footer{padding-bottom:17px}.letter-body{font-size:16px}.letter-body p{margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition-duration:.15s!important}.film-grain{display:none}#shooting-star.shoot{display:none}}

/* The ocean leads the opening; interface fades out during the ascent. */
[hidden]{display:none!important}
.wordmark{font-size:24px;transition:opacity .8s ease}
.film-grain{opacity:.033}
.footer{transition:opacity .8s ease}
body[data-stage="0"] .footer{opacity:.52}
body[data-stage="1"] .footer,body[data-stage="1"] .wordmark{opacity:0;pointer-events:none}
.scene{z-index:2}
.scene.intro{top:73%;padding:0 24px;pointer-events:none}
.scene.intro h1{font-size:clamp(30px,3.4vw,48px);line-height:1.2;letter-spacing:-.7px;margin-bottom:21px;text-shadow:0 2px 22px #020a16}
.scene.intro h1 em{color:#e3dbbf}
.begin-button{display:inline-flex;align-items:center;justify-content:center;gap:13px;min-height:44px;padding:8px 14px;border:0;background:transparent;color:#c4cdd8;font-size:9px;letter-spacing:2px;text-transform:uppercase;transition:color .3s,opacity .3s;pointer-events:auto}
.begin-button:hover{color:#f4e9c9}
.begin-button:disabled{opacity:.4}
.water-mark{position:relative;width:17px;height:7px;border:1px solid #d7dfeb99;border-radius:50%;transition:transform .5s}
.water-mark:after{position:absolute;content:'';inset:-5px -8px;border:1px solid #d7dfeb33;border-radius:50%}
.begin-button:hover .water-mark{transform:scale(1.15)}
.ocean-hit{inset:0;z-index:1}
.scene.flight{top:61%;transition:none;pointer-events:none}
.scene.flight.active{opacity:var(--flight-opacity,0)}
.scene.flight .flight-title{font-size:clamp(60px,7.5vw,108px);line-height:1.02;letter-spacing:-2.6px;margin:0;text-shadow:0 3px 34px #030813}
#transition-shade{position:fixed;inset:0;z-index:2;background:#040b19;opacity:0;pointer-events:none}
#touch-pulse{position:absolute;left:50%;top:74%;z-index:1;width:1px;height:1px;pointer-events:none}
#touch-pulse i{position:absolute;left:0;top:0;width:25px;height:10px;border:1px solid #d6e7ff8c;border-radius:50%;transform:translate(-50%,-50%);opacity:0;box-shadow:0 0 10px #bcdcff1a}
#touch-pulse.playing i{animation:water-contact 1.65s ease-out both}
body.paused #shooting-star{animation-play-state:paused}
#touch-pulse.playing i:nth-child(2){animation-delay:.14s}
#touch-pulse.playing i:nth-child(3){animation-delay:.28s}
@keyframes water-contact{0%{opacity:.6;transform:translate(-50%,-50%) scale(.5)}100%{opacity:0;transform:translate(-50%,-50%) scale(8)}}
@media(max-width:700px){.scene.intro{top:74%}.scene.intro h1{font-size:34px;margin-bottom:16px}.begin-button{font-size:8px;letter-spacing:1.8px}.scene.flight{top:60%}.scene.flight .flight-title{font-size:clamp(58px,15vw,84px);letter-spacing:-1.8px}.wordmark{font-size:23px}}
@media(max-height:650px){.scene.intro{top:75%}.scene.intro h1{font-size:30px;margin-bottom:10px}.scene.flight .flight-title{font-size:64px}.scene.flight{top:62%}}
.scene.intro h1{margin-bottom:0}

/* Keep the moon above a large greeting; only the final scene keeps a supporting message. */
.scene.intro{top:63%;padding:0 24px}
.scene.intro h1{font-size:clamp(48px,6.5vw,86px);line-height:1.02;letter-spacing:-2px;margin:0 auto;max-width:900px;text-shadow:0 3px 28px #020a16}
.scene.intro h1 em{display:block;font-size:1.3em;line-height:1.02;margin-top:4px}
.scene-message{max-width:440px;margin:0 auto;color:#c5cbd6;font-size:14px;font-weight:400;line-height:1.85;letter-spacing:.15px;text-wrap:balance;text-shadow:0 2px 16px #020816,0 0 30px #020816}
.scene.flight{top:61%}
.scene.flight .flight-title{font-size:clamp(76px,8.2vw,116px);line-height:.98;letter-spacing:-2.5px}
.scene.wish{top:61%}
.scene.wish h2{margin-bottom:30px}
.scene.wish .wish-star{margin-bottom:0}
.scene.birthday{top:63%}
.scene.birthday h2{margin-bottom:24px}
.scene.birthday .scene-message{margin-bottom:30px}
@media(max-width:700px){
  .scene.intro{top:63%;padding:0 20px}
  .scene.intro h1{font-size:clamp(41px,11.4vw,68px);letter-spacing:-1.5px}
  .scene.intro h1 em{font-size:1.45em;margin-top:4px}
  .scene-message{max-width:330px;font-size:clamp(12px,3.35vw,14px);line-height:1.85;letter-spacing:.05px}
  .scene.flight{top:61%}
  .scene.flight .flight-title{font-size:clamp(64px,18vw,94px);letter-spacing:-1.8px}
  .scene.wish{top:61%}
  .scene.wish h2{font-size:clamp(42px,11.2vw,66px);line-height:1.05;margin-bottom:28px}
  .scene.birthday{top:63%}
  .scene.birthday h2{font-size:clamp(43px,11.6vw,68px);line-height:1.04;margin-bottom:23px}
  .scene.birthday .scene-message{margin-bottom:26px}
}
@media(max-height:560px){
  .scene.intro{top:64%}
  .scene.intro h1{font-size:clamp(32px,5vw,46px)}
  .scene.intro h1 em{font-size:1.2em}
  .scene-message{font-size:11px;line-height:1.7}
  .scene.flight{top:64%}
  .scene.flight .flight-title{font-size:54px}
  .scene.wish,.scene.birthday{top:65%}
  .scene.wish h2,.scene.birthday h2{font-size:36px;margin-bottom:14px}
  .scene.birthday .eyebrow{font-size:9px;margin-bottom:12px}
  .scene.birthday .scene-message{margin-bottom:16px}
  .scene.birthday .pill-button{min-height:42px}
}

/* A small tap prompt fades in only if she lingers on the opening. */
.tap-hint{position:absolute;left:0;right:0;bottom:calc(46px + env(safe-area-inset-bottom));z-index:2;margin:0;text-align:center;font-size:10px;font-weight:500;letter-spacing:2.6px;text-transform:uppercase;color:#c8d0dc;text-shadow:0 1px 14px #020816;opacity:0;pointer-events:none;transition:opacity 1.6s ease}
.tap-hint span{display:inline-block;margin-right:-2.6px;animation:hint-breathe 3.4s ease-in-out infinite}
.tap-hint .hint-click{display:none}
@media(hover:hover) and (pointer:fine){.tap-hint .hint-touch{display:none}.tap-hint .hint-click{display:inline-block}}
body.hint-ready[data-stage="0"] .tap-hint{opacity:.85}
body:not([data-stage="0"]) .tap-hint{transition-duration:.4s}
@keyframes hint-breathe{50%{opacity:.4}}
@media(max-height:560px){.tap-hint{bottom:calc(22px + env(safe-area-inset-bottom))}}
