:root {
  --ink: #fdf6ed;
  --muted: #d8c3bd;
  --gold: #eac785;
  --gold-light: #ffe7af;
  --pink: #d37a96;
  --rose: #b85172;
  --night: #15172d;
  --night-deep: #0d0d1d;
  --leaf: #455849;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Be Vietnam Pro", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 1100px; color: var(--ink); background: var(--night-deep); font-family: var(--sans); overflow-x: hidden; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }

#fireworks { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.sky-noise { position: fixed; z-index: 30; inset: 0; pointer-events: none; opacity: .055; 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='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }

.topbar { position: absolute; top: 0; z-index: 4; width: 100%; height: 94px; padding: 0 7vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255, 235, 206, .1); color: #f9e9d5; }
.brand { font-family: var(--serif); font-size: 26px; letter-spacing: 5px; font-weight: 600; }
.brand span { color: #e689a6; font-size: 14px; vertical-align: 2px; letter-spacing: 2px; }
.nav-links { display: flex; gap: 38px; margin-left: 75px; font-size: 10px; text-transform: uppercase; letter-spacing: 2.1px; color: rgba(255, 244, 233, .7); }
.nav-links a { transition: color .25s ease; }.nav-links a:hover { color: var(--gold-light); }
.since { font: 500 10px/1 var(--sans); letter-spacing: 2px; color: var(--gold); text-transform: uppercase; }

.hero { min-height: 820px; position: relative; display: flex; flex-direction: column; align-items: center; overflow: hidden; background: radial-gradient(ellipse 34% 35% at 50% 27%, rgba(162, 102, 139, .32), transparent 70%), radial-gradient(ellipse 25% 28% at 50% 57%, rgba(255, 204, 159, .13), transparent 70%), linear-gradient(180deg, #101228 0%, #24223e 53%, #231d35 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 240px; background: linear-gradient(transparent, #191827); z-index: 1; }
.hero-glow { position: absolute; top: 146px; width: 580px; height: 580px; background: radial-gradient(circle, rgba(242, 187, 155, .11), transparent 65%); filter: blur(8px); }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff3c9; box-shadow: 0 0 8px #fff0be; opacity: .8; animation: shimmer 3s ease-in-out infinite alternate; }
.stars i:nth-child(1){top:15%;left:16%;}.stars i:nth-child(2){top:21%;left:27%;width:3px;height:3px;animation-delay:-1s}.stars i:nth-child(3){top:11%;left:42%;}.stars i:nth-child(4){top:17%;left:69%;}.stars i:nth-child(5){top:27%;left:84%;width:3px;height:3px;animation-delay:-2s}.stars i:nth-child(6){top:40%;left:11%;}.stars i:nth-child(7){top:45%;left:89%;}.stars i:nth-child(8){top:33%;left:76%;}.stars i:nth-child(9){top:8%;left:88%;}.stars i:nth-child(10){top:34%;left:21%;}
@keyframes shimmer { to { opacity: .25; transform: scale(.65); } }
.moon { position: absolute; top: 112px; left: 50%; width: 295px; height: 295px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 38% 35%, #fff8dc, #f0d5aa 48%, #d7a879 90%); box-shadow: 0 0 40px rgba(255, 219, 171, .28), 0 0 140px rgba(255, 170, 137, .18); opacity: .78; }
.moon::before, .moon::after { content: ""; position: absolute; display: block; border-radius: 50%; background: rgba(204, 159, 119, .17); }.moon::before{ width:44px;height:22px; top:72px;left:70px; transform:rotate(-24deg)}.moon::after{width:26px;height:15px;right:68px;bottom:74px;transform:rotate(30deg)}
.moon span { position: absolute; inset: -26px; border: 1px solid rgba(255, 229, 174, .16); border-radius: 50%; }
.moon span::before,.moon span::after {content:"";position:absolute;border:1px solid rgba(255, 229, 174, .1);border-radius:50%;}.moon span::before{inset:-28px}.moon span::after{inset:-58px}

.hero-copy { position: relative; z-index: 2; margin-top: 159px; text-align: center; }
.eyebrow { margin: 0 0 12px; display: flex; align-items: center; justify-content: center; gap: 12px; text-transform: uppercase; font-size: 9px; letter-spacing: 3.4px; color: var(--gold); }.eyebrow span { display:inline-block; width:25px; height:1px; background:rgba(234,199,133,.72); }
.script { margin: 0; font: 52px/.68 "Great Vibes", cursive; color: #f6cfb5; text-shadow: 0 2px 18px rgba(248, 163, 184, .25); }
h1,h2,h3,p { margin-top: 0; } h1,h2,h3 { font-family: var(--serif); }
.hero h1 { margin: 13px 0 15px; font-size: 62px; font-weight: 500; letter-spacing: -.8px; line-height: .84; text-shadow: 0 3px 24px rgba(8, 4, 18, .25); }.hero h1 em, h2 em { font-weight: 500; color: #f1b0b5; }
.intro { color: rgba(255, 240, 226, .72); font-size: 12px; line-height: 1.9; letter-spacing: .2px; }

.countdown-wrap { position: relative; z-index: 2; margin-top: 48px; padding: 1px; background: linear-gradient(130deg, transparent 2%, rgba(247, 220, 171, .68) 47%, transparent 96%); clip-path: polygon(3% 0,97% 0,100% 18%,100% 82%,97% 100%,3% 100%,0 82%,0 18%); }
.countdown-frame { min-width: 602px; padding: 18px 40px 16px; text-align: center; background: rgba(21, 18, 38, .54); backdrop-filter: blur(5px); clip-path: inherit; }
.countdown-label { margin: 0 0 8px; color: rgba(247, 220, 171, .84); text-transform: uppercase; font-size: 8px; letter-spacing: 3px; }
.countdown { display: flex; justify-content: center; gap: 31px; }.counter { min-width: 75px; position: relative; }.counter:not(:last-child)::after { content: ":"; position:absolute; right:-19px; top:1px; color:#e9b5ae; font: 33px/1 var(--serif); }.counter b { display:block; font: 600 36px/.96 var(--serif); letter-spacing: 1px; color:#fff4df; text-shadow: 0 0 15px rgba(255, 221, 176, .18); }.counter span { display:block; margin-top:5px; color:#cda894; font-size:8px; letter-spacing:1.8px; text-transform:uppercase; }.date-row { margin-top: 12px; display:flex; align-items:center; gap:11px; justify-content:center; color:#eecf99; font:600 10px/1 var(--serif); letter-spacing:4px; }.date-row span {width:57px;height:1px;background:linear-gradient(90deg,transparent,rgba(242,204,150,.72));}.date-row span:last-child{background:linear-gradient(90deg,rgba(242,204,150,.72),transparent)}
.scroll-cue { position:absolute; z-index:2; bottom:28px; display:flex; flex-direction:column; align-items:center; gap:9px; color:rgba(255, 234, 216, .66); font-size:8px; letter-spacing:2.3px; text-transform:uppercase; }.scroll-cue i {width:1px;height:38px;background:linear-gradient(#f2d28f,transparent);animation:scroll 1.8s ease-in-out infinite}.scroll-cue:hover { color:var(--gold-light); } @keyframes scroll {50%{transform:scaleY(.65);transform-origin:top;opacity:.4}}

.botanical { position:absolute; z-index:2; width:410px; height:540px; bottom:-125px; opacity:.95; filter: drop-shadow(0 9px 16px rgba(0,0,0,.19)); }.botanical-left { left:-28px; transform:rotate(-7deg); }.botanical-right { right:-28px; transform:scaleX(-1) rotate(-7deg); }.stem { position:absolute; width:4px;height:590px;top:15px;left:195px;border-radius:50%;background:linear-gradient(90deg,#243c2e,#82906a 48%,#243c2e);transform:rotate(-31deg); }.leaf {position:absolute;width:95px;height:39px;border-radius:100% 0 100% 0;background:linear-gradient(130deg,#324a36,#839168);box-shadow:inset 2px -2px 9px rgba(5,25,12,.3)}.leaf::after{content:"";position:absolute;top:18px;left:4px;width:87px;height:1px;background:rgba(211,220,175,.38);transform:rotate(-23deg)}.l1{top:305px;left:170px;transform:rotate(-11deg)}.l2{top:392px;left:82px;transform:rotate(43deg) scale(.8)}.l3{top:205px;left:240px;transform:rotate(-75deg) scale(.74)}.flower {position:absolute;width:64px;height:64px;border-radius:50%;background:radial-gradient(circle,#f9d195 0 12%,transparent 13%),conic-gradient(from 10deg,#dc7a99,#f6b1bb,#c65378,#f4a1b1,#cf6687,#dc7a99);filter:drop-shadow(0 3px 4px rgba(25,5,24,.3))}.flower::before{content:"";position:absolute;inset:13px;border-radius:50%;background:radial-gradient(circle,#f8df9d 0 24%,#b84967 26% 55%,transparent 57%)}.f1{top:255px;left:85px;transform:rotate(-8deg) scale(1.2)}.f2{top:144px;left:239px;transform:scale(.7)}

.section-shell { position: relative; padding: 125px 7vw; background: #1a192a; }.journey { overflow:hidden; background: radial-gradient(ellipse 75% 60% at 50% 40%,rgba(106,68,103,.2),transparent 68%), #1a192a; }.section-heading { text-align:center; }.section-heading h2,.garden h2,.letter-copy h2,.finale h2 { margin: 0; font-size: 49px; line-height: .86; font-weight: 500; letter-spacing:-.4px; }.section-heading > p:last-child, .garden-intro > p:last-child, .letter-copy > p:last-child, .finale-copy > p:last-of-type {margin:17px 0 0;color:var(--muted);font-size:11px;line-height:1.8}
.timeline { width: 925px; margin: 74px auto 0; position:relative; padding:0 0 18px; }.timeline-line { position:absolute; width:1px; left:50%; top:0; bottom:0; background:linear-gradient(transparent,#c9968d 7%,#c9968d 93%,transparent); }.memory { position:relative; width:50%; min-height:184px; display:flex; align-items:flex-start; }.memory::after {content:"";position:absolute;top:29px;width:10px;height:10px;border-radius:50%;background:#efbf9e;border:3px solid #392a3d;box-shadow:0 0 0 1px #d6908d,0 0 13px #f0b69d}.memory-left{margin-right:auto;padding-right:79px;justify-content:flex-end;text-align:right}.memory-right{margin-left:50%;padding-left:79px;text-align:left}.memory-left::after{right:-5px}.memory-right::after{left:-5px}.memory-date{position:absolute;top:18px;color:#d9a292;font:500 9px var(--sans);letter-spacing:2px;text-transform:uppercase}.memory-left .memory-date{right:-158px}.memory-right .memory-date{left:-158px}.memory-card{width:298px;padding:22px 24px 21px;border:1px solid rgba(226,175,158,.26);background:linear-gradient(120deg,rgba(255,242,225,.065),rgba(255,242,225,.018));box-shadow:0 15px 30px rgba(5,5,12,.11);transition:transform .3s, border-color .3s}.memory-card:hover{transform:translateY(-6px);border-color:rgba(236,188,161,.62)}.memory-number{display:block;color:#d4978d;font:500 19px/1 var(--serif)}.memory-card h3{margin:5px 0 8px;font-size:22px;font-weight:500}.memory-card p{margin:0;color:#c9bbc1;font-size:10px;line-height:1.85}.tiny-flower{margin-top:11px;color:#eac184;font-size:13px}.memory-left .tiny-flower{margin-left:auto}.future .memory-number{font-size:26px;line-height:.7}

.garden { position:relative; min-height:760px; overflow:hidden; padding:105px 7vw 75px; background: radial-gradient(ellipse 40% 50% at 50% 41%,rgba(103,95,126,.22),transparent 68%), linear-gradient(180deg,#131827,#161d2c 62%,#151925); }.garden::after { content:"";position:absolute;inset:auto 0 0;height:285px;background:radial-gradient(ellipse 58% 38% at 50% 100%,rgba(50,75,56,.66),transparent 72%),linear-gradient(transparent,#0d1620);pointer-events:none; }.garden-intro{position:relative;z-index:1;text-align:center}.garden-intro h2{font-size:48px}.garden-lights { position:absolute;top:-132px;left:4%;right:4%;height:265px;border-bottom:1px solid rgba(231,192,117,.3);border-radius:0 0 50% 50%; }.garden-lights i{position:absolute;bottom:-8px;width:8px;height:8px;border-radius:50%;background:#f8d18a;box-shadow:0 0 11px 4px rgba(255,194,101,.62)}.garden-lights i:nth-child(1){left:9%}.garden-lights i:nth-child(2){left:26%;bottom:-26px}.garden-lights i:nth-child(3){left:43%;bottom:-38px}.garden-lights i:nth-child(4){left:60%;bottom:-36px}.garden-lights i:nth-child(5){left:77%;bottom:-24px}.garden-lights i:nth-child(6){left:92%}
.flower-garden{height:305px;max-width:1080px;margin:56px auto 0;position:relative;z-index:2}.memory-flower{position:absolute;border:0;background:transparent;color:#f6e6da;cursor:pointer;text-align:center;transition:transform .28s}.memory-flower:hover{transform:translateY(-14px) scale(1.08)}.memory-flower i{display:block;width:102px;height:102px;margin:auto auto 12px;border-radius:50%;background:radial-gradient(circle,#f6cd78 0 10%,#ae4c64 11% 22%,transparent 23%),conic-gradient(#e47e9c 0 12.5%,#f5b5bd 12.5% 25%,#d65b83 25% 37.5%,#f4a5b3 37.5% 50%,#c44e73 50% 62.5%,#f5b6be 62.5% 75%,#d96688 75% 87.5%,#efa0ae 87.5%);filter:drop-shadow(0 6px 9px rgba(0,0,0,.26));}.memory-flower i::after{content:"";display:block;position:absolute;width:2px;height:92px;margin:76px 0 0 50px;background:linear-gradient(#6f976c,#263d30);z-index:-1}.memory-flower span{font:500 9px var(--sans);letter-spacing:1.4px;text-transform:uppercase;text-shadow:0 2px 6px #000}.rose{left:5%;top:121px}.peach{left:25%;top:23px}.lavender{left:45%;top:147px}.cream{left:65%;top:34px}.pink{left:85%;top:118px}.peach i{background:radial-gradient(circle,#f3c86d 0 9%,#a65b5d 10% 20%,transparent 21%),conic-gradient(#f3aa83 0 12.5%,#ffd4a4 12.5% 25%,#ed976e 25% 37.5%,#ffc999 37.5% 50%,#d96769 50% 62.5%,#ffd2a1 62.5% 75%,#ed8b75 75% 87.5%,#f9b78d 87.5%)}.lavender i{background:radial-gradient(circle,#f3cf83 0 9%,#7f476f 10% 20%,transparent 21%),conic-gradient(#a377b0 0 12.5%,#d4a5d3 12.5% 25%,#8d5a95 25% 37.5%,#bf83bd 37.5% 50%,#6d426f 50% 62.5%,#d8a4d0 62.5% 75%,#81518c 75% 87.5%,#bd83b8 87.5%)}.cream i{background:radial-gradient(circle,#e5b963 0 9%,#b57955 10% 20%,transparent 21%),conic-gradient(#fff2d0 0 12.5%,#efdca8 12.5% 25%,#fff9de 25% 37.5%,#e6cf98 37.5% 50%,#fff0c7 50% 62.5%,#eddbab 62.5% 75%,#fff8de 75% 87.5%,#e8d09a 87.5%)}.pink i{background:radial-gradient(circle,#f4d075 0 9%,#aa4165 10% 20%,transparent 21%),conic-gradient(#e06a93 0 12.5%,#f4a9bd 12.5% 25%,#c34b79 25% 37.5%,#f18eab 37.5% 50%,#b5436d 50% 62.5%,#f6b5c4 62.5% 75%,#cf5984 75% 87.5%,#f195ae 87.5%)}
.memory-popover{position:relative;z-index:3;width:440px;min-height:81px;margin:2px auto 0;padding:18px 44px;text-align:center;border-top:1px solid rgba(235,205,160,.45);border-bottom:1px solid rgba(235,205,160,.45);color:#eadcd2;font:italic 18px/1.25 var(--serif);transition:opacity .25s,transform .25s}.memory-popover .quote-mark{position:absolute;left:17px;top:5px;color:#e7bd86;font:34px/1 var(--serif)}.memory-popover .close-quote{left:auto;right:17px;top:auto;bottom:2px}.memory-popover p{margin:0}

.letter-section { min-height: 670px; display:flex; align-items:center; justify-content:center; gap:110px; background: radial-gradient(ellipse 42% 62% at 66% 47%,rgba(180,113,105,.2),transparent 68%), #211c2a; overflow:hidden; }.letter-copy{width:355px}.letter-copy .eyebrow{justify-content:flex-start}.letter-copy h2{font-size:50px}.envelope-area{width:435px;height:364px;position:relative}.envelope{position:absolute;left:25px;bottom:12px;width:385px;height:245px;border:0;background:transparent;cursor:pointer;perspective:1000px}.envelope-back{position:absolute;inset:0;background:linear-gradient(135deg,#b86975,#d99391);box-shadow:0 18px 30px rgba(0,0,0,.28)}.envelope-front{position:absolute;inset:0;z-index:2;clip-path:polygon(0 0,50% 50%,100% 0,100% 100%,0 100%);background:linear-gradient(135deg,#d99591,#ba6875)}.envelope-flap{position:absolute;z-index:3;inset:0;transform-origin:50% 0;clip-path:polygon(0 0,100% 0,50% 52%);background:linear-gradient(145deg,#e5a49b,#c6757c);transition:transform .7s ease;}.wax-seal{position:absolute;z-index:4;left:calc(50% - 21px);top:96px;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#a94256;color:#f5c7b3;border:3px double #e4a89b;font:19px var(--serif);box-shadow:0 3px 5px rgba(55,8,18,.35);transition:opacity .35s}.envelope-hint{position:absolute;z-index:5;bottom:-30px;left:0;width:100%;color:#d9b9a4;font-size:9px;letter-spacing:2px;text-transform:uppercase;transition:opacity .2s}.letter-card{position:absolute;z-index:1;left:53px;top:49px;width:330px;min-height:295px;padding:31px 36px;background:#fff5e5;color:#675052;text-align:left;box-shadow:0 10px 24px rgba(0,0,0,.16);transform:translateY(125px) rotate(-2.5deg);opacity:0;transition:transform .85s cubic-bezier(.2,.8,.2,1),opacity .45s}.letter-card::before{content:"";position:absolute;inset:9px;border:1px solid rgba(171,101,104,.4);pointer-events:none}.letter-card p{position:relative;margin:0 0 13px;font:12px/1.7 var(--serif)}.letter-card .letter-script{font:31px/1 "Great Vibes",cursive;color:#a85467;margin-bottom:11px}.letter-card .letter-sign{margin-top:15px;font:21px/1.1 "Great Vibes",cursive;color:#a85467}.envelope-area.open .letter-card{transform:translateY(-20px) rotate(-2.5deg);opacity:1}.envelope-area.open .envelope-flap{transform:rotateX(180deg);z-index:0}.envelope-area.open .wax-seal,.envelope-area.open .envelope-hint{opacity:0}

.finale{position:relative;min-height:530px;display:grid;place-items:center;overflow:hidden;text-align:center;background:radial-gradient(ellipse 35% 45% at 50% 45%,rgba(164,76,102,.28),transparent 67%),linear-gradient(180deg,#111323,#191426)}.finale::before{content:"";position:absolute;inset:0;background-image:radial-gradient(circle at 12% 20%,#fff2c7 0 1px,transparent 1.5px),radial-gradient(circle at 24% 60%,#fff2c7 0 1px,transparent 1.5px),radial-gradient(circle at 77% 17%,#fff2c7 0 1px,transparent 1.5px),radial-gradient(circle at 91% 54%,#fff2c7 0 1px,transparent 1.5px),radial-gradient(circle at 69% 74%,#fff2c7 0 1px,transparent 1.5px);opacity:.6}.finale-copy{position:relative;z-index:1}.finale .script{font-size:54px}.finale h2{margin:14px 0 15px;font-size:52px}.celebrate{margin-top:27px;padding:14px 23px;border:1px solid rgba(238,200,134,.85);color:#ffe8bc;background:rgba(217,124,145,.12);cursor:pointer;text-transform:uppercase;font-size:9px;letter-spacing:2.1px;transition:background .3s,transform .3s,box-shadow .3s}.celebrate span{color:#efb267;margin:0 5px}.celebrate:hover{transform:translateY(-3px);background:rgba(217,124,145,.3);box-shadow:0 8px 22px rgba(211,108,128,.2)}.ground-flora{position:absolute;bottom:-3px;left:0;right:0;height:96px;background:linear-gradient(transparent,#132116);opacity:.85}.ground-flora span{position:absolute;bottom:0;width:95px;height:125px;border-left:2px solid #4a6847;border-radius:50%;transform-origin:bottom}.ground-flora span:nth-child(1){left:8%;transform:rotate(-35deg)}.ground-flora span:nth-child(2){left:22%;height:73px;transform:rotate(22deg)}.ground-flora span:nth-child(3){left:73%;height:93px;transform:rotate(-20deg)}.ground-flora span:nth-child(4){left:88%;height:132px;transform:rotate(36deg)}.ground-flora span:nth-child(5){left:93%;height:75px;transform:rotate(-12deg)}
footer{height:70px;display:flex;align-items:center;justify-content:center;background:#10101c;color:#a99c9e;font:9px var(--sans);letter-spacing:1.8px;text-transform:uppercase}footer span{color:#d3728f;font-size:13px}

@media (max-width: 1160px) { body{min-width:1024px}.botanical{transform:scale(.8) rotate(-7deg);bottom:-158px}.botanical-right{transform:scaleX(-1) scale(.8) rotate(-7deg)}.timeline{width:840px}.letter-section{gap:60px} }

/* Vietnamese-friendly typography: comfortable reading with a romantic accent. */
:root { --serif: "Lora", Georgia, serif; }
.brand { font-family: var(--sans); font-size: 13px; letter-spacing: 2.1px; font-weight: 600; }
.brand span { font-size: 13px; vertical-align: 1px; letter-spacing: 1px; }
.script { font: 600 48px/.85 "Dancing Script", cursive; }
.hero h1 { font-size: 55px; letter-spacing: -1.6px; line-height: .98; }
.section-heading h2, .garden h2, .letter-copy h2, .finale h2 { font-size: 43px; line-height: 1.06; letter-spacing: -1.1px; }
.letter-card .letter-script { font: 600 27px/1 "Dancing Script", cursive; }
.letter-card .letter-sign { font: 600 19px/1.1 "Dancing Script", cursive; }
.finale .script { font-size: 49px; }
.finale h2 { font-size: 46px; }

/* Make the first impression easy to read while keeping the moon as the hero image. */
.moon {
  top: 62px;
  width: 425px;
  height: 425px;
  opacity: .86;
}
.hero-copy {
  margin-top: 150px;
  padding: 18px 62px 17px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(20, 15, 35, .52) 0%, rgba(20, 15, 35, .28) 50%, transparent 75%);
}
.hero-copy .eyebrow {
  margin-bottom: 16px;
  color: #ffe2a2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-shadow: 0 2px 5px rgba(10, 5, 19, .8);
}
.hero-copy .script {
  font-size: 57px;
  text-shadow: 0 3px 15px rgba(20, 6, 20, .9);
}
.hero h1 {
  margin: 15px 0 17px;
  font-size: 64px;
  font-weight: 600;
  line-height: .96;
  color: #fff9f1;
  letter-spacing: -2px;
  -webkit-text-stroke: .45px rgba(39, 19, 38, .5);
  text-shadow: 0 2px 3px rgba(20, 5, 25, .85), 0 6px 26px rgba(8, 4, 18, .74);
}
.hero h1 em { color: #ffd2d4; }
.hero-copy .intro {
  margin-bottom: 0;
  color: #fff1e4;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.9;
  text-shadow: 0 2px 5px rgba(11, 5, 18, .92);
}
.moon span::after { box-shadow: 0 0 70px 25px rgba(255, 207, 147, .11); }

/* Keep the hidden letter from sitting above and blocking the envelope button. */
.envelope { z-index: 2; }
.letter-card { pointer-events: none; }
.envelope-area.open .letter-card { z-index: 3; pointer-events: none; }

/* Memory garden: a photo bloom for every little story. */
.garden {
  min-height: auto;
  isolation: isolate;
  padding: 112px max(6vw, 32px) 105px;
  background:
    radial-gradient(ellipse 48% 32% at 50% 6%, rgba(214, 145, 147, .2), transparent 72%),
    radial-gradient(ellipse 62% 38% at 50% 96%, rgba(52, 92, 63, .56), transparent 70%),
    linear-gradient(180deg, #12182b 0%, #1b2630 52%, #13221b 100%);
}
.garden::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: .55;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 8% 35%, #fff2c7 0 1px, transparent 1.5px),
    radial-gradient(circle at 17% 72%, #fff2c7 0 1px, transparent 1.5px),
    radial-gradient(circle at 31% 24%, #fff2c7 0 1px, transparent 1.5px),
    radial-gradient(circle at 66% 19%, #fff2c7 0 1px, transparent 1.5px),
    radial-gradient(circle at 79% 68%, #fff2c7 0 1px, transparent 1.5px),
    radial-gradient(circle at 94% 36%, #fff2c7 0 1px, transparent 1.5px);
}
.garden::after { z-index: 0; height: 430px; opacity: .75; }
.garden-intro, .garden-toolbar, .flower-garden, .memory-upload { position: relative; z-index: 1; }
.garden-intro { max-width: 520px; margin: auto; }
.garden-intro h2 { font-size: 51px; }
.garden-intro > p:last-child { max-width: 390px; margin-left: auto; margin-right: auto; color: rgba(250, 232, 219, .83); }

.garden-toolbar {
  width: min(1160px, 100%);
  margin: 48px auto 10px;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(241, 210, 164, .25);
  border-bottom: 1px solid rgba(241, 210, 164, .16);
}
.garden-toolbar p { margin: 0; color: rgba(245, 226, 208, .67); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; }
.garden-toolbar strong { margin-right: 5px; color: #f4cd8b; font: 600 22px/1 var(--serif); letter-spacing: .5px; }
.garden-feedback { width: min(1160px, 100%); min-height: 0; max-height: 0; margin: 0 auto; overflow: hidden; color: #f7d397; text-align: center; font-size: 10px; line-height: 1.5; opacity: 0; transition: opacity .25s, max-height .25s, margin .25s; }
.garden-feedback.visible { max-height: 32px; margin: 8px auto -5px; opacity: 1; }
.add-memory-btn, .save-memory, .upload-cancel { border: 0; cursor: pointer; }
.add-memory-btn {
  padding: 10px 16px 10px 13px;
  color: #ffe9c3;
  background: rgba(238, 176, 126, .1);
  border: 1px solid rgba(242, 202, 141, .52);
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.add-memory-btn span { display: inline-grid; width: 16px; height: 16px; place-items: center; margin-right: 5px; border-radius: 50%; color: #573b48; background: #f5d293; font: 18px/16px var(--serif); vertical-align: -3px; }
.add-memory-btn:hover { transform: translateY(-2px); background: rgba(238, 176, 126, .24); box-shadow: 0 8px 20px rgba(9, 12, 16, .25); }

.flower-garden {
  width: min(1200px, 100%);
  height: auto;
  min-height: 0;
  margin: 35px auto 0;
  padding: 38px 30px 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  grid-auto-rows: 132px;
  gap: 37px 14px;
  overflow: visible;
}
.flower-garden::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 20px 0 0;
  border: 1px solid rgba(214, 183, 135, .15);
  border-radius: 50% 50% 30% 30% / 7% 7% 22% 22%;
  background: linear-gradient(90deg, transparent 0 7%, rgba(190, 154, 113, .1) 7.1% 7.3%, transparent 7.4% 30%, rgba(190, 154, 113, .08) 30.1% 30.3%, transparent 30.4% 70%, rgba(190, 154, 113, .08) 70.1% 70.3%, transparent 70.4% 92%, rgba(190, 154, 113, .1) 92.1% 92.3%, transparent 92.4%);
  box-shadow: inset 0 -50px 80px rgba(12, 34, 24, .16);
}
.memory-bloom {
  --petal-a: #dc7692;
  --petal-b: #f3afb7;
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  opacity: 1;
  filter: none;
}
/* Alternate the two rows of each bed so the garden stays visually balanced. */
.memory-bloom:nth-child(10n + 2), .memory-bloom:nth-child(10n + 4), .memory-bloom:nth-child(10n + 7), .memory-bloom:nth-child(10n + 9) { transform: translateY(8px); }
.memory-bloom:nth-child(10n + 3), .memory-bloom:nth-child(10n + 8) { transform: translateY(-4px); }
.memory-bloom.peach { --petal-a: #e88d78; --petal-b: #ffd2a6; }
.memory-bloom.lavender { --petal-a: #9a6da1; --petal-b: #d8aeda; }
.memory-bloom.cream { --petal-a: #e4c783; --petal-b: #fff1c9; }
.memory-bloom.pink { --petal-a: #d95f8b; --petal-b: #f6adc0; }
/* The original five-flower scene used these tone names for absolute placement.
   Reset that legacy positioning before applying the balanced grid layout. */
.memory-bloom.rose, .memory-bloom.peach, .memory-bloom.lavender, .memory-bloom.cream, .memory-bloom.pink {
  left: auto;
  top: auto;
}
@keyframes bloom-rise { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: blur(0); } }

.memory-flower-button {
  position: relative;
  width: 112px;
  height: 108px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: transparent;
  filter: drop-shadow(0 9px 9px rgba(3, 8, 8, .28));
  transition: transform .3s ease, filter .3s ease;
}
.memory-flower-button::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  top: 1px;
  left: 6px;
  background:
    radial-gradient(ellipse 35% 55% at 50% 12%, var(--petal-b) 0 58%, transparent 61%),
    radial-gradient(ellipse 55% 35% at 83% 22%, var(--petal-a) 0 58%, transparent 61%),
    radial-gradient(ellipse 55% 35% at 89% 58%, var(--petal-b) 0 58%, transparent 61%),
    radial-gradient(ellipse 35% 55% at 67% 88%, var(--petal-a) 0 58%, transparent 61%),
    radial-gradient(ellipse 35% 55% at 33% 88%, var(--petal-b) 0 58%, transparent 61%),
    radial-gradient(ellipse 55% 35% at 11% 58%, var(--petal-a) 0 58%, transparent 61%),
    radial-gradient(ellipse 55% 35% at 17% 22%, var(--petal-b) 0 58%, transparent 61%);
  filter: saturate(1.05);
  transition: transform .35s ease;
}
.memory-flower-button::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 84px;
  left: calc(50% - 1.5px);
  width: 3px;
  height: 41px;
  border-radius: 4px;
  background: linear-gradient(#85a06c, #2f523d 70%, transparent);
  box-shadow: 9px 12px 0 -1px #496543, -8px 25px 0 -1px #425e42;
}
.memory-flower-button:hover, .memory-flower-button:focus-visible { transform: translateY(-10px) scale(1.06); filter: drop-shadow(0 15px 12px rgba(3, 8, 8, .34)); outline: none; }
.memory-flower-button:hover::before, .memory-flower-button:focus-visible::before { transform: rotate(9deg) scale(1.04); }
.memory-flower-button:focus-visible .memory-photo { outline: 2px solid #ffe1a0; outline-offset: 5px; }
.memory-photo { position: relative; z-index: 1; width: 60px; height: 60px; overflow: hidden; border: 3px solid rgba(255, 244, 221, .82); border-radius: 50%; background: #2d3740; box-shadow: 0 0 0 3px rgba(102, 56, 74, .28), inset 0 0 12px rgba(0, 0, 0, .32); }
.memory-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s ease; }
.memory-flower-button:hover .memory-photo img { transform: scale(1.12); }
.memory-sparkle { position: absolute; z-index: 2; top: 10px; right: 11px; color: #ffedbb; font-size: 13px; text-shadow: 0 0 9px #f6ca8d; opacity: .9; }
.memory-caption { width: 100%; min-height: 39px; padding-top: 1px; text-align: center; text-shadow: 0 2px 6px rgba(0, 0, 0, .48); }
.memory-caption span { display: block; margin-bottom: 3px; color: #e5c088; font-size: 7px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.memory-caption h3 { margin: 0; color: #fff3e6; font-size: 12px; font-weight: 500; line-height: 1.25; }

.memory-upload {
  width: min(860px, 100%);
  margin: 52px auto 0;
  padding: 35px 39px 27px;
  border: 1px solid rgba(247, 212, 158, .34);
  background: linear-gradient(125deg, rgba(251, 224, 202, .13), rgba(48, 75, 58, .19));
  box-shadow: 0 19px 44px rgba(3, 8, 8, .24);
  backdrop-filter: blur(10px);
}
.memory-upload[hidden] { display: none; }
.upload-form-heading { text-align: center; }
.upload-form-heading .eyebrow { margin-bottom: 10px; }
.upload-form-heading h3 { margin: 0; color: #fff2e6; font-size: 27px; font-weight: 500; }
.upload-form-heading > p:last-child { margin: 8px 0 27px; color: rgba(255, 237, 225, .67); font-size: 10px; line-height: 1.7; }
.upload-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.upload-fields > label { display: grid; gap: 7px; color: #f2d6b9; font-size: 9px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.upload-fields label span { color: rgba(244, 218, 193, .55); font-weight: 400; }
.upload-fields input[type="text"], .upload-fields textarea { width: 100%; border: 1px solid rgba(249, 222, 187, .24); outline: 0; color: #fff5eb; background: rgba(11, 21, 25, .26); font: 12px/1.5 var(--sans); transition: border-color .2s, background .2s; }
.upload-fields input[type="text"] { height: 39px; padding: 0 12px; }
.upload-fields textarea { height: 94px; padding: 10px 12px; resize: vertical; }
.upload-fields input::placeholder, .upload-fields textarea::placeholder { color: rgba(255, 235, 217, .42); }
.upload-fields input:focus, .upload-fields textarea:focus { border-color: rgba(252, 205, 149, .78); background: rgba(11, 21, 25, .42); }
.story-field { grid-column: 1 / -1; }
.photo-picker { grid-column: 1 / -1; min-height: 63px; padding: 11px 14px; display: flex !important; align-items: center; gap: 12px; border: 1px dashed rgba(249, 219, 178, .44); cursor: pointer; transition: background .2s, border-color .2s; }
.photo-picker:hover { border-color: #f2cc8f; background: rgba(249, 213, 173, .08); }
.photo-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-picker-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; color: #614158 !important; background: #f1d093; font-size: 17px; }
.photo-picker > span:last-child { display: grid; gap: 3px; color: #fff2e3; text-transform: none; letter-spacing: 0; }
.photo-picker b { font-size: 11px; font-weight: 500; }
.photo-picker small { color: rgba(247, 225, 205, .62); font-size: 9px; }
.upload-preview { grid-column: 1 / -1; height: 150px; overflow: hidden; border: 1px solid rgba(249, 222, 187, .25); background: rgba(4, 13, 12, .25); }
.upload-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.upload-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.upload-actions p { flex: 1; margin: 0; color: #f6d398; font-size: 10px; line-height: 1.45; }
.upload-cancel { padding: 11px 4px; color: rgba(255, 237, 220, .68); background: transparent; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.save-memory { padding: 12px 17px; color: #4c3840; background: #f3cf91; font-size: 9px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; transition: transform .2s, background .2s; }
.save-memory span { margin-left: 5px; color: #a54e69; }.save-memory:hover { transform: translateY(-2px); background: #ffe0a7; }

.memory-dialog {
  width: min(840px, calc(100% - 32px));
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(251, 217, 170, .46);
  color: #f7e9df;
  background: #202a2c;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .62);
}
.memory-dialog::backdrop { background: rgba(5, 10, 15, .72); backdrop-filter: blur(5px); }
.memory-dialog[open] { display: grid; grid-template-columns: 43% 57%; animation: dialog-in .28s ease-out both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.dialog-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 33px; height: 33px; padding: 0; border: 1px solid rgba(255, 244, 224, .4); border-radius: 50%; color: #fff4e8; background: rgba(20, 18, 29, .42); cursor: pointer; font: 25px/28px var(--serif); transition: background .2s, transform .2s; }
.dialog-close:hover { transform: rotate(90deg); background: rgba(131, 64, 85, .82); }
.dialog-photo { min-height: 430px; overflow: hidden; background: #182526; }.dialog-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.dialog-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 55px 60px; background: radial-gradient(circle at 100% 0, rgba(239, 183, 142, .16), transparent 45%), linear-gradient(145deg, #293536, #202929); }
.dialog-number { margin: 0 0 15px; color: #e6bf82; font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }.dialog-copy h3 { margin: 0 0 9px; color: #fff4e9; font-size: 34px; font-weight: 500; line-height: 1.1; }.dialog-copy time { color: #dfb482; font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; }.dialog-copy > p:last-of-type { margin: 26px 0 0; color: #ebd8cb; font-size: 13px; line-height: 1.9; }.dialog-flower { margin-top: 22px; color: #edb476; font-size: 21px; }

@media (max-width: 860px) {
  body { min-width: 0; }
  .garden { padding-left: 20px; padding-right: 20px; }
  .garden-intro h2 { font-size: 39px; }
  .garden-toolbar { margin-top: 33px; gap: 13px; }
  .garden-toolbar p { line-height: 1.5; }.garden-toolbar strong { font-size: 19px; }
  .add-memory-btn { flex: 0 0 auto; }
  .flower-garden { min-height: 0; padding: 30px 8px 42px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 119px; gap: 32px 5px; }
  .memory-bloom:nth-child(10n + 2), .memory-bloom:nth-child(10n + 4), .memory-bloom:nth-child(10n + 7), .memory-bloom:nth-child(10n + 9), .memory-bloom:nth-child(10n + 3), .memory-bloom:nth-child(10n + 8) { transform: none; }
  .memory-bloom:nth-child(3n + 2) { transform: translateY(7px); }
  .memory-flower-button { width: 104px; height: 100px; transform: none; margin-bottom: 0; }
  .memory-flower-button::before { width: 92px; height: 92px; left: 6px; }
  .memory-caption h3 { font-size: 12px; }
  .memory-upload { padding: 29px 20px 22px; }.upload-fields { grid-template-columns: 1fr; }.story-field { grid-column: auto; }
  .memory-dialog[open] { grid-template-columns: 1fr; max-width: 460px; }.dialog-photo { min-height: 250px; max-height: 300px; }.dialog-copy { padding: 33px 30px; }.dialog-copy h3 { font-size: 30px; }
}

/* --------------------------------------------------------------------------
   A scroll-aware film reel and a chronological memory path.
   This deliberately replaces the dense all-at-once flower grid above.
   -------------------------------------------------------------------------- */
.topbar {
  transition: width .38s cubic-bezier(.2, .8, .2, 1), min-height .38s cubic-bezier(.2, .8, .2, 1), padding .38s ease, background .38s ease, border-radius .38s ease, box-shadow .38s ease, transform .38s cubic-bezier(.2, .8, .2, 1);
}
.topbar.is-docked {
  position: fixed;
  top: 50%;
  left: 24px;
  z-index: 28;
  width: 72px;
  min-height: 388px;
  height: auto;
  padding: 13px 10px;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  overflow: hidden;
  transform: translateY(-50%);
  border: 1px solid rgba(252, 224, 179, .34);
  border-radius: 42px;
  color: #fff4df;
  background: linear-gradient(155deg, rgba(42, 38, 62, .93), rgba(20, 32, 38, .93));
  box-shadow: 0 15px 40px rgba(2, 4, 12, .32), inset 0 0 0 1px rgba(255, 236, 194, .06);
  backdrop-filter: blur(13px);
}
.topbar.is-docked::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 7px;
  border: 1px dashed rgba(242, 204, 146, .28);
  border-radius: 35px;
  opacity: .8;
}
.topbar.is-docked::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 82px;
  bottom: 62px;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, rgba(244, 207, 145, .55) 15%, rgba(244, 207, 145, .55) 85%, transparent);
}
.topbar.is-docked .brand {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 230, 183, .64);
  border-radius: 50%;
  color: transparent;
  background: radial-gradient(circle, #efbd88 0 14%, #9b5068 15% 29%, #221d34 30% 53%, #e4ba78 54% 58%, #261f35 59% 100%);
  font-size: 0;
  letter-spacing: 0;
  box-shadow: 0 0 0 4px rgba(238, 188, 130, .08), 0 0 17px rgba(234, 177, 124, .2);
}
.topbar.is-docked .brand::before {
  content: "TC";
  color: #fff0d4;
  font: 600 8px/1 var(--sans);
  letter-spacing: .8px;
  text-shadow: 0 1px 3px #3a1d31;
}
.topbar.is-docked .brand::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(250, 211, 151, .38);
  border-radius: 50%;
  animation: reel-turn 11s linear infinite;
}
.topbar.is-docked .brand span { font-size: 0; }
.topbar.is-docked .nav-links {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.topbar.is-docked .nav-links a {
  position: relative;
  width: 38px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 22px;
  color: transparent;
  font-size: 0;
  letter-spacing: 1.5px;
  transition: width .32s ease, color .22s ease, background .22s ease, border-color .22s ease, padding .32s ease;
}
.topbar.is-docked .nav-links a::before {
  content: "";
  position: absolute;
  left: 13px;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 223, 171, .74);
  border-radius: 50%;
  background: #2d263d;
  box-shadow: 0 0 0 4px rgba(238, 188, 129, 0);
  transition: background .22s ease, box-shadow .22s ease, transform .22s ease;
}
.topbar.is-docked .nav-links a:hover::before,
.topbar.is-docked .nav-links a.active::before {
  background: #f4ce8d;
  box-shadow: 0 0 0 4px rgba(238, 188, 129, .12), 0 0 14px rgba(245, 193, 124, .7);
  transform: scale(1.13);
}
.topbar.is-docked .nav-links a:hover,
.topbar.is-docked .nav-links a.active { border-color: rgba(249, 217, 163, .45); background: rgba(255, 224, 174, .1); }
.topbar.is-docked .since {
  width: 42px;
  padding-top: 10px;
  border-top: 1px solid rgba(251, 220, 169, .26);
  color: transparent;
  font-size: 0;
  text-align: center;
}
.topbar.is-docked .since::before { content: "10·04"; color: #eecb8f; font: 600 7px/1 var(--sans); letter-spacing: .8px; }
.topbar.is-docked:hover,
.topbar.is-docked:focus-within { width: 207px; align-items: stretch; }
.topbar.is-docked:hover .brand,
.topbar.is-docked:focus-within .brand { align-self: center; }
.topbar.is-docked:hover .nav-links,
.topbar.is-docked:focus-within .nav-links { align-items: stretch; }
.topbar.is-docked:hover .nav-links a,
.topbar.is-docked:focus-within .nav-links a {
  width: 100%;
  justify-content: flex-start;
  padding-left: 47px;
  color: rgba(255, 240, 220, .86);
  font-size: 8px;
}
.topbar.is-docked:hover .since,
.topbar.is-docked:focus-within .since { align-self: center; }
@keyframes reel-turn { to { transform: rotate(360deg); } }

.garden {
  padding: 124px max(7vw, 64px) 142px;
  background:
    radial-gradient(ellipse 58% 24% at 50% 7%, rgba(222, 151, 144, .18), transparent 70%),
    radial-gradient(ellipse 76% 31% at 50% 98%, rgba(43, 89, 59, .62), transparent 73%),
    linear-gradient(180deg, #11172a 0%, #18242e 52%, #112018 100%);
}
.garden::after { height: 520px; opacity: .86; }
.garden-intro { max-width: 615px; }
.garden-intro::after {
  content: "THE CHRONICLE";
  display: block;
  margin-top: 19px;
  color: rgba(246, 217, 166, .56);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 4.2px;
}
.garden-toolbar {
  width: min(1000px, 100%);
  margin-top: 51px;
  border-color: rgba(241, 210, 164, .32);
}
.garden-toolbar p { display: flex; align-items: baseline; gap: 4px; }
.garden-toolbar p::after { content: "— đọc theo dòng thời gian"; color: rgba(245, 226, 208, .4); font-size: 8px; letter-spacing: 1px; }

.flower-garden {
  --memory-progress: 0;
  width: min(1050px, 100%);
  margin: 51px auto 0;
  padding: 4px 0 64px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
}
.flower-garden::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 auto 0 50%;
  width: 1px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, transparent, rgba(239, 204, 151, .5) 3%, rgba(160, 182, 125, .42) 96%, transparent);
  box-shadow: none;
}
.flower-garden::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: auto;
  left: calc(50% - 1px);
  width: 3px;
  height: calc(var(--memory-progress) * 100%);
  border-radius: 4px;
  background: linear-gradient(#ffd493, #de8da0 50%, #91ae76);
  box-shadow: 0 0 13px rgba(249, 203, 139, .52);
  pointer-events: none;
  transition: height .18s linear;
}
.memory-chapter {
  position: relative;
  z-index: 3;
  width: 278px;
  margin: 22px auto 15px;
  padding: 20px 20px 18px;
  overflow: hidden;
  border: 1px solid rgba(245, 213, 164, .36);
  border-radius: 2px 2px 30px 30px;
  text-align: center;
  background: linear-gradient(145deg, rgba(50, 47, 68, .95), rgba(30, 52, 48, .93));
  box-shadow: 0 13px 30px rgba(2, 10, 12, .2), inset 0 0 24px rgba(244, 202, 142, .06);
}
.memory-chapter:not(:first-child) { margin-top: 42px; }
.memory-chapter::before,
.memory-chapter::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 43px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246, 211, 156, .65));
}
.memory-chapter::before { right: 100%; }
.memory-chapter::after { left: 100%; transform: scaleX(-1); }
.chapter-ornament { display: block; margin-bottom: 5px; color: #f5cb89; font-size: 14px; text-shadow: 0 0 12px rgba(248, 194, 130, .5); }
.memory-chapter p { margin: 0; color: #e9bd80; font-size: 8px; font-weight: 600; letter-spacing: 2.7px; text-transform: uppercase; }
.memory-chapter h3 { margin: 8px 0 7px; color: #fff2e3; font-size: 20px; font-weight: 500; line-height: 1.23; }
.memory-chapter > span:last-child { color: rgba(245, 229, 210, .65); font-size: 8px; letter-spacing: 1px; }

.memory-bloom {
  position: relative;
  z-index: 2;
  width: 50%;
  min-height: 253px;
  display: grid;
  grid-template-columns: minmax(0, 250px);
  grid-template-rows: auto auto;
  align-content: start;
  opacity: 0;
  filter: none;
  transition: opacity .62s ease var(--bloom-delay), transform .68s cubic-bezier(.2, .8, .2, 1) var(--bloom-delay);
}
.memory-bloom.timeline-left { align-self: flex-start; justify-content: end; justify-items: end; padding: 15px 84px 21px 0; text-align: right; transform: translateX(-32px); }
.memory-bloom.timeline-right { align-self: flex-end; justify-content: start; justify-items: start; padding: 15px 0 21px 84px; text-align: left; transform: translateX(32px); }
.memory-bloom.timeline-left::before,
.memory-bloom.timeline-right::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 80px;
  width: 15px;
  height: 15px;
  border: 3px solid #28383a;
  border-radius: 50%;
  background: radial-gradient(circle, #fff0bd 0 22%, #df8898 25% 58%, #d5af6e 60% 100%);
  box-shadow: 0 0 0 1px rgba(250, 210, 150, .7), 0 0 17px rgba(248, 190, 133, .38);
}
.memory-bloom.timeline-left::after,
.memory-bloom.timeline-right::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 87px;
  width: 73px;
  height: 1px;
  background: linear-gradient(90deg, rgba(246, 210, 158, .08), rgba(246, 210, 158, .72));
}
.memory-bloom.timeline-left::before { right: -9px; }
.memory-bloom.timeline-left::after { right: 0; }
.memory-bloom.timeline-right::before { left: -9px; }
.memory-bloom.timeline-right::after { left: 0; transform: scaleX(-1); }
.memory-bloom.is-visible { opacity: 1; transform: translateX(0); }

.memory-flower-button {
  position: relative;
  width: 250px;
  height: 165px;
  margin: 0;
  padding: 8px;
  overflow: visible;
  border: 1px solid rgba(253, 226, 181, .63);
  border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(251, 220, 171, .21) 12px 16px, transparent 16px 26px) top / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(251, 220, 171, .17) 12px 16px, transparent 16px 26px) bottom / 100% 5px no-repeat,
    linear-gradient(145deg, #3a3342, #1d3030);
  filter: drop-shadow(0 14px 16px rgba(1, 6, 9, .29));
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), filter .32s ease, border-color .32s ease;
}
.memory-flower-button::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: -20px;
  right: -19px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffdb85 0 13%, #ac4b65 14% 29%, transparent 30%),
    conic-gradient(var(--petal-a) 0 12.5%, var(--petal-b) 12.5% 25%, var(--petal-a) 25% 37.5%, var(--petal-b) 37.5% 50%, var(--petal-a) 50% 62.5%, var(--petal-b) 62.5% 75%, var(--petal-a) 75% 87.5%, var(--petal-b) 87.5%);
  box-shadow: 0 4px 8px rgba(7, 8, 15, .22);
  transition: transform .35s ease;
}
.memory-flower-button::after { content: none; }
.memory-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 246, 226, .38);
  border-radius: 0;
  background: #29373a;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, .26);
}
.memory-photo::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255, 245, 220, .22); pointer-events: none; }
.memory-photo img { filter: saturate(.82) contrast(1.04); }
.memory-index {
  position: absolute;
  z-index: 4;
  top: 11px;
  left: 11px;
  min-width: 29px;
  padding: 5px 4px;
  color: #fff0d2;
  background: rgba(27, 23, 38, .76);
  font: 600 8px/1 var(--sans);
  letter-spacing: 1px;
}
.memory-sparkle { z-index: 4; top: -21px; right: -17px; color: #fff0bd; font-size: 11px; text-shadow: 0 0 10px #f5bd7e; }
.memory-flower-button:hover,
.memory-flower-button:focus-visible { border-color: #ffe3a4; transform: translateY(-8px) rotate(-1.2deg); filter: drop-shadow(0 22px 18px rgba(0, 0, 0, .33)); }
.memory-flower-button:hover::before,
.memory-flower-button:focus-visible::before { transform: rotate(24deg) scale(1.08); }
.memory-flower-button:hover .memory-photo img { transform: scale(1.08); filter: saturate(1.03) contrast(1.04); }
.memory-caption {
  width: 250px;
  min-height: 75px;
  padding: 16px 1px 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .48);
}
.memory-caption span { margin-bottom: 5px; color: #efc482; font-size: 8px; letter-spacing: 1.45px; }
.memory-caption h3 { margin: 0; color: #fff3e7; font-size: 18px; font-weight: 500; line-height: 1.22; }
.memory-caption small { display: block; margin-top: 7px; color: rgba(246, 228, 208, .47); font-size: 8px; letter-spacing: .35px; }

@media (max-width: 860px) {
  .topbar { height: 74px; padding: 0 20px; }
  .topbar .brand { font-size: 10px; letter-spacing: 1.3px; }
  .topbar .nav-links { gap: 14px; margin-left: 0; font-size: 8px; letter-spacing: 1.25px; }
  .topbar .since { display: none; }
  .topbar.is-docked {
    top: auto;
    bottom: 14px;
    left: 50%;
    width: auto;
    min-width: 0;
    min-height: 0;
    height: 56px;
    padding: 8px 13px;
    flex-direction: row;
    gap: 0;
    transform: translateX(-50%);
    border-radius: 30px;
  }
  .topbar.is-docked::before { inset: 4px; border-radius: 26px; }
  .topbar.is-docked::after { top: 50%; right: 16px; bottom: auto; left: 16px; width: auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(244, 207, 145, .35), transparent); }
  .topbar.is-docked .brand,
  .topbar.is-docked .since { display: none; }
  .topbar.is-docked .nav-links { flex-direction: row; align-items: center; gap: 7px; }
  .topbar.is-docked .nav-links a { width: 34px; min-height: 34px; }
  .topbar.is-docked .nav-links a::before { left: 11px; }
  .topbar.is-docked:hover,
  .topbar.is-docked:focus-within { width: auto; align-items: center; }
  .topbar.is-docked:hover .nav-links,
  .topbar.is-docked:focus-within .nav-links { align-items: center; }
  .topbar.is-docked:hover .nav-links a,
  .topbar.is-docked:focus-within .nav-links a { width: 34px; padding: 0; color: transparent; font-size: 0; }

  .garden { padding: 92px 20px 114px; }
  .garden-intro h2 { font-size: 41px; }
  .garden-toolbar { margin-top: 38px; }
  .garden-toolbar p::after { display: none; }
  .flower-garden { margin-top: 35px; padding: 0 0 33px 32px; }
  .flower-garden::before { left: 8px; }
  .flower-garden::after { left: 7px; }
  .memory-chapter { width: min(268px, calc(100% - 15px)); margin: 10px 0 18px 16px; }
  .memory-chapter:not(:first-child) { margin-top: 30px; }
  .memory-chapter::before { width: 22px; right: auto; left: -24px; transform: scaleX(-1); }
  .memory-chapter::after { display: none; }
  .memory-bloom { width: 100%; min-height: 236px; grid-template-columns: minmax(0, 250px); }
  .memory-bloom.timeline-left,
  .memory-bloom.timeline-right { align-self: flex-start; justify-content: start; justify-items: start; padding: 11px 0 20px 35px; text-align: left; transform: translateY(18px); }
  .memory-bloom.timeline-left::before,
  .memory-bloom.timeline-right::before { top: 79px; right: auto; left: -31px; }
  .memory-bloom.timeline-left::after,
  .memory-bloom.timeline-right::after { top: 86px; right: auto; left: -23px; width: 26px; transform: none; }
  .memory-bloom.is-visible { transform: translateY(0); }
  .memory-flower-button,
  .memory-caption { width: min(250px, calc(100vw - 88px)); }
  .memory-caption h3 { font-size: 17px; }
}

/* Refined docked navigation: a readable chapter rail instead of anonymous dots. */
.topbar.is-docked {
  left: 22px;
  width: 76px;
  min-height: 376px;
  padding: 14px 9px 12px;
  gap: 11px;
  border-color: rgba(252, 224, 179, .3);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(42, 37, 61, .95), rgba(19, 31, 38, .95));
  box-shadow: 0 18px 45px rgba(2, 4, 12, .36), inset 0 1px rgba(255, 239, 205, .08);
  backdrop-filter: blur(16px);
}
.topbar.is-docked::before {
  inset: 6px;
  border: 1px solid rgba(255, 227, 185, .08);
  border-radius: 20px;
  opacity: 1;
}
.topbar.is-docked::after {
  top: 86px;
  bottom: 56px;
  background: linear-gradient(transparent, rgba(244, 207, 145, .16) 12%, rgba(244, 207, 145, .6) 50%, rgba(244, 207, 145, .16) 88%, transparent);
}
.topbar.is-docked .brand {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-color: rgba(255, 230, 183, .56);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(227, 163, 129, .92), rgba(138, 71, 99, .98));
  box-shadow: 0 0 0 4px rgba(238, 188, 130, .07), 0 7px 18px rgba(8, 8, 18, .2);
}
.topbar.is-docked .brand::before {
  content: "T\00a0 \2665\00a0 C";
  color: #fff5e2;
  font: 600 9px/1 var(--sans);
  letter-spacing: .55px;
}
.topbar.is-docked .brand::after {
  inset: 4px;
  border-color: rgba(255, 238, 207, .25);
  border-radius: 12px;
  animation: none;
}
.topbar.is-docked .nav-links { position: relative; gap: 8px; }
.topbar.is-docked .nav-links a {
  width: 50px;
  min-height: 52px;
  border-radius: 14px;
  letter-spacing: 1.25px;
  white-space: nowrap;
  transition: width .32s cubic-bezier(.2, .8, .2, 1), color .22s ease, background .22s ease, border-color .22s ease, padding .32s cubic-bezier(.2, .8, .2, 1), transform .22s ease;
}
.topbar.is-docked .nav-links a::before {
  content: "01";
  z-index: 1;
  left: 0;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  color: rgba(255, 230, 187, .66);
  background: transparent;
  box-shadow: none;
  font: 600 9px/1 var(--sans);
  letter-spacing: 1px;
  text-align: center;
  transition: color .22s ease, transform .22s ease;
}
.topbar.is-docked .nav-links a:nth-child(2)::before { content: "02"; }
.topbar.is-docked .nav-links a:nth-child(3)::before { content: "03"; }
.topbar.is-docked .nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(247, 207, 142, .5);
  box-shadow: 0 0 0 3px rgba(247, 207, 142, 0);
  transform: translateX(-50%);
  transition: background .22s ease, box-shadow .22s ease, transform .22s ease;
}
.topbar.is-docked .nav-links a:hover::before,
.topbar.is-docked .nav-links a.active::before {
  color: #fff1ce;
  background: transparent;
  box-shadow: none;
  transform: translateY(-2px);
}
.topbar.is-docked .nav-links a:hover::after,
.topbar.is-docked .nav-links a.active::after {
  background: #ffd583;
  box-shadow: 0 0 0 4px rgba(246, 193, 125, .13), 0 0 12px rgba(245, 193, 124, .64);
  transform: translateX(-50%) scale(1.16);
}
.topbar.is-docked .nav-links a:hover,
.topbar.is-docked .nav-links a.active {
  border-color: rgba(249, 217, 163, .3);
  background: linear-gradient(90deg, rgba(255, 224, 174, .14), rgba(255, 224, 174, .04));
}
.topbar.is-docked .nav-links a:focus-visible { outline: 2px solid #ffe3a4; outline-offset: 2px; }
.topbar.is-docked .since {
  width: 50px;
  padding-top: 9px;
  border-color: rgba(251, 220, 169, .2);
}
.topbar.is-docked .since::before {
  content: "EST. 2023";
  font-size: 6px;
  letter-spacing: .85px;
}
.topbar.is-docked:hover,
.topbar.is-docked:focus-within { width: 218px; }
.topbar.is-docked:hover .nav-links a,
.topbar.is-docked:focus-within .nav-links a {
  padding-left: 62px;
  font-size: 9px;
}
.topbar.is-docked:hover .nav-links a::before,
.topbar.is-docked:focus-within .nav-links a::before {
  left: 19px;
  width: 24px;
  transform: none;
}
.topbar.is-docked:hover .nav-links a::after,
.topbar.is-docked:focus-within .nav-links a::after {
  left: 48px;
  top: 15px;
  bottom: auto;
  width: 1px;
  height: 22px;
  border-radius: 1px;
  background: rgba(247, 207, 142, .28);
  box-shadow: none;
  transform: none;
}
.topbar.is-docked:hover .nav-links a:hover::after,
.topbar.is-docked:hover .nav-links a.active::after,
.topbar.is-docked:focus-within .nav-links a:hover::after,
.topbar.is-docked:focus-within .nav-links a.active::after {
  background: #ffd583;
  box-shadow: 0 0 9px rgba(245, 193, 124, .56);
}

@media (max-width: 860px) {
  .topbar.is-docked {
    left: 50%;
    width: min(370px, calc(100vw - 28px));
    min-height: 0;
    height: 58px;
    padding: 8px 9px;
    border-radius: 20px;
  }
  .topbar.is-docked::before { inset: 4px; border-radius: 16px; }
  .topbar.is-docked::after { top: auto; right: 17px; bottom: 7px; left: 17px; width: auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(244, 207, 145, .35), transparent); }
  .topbar.is-docked .nav-links { width: 100%; flex-direction: row; gap: 4px; }
  .topbar.is-docked .nav-links a,
  .topbar.is-docked:hover .nav-links a,
  .topbar.is-docked:focus-within .nav-links a {
    width: auto;
    min-height: 38px;
    flex: 1;
    justify-content: center;
    padding: 0 4px;
    color: rgba(255, 240, 220, .8);
    font-size: 7px;
    letter-spacing: .55px;
  }
  .topbar.is-docked .nav-links a::before,
  .topbar.is-docked:hover .nav-links a::before,
  .topbar.is-docked:focus-within .nav-links a::before {
    position: static;
    width: auto;
    margin-right: 5px;
    color: rgba(255, 220, 165, .66);
    font-size: 7px;
    transform: none;
  }
  .topbar.is-docked .nav-links a::after,
  .topbar.is-docked:hover .nav-links a::after,
  .topbar.is-docked:focus-within .nav-links a::after { display: none; }
  .topbar.is-docked:hover,
  .topbar.is-docked:focus-within { width: min(370px, calc(100vw - 28px)); align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar.is-docked,
  .topbar.is-docked .nav-links a,
  .topbar.is-docked .nav-links a::before,
  .topbar.is-docked .nav-links a::after { transition: none; }
}

/* Milestone cards lead to a dedicated garden page while retaining the original
   timeline's visual language. */
.journey-memory-link { display: block; color: inherit; cursor: pointer; }
.journey-memory-link:focus-visible { outline: 2px solid #ffe0a0; outline-offset: 4px; }
.journey-open-hint { display: inline-block; margin-top: 13px; color: rgba(247, 205, 139, .72); font-size: 8px; font-weight: 600; letter-spacing: 1.35px; text-transform: uppercase; transition: color .25s ease, transform .25s ease; }
.journey-memory-link:hover .journey-open-hint { color: #ffe0a0; transform: translateX(3px); }
.memory-left .journey-open-hint { margin-left: auto; }

/* Dedicated Memory garden pages. The garden itself intentionally reuses the
   original section, timeline, bloom, modal, and upload styling above. */
.garden-page { min-height: 100vh; background: #11172a; }
.garden-page-nav { position: fixed; z-index: 20; top: 24px; right: max(4vw, 24px); left: max(4vw, 24px); display: flex; align-items: center; justify-content: space-between; gap: 16px; pointer-events: none; }
.garden-page-button { padding: 11px 15px; border: 1px solid rgba(247, 211, 154, .48); color: #fff0d5; background: rgba(24, 25, 44, .78); box-shadow: 0 8px 22px rgba(3, 6, 15, .22); backdrop-filter: blur(9px); font-size: 8px; font-weight: 600; letter-spacing: 1.45px; text-transform: uppercase; pointer-events: auto; transition: color .22s ease, border-color .22s ease, background .22s ease, transform .22s ease; }
.garden-page-button:hover { border-color: #ffdfa4; color: #fff9eb; background: rgba(106, 60, 83, .9); transform: translateY(-2px); }
.garden-page-button.is-disabled { border-color: rgba(247, 211, 154, .2); color: rgba(255, 237, 213, .42); cursor: default; pointer-events: none; }
.garden-page .archive-garden { min-height: 100vh; padding-top: 157px; }
.garden-period { margin: 19px 0 0 !important; color: rgba(247, 205, 139, .78) !important; font-size: 9px !important; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.empty-garden { position: relative; z-index: 3; width: min(420px, calc(100% - 24px)); margin: 42px auto 72px; padding: 37px 31px; border: 1px solid rgba(245, 213, 164, .34); border-radius: 2px 2px 38px 38px; background: linear-gradient(145deg, rgba(50, 47, 68, .95), rgba(30, 52, 48, .93)); box-shadow: 0 13px 30px rgba(2, 10, 12, .2), inset 0 0 24px rgba(244, 202, 142, .06); text-align: center; }
.empty-garden > span { display: block; margin-bottom: 9px; color: #f4cb8b; font-size: 24px; text-shadow: 0 0 12px rgba(248, 194, 130, .5); }
.empty-garden h3 { margin: 0 0 11px; color: #fff2e3; font-size: 25px; font-weight: 500; line-height: 1.2; }
.empty-garden p { margin: 0; color: rgba(245, 229, 210, .65); font-size: 10px; line-height: 1.8; }

@media (max-width: 860px) {
  .garden-page-nav { top: 14px; right: 14px; left: 14px; gap: 8px; }
  .garden-page-button { padding: 9px 10px; font-size: 7px; letter-spacing: .9px; }
  .garden-page .archive-garden { padding-top: 112px; }
  .garden-period { font-size: 8px !important; letter-spacing: 1.15px; }
  .empty-garden { margin-top: 29px; padding: 30px 22px; }
  .empty-garden h3 { font-size: 22px; }
}

/* The home scene sits lower than its fixed title card, leaving the moon fully
   visible while the discovery cue remains at the bottom of the hero. */
@media (min-width: 861px) {
  .hero { min-height: 890px; }
  .hero-glow { top: 186px; }
  .moon { top: 120px; width: 500px; height: 500px; }
  .hero-copy { margin-top: 208px; }

  .memory-date {
    top: -18px;
    font: 500 9px var(--sans);
    letter-spacing: 2px;
    white-space: nowrap;
  }
  .memory-left .memory-date { right: 79px; }
  .memory-right .memory-date { left: 79px; }
}

/* Private-first access layer and account controls. */
body.auth-pending > :not(.auth-gate) { visibility: hidden; }
.auth-gate {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 46% 42% at 50% 38%, rgba(168, 94, 129, .24), transparent 72%),
    linear-gradient(160deg, #101326, #201b32 55%, #12211e);
  color: #fff3df;
}
.auth-gate[hidden] { display: none; }
.auth-gate-card {
  width: min(460px, 100%);
  padding: 52px 44px;
  border: 1px solid rgba(249, 212, 160, .38);
  background: rgba(20, 18, 34, .76);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .32), inset 0 0 34px rgba(251, 214, 165, .04);
  text-align: center;
  backdrop-filter: blur(13px);
}
.auth-gate-card .script { margin: 20px 0 28px; }
.auth-gate-card > p:last-child { margin: 0; color: rgba(255, 238, 215, .75); font-size: 12px; line-height: 1.8; }
.account-control,
.garden-sign-out {
  border: 1px solid rgba(247, 211, 154, .35);
  color: rgba(255, 238, 215, .78);
  background: rgba(17, 18, 33, .38);
  cursor: pointer;
  font-size: 8px;
  letter-spacing: 1px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.account-control { padding: 10px 12px; }
.account-control:hover,
.garden-sign-out:hover { border-color: #ffdfa4; color: #fff9eb; background: rgba(106, 60, 83, .9); }
.garden-page-actions { display: flex; align-items: center; gap: 9px; pointer-events: auto; }
.garden-sign-out { padding: 11px 13px; font-size: 7px; }
.local-migration {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  margin: 32px auto 0;
  padding: 27px 31px;
  border: 1px solid rgba(246, 207, 151, .3);
  background: rgba(34, 40, 50, .62);
  box-shadow: inset 0 0 22px rgba(248, 207, 145, .04);
  text-align: center;
}
.local-migration .eyebrow { margin-bottom: 13px; }
.local-migration h3 { margin: 0 0 10px; color: #fff0df; font-size: 25px; font-weight: 500; }
.local-migration p:not(.eyebrow) { margin: 0 0 19px; color: rgba(248, 230, 212, .72); font-size: 11px; line-height: 1.75; }
.login-page {
  min-width: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 45% 42% at 50% 38%, rgba(168, 94, 129, .25), transparent 72%),
    linear-gradient(160deg, #101326, #201b32 55%, #12211e);
}
.login-card {
  width: min(500px, 100%);
  padding: 52px 48px 43px;
  border: 1px solid rgba(249, 212, 160, .38);
  background: rgba(20, 18, 34, .76);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .32), inset 0 0 34px rgba(251, 214, 165, .04);
  text-align: center;
  backdrop-filter: blur(13px);
}
.login-card .script { margin: 18px 0 18px; }
.login-card h1 { margin: 0 0 17px; color: #fff7ea; font-size: 48px; font-weight: 500; line-height: 1.02; }
.login-card h1 em { color: #f2b4bb; font-weight: 500; }
.login-copy,
.login-note { color: rgba(255, 238, 215, .72); font-size: 11px; line-height: 1.8; }
.login-copy { margin: 0 auto 27px; max-width: 355px; }
.login-note { margin: 22px 0 0; font-size: 9px; }
.login-form { display: grid; gap: 10px; text-align: left; }
.login-form label { color: #f8d49b; font-size: 9px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; }
.login-form input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(250, 220, 174, .3);
  border-radius: 0;
  outline: 0;
  color: #fff6e8;
  background: rgba(255, 244, 225, .07);
  font: 13px var(--sans);
}
.login-form input:focus { border-color: #f4ce8c; box-shadow: 0 0 0 3px rgba(244, 206, 140, .1); }
.login-form button {
  margin-top: 5px;
  padding: 14px 18px;
  border: 1px solid rgba(238, 200, 134, .85);
  color: #ffe8bc;
  background: rgba(217, 124, 145, .17);
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
.login-form button:disabled { cursor: wait; opacity: .64; }
.login-form button span { color: #efb267; }
.login-message { min-height: 20px; margin: 3px 0 0; color: rgba(255, 235, 211, .76); font-size: 10px; line-height: 1.6; text-align: center; }
.login-message[data-state="error"] { color: #ffbdc4; }
.login-message[data-state="success"] { color: #dff2bc; }

@media (max-width: 860px) {
  .auth-gate-card,
  .login-card { padding: 39px 25px; }
  .auth-gate-card .script,
  .login-card .script { font-size: 46px; }
  .login-card h1 { font-size: 40px; }
  .account-control { display: none; }
  .garden-page-actions { gap: 6px; }
  .garden-sign-out { max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .local-migration { padding: 25px 20px; }
}

/* Two personal notes, each with its own envelope and opening interaction. */
.letter-section { min-height: 850px; flex-direction: column; gap: 38px; padding: 106px 7vw 118px; }
.letter-copy { width: min(620px, 100%); text-align: center; }
.letter-copy .eyebrow { justify-content: center; }
.letters-pair { width: min(934px, 100%); display: grid; grid-template-columns: repeat(2, minmax(380px, 435px)); justify-content: center; gap: min(5vw, 64px); }
.letter-note { width: min(435px, 100%); }
.letter-recipient { margin: 0 0 8px; color: #f2ca8c; text-align: center; font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.letter-recipient span { margin-right: 6px; color: #f3a8ac; }
.letter-note-thinh .envelope-back { background: linear-gradient(135deg, #9a657e, #c88b99); }
.letter-note-thinh .envelope-front { background: linear-gradient(135deg, #c98b9d, #a65c76); }
.letter-note-thinh .envelope-flap { background: linear-gradient(145deg, #dda6ae, #b87086); }

@media (min-width: 861px) and (max-width: 1160px) {
  .letters-pair { grid-template-columns: repeat(2, 390px); gap: 30px; }
  .letter-note .envelope-area { transform: scale(.9); transform-origin: top left; }
}

@media (max-width: 860px) {
  .letter-section { min-height: 0; padding: 86px 20px 96px; }
  .letters-pair { grid-template-columns: minmax(0, 435px); justify-items: center; gap: 34px; }
  .letter-note { width: 435px; max-width: 100%; }
}

/* Keep the long memory timeline smooth while it is being scrolled. */
.garden { contain: paint; }
.flower-garden::after { transition: none; }
.memory-bloom { contain: layout; }
.memory-flower-button {
  filter: none;
  box-shadow: 0 14px 16px rgba(1, 6, 9, .29);
}
.memory-photo img { filter: none; }
.memory-flower-button:hover,
.memory-flower-button:focus-visible {
  filter: none;
  box-shadow: 0 22px 18px rgba(0, 0, 0, .33);
}
.memory-flower-button:hover .memory-photo img { filter: none; }

/* Cinematic navigation: the opening header reads as a title card and becomes
   a compact film-strip chapter rail once the story starts. */
.topbar {
  isolation: isolate;
  height: 104px;
  padding: 0 max(7vw, 52px);
  border: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 20, .82), rgba(26, 20, 39, .48) 42%, rgba(8, 9, 20, .82)),
    linear-gradient(180deg, rgba(255, 223, 167, .11), transparent 13%, transparent 87%, rgba(255, 223, 167, .11));
  box-shadow: inset 0 -1px rgba(255, 225, 176, .16), 0 12px 28px rgba(5, 5, 14, .15);
}
.topbar::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 7px 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  background:
    radial-gradient(ellipse 8px 2px at 8px 2px, #070914 97%, transparent 100%) 0 0 / 23px 5px repeat-x,
    radial-gradient(ellipse 8px 2px at 8px 3px, #070914 97%, transparent 100%) 0 100% / 23px 5px repeat-x;
  opacity: .9;
  pointer-events: none;
}
.topbar::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: max(7vw, 52px);
  bottom: 17px;
  left: max(7vw, 52px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246, 205, 139, .58) 12%, rgba(246, 205, 139, .58) 88%, transparent);
  opacity: .82;
}
.topbar > * { position: relative; z-index: 1; }
.brand {
  min-width: 184px;
  padding: 11px 15px 10px;
  border: 1px solid rgba(255, 222, 166, .48);
  color: #fff3dc;
  background: linear-gradient(120deg, rgba(184, 91, 112, .78), rgba(57, 33, 56, .72));
  box-shadow: inset 0 0 0 3px rgba(255, 234, 202, .08), 0 8px 18px rgba(4, 3, 11, .22);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 97% 50%, 100% 67%, 100% 100%, 0 100%, 0 67%, 3% 50%, 0 33%);
  transition: color .25s ease, background .25s ease, transform .25s ease;
}
.brand::before {
  content: "A LOVE STORY";
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 233, 191, .7);
  font: 600 6px/1 var(--sans);
  letter-spacing: 2.1px;
}
.brand span { color: #ffc58b; text-shadow: 0 0 9px rgba(255, 171, 139, .6); }
.brand:hover { color: #fff9ed; background: linear-gradient(120deg, rgba(209, 111, 129, .9), rgba(73, 43, 66, .84)); transform: translateY(-2px); }
.nav-links {
  position: relative;
  gap: 7px;
  margin-left: 0;
  padding: 7px;
  border: 1px solid rgba(255, 231, 186, .15);
  background: rgba(12, 13, 26, .45);
  box-shadow: inset 0 1px rgba(255, 237, 205, .05);
  font-size: 8px;
  letter-spacing: 1.55px;
}
.nav-links a {
  position: relative;
  display: flex;
  min-width: 124px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px 0 31px;
  border: 1px solid transparent;
  color: rgba(255, 242, 218, .73);
  background: linear-gradient(135deg, rgba(255, 233, 191, .045), rgba(255, 233, 191, 0));
  overflow: hidden;
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.nav-links a::before {
  content: "01";
  position: absolute;
  left: 10px;
  color: rgba(248, 204, 138, .62);
  font: 600 7px/1 var(--sans);
  letter-spacing: .5px;
}
.nav-links a:nth-child(2)::before { content: "02"; }
.nav-links a:nth-child(3)::before { content: "03"; }
.nav-links a::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 23px;
  width: 1px;
  background: rgba(248, 204, 138, .24);
  transform: scaleY(.45);
  transition: transform .25s ease, background .25s ease;
}
.nav-links a:hover,
.nav-links a.active {
  border-color: rgba(255, 215, 150, .56);
  color: #fff4dc;
  background: linear-gradient(135deg, rgba(213, 118, 134, .33), rgba(255, 205, 135, .11));
  box-shadow: 0 0 18px rgba(227, 149, 115, .14), inset 0 0 16px rgba(255, 223, 166, .08);
  transform: translateY(-2px);
}
.nav-links a:hover::after,
.nav-links a.active::after { background: #ffd486; transform: scaleY(1); }
.nav-links a:focus-visible { outline: 2px solid #ffe3a4; outline-offset: 3px; }
.since {
  min-width: 154px;
  padding: 12px 0 10px;
  border-top: 1px solid rgba(255, 225, 176, .45);
  border-bottom: 1px solid rgba(255, 225, 176, .45);
  color: #f5ce91;
  font-size: 8px;
  letter-spacing: 1.8px;
  text-align: center;
}
.since::before {
  content: "PRESENTED IN";
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 237, 206, .52);
  font: 600 6px/1 var(--sans);
  letter-spacing: 2px;
}

.topbar.is-docked {
  left: 22px;
  width: 80px;
  min-height: 392px;
  padding: 12px 9px;
  gap: 10px;
  background:
    linear-gradient(160deg, rgba(48, 35, 57, .97), rgba(14, 25, 34, .97)),
    linear-gradient(180deg, rgba(255, 229, 178, .1), transparent 22%, transparent 78%, rgba(255, 229, 178, .08));
  box-shadow: 0 20px 48px rgba(2, 4, 12, .42), inset 0 0 0 1px rgba(255, 235, 202, .09);
}
.topbar.is-docked::before {
  inset: 6px;
  border: 0;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 2px 6px at 3px 7px, #161826 97%, transparent 100%) 0 0 / 7px 20px repeat-y,
    radial-gradient(ellipse 2px 6px at 4px 7px, #161826 97%, transparent 100%) 100% 0 / 7px 20px repeat-y;
  opacity: .84;
}
.topbar.is-docked::after {
  top: 82px;
  bottom: 54px;
  left: 50%;
  right: auto;
  width: 1px;
  height: auto;
  background: linear-gradient(transparent, rgba(255, 211, 139, .18) 10%, rgba(255, 211, 139, .64) 50%, rgba(255, 211, 139, .18) 90%, transparent);
}
.topbar.is-docked .brand {
  width: 52px;
  min-width: 52px;
  height: 50px;
  padding: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd591 0 10%, #bd6479 11% 29%, #3b2943 30% 54%, #e7bd79 55% 59%, #211b31 60% 100%);
  clip-path: none;
  box-shadow: 0 0 0 4px rgba(238, 188, 130, .08), 0 8px 18px rgba(8, 8, 18, .22);
}
.topbar.is-docked .brand::before { content: "TC"; margin: 0; color: #fff2d8; font-size: 9px; letter-spacing: .7px; }
.topbar.is-docked .brand::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(255, 238, 207, .25); border-radius: 50%; }
.topbar.is-docked .nav-links { width: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; gap: 8px; }
.topbar.is-docked .nav-links a {
  width: 52px;
  min-width: 52px;
  min-height: 55px;
  padding: 0;
  border-radius: 12px;
  color: transparent;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.topbar.is-docked .nav-links a::before { left: 0; width: 100%; color: rgba(255, 230, 187, .68); font-size: 9px; text-align: center; }
.topbar.is-docked .nav-links a::after { top: auto; bottom: 9px; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: rgba(247, 207, 142, .45); transform: translateX(-50%); }
.topbar.is-docked .nav-links a:hover,
.topbar.is-docked .nav-links a.active { border-color: rgba(249, 217, 163, .4); background: linear-gradient(135deg, rgba(232, 160, 135, .2), rgba(255, 222, 166, .06)); box-shadow: inset 0 0 14px rgba(255, 223, 166, .08); }
.topbar.is-docked .nav-links a:hover::after,
.topbar.is-docked .nav-links a.active::after { background: #ffd583; box-shadow: 0 0 0 4px rgba(246, 193, 125, .13), 0 0 12px rgba(245, 193, 124, .64); transform: translateX(-50%) scale(1.12); }
.topbar.is-docked .since { width: 52px; min-width: 52px; padding: 9px 0 0; border-bottom: 0; color: transparent; font-size: 0; }
.topbar.is-docked .since::before { content: "EST. 2023"; margin: 0; color: #f2cc8e; font-size: 6px; letter-spacing: .85px; }
.topbar.is-docked:hover,
.topbar.is-docked:focus-within { width: 230px; }
.topbar.is-docked:hover .nav-links a,
.topbar.is-docked:focus-within .nav-links a { width: 100%; min-width: 0; padding-left: 68px; color: rgba(255, 240, 220, .9); font-size: 8px; transform: none; }
.topbar.is-docked:hover .nav-links a::before,
.topbar.is-docked:focus-within .nav-links a::before { left: 18px; width: 25px; transform: none; }
.topbar.is-docked:hover .nav-links a::after,
.topbar.is-docked:focus-within .nav-links a::after { top: 14px; bottom: auto; left: 51px; width: 1px; height: 25px; border-radius: 0; background: rgba(247, 207, 142, .3); box-shadow: none; transform: none; }
.topbar.is-docked:hover .nav-links a:hover::after,
.topbar.is-docked:hover .nav-links a.active::after,
.topbar.is-docked:focus-within .nav-links a:hover::after,
.topbar.is-docked:focus-within .nav-links a.active::after { background: #ffd583; box-shadow: 0 0 9px rgba(245, 193, 124, .56); }

@media (max-width: 860px) {
  .topbar { height: 78px; padding: 0 20px; }
  .topbar::before { inset: 5px 0; }
  .topbar::after { right: 20px; left: 20px; bottom: 13px; }
  .brand { min-width: auto; padding: 9px 10px 8px; font-size: 8px; letter-spacing: 1.2px; }
  .brand::before { margin-bottom: 3px; font-size: 5px; letter-spacing: 1.2px; }
  .nav-links { gap: 3px; padding: 4px; }
  .nav-links a { min-width: 76px; min-height: 36px; padding: 0 7px 0 21px; font-size: 6px; letter-spacing: .7px; }
  .nav-links a::before { left: 6px; font-size: 6px; }
  .nav-links a::after { left: 17px; }
  .since { display: none; }
  .topbar.is-docked { left: 50%; width: min(370px, calc(100vw - 28px)); min-height: 0; height: 58px; padding: 8px 9px; }
  .topbar.is-docked::before { inset: 4px; background: none; }
  .topbar.is-docked::after { top: auto; right: 17px; bottom: 7px; left: 17px; width: auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(244, 207, 145, .35), transparent); }
  .topbar.is-docked .brand,
  .topbar.is-docked .since { display: none; }
  .topbar.is-docked .nav-links { width: 100%; flex-direction: row; gap: 4px; }
  .topbar.is-docked .nav-links a,
  .topbar.is-docked:hover .nav-links a,
  .topbar.is-docked:focus-within .nav-links a { width: auto; min-width: 0; min-height: 38px; flex: 1; justify-content: center; padding: 0 4px; color: rgba(255, 240, 220, .8); font-size: 7px; letter-spacing: .55px; }
  .topbar.is-docked .nav-links a::before,
  .topbar.is-docked:hover .nav-links a::before,
  .topbar.is-docked:focus-within .nav-links a::before { position: static; width: auto; margin-right: 5px; color: rgba(255, 220, 165, .66); font-size: 7px; transform: none; }
  .topbar.is-docked .nav-links a::after,
  .topbar.is-docked:hover .nav-links a::after,
  .topbar.is-docked:focus-within .nav-links a::after { display: none; }
  .topbar.is-docked:hover,
  .topbar.is-docked:focus-within { width: min(370px, calc(100vw - 28px)); align-items: center; }
}

/* Desktop vertical navigation: a standalone movie-reel controller. */
@media (min-width: 861px) {
  .topbar.is-docked {
    width: 94px;
    min-height: 454px;
    padding: 13px 12px 12px;
    gap: 12px;
    border: 1px solid rgba(255, 220, 158, .32);
    border-radius: 10px;
    background:
      linear-gradient(150deg, rgba(59, 33, 52, .98), rgba(13, 22, 32, .98) 72%),
      #141623;
    box-shadow: 0 24px 54px rgba(2, 4, 12, .48), inset 0 0 0 1px rgba(255, 235, 202, .08);
  }
  .topbar.is-docked::before {
    z-index: 0;
    inset: 7px;
    border-radius: 4px;
    background:
      radial-gradient(ellipse 2px 5px at 3px 7px, #0b0d17 98%, transparent 100%) 0 0 / 7px 18px repeat-y,
      radial-gradient(ellipse 2px 5px at 4px 7px, #0b0d17 98%, transparent 100%) 100% 0 / 7px 18px repeat-y;
    opacity: 1;
  }
  .topbar.is-docked::after {
    z-index: 0;
    top: 100px;
    bottom: 58px;
    background: repeating-linear-gradient(180deg, transparent 0 12px, rgba(255, 212, 142, .48) 12px 13px, transparent 13px 25px);
    opacity: .7;
  }
  .topbar.is-docked .brand {
    width: 66px;
    min-width: 66px;
    height: 62px;
    flex-basis: 62px;
    border: 1px solid rgba(255, 229, 178, .58);
    border-radius: 4px;
    background:
      repeating-linear-gradient(135deg, rgba(255, 227, 170, .38) 0 6px, transparent 6px 13px) 0 0 / 100% 13px no-repeat,
      linear-gradient(145deg, #be6377, #4a2944 60%, #1e2434);
    clip-path: none;
    box-shadow: 0 7px 18px rgba(4, 3, 11, .3), inset 0 0 0 3px rgba(255, 235, 202, .08);
  }
  .topbar.is-docked .brand::before {
    content: "TC\A REEL 01";
    display: block;
    margin-top: 14px;
    color: #fff2d8;
    font: 700 9px/1.15 var(--sans);
    letter-spacing: .75px;
    line-height: 1.35;
    text-align: center;
    white-space: pre;
  }
  .topbar.is-docked .brand::after {
    inset: 5px;
    border-color: rgba(255, 239, 210, .28);
    border-radius: 1px;
  }
  .topbar.is-docked .nav-links { gap: 9px; }
  .topbar.is-docked .nav-links a {
    width: 66px;
    min-width: 66px;
    min-height: 76px;
    border-radius: 3px;
    clip-path: polygon(0 0, 100% 0, 100% 18%, 96% 25%, 100% 32%, 100% 68%, 96% 75%, 100% 82%, 100% 100%, 0 100%, 0 82%, 4% 75%, 0 68%, 0 32%, 4% 25%, 0 18%);
  }
  .topbar.is-docked .nav-links a::before {
    content: "01\A SCENE";
    top: 20px;
    left: 0;
    width: 100%;
    color: rgba(255, 231, 187, .75);
    font-size: 9px;
    letter-spacing: .7px;
    line-height: 1.45;
    text-align: center;
    white-space: pre;
  }
  .topbar.is-docked .nav-links a:nth-child(2)::before { content: "02\A SCENE"; }
  .topbar.is-docked .nav-links a:nth-child(3)::before { content: "03\A SCENE"; }
  .topbar.is-docked .nav-links a::after {
    bottom: 11px;
    width: 22px;
    height: 1px;
    border-radius: 0;
    background: rgba(247, 207, 142, .4);
  }
  .topbar.is-docked .nav-links a:hover,
  .topbar.is-docked .nav-links a.active {
    border-color: rgba(255, 222, 161, .7);
    background: linear-gradient(135deg, rgba(229, 133, 142, .38), rgba(255, 213, 139, .12));
    box-shadow: inset 0 0 18px rgba(255, 224, 168, .11), 0 0 16px rgba(230, 153, 118, .13);
  }
  .topbar.is-docked .nav-links a:hover::before,
  .topbar.is-docked .nav-links a.active::before { color: #fff4d6; transform: translateY(-2px); }
  .topbar.is-docked .nav-links a:hover::after,
  .topbar.is-docked .nav-links a.active::after { width: 28px; border-radius: 0; background: #ffd583; transform: translateX(-50%); }
  .topbar.is-docked .since { width: 66px; min-width: 66px; }
  .topbar.is-docked .since::before { content: "DIRECTOR'S CUT"; font-size: 5.5px; letter-spacing: .55px; }
  .topbar.is-docked:hover,
  .topbar.is-docked:focus-within { width: 260px; }
  .topbar.is-docked:hover .nav-links a,
  .topbar.is-docked:focus-within .nav-links a {
    width: 100%;
    min-width: 0;
    padding-left: 90px;
    clip-path: polygon(0 0, 100% 0, 100% 18%, 98% 25%, 100% 32%, 100% 68%, 98% 75%, 100% 82%, 100% 100%, 0 100%, 0 82%, 2% 75%, 0 68%, 0 32%, 2% 25%, 0 18%);
    font-size: 8px;
  }
  .topbar.is-docked:hover .nav-links a::before,
  .topbar.is-docked:focus-within .nav-links a::before { top: 24px; left: 18px; width: 48px; transform: none; }
  .topbar.is-docked:hover .nav-links a::after,
  .topbar.is-docked:focus-within .nav-links a::after { top: 16px; bottom: auto; left: 76px; width: 1px; height: 42px; background: rgba(247, 207, 142, .34); box-shadow: none; transform: none; }
  .topbar.is-docked:hover .nav-links a:hover::after,
  .topbar.is-docked:hover .nav-links a.active::after,
  .topbar.is-docked:focus-within .nav-links a:hover::after,
  .topbar.is-docked:focus-within .nav-links a.active::after { background: #ffd583; box-shadow: 0 0 9px rgba(245, 193, 124, .56); transform: none; }
}
