/* =====================================================================
   Ananya Resorts — home.css
   HOME PAGE ONLY. Every rule is scoped to `body.home`, and only
   index.html carries that class or loads this file, so nothing here can
   reach the other seven pages. Loaded after style.css; it inherits the
   same tokens (--grove, --brass, --spring …) rather than redefining them.

   1 Scroll progress   2 Hero: word reveal, parallax, magnetic buttons
   3 Fact ticker       4 About parallax
   5 Layout picker     6 Spotlight cards
   ===================================================================== */

/* ---------- 1. SCROLL PROGRESS ---------- */
body.home .scroll-progress{
  position:fixed; top:0; left:0; height:3px; z-index:150;
  width:100%; transform:scaleX(0); transform-origin:left;
  background:linear-gradient(90deg, var(--brass), var(--brass-light));
  pointer-events:none;
}

/* ---------- 2. HERO ---------- */
/* the shared sheet rises the whole h1 as one block; here the words
   arrive individually, so that block animation is switched off */
body.home .hero-body > h1{animation:none; opacity:1; transform:none}

body.home .hero-title .w{
  display:inline-block; overflow:hidden; vertical-align:bottom;
  padding-bottom:.14em; margin-bottom:-.14em;   /* room for descenders */
}
body.home .hero-title .w > i{
  display:inline-block; font-style:normal;
  transform:translateY(112%);
  animation:wordUp .95s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay:var(--d,0s);
}
@keyframes wordUp{to{transform:translateY(0)}}

/* the hero copy drifts and fades as the page moves under it */
body.home .hero-body{will-change:transform, opacity}

body.home .hero-actions .btn{will-change:transform}

/* ---------- 3. FACT TICKER ---------- */
body.home .ticker{
  background:var(--grove); color:var(--ink);
  margin-top:clamp(44px,5vw,72px);
  padding:20px 0; overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}
body.home .ticker-track{display:flex; width:max-content; will-change:transform}
body.home .ticker-track.is-running{animation:tickerRun var(--dur,46s) linear infinite}
body.home .ticker:hover .ticker-track.is-running,
body.home .ticker:focus-within .ticker-track.is-running{animation-play-state:paused}
@keyframes tickerRun{to{transform:translateX(-50%)}}

body.home .ticker-list{display:flex; align-items:center}
body.home .ticker-list li{
  display:flex; align-items:center; gap:28px;
  padding-right:28px; white-space:nowrap;
  font-family:var(--display); font-size:1.32rem;
  font-variation-settings:"SOFT" 32,"WONK" 1; color:var(--ink);
}
body.home .ticker-list li::after{
  content:""; width:7px; height:7px; flex:none;
  background:var(--brass-light); transform:rotate(45deg);
}

/* ---------- 4. ABOUT PARALLAX ---------- */
body.home .about-media{overflow:visible}
body.home .about-media > img{
  will-change:transform;
  transition:none;                 /* driven per-frame from home.js */
}
body.home .about-frame{
  position:relative; overflow:hidden; border-radius:var(--r-card);
  aspect-ratio:4/5;
}
body.home .about-frame img{
  width:100%; height:118%; object-fit:cover;   /* headroom for the drift */
  position:absolute; inset:auto 0 0 0; border-radius:0;
}

/* ---------- 5. LAYOUT PICKER ---------- */
body.home .layouts{background:var(--paper-2)}
body.home .layout-picker{display:grid; grid-template-columns:300px 1fr; gap:clamp(28px,4vw,56px); align-items:start}

body.home .layout-tabs{display:flex; flex-direction:column; gap:10px}
body.home .layout-tab{
  display:block; width:100%; text-align:left;
  padding:18px 20px; border-radius:var(--r-card);
  border:1px solid var(--line); background:var(--paper); color:var(--ink);
  transition:border-color var(--t), background var(--t), transform var(--spring);
}
body.home .layout-tab:hover{border-color:var(--brass); transform:translateX(4px)}
body.home .layout-tab[aria-selected="true"]{
  background:var(--brass); border-color:var(--brass); color:#fff;
}
body.home .layout-tab .lt-name{
  display:block; font-family:var(--display); font-size:1.3rem;
  font-variation-settings:"SOFT" 32,"WONK" 1;
}
body.home .layout-tab .lt-sub{display:block; font-size:.9rem; color:var(--muted); margin-top:2px}
body.home .layout-tab[aria-selected="true"] .lt-sub{color:rgba(255,255,255,.74)}

