/* ============================================================
   THE THIRD PLACE: story layer
   Everything here belongs to js/story.js. Each piece has a switch there;
   when a switch is off its markup isn't created, so these styles do nothing.
     .st-dive    hero → The idea: the zoom through the clay dot
     .st-fly     The floor as a 3D model the camera flies over
     .st-onair   The Studio's ON AIR stage (sign, live waveform, credits)
     .st-crowd   Community: dots forming NASHIK, then the logo
     .st-cal     Community: line-art wall calendar beside the event deck
     .st-lift    Visit: the lift ride and its doors
     .st-fdot    Footer: the dot that clicks into the logo
     .st-rail    section names in the left page margin (wide screens)
     .st-bar     scroll progress line under the header
     .st-km      the logo's three dots beside each section label
     .st-rec     the Studio's "recording" waveform
     .st-ask     the "Ask us?" label beside the floating WhatsApp button
   Remove this file's <link> and js/story.js's <script> to remove all of it.
   ============================================================ */

/* ---------- 1. Dive: the hero pins while the clay dot grows to fill the screen ---------- */
.st-dive{position:relative;height:calc(100vh - var(--header-h) + 220vh);height:calc(100svh - var(--header-h) + 220vh)}
.st-dive-pin{position:sticky;top:var(--header-h);height:calc(100vh - var(--header-h));height:calc(100svh - var(--header-h));overflow:hidden}
.st-dive-pin>.hero{height:100%;min-height:0}
.st-disc{position:absolute;inset:0;z-index:5;visibility:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--s-5);
  padding:var(--pad);text-align:center;background:var(--clay);color:var(--paper);clip-path:circle(0 at 50% 50%);will-change:clip-path}
.st-disc-t{max-width:none;font-family:var(--display);font-weight:300;font-size:clamp(3.5rem,12vw,13rem);line-height:1;letter-spacing:-.025em;opacity:0;will-change:transform,opacity}
.st-disc-t em{font-style:italic;color:var(--cream-on-clay)}
.st-disc .label{font-size:clamp(.875rem,1.5vw,1.375rem);letter-spacing:.32em;color:var(--cream-on-clay);opacity:0}
/* The idea slides up over the clay like a new page */
.idea.st-over{position:relative;z-index:3;margin-top:calc(var(--header-h) - 100vh);margin-top:calc(var(--header-h) - 100svh);
  background:var(--paper);border-radius:var(--r-lg) var(--r-lg) 0 0;box-shadow:0 -40px 80px -30px rgba(46,38,32,.55);
  /* at least as tall as the pinned stage it covers, so no clay peeks out below */
  min-height:calc(100vh - var(--header-h));min-height:calc(100svh - var(--header-h));display:flex;align-items:center}
.idea.st-over>.wrap{width:100%}
@media(max-width:699px){
  .st-dive{height:calc(100vh - var(--header-h) + 180vh);height:calc(100svh - var(--header-h) + 180vh)}
}

/* ---------- 2. The floor in 3D ---------- */
/* the tour replaces the plan + list, and its first frame is the section heading */
#spaces.st-flying .floor,#spaces.st-flying>.wrap>.section-head{display:none}
#spaces.st-flying{padding-top:0}
.st-fly{position:relative;height:520vh}
/* edge to edge (width/offset set in story.js); the copy column lines up with the page grid on the right */
.st-fly-stage{position:sticky;top:var(--header-h);height:calc(100vh - var(--header-h));height:calc(100svh - var(--header-h));
  display:grid;grid-template-columns:minmax(0,1fr) min(460px,34vw);align-items:center;column-gap:var(--gutter);padding-right:var(--g,var(--pad))}
