:root{
  --deep:#0b2627; --teal:#123c3b; --ink:#12302f; --stone:#e6dfd2; --paper:#f3eee5;
  --gold:#c9a96a; --gold-ink:#7a5c26; --mist:#efe8db; --muted-dark:#4a5a57; --muted-light:#b9c2bc;
  --serif:"Cormorant Garamond", "Times New Roman", serif;
  --sans:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{background:var(--deep);color:var(--ink);font:400 16px/1.6 var(--sans);-webkit-font-smoothing:antialiased}
a{color:inherit}

.demo-label{position:fixed;top:max(10px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:10;
  font:500 11px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--mist);
  background:rgba(8,28,29,.72);border:1px solid rgba(239,232,219,.18);padding:7px 12px;border-radius:99px;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);white-space:nowrap}

/* hero: the CSS gradient is the fallback; the canvas covers it once WebGL draws */
.hero{position:relative;min-height:100vh;min-height:100svh;display:flex;align-items:flex-end;overflow:hidden;color:var(--mist);
  background:radial-gradient(120% 80% at 70% 20%,#1d4b48 0%,transparent 60%),
             radial-gradient(90% 70% at 10% 90%,#173a37 0%,transparent 65%),
             linear-gradient(160deg,#0f3434 0%,#0b2627 55%,#081d1e 100%)}
.hero-scrim{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to top,rgba(6,22,23,.82) 0%,rgba(6,22,23,.45) 42%,rgba(6,22,23,0) 70%),
             linear-gradient(to bottom,rgba(6,22,23,.3),rgba(6,22,23,0) 12%)}
.hero-inner{position:relative;width:100%;max-width:640px;margin:0 auto;padding:0 28px calc(64px + env(safe-area-inset-bottom))}
.hero-kicker{font:500 12px/1 var(--sans);letter-spacing:.32em;text-transform:uppercase;color:var(--gold);margin-bottom:14px}
.wordmark{font:400 clamp(88px,30vw,168px)/.86 var(--serif);letter-spacing:-.01em;margin-left:-.04em;padding-bottom:.06em;
  background:linear-gradient(105deg,#b8975a 0%,#e9d6a8 18%,#f7edd2 24%,#c4a265 36%,#a98a52 52%,#e3cd98 68%,#f5ead0 73%,#bd9c5f 86%,#b8975a 100%);
  background-size:300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;
  animation:sheen 14s ease-in-out infinite alternate}
@keyframes sheen{from{background-position:0% 50%}to{background-position:100% 50%}}
.hero-line{font:italic 400 clamp(26px,7vw,34px)/1.2 var(--serif);margin:18px 0 10px;max-width:18ch}
.hero-sub{color:#d9d4c8;max-width:30ch}
.hero-cta{display:inline-block;margin-top:30px;padding:14px 26px;border:1px solid rgba(201,169,106,.7);border-radius:99px;
  font:500 14px/1 var(--sans);letter-spacing:.08em;text-decoration:none;color:var(--mist);background:rgba(8,28,29,.35);
  transition:background .3s,border-color .3s}
.hero-cta:hover,.hero-cta:focus-visible{background:rgba(201,169,106,.16);border-color:var(--gold)}

/* staggered entrance, a different move per element */
.hero-kicker,.hero-line,.hero-sub,.hero-cta{animation:rise 1.4s cubic-bezier(.2,.7,.2,1) both}
.wordmark{animation:sheen 14s ease-in-out infinite alternate,bloom 2.2s cubic-bezier(.2,.7,.2,1) both}
.hero-kicker{animation-delay:.2s}.hero-line{animation-delay:.9s}.hero-sub{animation-delay:1.15s}.hero-cta{animation:fade 1.6s 1.6s both}
@keyframes rise{from{opacity:0;transform:translateY(14px)}}
@keyframes bloom{from{opacity:0;letter-spacing:.06em;filter:blur(6px)}}
@keyframes fade{from{opacity:0}}

/* sections */
.sec{position:relative;padding:96px 0 104px;isolation:isolate}
.sec::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.10;mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.wrap{max-width:640px;margin:0 auto;padding:0 28px}
.sec-light{background:var(--paper)}
.sec-stone{background:linear-gradient(180deg,var(--stone),#ddd4c4)}
.sec-dark{background:radial-gradient(90% 60% at 80% 0%,#18423f 0%,transparent 70%),var(--deep);color:var(--mist)}
.sec-dark::before{mix-blend-mode:screen;opacity:.07;filter:invert(1)}
.eyebrow{font:500 12px/1 var(--sans);letter-spacing:.3em;text-transform:uppercase;color:var(--gold-ink);margin-bottom:16px}
.sec-dark .eyebrow{color:var(--gold)}
h2{font:400 clamp(34px,9vw,46px)/1.08 var(--serif);margin-bottom:44px;max-width:14ch}
.note{font-size:14px;color:var(--muted-dark);margin-top:28px}
.sec-dark .note{color:var(--muted-light)}

.menu{list-style:none;padding:0;border-top:1px solid rgba(18,48,47,.16)}
.menu li{display:grid;grid-template-columns:1fr auto;gap:4px 16px;padding:22px 0;border-bottom:1px solid rgba(18,48,47,.16)}
.menu h3{font:500 24px/1.2 var(--serif)}
.menu p{font-size:14px;color:var(--muted-dark);margin-top:4px}
.menu .dur{grid-column:1;font-size:13px;letter-spacing:.06em;color:var(--gold-ink)}
.menu .price{grid-column:2;grid-row:1;align-self:start;font:500 20px/1.3 var(--serif);white-space:nowrap;padding-top:2px}

.hours div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:20px 0;border-bottom:1px solid rgba(18,48,47,.18)}
.hours div:first-child{border-top:1px solid rgba(18,48,47,.18)}
.hours dt{font-size:15px;color:#3c4b48}
.hours dd{font:500 26px/1 var(--serif);font-variant-numeric:lining-nums}

address{font:400 26px/1.35 var(--serif);font-style:normal}
.wa{display:inline-flex;align-items:center;gap:12px;margin-top:40px;padding:15px 26px 15px 20px;border-radius:99px;text-decoration:none;
  background:var(--mist);color:var(--deep);font:600 15px/1 var(--sans);box-shadow:0 10px 30px -12px rgba(0,0,0,.6);transition:transform .25s}
.wa:hover,.wa:focus-visible{transform:translateY(-2px)}

.foot{display:flex;flex-direction:column;gap:10px;align-items:center;text-align:center;padding:40px 28px calc(40px + env(safe-area-inset-bottom));
  background:#071b1c;color:var(--muted-light);font-size:13px}
.foot a{color:var(--mist);font-size:15px;text-decoration:none;border-bottom:1px solid rgba(201,169,106,.6);padding-bottom:2px}

/* scroll reveals (class added by JS only, so content shows without it) */
.js .reveal{opacity:0;transform:translateY(18px);transition:opacity 1s ease,transform 1.2s cubic-bezier(.2,.7,.2,1)}
.js .reveal.from-left{transform:translateX(-16px)}
.js .reveal.in{opacity:1;transform:none}

:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

@media (min-width:900px){
  .hero{align-items:center}
  .hero-scrim{background:linear-gradient(to right,rgba(6,22,23,.78) 0%,rgba(6,22,23,.5) 40%,rgba(6,22,23,0) 70%),linear-gradient(to bottom,rgba(6,22,23,.3),rgba(6,22,23,0) 12%)}
  .hero-inner{max-width:1080px;padding-bottom:0;padding-left:8vw}
  .wrap{max-width:760px}
}
/* ---------- 3D mode: a fixed night pool behind sticky text panels ---------- */
#world,.scrim{position:fixed;inset:0;width:100%;height:100lvh;display:none}
.scrim{pointer-events:none; /* --sc: where the text starts (set per frame by app.js); solid dark below it */
  background:linear-gradient(to bottom,rgba(4,17,18,.55) 0,rgba(4,17,18,0) min(90px,calc(var(--sc,45vh) - 115px)),rgba(4,17,18,0) calc(var(--sc,45vh) - 115px),
             rgba(4,17,18,.88) calc(var(--sc,45vh) - 16px),rgba(4,17,18,.95) 100%)}
html.three body{overflow-x:hidden}
html.three #world,html.three .scrim{display:block}
html.three .hero,html.three .sec{background:none;color:var(--mist);display:block;min-height:0;padding:0;overflow:visible}
html.three .hero-scrim,html.three .sec::before{display:none}
html.three .beat{height:175vh}
html.three .hero.beat{height:150vh}
html.three .sec-dark.beat{height:120vh}
html.three .beat{scroll-margin-top:-20vh}
html.three .panel{position:sticky;top:0;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;justify-content:flex-end;
  padding-top:64px;padding-bottom:calc(40px + env(safe-area-inset-bottom));will-change:opacity,transform}
html.three main,html.three .foot{position:relative;z-index:2}
html.three .hero{z-index:2}
html.three .eyebrow{color:var(--gold)}
html.three .panel h2,html.three .panel p,html.three .panel h3,html.three .panel dt,html.three .panel dd,html.three .panel address,html.three .menu span{text-shadow:0 0 14px rgba(4,17,18,.95),0 0 3px rgba(4,17,18,.9)}
html.three .note,html.three .menu p{color:#c3cbc5}
html.three .menu{border-color:rgba(239,232,219,.16)}
html.three .menu li{border-color:rgba(239,232,219,.16);padding:13px 0}
html.three .menu h3{font-size:21px;grid-column:1;grid-row:1}
html.three .menu li>div{display:contents}
html.three .menu li p,html.three .menu .dur{grid-column:1/-1}
html.three .menu p{font-size:13.5px;margin-top:2px}
html.three .menu .dur{color:var(--gold)}
html.three .menu .price{font-size:19px}
html.three h2{margin-bottom:22px}
html.three .note{margin-top:16px}
html.three .hours dt{color:#d9d4c8}
html.three .hours div{position:relative;border:0}
html.three .hours div::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:rgba(239,232,219,.2);
  transform:scaleX(clamp(0,calc(var(--in) * 2 - .5 - var(--r) * .25),1));transform-origin:left}
html.three .hours div:first-child{--r:0;border:0}
html.three .hours div:last-child{--r:1}
html.three .wa{margin-top:24px}
html.three .hero-cta,html.three .wa{align-self:flex-start}

/* per-element motion, all read from the panel's --in (0 arriving, 1 settled) */
html.three .sec .eyebrow{opacity:var(--in);letter-spacing:calc(.3em + (1 - var(--in)) * .5em)}
html.three .sec h2{clip-path:inset(-10% 0 calc((1 - var(--in)) * 110%) 0);transform:translateY(calc((1 - var(--in)) * 22px))}
html.three .menu li{--t:clamp(0,calc(var(--in) * 2.4 - .5 - var(--i) * .28),1);opacity:var(--t);transform:translateX(calc((1 - var(--t)) * -30px))}
html.three .menu .price{opacity:calc(var(--t) * var(--t));transform:translateX(calc((1 - var(--t)) * 22px))}
html.three .hours dt{opacity:clamp(0,calc(var(--in) * 2 - .6 - var(--r) * .25),1)}
html.three .hours dd{display:inline-block;opacity:clamp(0,calc(var(--in) * 2 - .8 - var(--r) * .25),1);transform:translateY(calc((1 - clamp(0,calc(var(--in) * 2 - .8),1)) * 12px))}
html.three address{opacity:var(--in);filter:blur(calc((1 - var(--in)) * 5px))}
html.three .sec .note{opacity:clamp(0,calc(var(--in) * 3 - 2),1)}
html.three .sec .wa{--t:clamp(0,calc(var(--in) * 2.5 - 1.5),1);opacity:var(--t);transform:translateY(calc((1 - var(--t)) * 24px)) scale(calc(.9 + var(--t) * .1))}

@media (max-height:700px){
  html.three .panel{padding-top:54px;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
  html.three .menu li{padding:9px 0}
  html.three h2{font-size:clamp(30px,8.4vw,40px);margin-bottom:14px;max-width:18ch}
}
@media (min-width:900px){
  .scrim{background:linear-gradient(to right,rgba(4,17,18,.94) 0%,rgba(4,17,18,.86) 34%,rgba(4,17,18,.4) 52%,rgba(4,17,18,0) 66%),
                    linear-gradient(to bottom,rgba(4,17,18,.5),rgba(4,17,18,0) 14%)}
  html.three .panel{justify-content:center;padding-bottom:40px}
  html.three .wrap,html.three .hero-inner{margin:0;padding-left:7vw;padding-right:24px;max-width:calc(7vw + 560px)}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
}
