/* GrowStone PREMIUM layer: centred section heads, liquid-glass cards, 6-up featured grid,
   animated process timeline, design-your-own tiles. Loaded last, so it wins over older files. */

body.home{
  --pg:linear-gradient(160deg,rgba(255,255,255,.96),rgba(255,247,236,.62));
  --pg-edge:inset 0 1px 0 #fff,inset 0 -1px 0 rgba(184,147,90,.22);
  --pg-drop:0 28px 54px -34px rgba(120,80,50,.55);
  --gold-hi:#E8C979;
}

/* ---------- 1. every section head: centred, with an ornament ---------- */
.home .feat-sec .head,.home .stone-sec .head,.home .ps-sec .head,.home .story-head,.home .faq-sec .head{
  display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;position:static;margin-left:auto;margin-right:auto}
.home .feat-sec .head>div,.home .stone-sec .head>div,.home .ps-sec .head>div,.home .story-head>div,.home .faq-sec .head>div{
  display:flex;flex-direction:column;align-items:center;max-width:640px;margin:0 auto}
.home .feat-sec .head p,.home .stone-sec .head p,.home .ps-sec .head p,.home .story-head p,.home .faq-sec .head p{margin-left:auto;margin-right:auto;max-width:460px}
.home .head .kick:after,.home .dyo-head .kick:after{content:"";width:28px;height:1px;background:#B8893F}
.home .head>div:after,.home .dyo-head:after{content:"";display:block;width:168px;height:14px;margin:22px auto 0;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='168' height='14' viewBox='0 0 168 14'><defs><linearGradient id='a'><stop offset='0' stop-color='%23B8935A' stop-opacity='0'/><stop offset='1' stop-color='%23B8935A'/></linearGradient><linearGradient id='b'><stop offset='0' stop-color='%23B8935A'/><stop offset='1' stop-color='%23B8935A' stop-opacity='0'/></linearGradient></defs><rect x='0' y='6.5' width='70' height='1' fill='url(%23a)'/><rect x='98' y='6.5' width='70' height='1' fill='url(%23b)'/><path d='M84 1 91 7 84 13 77 7Z' fill='none' stroke='%23B8935A' stroke-width='1.2'/><circle cx='84' cy='7' r='1.8' fill='%23B8935A'/><circle cx='72' cy='7' r='1.2' fill='%23B8935A'/><circle cx='96' cy='7' r='1.2' fill='%23B8935A'/></svg>") center/contain no-repeat}
.home .head{margin-bottom:clamp(30px,4.4vw,56px)}
.home .head h2{max-width:14em}
/* "view all" button, moved below the cards by premium.js */
.home .more{display:flex;justify-content:center;margin-top:clamp(26px,4vw,44px)}

/* ---------- 3. featured: 3 x 2 desktop, 2 x 3 mobile (no sideways slide) ---------- */
.home .feat-sec .grid,.home .feat-sec .grid.snap{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(14px,2vw,26px);overflow:visible;margin:0;padding:0;scroll-snap-type:none}
.home .feat-sec .grid.snap .pc,.home .feat-sec .pc{flex:none;scroll-snap-align:none;display:flex;flex-direction:column;padding:10px;border-radius:28px;background:var(--pg);border:1px solid rgba(255,255,255,.95);box-shadow:var(--pg-edge),var(--pg-drop);overflow:hidden;isolation:isolate}
.home .feat-sec .pc .ph{aspect-ratio:4/5;border-radius:20px;position:relative}
.home .feat-sec .pc .ph:after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55),inset 0 -50px 60px -50px rgba(120,70,40,.28);pointer-events:none}
.home .feat-sec .pc .m{flex:1;min-height:0;padding:14px 8px 6px;gap:10px}
.home .feat-sec .pc h3{font-size:1rem;line-height:1.25}
.home .feat-sec .pc .chip{display:inline-block;margin-top:8px}
.home .feat-sec .pc:after{z-index:3;border-radius:inherit}

/* ---------- 4. stones head only needs centring (done above) ---------- */

