/* v27 "lx" layered scenes: art is built from page colours + cut-outs that stand on shared ground lines and cross section edges */
:root{--lx-wood:#C49A6C;--lx-wood2:#A9805A;--lx-ink:#4E5F4A}
.lx{position:relative;overflow-x:clip;isolation:isolate}
.lx-back{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
.lx-p{position:absolute;left:var(--x);top:var(--y);width:var(--w);height:auto;max-width:none;translate:-50% -100%;z-index:2;pointer-events:none;user-select:none}
.lx-p.flip{scale:-1 1}
.lx-char{z-index:1}
.lx-on{z-index:3;filter:drop-shadow(0 3px 0 rgba(90,62,43,.10))}
.lx-over{z-index:5}
/* hand labels on the art: live text, translatable */
.lx-tag{position:absolute;left:var(--x);top:var(--y);z-index:6;margin:0;translate:-50% -100%;display:flex;flex-direction:column;gap:1px;padding:.45em .8em .5em 1.6em;background:rgba(247,241,232,.92);border-radius:14px;font:500 .74rem/1.25 Manrope,system-ui,sans-serif;color:#6B6A5E;white-space:nowrap;box-shadow:0 1px 0 rgba(78,95,74,.08)}
.lx-tag b{font-weight:700;color:var(--lx-ink);font-size:.8rem}
.lx-tag::before{content:"";position:absolute;left:.7em;top:50%;width:.45em;height:.45em;border-radius:50%;background:var(--chilli,#B4532F);translate:0 -50%}
.lx-tag::after{content:"";position:absolute;left:50%;top:100%;width:1.5px;height:22px;background:repeating-linear-gradient(#B4532F 0 3px,transparent 3px 6px)}
.lx-tag.r::after{left:auto;right:18%}
.lx-ground{position:absolute;left:-8%;right:-8%;bottom:6%;height:3px;border-radius:3px;background:#D6C3A6}

/* ---------- hero: the page is the kitchen ---------- */
.lx-hero{padding:calc(var(--s-xl,48px) + 40px) 0 0;min-height:min(94vh,900px)}
.lx-hero-grid{display:grid;grid-template-columns:5fr 7fr;gap:clamp(16px,3vw,48px);align-items:end;position:relative;z-index:1}
.lx-hero .htext{padding-bottom:clamp(40px,9vh,120px);align-self:center}
.lx-kitchen{position:relative;aspect-ratio:7/6;width:100%}
.lx-counter{position:absolute;left:-10%;right:-60vw;top:83%;bottom:-2px;z-index:2;display:flex;flex-direction:column}
.lx-counter .top{height:7%;min-height:14px;background:#D9B48A;border-radius:10px 0 0 0}
.lx-counter .front{flex:1;background:linear-gradient(#B48A62,#A9805A)}
.lx-kitchen .lx-over{z-index:5}
.lx-kitchen img[src*="curry"]{top:103%!important}
.lx-kitchen img[src*="chillies"]{top:106%!important}
.lx-steam{position:absolute;left:var(--x);top:var(--y);width:5%;translate:-50% -100%;z-index:4;overflow:visible}
.lx-steam path{fill:none;stroke:#fff;stroke-opacity:.85;stroke-width:4;stroke-linecap:round;stroke-dasharray:22 140;animation:lxSteam 3.2s linear infinite}
.lx-steam path+path{animation-delay:1.4s}
@keyframes lxSteam{from{stroke-dashoffset:160;opacity:0}20%{opacity:1}to{stroke-dashoffset:0;opacity:0}}
/* the next section begins at the counter's front edge */
.lx-hero+.lx-check{background:linear-gradient(#A9805A 0 0) top/100% 0 no-repeat}

/* ---------- 01 glass-of-water lab (data-beat drives the art) ---------- */
.lx-check .stage-wrap{height:78vh}
.lx-lab{position:relative;height:100%;width:100%}
.lx-lab .lx-ground{bottom:12%;left:0;right:0}
.lx-lab .glass{position:absolute;left:58%;bottom:12%;width:min(46%,280px);translate:-50% 0;overflow:visible;transition:opacity .5s}
.glass .water{fill:#DCE9EC}
.glass .pow circle{fill:#B4532F;opacity:0;transition:opacity .4s,transform 2.6s cubic-bezier(.3,.1,.3,1);transition-delay:calc(var(--i)*40ms)}
.glass .streaks path{fill:none;stroke:#C0392B;stroke-width:7;stroke-linecap:round;opacity:.55;stroke-dasharray:220;stroke-dashoffset:220;transition:stroke-dashoffset 2.2s ease}
.glass .coffee{fill:#6B4A33;opacity:0;transition:opacity .5s}
.glass .trail{fill:none;stroke:#8A6A50;stroke-width:5;opacity:0;stroke-dasharray:220;stroke-dashoffset:220;transition:stroke-dashoffset 2s ease .6s,opacity .3s}
.lx-lab .tissue{position:absolute;left:58%;bottom:13%;width:min(54%,320px);translate:-50% 0;opacity:0;transform:translateY(20px);transition:opacity .5s,transform .6s}
.tissue .spots circle{fill:#E8A33A;opacity:0;transform-box:fill-box;transform-origin:center;transform:scale(.2);transition:opacity .5s .3s,transform .9s .3s}
.tissue .spots circle:nth-child(2){fill:#D2552C}.tissue .spots circle:nth-child(3){fill:#E9C24A}
.tissue .leaves circle{fill:#3E2E22}
.lab-chilli,.lab-tea{opacity:0;transition:opacity .5s,transform .6s}
.lx-lab .lab-note{left:58%;top:10%;translate:-50% 0}
.lab-note b{display:none}
.lx-check[data-beat="0"] .lab-chilli,.lx-check[data-beat="1"] .lab-chilli,.lx-check[data-beat="2"] .lab-chilli,.lx-check[data-beat="3"] .lab-chilli{opacity:1}
.lx-check[data-beat="1"] .pow circle,.lx-check[data-beat="2"] .pow circle,.lx-check[data-beat="3"] .pow circle{opacity:1}
.lx-check[data-beat="2"] .pow circle{transform:translateY(196px)}
.lx-check[data-beat="3"] .pow circle{transform:translateY(120px)}
.lx-check[data-beat="3"] .streaks path{stroke-dashoffset:0}
.lx-check[data-beat="4"] .glass{opacity:0}
.lx-check[data-beat="4"] .tissue{opacity:1;transform:none}
.lx-check[data-beat="4"] .tissue .spots circle{opacity:1;transform:scale(1)}
.lx-check[data-beat="4"] .lab-tea,.lx-check[data-beat="5"] .lab-tea{opacity:1}
.lx-check[data-beat="5"] .coffee{opacity:1}
.lx-check[data-beat="5"] .trail{opacity:.5;stroke-dashoffset:0}
.lx-check:not([data-beat]) .n1,.lx-check[data-beat="0"] .n1,.lx-check[data-beat="1"] .n1,.lx-check[data-beat="2"] .n2,.lx-check[data-beat="3"] .n3,.lx-check[data-beat="4"] .n4,.lx-check[data-beat="5"] .n5{display:block}

/* ---------- landscape: Palnadu fields to the Araku hills ---------- */
.lx-land{padding:0;margin-top:clamp(-20px,-2vw,0px)}
.lx-landstage{position:relative;width:100%;height:clamp(380px,48vw,680px)}
.lx-land .mist{animation:lxMist 14s ease-in-out infinite alternate}
.lx-land .mist.m2{animation-duration:18s}
@keyframes lxMist{to{transform:translateX(-60px)}}
.route{stroke-dashoffset:0}

/* ---------- 03 making: objects on one shelf line, the active step comes alive ---------- */
.lx-make .lx-line{position:relative;height:clamp(200px,30vh,320px);margin:8px 0 18px}
.lx-make .lx-ground{bottom:6%;left:0;right:0}
.lx-path{position:absolute;left:0;right:0;top:4%;width:100%;height:60px;overflow:visible}
.lx-path path{fill:none;stroke:#B4532F;stroke-width:3;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--p,1));vector-effect:non-scaling-stroke}
.lx-make .st{filter:saturate(.25) brightness(1.06);opacity:.5;transition:filter .6s,opacity .6s,transform .6s cubic-bezier(.34,1.56,.64,1)}
.lx-make .lx-tag.st{opacity:0}
.lx-make[data-step="0"] .st0,.lx-make[data-step="1"] .st1,.lx-make[data-step="2"] .st2,.lx-make[data-step="3"] .st3,.lx-make[data-step="all"] .st,.lx-make:not([data-step]) .st{filter:none;opacity:1;transform:translateY(-8px)}
.lx-make[data-step="3"] .lx-tag.st3,.lx-make[data-step="all"] .lx-tag.st3,.lx-make:not([data-step]) .lx-tag.st3{opacity:1;transform:none}

/* ---------- 04 shop: the awning is the section edge ---------- */
.lx-shop{padding-top:0}
.lx-awning{display:block;width:100%;height:clamp(36px,4.5vw,64px);margin-bottom:var(--s-xl,48px)}
.lx-shopstage,.lx-doorstage{position:relative;width:100%;aspect-ratio:1/1;max-height:100%;margin-inline:auto}
.lx-shopstage .shelf{opacity:.55;filter:saturate(.7)}
.lx-shopstage .keeper{z-index:2}
.lx-shopstage .drop{position:absolute;left:86%;top:-6%;width:9%;z-index:4;opacity:0;translate:-50% 0;transition:top 1.1s cubic-bezier(.5,0,.75,0),opacity .3s}
.lx-shop[data-beat="1"] .drop,.lx-shop[data-beat="2"] .drop,.lx-shop[data-beat="3"] .drop{top:70%;opacity:1}
.lx-shopstage .kos{left:86%;top:60%;opacity:0;transition:opacity .5s .9s}
.lx-shop[data-beat="2"] .kos,.lx-shop[data-beat="3"] .kos{opacity:1}

/* ---------- 05 doorstep: the threshold is the section edge ---------- */
.lx-doorstage .lx-back{z-index:0}
.lx-doorstage .ride{transition:transform 1.4s cubic-bezier(.2,.8,.2,1),opacity .6s;transform:translateX(-70%);opacity:0}
.lx-doorstage .bx{transition:opacity .6s .8s,transform .7s .8s cubic-bezier(.34,1.56,.64,1);opacity:0;transform:translateY(-30px)}
.lx-door[data-beat="1"] .ride,.lx-door[data-beat="2"] .ride{transform:none;opacity:1}
.lx-door[data-beat="1"] .bx,.lx-door[data-beat="2"] .bx{opacity:1;transform:none}
.lx-door[data-beat="2"] .ride{transform:translateX(-120%);opacity:0;transition-delay:.6s}
.lx-door .gw{transform-origin:50% 100%}
.lx-door[data-beat="2"] .gw{animation:lxWave 1.6s ease-in-out 2}
@keyframes lxWave{50%{transform:rotate(-3deg)}}
.lx-door .pouches{bottom:2%}
.lx-door[data-beat="0"] .pouches i:nth-child(1),.lx-door[data-beat="1"] .pouches i:nth-child(-n+2),.lx-door[data-beat="2"] .pouches i{opacity:1;transform:none}
.lx-door .route{stroke-dashoffset:1}
.lx-door[data-beat="1"] .route,.lx-door[data-beat="2"] .route{stroke-dashoffset:0;transition:stroke-dashoffset 1.6s ease}

/* chapter stages here are open, not boxed */
.lx .stage-wrap{background:none}
.lx-faq{position:relative}
.lx-faq::before{content:"";position:absolute;left:0;right:0;top:-1px;height:clamp(28px,4vw,56px);background:#EDE3D5;clip-path:path("M0 0H3000V20C2400 60 1800 0 1200 30S300 50 0 18Z");pointer-events:none}

/* shared grain so CSS surfaces match the painted art */
body::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:9998;opacity:.05;mix-blend-mode:multiply;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .28  0 0 0 0 .2  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>")}

/* ---------- scroll-driven depth (native, no library) ---------- */
@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:view()){
    .lx-hero .lx-p,.lx-land .lx-p{animation:lxDrift linear both;animation-timeline:view();animation-range:cover 0% cover 100%;animation-duration:1ms}
    @keyframes lxDrift{from{transform:translateY(calc(var(--d,0px) * -1))}to{transform:translateY(var(--d,0px))}}
    .lx-land .route{stroke-dashoffset:1;animation:lxDraw linear both;animation-timeline:view();animation-range:entry 20% cover 55%;animation-duration:1ms}
    @keyframes lxDraw{to{stroke-dashoffset:0}}
    .lx-tag{animation:lxTag linear both;animation-timeline:view();animation-range:entry 10% entry 60%;animation-duration:1ms}
    @keyframes lxTag{from{opacity:0;translate:-50% -70%}to{opacity:1;translate:-50% -100%}}
    .lx-lab .lab-note,.lx-make .lx-tag,.lx-shopstage .kos{animation:none}
  }
}
@media (prefers-reduced-motion:reduce){
  .lx-steam path,.lx-land .mist{animation:none}
  .lx-door .ride,.lx-door .bx{transform:none;opacity:1}
  .lx-door .route,.lx-path path{stroke-dashoffset:0}
}

/* ---------- mobile ---------- */
@media (max-width:860px){
  .lx-hero{padding-top:88px;min-height:0}
  .lx-hero-grid{grid-template-columns:1fr}
  .lx-hero .htext{padding-bottom:8px}
  .lx-kitchen{aspect-ratio:1/0.92;margin-inline:-4vw;width:calc(100% + 8vw)}
  .lx-counter{left:-10vw;right:-10vw}
  .lx-tag{font-size:.66rem;padding:.35em .6em .4em 1.4em}.lx-tag b{font-size:.7rem}
  .lx-landstage{height:clamp(300px,82vw,460px)}
  .lx-land .lx-tag{display:none}
  .lx-make .lx-line{height:150px}
  .lx-check .stage-wrap{height:42vh}
  .lx-shopstage,.lx-doorstage{height:100%;width:auto}
}
/* v27b fixes */
.lx-hero .eyebrow{display:block}
.lx-hero h1 em{color:var(--chilli,#B4532F)!important;font-style:normal;background:none!important}
.lx-hero{min-height:0;padding-bottom:0}
.lx-tag.up{translate:-50% -100%}
.lx-tag.up::after{top:auto;bottom:100%;height:30px}
.lx-tag.up{z-index:6}
.keeper{display:block}
.keeper img{display:block;width:100%;height:auto}
.keeper .drop{position:absolute;left:90%;top:-40%;width:10%;opacity:0;translate:-50% 0;transition:top 1.1s cubic-bezier(.5,0,.75,0),opacity .3s}
.lx-shop[data-beat="1"] .keeper .drop,.lx-shop[data-beat="2"] .keeper .drop,.lx-shop[data-beat="3"] .keeper .drop{top:33%;opacity:1}
.keeper .kos{left:90%;top:22%;opacity:0;transition:opacity .5s .9s}
.lx-shop[data-beat="2"] .keeper .kos,.lx-shop[data-beat="3"] .keeper .kos{opacity:1}
.lx-door .pouches{inset:4% auto auto 0;justify-content:flex-start}
.keeper .drop{left:87%}
.lx-shop[data-beat="1"] .keeper .drop,.lx-shop[data-beat="2"] .keeper .drop,.lx-shop[data-beat="3"] .keeper .drop{top:36%}
@media (max-width:860px){
  .lx .stage-wrap{background:#EDE3D5;padding-bottom:8px}
  .lx-shopstage,.lx-doorstage{max-width:44vh}
  .lx-land{margin-bottom:56px}
  .lx-make .lx-tag.batch{display:none}
  .lx-kitchen img[src*="curry"]{top:100%!important}
  .lx-kitchen img[src*="chillies"]{top:102%!important}
}
/* ===== v28 anti-overlap ===== */
html{scroll-padding-top:84px;scroll-padding-bottom:96px}
.lx-counter{left:0}
/* floating widgets yield: hide while scrolling down or typing */
.fbpill,.stickybar{transition:transform .35s cubic-bezier(.2,.7,.2,1),opacity .25s}
html.scrolling-dn .stickybar.on,html.typing .stickybar.on{transform:translateY(140%)!important;opacity:0}
html.scrolling .fbpill,html.typing .fbpill{transform:translateX(130%)!important;opacity:0;pointer-events:none}
@media (max-width:640px){.fbpill{right:6px!important;bottom:auto!important;top:42%!important;width:40px;height:40px;padding:0!important;justify-content:center;border-radius:50%!important;box-shadow:0 6px 16px -6px rgba(0,0,0,.35)!important}.fbpill b,.fbpill em{display:none}.fbpill{font-size:0!important}.fbpill span{font-size:17px!important}}
.fbfoot{margin:14px 0 0;background:none;border:1px solid rgba(247,241,232,.4);color:inherit;border-radius:999px;padding:8px 14px;font:600 .82rem Manrope,system-ui,sans-serif;cursor:pointer}
/* phones: stack chapters (art above text), never pin over text */
@media (max-width:860px){
  .lx.chapter .stage-wrap{position:relative!important;top:auto!important;height:auto!important;order:0;background:none;margin:0 0 8px}
  .lx.chapter .ch-grid{display:flex;flex-direction:column}
  .lx.chapter .beats{display:contents}
  .lx.chapter .beat{min-height:0!important;opacity:1!important;padding:0 0 18px!important;justify-content:flex-start}
  .lx.chapter .beat:first-child{order:-2;padding-bottom:12px!important}
  .lx.chapter .stage-wrap{order:-1}
  .lx-lab{height:auto;aspect-ratio:4/3}
  .lx-shopstage,.lx-doorstage{max-width:none;width:100%;height:auto}
  /* mobile beat states mirror desktop ones via data-mbeat */
}

@media (max-width:860px){
.lx-check[data-mbeat="0"] .lab-chilli,.lx-check[data-mbeat="1"] .lab-chilli,.lx-check[data-mbeat="2"] .lab-chilli,.lx-check[data-mbeat="3"] .lab-chilli{opacity:1}
.lx-check[data-mbeat="1"] .pow circle,.lx-check[data-mbeat="2"] .pow circle,.lx-check[data-mbeat="3"] .pow circle{opacity:1}
.lx-check[data-mbeat="2"] .pow circle{transform:translateY(196px)}
.lx-check[data-mbeat="3"] .pow circle{transform:translateY(120px)}
.lx-check[data-mbeat="3"] .streaks path{stroke-dashoffset:0}
.lx-check[data-mbeat="4"] .glass{opacity:0}
.lx-check[data-mbeat="4"] .tissue{opacity:1;transform:none}
.lx-check[data-mbeat="4"] .tissue .spots circle{opacity:1;transform:scale(1)}
.lx-check[data-mbeat="4"] .lab-tea,.lx-check[data-mbeat="5"] .lab-tea{opacity:1}
.lx-check[data-mbeat="5"] .coffee{opacity:1}
.lx-check[data-mbeat="5"] .trail{opacity:.5;stroke-dashoffset:0}
.lx-check:not([data-mbeat]) .n1,.lx-check[data-mbeat="0"] .n1,.lx-check[data-mbeat="1"] .n1,.lx-check[data-mbeat="2"] .n2,.lx-check[data-mbeat="3"] .n3,.lx-check[data-mbeat="4"] .n4,.lx-check[data-mbeat="5"] .n5{display:block}
.lx-shop[data-mbeat="1"] .drop,.lx-shop[data-mbeat="2"] .drop,.lx-shop[data-mbeat="3"] .drop{top:70%;opacity:1}
.lx-shop[data-mbeat="2"] .kos,.lx-shop[data-mbeat="3"] .kos{opacity:1}
.lx-door[data-mbeat="1"] .ride,.lx-door[data-mbeat="2"] .ride{transform:none;opacity:1}
.lx-door[data-mbeat="1"] .bx,.lx-door[data-mbeat="2"] .bx{opacity:1;transform:none}
.lx-door[data-mbeat="2"] .ride{transform:translateX(-120%);opacity:0;transition-delay:.6s}
.lx-door[data-mbeat="2"] .gw{animation:lxWave 1.6s ease-in-out 2}
.lx-door[data-mbeat="0"] .pouches i:nth-child(1),.lx-door[data-mbeat="1"] .pouches i:nth-child(-n+2),.lx-door[data-mbeat="2"] .pouches i{opacity:1;transform:none}
.lx-door[data-mbeat="1"] .route,.lx-door[data-mbeat="2"] .route{stroke-dashoffset:0;transition:stroke-dashoffset 1.6s ease}
.lx-shop[data-mbeat="1"] .keeper .drop,.lx-shop[data-mbeat="2"] .keeper .drop,.lx-shop[data-mbeat="3"] .keeper .drop{top:33%;opacity:1}
.lx-shop[data-mbeat="2"] .keeper .kos,.lx-shop[data-mbeat="3"] .keeper .kos{opacity:1}
.lx-shop[data-mbeat="1"] .keeper .drop,.lx-shop[data-mbeat="2"] .keeper .drop,.lx-shop[data-mbeat="3"] .keeper .drop{top:36%}
}
@media (max-width:860px){
  .lx-check:not([data-mbeat="0"]):not([data-mbeat="1"]) .n1{display:none}
  .lx-check:not([data-mbeat]) .n1{display:block}
  body{padding-bottom:76px}
  .lx-land .lx-p.lx-over{display:none}
}
@media (max-width:860px){
  .lx.chapter .ch-grid{align-items:stretch}
  .lx.chapter .stage-wrap{width:100%;align-self:stretch}
  .lx-lab .glass{overflow:hidden}
  .lx-door .pouches{position:absolute;inset:auto 0 0 auto;justify-content:flex-end;gap:6px;transform:scale(.8);transform-origin:100% 100%}
  .lx-doorstage,.lx-shopstage{max-width:420px;margin-inline:auto}
}
@media (max-width:860px){.fbpill{display:none!important}}
/* ===== v28 other pages: same layered art, no boxes ===== */
.pg-art{position:relative;margin:0;background:none!important;box-shadow:none!important;border:0!important}
.page-hero .pg-art img{width:min(100%,460px);height:auto;display:block;margin-inline:auto;filter:drop-shadow(0 4px 0 rgba(90,62,43,.08))}
.pg-art.side{margin-top:28px}
.pg-art.side img{width:min(100%,380px);height:auto;display:block}
.pg-shelf{position:relative;display:flex;align-items:flex-end;justify-content:center;gap:clamp(8px,2.5vw,28px);margin:8px 0 28px;padding:0 4% 0;min-height:140px}
.pg-shelf img{height:auto;position:relative;z-index:1}
.pg-shelf .i0{width:16%}.pg-shelf .i1{width:28%}.pg-shelf .i2{width:30%;margin-bottom:-2px}.pg-shelf .i3{width:10%}.pg-shelf .i4{width:14%}
.pg-shelf .ledge{position:absolute;left:0;right:0;bottom:-10px;height:14px;border-radius:8px;background:linear-gradient(#D9B48A 0 40%,#B48A62 40%)}
.soonart{display:flex;align-items:flex-end;justify-content:center;gap:8px;max-width:340px;margin:0 auto 12px}
.soonart img{height:auto}.soonart img:first-child{width:58%}.soonart img:last-child{width:34%}
/* desktop feedback: slim edge tab, never over footer links */
@media (min-width:861px){
  .fbpill{right:0!important;left:auto!important;bottom:auto!important;top:46%!important;writing-mode:vertical-rl!important;transform:rotate(180deg)!important;border-radius:0 12px 12px 0!important;padding:14px 9px!important;font-size:12px!important;box-shadow:none!important}
  .fbpill i{display:none}
  html.scrolling .fbpill{transform:rotate(180deg) translateX(-130%)!important}
}
.eyebrow+h2,.eyebrow+h1{margin-top:.4em!important}