.st-fly-scene{position:relative;height:100%;min-width:0;perspective:1600px;perspective-origin:50% 40%;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,#000 80%,transparent);mask-image:linear-gradient(90deg,#000 80%,transparent)}
.st-cam{position:absolute;left:50%;top:50%;width:0;height:0;transform-style:preserve-3d;will-change:transform}
.st-model{position:absolute;left:0;top:0;width:640px;height:420px;transform-style:preserve-3d}
.st-slab{position:absolute;left:10px;top:10px;width:620px;height:400px;border:3px solid var(--ink);border-radius:6px;background:var(--paper);box-shadow:0 40px 70px -30px rgba(46,38,32,.45)}
.st-rm{position:absolute;transform-style:preserve-3d;--h:calc(var(--d) * var(--k, 0) * 1px)}
.st-rm .w{position:absolute;display:block;transition:background-color .5s var(--ease)}
.st-rm .n,.st-rm .s{left:0;width:100%;height:var(--h);transform-origin:0 0;transform:rotateX(90deg)}
.st-rm .n{top:0;background:#E4DED3}
.st-rm .s{top:100%;background:#D3CABC}
.st-rm .wl,.st-rm .e{top:0;width:var(--h);height:100%;transform-origin:0 0;transform:rotateY(-90deg)}
.st-rm .wl{left:0;background:#DDD6CA}
.st-rm .e{left:100%;background:#CBC1B2}
.st-top{position:absolute;inset:0;transform:translateZ(var(--h));background:var(--paper);border:1.2px solid var(--stone);border-radius:2px;transition:background-color .5s var(--ease),border-color .5s var(--ease)}
.st-top svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.st-top .detail{fill:none;stroke:var(--stone);stroke-width:1;opacity:.6;vector-effect:non-scaling-stroke}
.st-top .detail.f{fill:var(--stone);stroke:none}
.st-top .hl{stroke:var(--stone);stroke-width:1;opacity:.6}
.st-top b{position:absolute;left:7px;top:5px;font-family:var(--mono);font-weight:400;font-size:10px;letter-spacing:.1em;color:var(--text-2)}
.st-rm.on .st-top{background:var(--cream-on-clay);border-color:var(--clay)}
.st-rm.on .st-top .detail{stroke:var(--clay);opacity:.9}
.st-rm.on .st-top .detail.f{fill:var(--clay)}
.st-rm.on .st-top b{color:var(--clay)}
.st-rm.on .n,.st-rm.on .wl{background:#C98A69}
.st-rm.on .s,.st-rm.on .e{background:var(--clay)}
.st-fly-copy{display:grid;min-width:0}
.st-fz{grid-area:1/1;opacity:0;transform:translateY(24px);transition:opacity .3s var(--ease),transform .5s var(--ease);pointer-events:none}
.st-fz.on{opacity:1;transform:none;transition-delay:.1s;pointer-events:auto}
.st-fz .label{display:block;margin-bottom:var(--s-4);color:var(--clay)}
.st-fz-t{max-width:none;margin-bottom:var(--s-4);font-family:var(--display);font-weight:300;font-size:var(--t-h2);line-height:1.02;letter-spacing:-.02em}
.st-fz-t em{font-style:italic;color:var(--clay)}
.st-fz p{max-width:40ch;color:var(--text-2)}
.st-fz .btn{margin-top:var(--s-5)}
@media(max-width:860px){
  .st-fly{height:440vh}
  .st-fly-stage{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;align-items:start;gap:var(--s-3);padding:0 0 calc(var(--s-8) + 24px)}
  .st-fly-scene{min-height:0;-webkit-mask-image:linear-gradient(#000 85%,transparent);mask-image:linear-gradient(#000 85%,transparent)}
  .st-fly-copy{padding-inline:var(--g,var(--pad))}
  .st-fz-t{font-size:clamp(1.75rem,7vw,2.5rem);margin-bottom:var(--s-3)}
  .st-fz p{font-size:var(--t-small)}
}

/* ---------- 3. The Studio: ON AIR card (in the section's normal layout) ---------- */
.st-air-card{display:flex;flex-direction:column;gap:var(--s-5);padding:var(--card-pad);border:1px solid var(--line-ink);border-radius:var(--r-lg);background:var(--panel-ink)}
.st-air-top{display:flex;align-items:center;justify-content:space-between;gap:var(--s-4)}
.st-air-top .label{color:var(--text-2-ink)}
.st-air-pill{display:inline-flex;align-items:center;gap:var(--s-2);padding:6px 14px;border:1px solid var(--line-ink);border-radius:var(--r-pill);
  font-family:var(--mono);font-weight:400;font-size:var(--t-label);letter-spacing:.16em;text-transform:uppercase;color:var(--text-2-ink);
  transition:background-color .4s var(--ease),border-color .4s var(--ease),color .4s var(--ease)}
.st-air-pill i{width:7px;height:7px;border-radius:50%;background:currentColor}
.st-air-card.lit .st-air-pill{background:var(--clay);border-color:var(--clay);color:var(--paper)}
.st-air-card.lit .st-air-pill i{animation:stRec 1.4s ease-in-out infinite}
@keyframes stRec{50%{opacity:.25}}
.st-wave{display:block;width:100%;height:clamp(64px,9vw,104px)}
.st-air-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--s-4);padding-top:var(--s-5);border-top:1px solid var(--line-ink);list-style:none}
.st-air-facts li{display:flex;flex-direction:column;gap:var(--s-1)}
.st-air-facts b{font-family:var(--display);font-weight:300;font-size:clamp(1.25rem,1.8vw,1.5rem);line-height:1.15;color:var(--paper)}
.st-air-facts span{font-size:var(--t-small);color:var(--text-2-ink)}
@media(max-width:520px){ .st-air-facts{grid-template-columns:1fr} }

/* ---------- 4. Community: heading + the city forming from people, one pinned screen ---------- */
#community.st-crowd-on{padding-top:0}
.st-crowd{position:relative;height:320vh}
.st-crowd-stage{position:sticky;top:var(--header-h);height:calc(100vh - var(--header-h));height:calc(100svh - var(--header-h));
  display:flex;flex-direction:column;padding-top:clamp(24px,6vh,64px)}
.st-crowd-head .section-head{margin-bottom:0}
.st-crowd-art{position:relative;flex:1;min-height:0}
.st-crowd canvas{position:absolute;inset:0;width:100%;height:100%}
.st-crowd-cap{position:relative;display:grid;max-width:none;padding:var(--s-3) 0 clamp(20px,5vh,48px);text-align:center}
.st-crowd-cap span{grid-area:1/1;font-family:var(--display);font-weight:300;font-size:clamp(1.5rem,3vw,2.5rem);line-height:1.15;letter-spacing:-.01em;
  opacity:0;transform:translateY(16px);transition:opacity .4s var(--ease),transform .6s var(--ease)}
.st-crowd-cap span.on{opacity:1;transform:none;transition-delay:.12s}
.st-crowd-cap em{font-style:italic;color:var(--clay)}
@media(max-width:699px){
  .st-crowd{height:240vh}
  .st-crowd-stage{padding-top:var(--s-5);padding-bottom:72px}   /* clear of the phone action bar */
  .st-crowd-head .section-head .lede{font-size:var(--t-small)}
}

/* ---------- 5. Community: line-art wall calendar ---------- */
.st-calwrap{margin-top:var(--s-7)}
.st-cal{display:block;width:min(100%,420px);overflow:visible}
.st-cal .frame{fill:var(--paper);stroke:var(--ink);stroke-width:1.5;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.6s var(--ease)}
.st-cal.in .frame{stroke-dashoffset:0}
.st-cal .rings{fill:none;stroke:var(--ink);stroke-width:5;stroke-linecap:round;opacity:0;transition:opacity .5s .8s}
.st-cal .hd,.st-cal .hd2{font-family:var(--mono);font-size:10px;letter-spacing:.2em;text-transform:uppercase;opacity:0;transition:opacity .5s 1s}
.st-cal .hd{fill:var(--clay)}
.st-cal .hd2{fill:var(--text-2);text-anchor:end}
.st-cal.in .rings,.st-cal.in .hd,.st-cal.in .hd2{opacity:1}
.st-cal .tile{fill:transparent;stroke:var(--line);stroke-width:1.2;opacity:0;transition:opacity .5s var(--ease),fill .45s var(--ease),stroke .45s var(--ease)}
.st-cal.in .tile{opacity:1;transition-delay:.6s}
.st-cal .ic{fill:none;stroke:var(--ink);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;opacity:0;
  transition:stroke-dashoffset 1.1s var(--ease),opacity .2s,stroke .45s var(--ease)}
.st-cal .n,.st-cal .t{font-family:var(--mono);font-size:9px;letter-spacing:.14em;text-transform:uppercase;fill:var(--text-2);transition:fill .45s var(--ease),opacity .5s}
.st-cal .t{text-anchor:middle;opacity:0}
.st-cell.on .ic{stroke-dashoffset:0;opacity:1}
.st-cell.on .t{opacity:1}
.st-cell.cur .tile{fill:var(--cream-on-clay);stroke:var(--clay)}
.st-cell.cur .ic{stroke:var(--clay)}
.st-cell.cur .n,.st-cell.cur .t{fill:var(--clay)}
@media(max-width:860px){ .st-calwrap{display:none} }

/* ---------- 6. Visit: the lift ---------- */
.st-lift{position:relative;z-index:2;height:220vh;margin-bottom:-100vh;margin-bottom:-100svh;pointer-events:none}
.st-lift-stage{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden}
.st-lift-bg{position:absolute;left:0;right:0;top:0;height:100%;background:var(--ink)}
.st-door{position:absolute;top:0;bottom:0;width:50%;will-change:transform;
  background:repeating-linear-gradient(90deg,rgba(245,241,233,.025) 0 2px,transparent 2px 7px),linear-gradient(90deg,#30281F,#3D342D 55%,#342B25)}
.st-door::before{content:"";position:absolute;inset:14vh 4vw;border:1px solid rgba(245,241,233,.06);border-radius:6px}
.st-door.l{left:0}
.st-door.r{right:0}
.st-door.l::after{content:"";position:absolute;right:0;top:0;bottom:0;width:1px;background:var(--line-ink)}
.st-lift-panel{position:absolute;left:50%;top:50%;z-index:2;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:clamp(32px,6vh,64px)}
.st-ind{display:flex;align-items:center;gap:0;padding:.14em .38em;border:1px solid rgba(245,241,233,.08);border-radius:.14em;background:#1E1915;
  font-family:var(--display);font-weight:300;font-size:clamp(5rem,17vw,12rem);line-height:1;color:var(--stone-on-ink);transition:color .4s,text-shadow .4s}
.st-arrow{width:.26em;height:.21em;margin-right:.22em;fill:var(--clay-on-ink);opacity:.25;
  transition:width .6s var(--ease),margin .6s var(--ease),opacity .3s var(--ease)}
.st-lift.moving .st-arrow{animation:stUp 1s ease-in-out infinite}
@keyframes stUp{50%{opacity:1;transform:translateY(-.06em)}}
/* on arrival the arrow folds away smoothly (the box narrows instead of jumping) */
.st-lift.arrived .st-arrow{width:0;margin-right:0;opacity:0}
.st-floor{display:block;height:1em;overflow:hidden}
.st-digits{display:flex;flex-direction:column;will-change:transform}
.st-digits b{display:block;height:1em;font-weight:300;text-align:center}
.st-lift.arrived .st-ind{color:var(--clay-on-ink)}
/* the two captions share one spot, so the space never changes: "Going up" fades out, the arrival line rises in */
.st-lift-caps{display:grid;place-items:center;text-align:center}
.st-lift-cap,.st-lift-arrive{grid-area:1/1;transition:opacity .5s var(--ease),transform .8s var(--ease)}
.st-lift-cap{color:var(--text-2-ink);white-space:nowrap}
.st-lift-arrive{font-family:var(--display);font-weight:300;font-size:clamp(1.75rem,4vw,3.25rem);line-height:1.1;letter-spacing:-.01em;color:var(--paper);
  opacity:0;transform:translateY(18px)}
.st-lift-arrive em{font-style:italic;color:var(--clay-on-ink)}
.st-lift.arrived .st-lift-cap{opacity:0;transform:translateY(-10px)}
.st-lift.arrived .st-lift-arrive{opacity:1;transform:none;transition-delay:.25s}

/* ---------- 7. Footer: the dot that clicks into the logo ---------- */
.st-fdot{position:fixed;left:0;top:0;z-index:60;width:var(--sz,22px);height:var(--sz,22px);margin:calc(var(--sz,22px) / -2) 0 0 calc(var(--sz,22px) / -2);
  border-radius:50%;background:var(--paper);box-shadow:0 8px 18px -8px rgba(46,38,32,.6);pointer-events:none;opacity:0;transition:opacity .3s var(--ease)}
.st-fdot.on{opacity:1}
.foot .stacked .mk.st-wait .s{opacity:0}
.foot .stacked .mk.st-arrived .s{transform-box:fill-box;transform-origin:center;animation:stArrive .8s cubic-bezier(.34,1.56,.64,1)}
@keyframes stArrive{0%{transform:scale(1)}35%{transform:scale(1.5)}100%{transform:scale(1)}}

/* ---------- Section rail (left page margin) ---------- */
.st-rail{position:fixed;left:28px;top:50%;transform:translateY(-50%);z-index:50;display:flex;flex-direction:column;gap:4px;
  color:var(--ink);opacity:0;visibility:hidden;transition:opacity .5s var(--ease),visibility 0s .5s}
.st-rail.on{opacity:1;visibility:visible;transition:opacity .5s var(--ease)}
.st-rail button{position:relative;display:flex;align-items:center;gap:12px;height:20px;padding:0 6px 0 0;background:none;border:0;color:inherit;cursor:pointer;font:inherit}
.st-rail .tk{width:12px;height:1.5px;border-radius:2px;background:currentColor;opacity:.28;transition:width .45s var(--ease),opacity .3s var(--ease),background-color .3s var(--ease)}
.st-rail button:hover .tk{opacity:.7}
.st-rail button.on .tk{width:28px;opacity:1;background:var(--clay)}
.st-rail .nm{font-family:var(--mono);font-weight:400;font-size:var(--t-label);letter-spacing:.16em;text-transform:uppercase;white-space:nowrap;
  opacity:0;transform:translateX(-6px);transition:opacity .35s var(--ease),transform .45s var(--ease);pointer-events:none}
/* wide margins: the current section is named; narrower ones: names show on hover as a small tag */
.st-rail.labels button.on .nm{opacity:1;transform:none}
.st-rail button:hover .nm,.st-rail button:focus-visible .nm{opacity:1;transform:none}
.st-rail:not(.labels) .nm{position:absolute;left:40px;padding:4px 10px;border-radius:var(--r-pill);background:var(--paper);box-shadow:var(--shadow)}
.st-rail.ink{color:var(--paper)}
.st-rail.ink button.on .tk{background:var(--clay-on-ink)}
.st-rail.ink:not(.labels) .nm{background:var(--panel-ink)}

/* ---------- Progress line under the header ---------- */
.st-bar{position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--clay);transform-origin:left;transform:scaleX(0);pointer-events:none}

/* ---------- The logo's dots beside section labels ---------- */
.st-km{display:inline-flex;align-items:center;gap:4px;flex:none}
.st-km i{width:7px;height:7px;border-radius:50%;border:1.2px solid var(--stone);transform:scale(0);transition:transform .5s cubic-bezier(.34,1.56,.64,1)}
.st-km i:nth-child(2){transition-delay:.12s}
.st-km i:nth-child(3){width:9px;height:9px;border:0;background:var(--clay);transition-delay:.26s}
.st-km.in i{transform:scale(1)}
.on-ink .st-km i{border-color:var(--stone-on-ink)}
.on-ink .st-km i:nth-child(3){background:var(--clay-on-ink)}

/* ---------- The Studio: recording waveform ---------- */
.st-rec{grid-column:1/-1;display:flex;align-items:center;gap:var(--s-3);margin-top:var(--s-7);color:var(--text-2-ink)}
.st-rec .rd{width:8px;height:8px;border-radius:50%;background:var(--clay-on-ink);flex:none;opacity:.5}
.st-rec.live .rd{opacity:1;animation:stRec 1.4s ease-in-out infinite}
@keyframes stRec{50%{opacity:.25}}
.st-rec .tm{font-family:var(--mono);font-size:var(--t-label);letter-spacing:.12em;font-variant-numeric:tabular-nums;min-width:8ch;margin-right:var(--s-3)}
.st-rec svg{flex:1;min-width:0;height:36px}
.st-rec rect{fill:var(--stone-on-ink);opacity:.28;transition:opacity .25s var(--ease),fill .25s var(--ease)}
.st-rec rect.on{fill:var(--clay-on-ink);opacity:1}
@media(max-width:699px){ .st-rec svg{height:28px} }

/* ---------- "Ask us?" ---------- */
.st-ask{display:inline-flex;align-items:center;height:36px;padding:0 var(--s-4);border-radius:var(--r-pill);background:var(--paper);color:var(--ink);font-weight:600;font-size:var(--t-small);box-shadow:var(--shadow);transition:transform var(--fast) var(--ease)}
.st-ask:hover{transform:translateY(-2px)}

/* ---------- Reduced motion: everything shown, nothing moves ---------- */
@media (prefers-reduced-motion:reduce){
  .st-km i{transition:none}
}