/* the bar under each tab shows floor area against the largest layout */
body.home .lt-bar{display:block; height:3px; border-radius:2px; background:var(--line); margin-top:12px}
body.home .lt-bar > span{
  display:block; height:100%; width:0; border-radius:2px; background:var(--brass);
  transition:width .8s cubic-bezier(.22,1,.36,1);
}
body.home .layout-tabs.is-armed .lt-bar > span{width:var(--w,0)}
body.home .layout-tab[aria-selected="true"] .lt-bar{background:rgba(255,255,255,.22)}
body.home .layout-tab[aria-selected="true"] .lt-bar > span{background:var(--brass-light)}

body.home .layout-stage{position:relative; min-height:420px}
body.home .layout-panel{
  margin:0; opacity:0; visibility:hidden;
  position:absolute; inset:0;
  transition:opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1);
  transform:translateY(14px);
}
body.home .layout-panel.is-active{opacity:1; visibility:visible; position:relative; transform:none}
body.home .layout-panel img{
  width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:var(--r-card);
}
body.home .layout-copy{padding-top:22px}
body.home .layout-copy h3{font-size:1.7rem; margin-bottom:.2em}
body.home .layout-meta{color:var(--brass-dark); margin-bottom:.7em}
body.home .layout-copy p{color:var(--muted); max-width:56ch}
body.home .layout-copy .btn{margin-top:20px}

/* ---------- 6. SPOTLIGHT CARDS ----------
   A radial highlight follows the pointer. Deliberately not a 3D tilt:
   the shared sheet already animates these cards with .reveal, which sets
   transform, and two things writing transform would fight each other. */
body.home .fac-grid-3 .fac{position:relative; isolation:isolate}
body.home .fac-grid-3 .fac::before{
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  border-radius:var(--r-card); opacity:0; transition:opacity var(--t);
  background:radial-gradient(320px circle at var(--mx,50%) var(--my,50%),
             rgba(11,124,134,.12), transparent 62%);
}
body.home .fac-grid-3 .fac:hover::before{opacity:1}
body.home .fac-grid-3 .fac-body,
body.home .fac-grid-3 .fac-media{position:relative; z-index:2}

/* ---------- RESPONSIVE ---------- */
@media (max-width:900px){
  body.home .layout-picker{grid-template-columns:1fr}
  body.home .layout-tabs{flex-direction:row; overflow-x:auto; gap:8px; padding-bottom:4px}
  body.home .layout-tab{min-width:190px}
  body.home .layout-stage{min-height:0}
  body.home .layout-panel{position:relative; inset:auto}
  body.home .layout-panel:not(.is-active){display:none}
}
@media (max-width:640px){
  body.home .ticker-list li{font-size:1.08rem; gap:20px; padding-right:20px}
  body.home .ticker{padding:16px 0}
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion:reduce){
  body.home .hero-title .w > i{animation:none; transform:none}
  body.home .ticker-track.is-running{animation:none}
  body.home .ticker{-webkit-mask-image:none; mask-image:none}
  body.home .ticker-track{width:auto; flex-wrap:wrap}
  body.home .layout-tab:hover{transform:none}
  body.home .scroll-progress{display:none}
}


/* =====================================================================
   Patterns borrowed from the reference layout, rebuilt in Ananya's own
   type and palette. Structure only — no copy, no imagery, no CSS taken.
   ===================================================================== */

