:root{font-family:"Helvetica Neue",Arial,sans-serif;color:#1e1725;background:#e9e0f6;scroll-behavior:smooth}*{box-sizing:border-box}body{margin:0}a,button{color:inherit}button,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #ad6ac9;outline-offset:4px}header,footer{position:fixed;z-index:6;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(14px,2vw,38px);font-weight:600}header{top:0;height:clamp(50px,7svh,74px);background:linear-gradient(#f3eafbde,transparent)}header nav{display:flex;gap:2vw;margin-right:auto;margin-left:3vw}header a,footer a{text-decoration:none}header .brand img{height:clamp(21px,2.2vw,32px);display:block}header nav a,header button,footer{font-size:clamp(11px,.84vw,16px)}header button,.finish button,footer button{border:0;background:#fff8;border-radius:30px;padding:8px 14px}
.scene{min-height:100svh;position:relative;overflow:hidden;isolation:isolate}.opening{background:radial-gradient(ellipse at 35% 35%,#f5f1f8,#d7c9eb 86%)}.flower{position:absolute;pointer-events:none;z-index:-1;bottom:-4%;left:-1%;width:56%;height:78%;background:url(images/cosmos.webp) left bottom/cover;mask-image:linear-gradient(0deg,black 50%,transparent 100%),linear-gradient(90deg,black 48%,transparent 100%);mask-composite:intersect}
h1,h2{line-height:.91;letter-spacing:-.075em;margin:0;text-wrap:balance}h1{position:absolute;top:16%;width:100%;text-align:center;font-size:clamp(3rem,6.6vw,8rem);font-weight:800}.opening aside{position:absolute;right:5%;top:54%;width:min(20vw,265px)}.scene p{line-height:1.55;font-size:clamp(.9rem,1.1vw,1.25rem)}.scene a{font-weight:bold;text-underline-offset:5px}.traveller{position:fixed;z-index:3;width:clamp(205px,min(38vw,62svh),680px);aspect-ratio:3/2;pointer-events:none;top:0;left:0;will-change:transform;transform:translate(37vw,39svh)}.traveller img,.traveller video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.traveller video{opacity:0}.traveller.playable video{opacity:1}.traveller.playable img{opacity:0}
.study{background:#e9e0f6;display:grid;grid-template-columns:1fr 1fr;align-items:center;padding:8vw}.number{display:block;color:#9c78c3;font-size:clamp(3.4rem,10vw,13rem);font-weight:700;line-height:.9;letter-spacing:-.08em;opacity:.45}.copy{z-index:4;max-width:400px}.copy h2,.finish h2{font-size:clamp(2.8rem,5vw,7rem)}.dusk{background:#251331 url(images/clematis.webp) right center/auto 120% no-repeat;color:#fff0ff;display:flex;align-items:center;padding:8vw}.dusk::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#251331 20%,#251331a0 49%,transparent 82%)}.dusk .number{color:#dab4f3}.back .copy{grid-column:2}.back .flower{background-image:url(images/clematis.webp);mask-image:radial-gradient(ellipse at 5% 55%,black,transparent 70%)}.finish{display:flex;flex-direction:column;align-items:center;padding:17svh 16px 0;gap:20px;text-align:center}.finish strong{position:absolute;bottom:9%;left:3%;font-size:clamp(2rem,3.5vw,4rem);letter-spacing:-.07em}.finish button{position:relative;z-index:4}
footer{bottom:0;height:37px;pointer-events:none}footer>*{pointer-events:auto}footer img{display:block;height:23px}footer button{font-size:11px}body.dark header,body.dark footer{color:#fff}body.dark header{background:linear-gradient(#281237cc,transparent)}body.dark header img,body.dark footer img{filter:brightness(0) invert(1)}body.dark header button,body.dark footer button{background:#362042}
dialog{border:0;border-radius:20px;background:#faf3ff;color:#301c3d;padding:clamp(22px,4vw,52px);width:min(92vw,440px)}dialog::backdrop{background:#261c37a6;backdrop-filter:blur(5px)}dialog h2{font-size:2.8rem}dialog label{display:block;margin:16px 0}dialog select,dialog textarea{width:100%;display:block;margin-top:6px;border:1px solid #baadc1;border-radius:6px;background:white;padding:9px}dialog form button{border:0;border-radius:24px;padding:12px 16px;background:#512a64;color:white}#close{position:absolute;right:12px;top:10px;border:0;background:none;font-size:22px}
@media(max-width:650px){header nav{gap:10px;margin-left:10px}header button{padding:6px 8px}.opening h1{top:17%;font-size:clamp(2.9rem,11vw,4.4rem)}.flower{width:85%;height:62%}.opening aside{top:auto;bottom:8%;right:6%;width:48%}.scene p{font-size:.94rem}.study{display:block;padding:62svh 8vw 9svh}.study>.number{position:absolute;left:7%;top:12%}.copy h2{font-size:2.7rem}.back .number,.dusk .number{font-size:2.6rem;margin-bottom:5px}.dusk{align-items:end;padding:0 8vw 11svh;background-size:auto 110%}.copy{max-width:88%}.traveller{width:min(78vw,380px)}.finish h2{font-size:2.9rem}.finish strong{bottom:12%}}
@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}}
