/* The same transparent drawing is partitioned into aligned layers.
   Every layer has its own entrance; their final positions form one scene. */
.hero{isolation:isolate;min-height:760px;min-height:max(760px,100svh);padding-bottom:160px}
.hero-inner{position:relative;z-index:3;max-width:620px;width:100%;padding:20px 14px 32px}
.hero-inner::before{content:"";position:absolute;inset:-35px -70px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse,rgba(246,239,226,.98) 22%,rgba(246,239,226,.92) 43%,rgba(246,239,226,.52) 60%,rgba(246,239,226,0) 75%)}
.hero .arch{width:160px;margin-bottom:14px}
.hero .v{z-index:1;opacity:.5}
.hero::before,.hero::after{z-index:5}
.cafe-backdrop{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.cafe-canvas{position:absolute;bottom:22px;left:-2%;width:104%;aspect-ratio:1920/819;opacity:.72}
.scene-layer{position:absolute;inset:0;background-image:url('cafe-line-art-clean-kiosk.png');background-size:100% 100%;background-repeat:no-repeat;will-change:transform,opacity}
.scene-pavement{clip-path:polygon(0 94%,100% 94%,100% 100%,0 100%)}
.scene-gate{clip-path:polygon(0 0,37% 0,37% 94%,0 94%)}
.scene-cooler{clip-path:polygon(37% 0,56% 0,56% 94%,37% 94%)}
.scene-kiosk{clip-path:polygon(56% 0,100% 0,100% 94%,56% 94%)}
.scene-playing .scene-pavement{animation:scene-ground 1.1s .1s cubic-bezier(.16,1,.3,1) both}
.scene-playing .scene-kiosk{animation:scene-from-right 1.9s .45s cubic-bezier(.16,1,.3,1) both}
.scene-playing .scene-gate{animation:scene-slide 1.8s 1.05s cubic-bezier(.16,1,.3,1) both}
.scene-playing .scene-cooler{animation:scene-drop 1.65s 1.75s cubic-bezier(.16,1,.3,1) both}
@keyframes scene-ground{from{opacity:0;transform:translateY(80px)}to{opacity:1;transform:translateY(0)}}
@keyframes scene-drop{0%{opacity:0;transform:translateY(-110vh) rotate(3deg)}65%{opacity:1;transform:translateY(8px) rotate(-.3deg)}83%{transform:translateY(-4px) rotate(.12deg)}100%{opacity:1;transform:none}}
@keyframes scene-rise{0%{opacity:0;transform:translateY(95vh) rotate(-2deg)}70%{opacity:1;transform:translateY(-7px) rotate(.2deg)}100%{opacity:1;transform:none}}
@keyframes scene-slide{0%{opacity:0;transform:translateX(-100vw) rotate(-3deg)}72%{opacity:1;transform:translateX(7px) rotate(.15deg)}100%{opacity:1;transform:none}}
.hero.scene-playing .a1{animation-delay:2.7s}.hero.scene-playing .a2{animation-delay:2.95s}.hero.scene-playing .a3{animation-delay:3.15s}.hero.scene-playing .a4{animation-delay:3.35s}.hero.scene-playing .a5{animation-delay:3.55s}.hero.scene-playing .a6{animation-delay:3.75s}
.hero.scene-playing .stem path{animation-delay:2.7s}
.hero.scene-playing .leaves path:nth-child(n){animation-delay:3.5s}
.hero:not(.scene-playing) :is(.a1,.a2,.a3,.a4,.a5,.a6),.hero:not(.scene-playing) .stem path,.hero:not(.scene-playing) .leaves path{animation:none;opacity:1;transform:none;stroke-dashoffset:0}
.scene-glint{position:absolute;width:11px;height:11px;color:#25221d;opacity:0;animation:scene-glimmer 5s ease-in-out infinite}
.scene-glint::before,.scene-glint::after{content:"";position:absolute;top:50%;left:50%;background:currentColor;transform:translate(-50%,-50%);border-radius:50%}
.scene-glint::before{width:1px;height:100%}.scene-glint::after{width:100%;height:1px}
.glint-one{left:15%;top:43%;animation-delay:4.2s}.glint-two{left:30%;top:46%;animation-delay:5.7s}.glint-three{left:77%;top:30%;animation-delay:6.5s}
@keyframes scene-glimmer{0%,12%,64%,100%{opacity:0;transform:scale(.4)}32%{opacity:.75;transform:scale(1)}46%{opacity:.15;transform:scale(.7)}}
.scene-replay{position:absolute;bottom:35px;right:34px;z-index:6;display:grid;place-items:center;width:38px;height:38px;border:1px solid rgba(91,58,34,.3);border-radius:50%;background:rgba(246,239,226,.88);color:var(--green);font:25px Georgia,serif;cursor:pointer;transition:background .2s}
.scene-replay[hidden]{display:none}.scene-replay:hover{background:var(--paper2)}.scene-replay:disabled{opacity:.5;cursor:default}
@media(min-width:1400px){.cafe-canvas{bottom:22px;width:110%;left:-5%;opacity:.65}.hero{padding-bottom:190px}}
@media(max-width:759px){.hero{min-height:max(720px,100svh);padding:54px 24px 165px}.hero .arch{width:145px}.cafe-canvas{width:146%;left:-23%;bottom:20px;opacity:.72}.hero-inner{padding:14px 0 22px}.hero-inner::before{inset:-35px -35px}.scene-replay{right:28px;bottom:28px;width:32px;height:32px;font-size:22px}}
@media(max-width:380px){.hero .hello{font-size:29px}.hero h1{font-size:24px}.hero .arch{width:130px}.hero{padding-top:40px}}
@media(prefers-reduced-motion:reduce){.scene-layer,.scene-glint,.hero .hero-inner [class^=a],.hero .stem path,.hero .leaves path{animation:none!important;transform:none!important;opacity:1;stroke-dashoffset:0}.scene-glint,.scene-replay{display:none!important}}

@keyframes scene-from-right{0%{opacity:0;transform:translateX(100vw) rotate(3deg)}72%{opacity:1;transform:translateX(-7px) rotate(-.15deg)}100%{opacity:1;transform:none}}

/* Authentic logo asset replaces the generated lettering on the roof sign.
   Kept inside the kiosk layer so it shares precisely the same entrance. */
.kiosk-logo-badge{position:absolute;left:73.6%;top:20%;width:3.8%;height:14%;display:flex;align-items:center;justify-content:center;padding:0;background:none;border:0;clip-path:none;box-shadow:none}
.kiosk-logo-badge img{position:relative;display:block;width:100%;height:100%;object-fit:contain;filter:brightness(.38) sepia(.45) saturate(.65);mix-blend-mode:multiply;opacity:.82}

/* Recessed carving: wood grain shows through the dark letter cuts;
   a subpixel warm lower edge suggests light catching the carved recess. */
.kiosk-logo-badge::before{content:"";position:absolute;inset:0;background:#f3d7a4;-webkit-mask:url('logo.webp') center/contain no-repeat;mask:url('logo.webp') center/contain no-repeat;transform:translate(.65px,.9px);opacity:.42;mix-blend-mode:soft-light;pointer-events:none}