/* ---------- feature strip ---------- */
body.home .features{
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  background:var(--paper);
}
body.home .feature-grid{
  display:grid; grid-template-columns:repeat(4,1fr);
  padding:clamp(34px,4vw,52px) 0;
}
body.home .feature{
  text-align:center; padding:0 clamp(14px,2vw,28px);
  border-right:1px solid var(--line);
}
body.home .feature:last-child{border-right:0}
body.home .feature-ico{
  position:relative; width:60px; height:60px; margin:0 auto 16px;
  display:grid; place-items:center;
}
/* the soft blob behind each icon */
body.home .feature-ico::before{
  content:""; position:absolute; inset:0;
  background:var(--grove); border-radius:50% 50% 50% 8px;
  transition:transform var(--spring), background var(--t);
}
body.home .feature:hover .feature-ico::before{transform:rotate(-12deg) scale(1.06)}
body.home .feature-ico svg{
  position:relative; width:26px; height:26px; fill:none; stroke:var(--brass);
  stroke-width:1.3; stroke-linecap:round; stroke-linejoin:round;
}
body.home .feature h3{font-size:1.12rem; margin-bottom:.25em}
body.home .feature p{font-size:.92rem; color:var(--muted); margin:0}

@media (max-width:900px){
  body.home .feature-grid{grid-template-columns:repeat(2,1fr); gap:34px 0}
  body.home .feature:nth-child(2n){border-right:0}
}
@media (max-width:520px){
  body.home .feature-grid{grid-template-columns:1fr; gap:30px}
  body.home .feature{border-right:0}
}

/* ---------- about: two offset photographs ---------- */
body.home .about-offset{position:relative; padding-bottom:76px}
body.home .about-offset .about-frame{width:84%; margin-left:auto}
body.home .about-second{
  position:absolute; left:0; bottom:0; width:46%;
  border-radius:var(--r-card); overflow:hidden;
  border:8px solid var(--paper); box-shadow:var(--lift);
}
body.home .about-second img{width:100%; aspect-ratio:4/5; object-fit:cover; display:block}
body.home .about-offset .stat-card{right:auto; left:0; top:0; bottom:auto}

@media (max-width:880px){
  body.home .about-offset{padding-bottom:56px}
  body.home .about-offset .about-frame{width:100%}
  body.home .about-second{width:42%; border-width:6px}
  body.home .about-offset .stat-card{left:auto; right:0; top:auto; bottom:-18px}
}


/* ---------- staggered facilities mosaic ---------- */
body.home .mosaic{background:var(--paper-2)}
body.home .mosaic-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(18px,2.4vw,34px)}
body.home .mosaic-col{display:grid; gap:clamp(18px,2.4vw,34px); align-content:start}
body.home .mosaic-col:nth-child(2){margin-top:clamp(30px,5vw,72px)}
body.home .m-item{margin:0}
body.home .m-shot{
  display:block; overflow:hidden; border-radius:var(--r-card);
  background:var(--grove); aspect-ratio:4/3;
}
body.home .m-item:nth-child(odd) .m-shot{aspect-ratio:3/4}
body.home .m-shot img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .9s cubic-bezier(.4,0,.2,1);
}
body.home .m-item:hover .m-shot img{transform:scale(1.06)}
body.home .m-item figcaption{padding-top:14px; text-align:center}
body.home .m-item h3{font-size:1.14rem; margin:0}
body.home .m-item p{font-size:.9rem; color:var(--muted); margin:.2em 0 0}

@media (max-width:820px){
  body.home .mosaic-grid{grid-template-columns:repeat(2,1fr)}
  body.home .mosaic-col:nth-child(2){margin-top:0}
  body.home .mosaic-col:nth-child(3){grid-column:1/-1}
  body.home .mosaic-col:nth-child(3){grid-template-columns:repeat(2,1fr); display:grid}
}
@media (max-width:560px){
  body.home .mosaic-grid{grid-template-columns:1fr}
  body.home .mosaic-col:nth-child(3){grid-template-columns:1fr}
  body.home .m-item:nth-child(odd) .m-shot{aspect-ratio:4/3}
}