/* ---------- 5. process: centred head, mandala, timeline ---------- */
.home .story-sec{overflow-x:clip}
.home .story-sec .wrap{position:relative}
.home .story-sec .mand{position:absolute;z-index:0;top:-70px;left:0;right:0;margin:0 auto;width:min(440px,86vw);opacity:.4;pointer-events:none}
.home .story-sec .head,.home .story-sec .story-r,.home .story-sec .more{position:relative;z-index:1}
.home .story-sec .head{margin-bottom:clamp(34px,5vw,60px)}

/* desktop: four cards on a glowing rail */
.home .story-sec .story-r{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(14px,2vw,24px);padding:32px 0 0;margin:0}
.home .story-sec .story-r:before{display:block!important;content:"";position:absolute;left:12.5%;right:12.5%;top:32px;height:2px;border-radius:2px;
  background:linear-gradient(90deg,transparent,#B8935A 18%,#E8C979 50%,#B8935A 82%,transparent);background-size:200% 100%;opacity:.8;animation:rail 6s linear infinite}
@keyframes rail{to{background-position:-200% 0}}
.home .story-sec .stp{position:relative;display:block;text-align:center;margin:0;padding:50px 22px 28px;border-radius:30px;background:var(--pg);border:1px solid rgba(255,255,255,.95);box-shadow:var(--pg-edge),var(--pg-drop);opacity:1;transform:none}
.home .story-sec .stp h3{font-size:clamp(1.3rem,2vw,1.6rem);font-weight:400;margin:0}
.home .story-sec .stp p{font-size:.9rem;margin:10px auto 0;max-width:230px}
.home .story-sec .stp>span{position:absolute;top:12px;right:18px;grid-row:auto;font-size:2.1rem;font-weight:200;letter-spacing:-.04em;color:transparent;-webkit-text-stroke:1px rgba(184,147,90,.55);line-height:1}

/* icon: a small glass sphere */
.home .ic{position:absolute;left:50%;top:-32px;width:64px;height:64px;margin-left:-32px;border-radius:50%;display:grid;place-items:center;color:#8a6a35;z-index:2;
  background:radial-gradient(circle at 30% 24%,#fff 0,rgba(255,255,255,.9) 24%,rgba(250,236,208,.78) 62%,rgba(232,201,121,.55) 100%);
  box-shadow:inset 0 2px 2px #fff,inset 0 -6px 12px rgba(184,147,90,.32),0 14px 26px -10px rgba(120,80,40,.55),0 0 0 6px rgba(251,248,243,.9)}
.home .ic svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.home .ic:after{content:"";position:absolute;inset:-6px;border-radius:50%;border:1px solid rgba(184,147,90,.5);opacity:0}

/* entrance: cards rise in one after another, the sphere then pulses once */
.js .story-sec .stp{opacity:0;transform:translateY(34px);transition:opacity .8s var(--ease),transform .9s var(--ease);transition-delay:calc(var(--k,0)*120ms)}
.js .story-sec .stp.lit{opacity:1;transform:none}
.js .story-sec .stp.lit .ic:after{animation:ping 1.4s ease-out calc(var(--k,0)*120ms + .5s) 1 both}
@keyframes ping{0%{opacity:.9;transform:scale(.9)}100%{opacity:0;transform:scale(1.7)}}

/* mobile: same cards as desktop, stacked on a glowing vertical rail, tilting in 3D as you scroll */
@media(max-width:860px){
  .home .story-sec .story-r{display:block;padding:34px 8px 0;perspective:900px}
  .home .story-sec .story-r:before{left:50%;right:auto;top:30px;bottom:30px;width:2px;height:auto;margin-left:-1px;
    background:linear-gradient(180deg,rgba(184,147,90,.1),rgba(232,201,121,.7),rgba(184,147,90,.1));background-size:100% 200%;animation:railv 5s linear infinite;opacity:1}
  @keyframes railv{to{background-position:0 -200%}}
  .home .story-sec .story-r:after{content:"";position:absolute;left:50%;margin-left:-1px;top:30px;bottom:30px;width:2px;border-radius:2px;background:linear-gradient(180deg,#E8C979,#B8935A);transform-origin:top;transform:scaleY(var(--p,0));box-shadow:0 0 14px rgba(232,201,121,.95)}
  .home .story-sec .stp{margin:0 0 58px;padding:50px 20px 26px;rotate:x var(--rx,0deg);transform-origin:50% 60%}
  .home .story-sec .stp:last-child{margin-bottom:0}
  .home .story-sec .stp p{max-width:280px}
  .home .story-sec .mand{top:-40px}
}
/* 3D touches, desktop and mobile: spheres spin, cards float */
.home .ic{perspective:240px}
.home .story-sec .ic svg{animation:spin3d 3.6s ease-in-out infinite alternate}
@keyframes spin3d{from{transform:rotateY(-40deg)}to{transform:rotateY(40deg)}}
.js .story-sec .stp.lit{animation:fl3 5s ease-in-out calc(var(--k,0)*-1.1s) infinite alternate}
@keyframes fl3{to{translate:0 -7px}}

/* ---------- 6. design your own: liquid glass ---------- */
.home .dyo-sec .dyo{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:0;overflow:hidden;isolation:isolate;
  max-width:760px;margin:0 auto;padding:clamp(30px,4.5vw,48px) clamp(18px,4vw,48px);border-radius:36px;
  background:linear-gradient(135deg,rgba(255,255,255,.62),rgba(255,255,255,.2) 48%,rgba(255,244,226,.46));
  -webkit-backdrop-filter:blur(26px) saturate(1.9);backdrop-filter:blur(26px) saturate(1.9);
  border:1px solid rgba(255,255,255,.8);
  box-shadow:inset 0 2px 1px #fff,inset 0 -3px 8px rgba(184,147,90,.28),inset 0 0 44px rgba(255,255,255,.45),0 44px 80px -42px rgba(120,80,50,.6),0 0 0 1px rgba(184,147,90,.14)}
/* colour pools drifting under the glass */
.home .dyo-sec .dyo:before{content:"";position:absolute;inset:-20%;z-index:-2;pointer-events:none;
  background:radial-gradient(34% 40% at 18% 24%,rgba(232,201,121,.7),transparent 70%),radial-gradient(32% 40% at 84% 18%,rgba(241,176,150,.6),transparent 70%),radial-gradient(36% 44% at 70% 90%,rgba(246,214,170,.5),transparent 70%),radial-gradient(30% 36% at 10% 88%,rgba(244,200,190,.55),transparent 70%);
  animation:pools 16s ease-in-out infinite alternate}
@keyframes pools{to{transform:translate(4%,-3%) rotate(8deg) scale(1.08)}}
/* a bright sheen that sweeps across now and then */
.home .dyo-sec .dyo:after{content:"";position:absolute;top:-30%;bottom:-30%;left:-40%;width:34%;z-index:-1;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.75) 50%,transparent);transform:translateX(-120%) skewX(-18deg);animation:sheen 7s ease-in-out 1.2s infinite}
@keyframes sheen{0%{transform:translateX(-120%) skewX(-18deg)}38%,100%{transform:translateX(520%) skewX(-18deg)}}

.home .dyo-head{display:flex;flex-direction:column;align-items:center;max-width:520px}
.home .dyo-head h2{font-weight:300;font-size:clamp(2rem,4.6vw,3.4rem);letter-spacing:-.045em;line-height:1.05}
.home .dyo-head p{margin-top:12px;color:#6d6154}
.home .dyo-head:after{margin-top:16px}

.home .dyo-cta{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:24px}

/* ---------- 7. faq + vip follow the same centring ---------- */
.home .faq-sec .wrap{display:block}
.home .faq-sec .faq{max-width:820px;margin:0 auto}
@media(max-width:860px){.home .vipband .split{text-align:center;justify-items:center}.home .vipband .kick{justify-content:center}}

/* ---------- 8. mobile ---------- */
@media(max-width:700px){
  .home .feat-sec .grid,.home .feat-sec .grid.snap{grid-template-columns:repeat(2,1fr);gap:12px}
  .home .feat-sec .pc{padding:7px;border-radius:24px}
  .home .feat-sec .pc .ph{border-radius:17px}
  .home .feat-sec .pc .m{padding:12px 5px 4px;gap:6px;align-items:flex-end}
  .home .feat-sec .pc h3{font-size:.86rem}
  .home .feat-sec .pc .chip{font-size:.62rem;padding:3px 9px;margin-top:6px}
  .home .feat-sec .pc .arr{width:28px;height:28px;font-size:.8rem}
  .home .head>div:after,.home .dyo-head:after{width:140px;margin-top:18px}
  .home .dyo-sec .dyo{border-radius:30px}
  .home .dyo-cta .btn{flex:1 1 140px;text-align:center;white-space:nowrap;padding:15px 14px;font-size:.88rem}
}

@media(prefers-reduced-motion:reduce){
  .home .story-sec .story-r:before,.home .dyo-sec .dyo:before,.home .dyo-sec .dyo:after,.home .dyo .chips span,.home .story-sec .stp.lit .ic:after{animation:none}
  .js .story-sec .stp,.js .story-sec .stp .ic{opacity:1;transform:none;transition:none}
}

/* collections keeps its original look: no ornament, left aligned head */
.home .col-sec .head>div:after,.home .col-sec .head .kick:after{content:none;display:none}

/* process film on mobile: text sits on the photo like desktop, no extra space below */
@media(max-width:860px){
  .ps-frame{display:block}
  .ps-media{position:absolute;inset:0;width:auto;aspect-ratio:auto;border-radius:0}
  .ps-shade{background:linear-gradient(0deg,rgba(14,10,7,.9) 0%,rgba(14,10,7,.5) 36%,transparent 62%),linear-gradient(180deg,rgba(14,10,7,.5) 0%,transparent 20%)}
  .ps-top{position:absolute;top:0;left:0;right:0;padding:max(14px,env(safe-area-inset-top)) 14px 12px}
  .ps-caps{position:absolute;left:0;right:0;bottom:calc(112px + env(safe-area-inset-bottom));width:auto;height:210px;min-height:0;margin:0;padding:0}
  .ps-cap{left:22px;right:22px;top:auto;bottom:0}
  .ps-cap h3{font-size:2rem;margin:10px 0 8px}
  .ps-cap p{font-size:.92rem;line-height:1.6}
  .ps-rail{position:absolute;left:18px;right:18px;bottom:calc(86px + env(safe-area-inset-bottom));padding:0}
}

/* mobile film: show the whole photo (no cropping), blurred copy fills the rest */
.ps-bl{display:none}
@media(max-width:860px){
  .ps-slide{overflow:hidden}
  .ps-bl{display:block;position:absolute;inset:-40px;background:center/cover no-repeat;filter:blur(26px) brightness(.62) saturate(1.2);transform:translateZ(0)}
  .ps-slide img{object-fit:contain;object-position:50% 32%}
}

/* ===== process v2: snake rail, liquid-glass cards, refined icons ===== */
.home .story-sec .story-r:before,.home .story-sec .story-r:after{display:none!important}
.home .story-sec .story-r{position:relative}
.home .story-sec:before{content:"";position:absolute;inset:6% 0 0;z-index:0;pointer-events:none;
  background:radial-gradient(28% 30% at 14% 28%,rgba(232,201,121,.55),transparent 70%),radial-gradient(26% 30% at 88% 22%,rgba(241,176,150,.5),transparent 70%),radial-gradient(30% 34% at 70% 86%,rgba(246,214,170,.45),transparent 70%),radial-gradient(26% 30% at 18% 90%,rgba(244,200,190,.45),transparent 70%);
  animation:pools 18s ease-in-out infinite alternate}
.snake{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:0}
.snake path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.snake .trk{stroke:rgba(184,147,90,.5);stroke-width:2;stroke-dasharray:1 9}
.snake .gl{stroke:#F2C95E;stroke-width:9;opacity:.4}
.snake .act{stroke:#D9A93F;stroke-width:3}
.snake .bod{stroke:#fff6d6;stroke-width:5}
.snake .bodg{stroke:#FFD36B;stroke-width:9;opacity:.75}
.snake .hd2{fill:#FFE9A8;opacity:.8;transform-box:fill-box;transform-origin:center;animation:hpulse 1.6s ease-in-out infinite}
.snake .hd1{fill:#fff;stroke:#E8B843;stroke-width:2.5}
@keyframes hpulse{50%{transform:scale(1.6);opacity:.25}}

/* liquid glass cards, iOS style: clear, bright edge, soft refraction */
.home .story-sec .stp{z-index:1;background:linear-gradient(150deg,rgba(255,255,255,.52),rgba(255,255,255,.12) 55%,rgba(255,255,255,.3));
  -webkit-backdrop-filter:blur(16px) saturate(1.9);backdrop-filter:blur(16px) saturate(1.9);
  border:1px solid rgba(255,255,255,.75);
  box-shadow:inset 0 1.5px 1px rgba(255,255,255,.95),inset 0 -2px 8px rgba(184,147,90,.18),inset 0 0 30px rgba(255,255,255,.28),0 26px 46px -28px rgba(110,70,40,.5)}
.home .story-sec .stp:after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(115deg,rgba(255,255,255,.55) 0,rgba(255,255,255,0) 32%);opacity:.7}
.home .story-sec .stp h3,.home .story-sec .stp p{position:relative;z-index:1}

/* icon sphere: gold glass with a turning highlight ring */
.home .ic{background:radial-gradient(circle at 30% 24%,#fff 0,rgba(255,255,255,.92) 22%,rgba(252,238,205,.82) 60%,rgba(232,201,121,.7) 100%);color:#7a5a26}
.home .ic:before{content:"";position:absolute;inset:-4px;border-radius:50%;padding:2px;pointer-events:none;
  background:conic-gradient(from 0deg,rgba(255,255,255,0),#E8C979,rgba(255,255,255,0),#B8935A,rgba(255,255,255,0));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:ringr 6s linear infinite}
@keyframes ringr{to{transform:rotate(360deg)}}
.home .ic svg{width:30px;height:30px;stroke-width:1.4}
.home .ic svg .f{fill:url(#gsg);fill-opacity:.7}
.home .ic svg .f2{fill:#fff;fill-opacity:.95}
@media(prefers-reduced-motion:reduce){.home .ic:before,.home .story-sec:before,.snake .hd2{animation:none}}


/* design your own v3: clearer glass, warm tones only, breathing room above */
.home .dyo-sec{padding-top:clamp(56px,8vw,110px)}
.home .dyo-sec .dyo{
  background:linear-gradient(135deg,rgba(255,255,255,.34),rgba(255,255,255,.06) 50%,rgba(255,255,255,.2));
  -webkit-backdrop-filter:blur(34px) saturate(2.1) brightness(1.04);backdrop-filter:blur(34px) saturate(2.1) brightness(1.04);
  border:1px solid rgba(255,255,255,.85);
  box-shadow:inset 0 2px 1px rgba(255,255,255,1),inset 0 -2px 10px rgba(184,147,90,.22),inset 0 0 50px rgba(255,255,255,.3),0 40px 70px -40px rgba(120,80,50,.5)}
.home .dyo-sec .dyo:before{opacity:.75}
.home .story-sec:before{-webkit-mask-image:linear-gradient(180deg,transparent,#000 18%,#000 78%,transparent);mask-image:linear-gradient(180deg,transparent,#000 18%,#000 78%,transparent)}

/* mobile film final: photo fills the whole frame like desktop (sides trimmed), all text sits on the photo */
@media(max-width:860px){
  .ps-bl{display:none}
  .ps-slide img{object-fit:cover;object-position:50% 50%}
  .ps-shade{background:linear-gradient(0deg,rgba(14,10,7,.88) 0%,rgba(14,10,7,.45) 34%,transparent 58%),linear-gradient(180deg,rgba(14,10,7,.45) 0%,transparent 20%)}
}