/* ---------- the three cards, restyled as overlay panels ---------- */
body.home .fac-grid-3 .fac{
  position:relative; border:0; min-height:420px; display:flex;
  align-items:flex-end; overflow:hidden; background:var(--grove);
}
body.home .fac-grid-3 .fac-media{position:absolute; inset:0; z-index:0}
body.home .fac-grid-3 .fac-media img{width:100%; height:100%; aspect-ratio:auto; object-fit:cover}
body.home .fac-grid-3 .fac::after{
  content:""; position:absolute; inset:0; z-index:1;
  background:linear-gradient(transparent 10%, rgba(6,32,38,.35) 38%, rgba(6,32,38,.78) 62%, rgba(6,32,38,.96));
}
body.home .fac-grid-3 .fac-body{position:relative; z-index:2; padding:28px 26px 30px; color:#fff}
body.home .fac-grid-3 .fac-body h3{color:#fff; font-size:1.6rem; margin-bottom:.28em}
body.home .fac-grid-3 .fac-body p{color:rgba(255,255,255,.88); font-size:.97rem}
body.home .fac-grid-3 .fac-go{
  display:inline-block; margin-top:16px; padding:9px 20px;
  border:1px solid rgba(255,255,255,.6); border-radius:100px;
  font-size:.9rem; color:#fff; background:rgba(255,255,255,.08);
  transition:background var(--t), color var(--t), border-color var(--t);
}
body.home .fac-grid-3 .fac:hover .fac-go{background:#fff; color:var(--ink); border-color:#fff}
body.home .fac-grid-3 .fac:hover{border-color:transparent}


/* ---------- frosted panel behind the hero copy ---------- */
body.home .hero-panel{
  display:inline-block; max-width:100%;
  padding:clamp(26px,3.4vw,44px) clamp(26px,3.6vw,52px) clamp(30px,3.6vw,46px);
  border-radius:22px;
  background:rgba(255,255,255,.09);
  backdrop-filter:blur(16px) saturate(1.25);
  -webkit-backdrop-filter:blur(16px) saturate(1.25);
  border:1px solid rgba(255,255,255,.26);
  box-shadow:0 30px 80px -50px rgba(0,0,0,.7);
}
/* the panel rises as one; the headline still reveals word by word inside it */
body.home .hero-body > .hero-panel{animation:rise .95s cubic-bezier(.2,.7,.3,1) both .08s}
body.home .hero-panel > *{animation:none}

/* ---------- quick links across the foot of the hero ---------- */
body.home .hero{padding-bottom:clamp(120px,15vw,170px)}
body.home .hero-links{
  position:absolute; left:0; right:0; bottom:0; z-index:5;
  background:rgba(8,38,44,.42);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  border-top:1px solid rgba(255,255,255,.18);
}
body.home .hero-links-inner{display:grid; grid-template-columns:repeat(5,1fr)}
body.home .hero-links a{
  display:flex; align-items:center; gap:12px;
  padding:18px 20px; color:#fff;
  border-right:1px solid rgba(255,255,255,.16);
  transition:background var(--t);
}
body.home .hero-links a:last-child{border-right:0}
body.home .hero-links a:hover{background:rgba(255,255,255,.1)}
body.home .hl-ico{
  width:22px; height:22px; flex:none; fill:none; stroke:currentColor;
  stroke-width:1.3; stroke-linecap:round; stroke-linejoin:round; opacity:.85;
}
body.home .hl-label{
  flex:1; font-size:.82rem; letter-spacing:.06em; text-transform:uppercase;
  line-height:1.25;
}
body.home .hl-go{
  width:30px; height:30px; flex:none; display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.45); border-radius:50%;
  transition:background var(--t), border-color var(--t), transform var(--spring);
}
body.home .hero-links a:hover .hl-go{background:#fff; border-color:#fff; transform:translateX(3px)}
body.home .hl-go svg{width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round}
body.home .hero-links a:hover .hl-go svg{stroke:var(--ink)}

/* the booking bar no longer overlaps — the link bar occupies that edge */
body.home .booking{margin-top:clamp(30px,4vw,52px)}

@media (max-width:1000px){
  body.home .hero-links-inner{grid-template-columns:repeat(3,1fr)}
  body.home .hero-links a:nth-child(n+4){display:none}
}
@media (max-width:680px){
  body.home .hero-links-inner{grid-template-columns:repeat(2,1fr)}
  body.home .hero-links a:nth-child(n+3){display:none}
  body.home .hero-links a{padding:14px 16px; gap:9px}
  body.home .hl-label{font-size:.74rem}
  body.home .hl-go{width:26px; height:26px}
}
@media (prefers-reduced-motion:reduce){
  body.home .hero-body > .hero-panel{animation:none}
  body.home .hero-links a:hover .hl-go{transform:none}
}
