/* Sandstone Gate home v2: warm hero on phones, animated style show, glass finder slider, glass process slider */

/* ---------- hero: phone keeps the desktop look (arch + rings + floating chip) ---------- */
@media(max-width:900px){
 .g-hero{padding:calc(var(--hh) + 26px) 0 92px}
 .g-hero:before{display:none}
 .g-hi{gap:44px}
 .g-hero h1{font-size:clamp(2.4rem,11.5vw,3.1rem);line-height:1.04}
 .g-hero p{font-size:1rem;max-width:none}
 .hero-cta{display:flex;flex-wrap:wrap;gap:10px}.hero-cta .btn{flex:1 1 auto}
 .g-arch{width:min(80vw,350px);margin:8px auto 0}
 .g-arch:before{content:"";position:absolute;inset:-40px -40px 0;border:1.5px solid rgba(201,90,130,.24);border-bottom:0;border-radius:999px 999px 0 0;pointer-events:none}
 .g-chip{left:-9%;top:15%;max-width:150px}
 .g-tag{bottom:20px}
}

/* ---------- gate styles: animated show ---------- */
.gx{padding:clamp(14px,2.4vw,26px);border-radius:32px;overflow:hidden}
.gx-tabs{position:relative;display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding:2px 2px 14px;margin-bottom:6px}
.gx-tabs::-webkit-scrollbar{display:none}
.gx-t{position:relative;flex:1 0 auto;display:flex;align-items:center;gap:10px;padding:12px 18px 16px;border:1px solid rgba(201,90,130,.2);border-radius:999px 999px 16px 16px;background:rgba(255,238,243,.7);font:600 .84rem var(--san);color:var(--ink);cursor:pointer;white-space:nowrap;transition:background .35s,transform .35s,box-shadow .35s}
.gx-t i{font-style:normal;font-size:.68rem;letter-spacing:.1em;color:#C0507A}
.gx-t:hover{background:#fff;transform:translateY(-2px)}
.gx-t.on{border-color:#fff;background:linear-gradient(135deg,#FFF3C7,#FFD3E1);box-shadow:0 14px 26px -16px rgba(190,80,115,.6)}
.gx-t u{position:absolute;left:18px;right:18px;bottom:7px;height:3px;border-radius:3px;background:rgba(190,80,115,.14);overflow:hidden;opacity:0}
.gx-t.on u{opacity:1}
.gx-t u:after{content:"";position:absolute;inset:0;transform:scaleX(0);transform-origin:0 50%;background:linear-gradient(90deg,#F27AA3,#F2B830)}
.gx-t.on u:after{animation:gxbar 1s linear forwards;animation-play-state:paused}
.gx.run:not(.hold) .gx-t.on u:after{animation-play-state:running}
@keyframes gxbar{to{transform:scaleX(1)}}
.gx-body{display:grid;grid-template-columns:1.08fr .92fr;gap:clamp(18px,3.5vw,48px);align-items:center}
.gx-body>*{min-width:0}
.gx-stage{position:relative;aspect-ratio:5/4;border-radius:26px;display:grid;place-items:center;overflow:hidden;background:radial-gradient(70% 60% at 50% 100%,rgba(255,226,128,.75),transparent 72%),linear-gradient(160deg,rgba(255,255,255,.9),rgba(255,228,236,.7));border:1px solid #fff}
.gx-stage svg{position:relative;z-index:2;width:92%;height:92%;color:#12304F;overflow:visible}
.gx-ring{position:absolute;left:50%;top:54%;width:62%;aspect-ratio:1;translate:-50% -50%;border-radius:50%;border:1.5px dashed rgba(201,90,130,.45)}
.gx-ring.r2{width:82%;border-color:rgba(214,160,30,.4)}
.gx-sp{position:absolute;width:9px;height:9px;border-radius:50%;background:#F2B830;opacity:.8}
.gx-sp.a{left:12%;top:20%}.gx-sp.b{right:14%;top:30%;background:#F27AA3;width:7px;height:7px}.gx-sp.c{right:24%;bottom:14%;width:6px;height:6px}
.gx-stage .s{fill:rgba(255,255,255,.88);stroke:currentColor;stroke-width:2.4;stroke-linejoin:round}
.gx-stage .op{fill:rgba(190,80,115,.14);stroke:currentColor;stroke-width:2}
.gx-stage .o{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.gx-stage .b{fill:none;stroke:#C58B3A;stroke-width:3;stroke-linecap:round}
.gx-stage .dt circle{fill:#C58B3A;stroke:none}
.gx-stage svg :is(path,rect,circle){stroke-dasharray:1 1;animation:gxd 1.15s cubic-bezier(.5,0,.2,1) both,gxf .7s ease both;animation-delay:calc(var(--k,0)*.07s),calc(.55s + var(--k,0)*.07s)}
.gx-stage svg .dt circle{stroke-dasharray:none;transform-box:fill-box;transform-origin:center;animation:gxpop .5s cubic-bezier(.3,1.7,.5,1) both;animation-delay:calc(1s + var(--k,0)*.07s)}
@keyframes gxd{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes gxf{from{fill-opacity:0}to{fill-opacity:1}}
@keyframes gxpop{from{transform:scale(0)}to{transform:scale(1)}}
@media(prefers-reduced-motion:no-preference){
 .gx-ring{animation:gxspin 40s linear infinite}.gx-ring.r2{animation-duration:60s;animation-direction:reverse}
 .gx-sp{animation:gxfl 5s ease-in-out infinite}.gx-sp.b{animation-delay:-1.6s}.gx-sp.c{animation-delay:-3s}
}
@keyframes gxspin{to{rotate:360deg}}@keyframes gxfl{50%{transform:translateY(-12px)}}
.gx-info{display:flex;flex-direction:column;align-items:flex-start}
.gx-no{font:700 .72rem var(--san);letter-spacing:.2em;color:#C0507A;margin-bottom:10px}
.gx-info h3{font-size:clamp(1.6rem,3vw,2.2rem);margin-bottom:10px}
.gx-info .tick{margin:14px 0 24px}
.gx-info.gx-in>*{animation:gxu .6s cubic-bezier(.2,.7,.2,1) both}
.gx-info.gx-in>:nth-child(2){animation-delay:.06s}.gx-info.gx-in>:nth-child(3){animation-delay:.12s}.gx-info.gx-in>:nth-child(4){animation-delay:.2s}.gx-info.gx-in>:nth-child(5){animation-delay:.28s}
@keyframes gxu{from{opacity:0;transform:translateY(14px)}}
.gx-act{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.gx-ar{display:flex;gap:8px}
.gx-ar button,.gp-ft button{width:46px;height:46px;border-radius:50%;border:1px solid #fff;background:rgba(255,255,255,.75);color:var(--ink);font-size:1.05rem;cursor:pointer;transition:background .25s,transform .25s}
.gx-ar button:hover,.gp-ft button:hover{background:#fff;transform:translateY(-2px)}
.gx-ar button:active,.gp-ft button:active{transform:scale(.92)}
@media(max-width:820px){
 .gx-body{grid-template-columns:minmax(0,1fr)}
 .gx-stage{aspect-ratio:4/3.2}
 .gx-info{align-items:center;text-align:center}.gx-info .tick{display:grid;text-align:left}
 .gx-act{justify-content:center}
}

/* ---------- gate finder: rounded glass slider ---------- */
.gf{max-width:760px;margin:0 auto;border-radius:34px;padding:clamp(18px,3vw,30px);overflow:hidden}
.gf-vp{overflow:hidden;border-radius:24px}
.gf-tr{display:flex;transition:transform .6s cubic-bezier(.16,1,.3,1)}
.gf-s{flex:0 0 100%;min-width:0;padding:clamp(6px,2vw,14px);opacity:0;transition:opacity .45s;display:flex;flex-direction:column;justify-content:center;min-height:250px}
.gf-s.on{opacity:1}
.gf-s small{font:700 .7rem var(--san);letter-spacing:.18em;text-transform:uppercase;color:#C0507A}
.gf-s h4{font:700 clamp(1.3rem,3.4vw,1.8rem)/1.2 var(--san);letter-spacing:-.02em;color:var(--ink);text-transform:none;margin:8px 0 22px}
.gf .g-ch{gap:10px}
.gf .g-ch button{padding:13px 22px;font-size:.92rem;background:rgba(255,255,255,.7)}
.gf .g-ch button.on{background:linear-gradient(135deg,#F6A9C3,#F6C95A);color:#3A1626;border-color:#fff;box-shadow:0 12px 22px -14px rgba(190,80,115,.7)}
.gf-res{display:grid;grid-template-columns:.8fr 1.2fr;gap:clamp(14px,3vw,30px);align-items:center;text-align:left}
.gf-mini{aspect-ratio:5/4;border-radius:22px;display:grid;place-items:center;background:radial-gradient(70% 60% at 50% 100%,rgba(255,226,128,.75),transparent 72%),linear-gradient(160deg,rgba(255,255,255,.9),rgba(255,228,236,.7));border:1px solid #fff}
.gf-mini svg{width:90%;height:90%;color:#12304F}
.gf-mini .s{fill:rgba(255,255,255,.9);stroke:currentColor;stroke-width:2.6;stroke-linejoin:round}.gf-mini .op{fill:rgba(190,80,115,.14);stroke:currentColor;stroke-width:2}
.gf-mini .o{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.gf-mini .b{fill:none;stroke:#C58B3A;stroke-width:3;stroke-linecap:round}.gf-mini .dt circle{fill:#C58B3A}
.gf-res small{font:700 .7rem var(--san);letter-spacing:.16em;text-transform:uppercase;color:#C0507A}
.gf-res h3{font-size:clamp(1.5rem,3.4vw,1.9rem);margin:6px 0 10px}.gf-res p{margin-bottom:18px}
.gf-ft{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
.gf-ft button{border:1px solid #fff;background:rgba(255,255,255,.75);padding:11px 20px;border-radius:999px;font:600 .84rem var(--san);color:var(--ink);cursor:pointer;transition:opacity .25s,background .25s}
.gf-ft button:hover{background:#fff}.gf-ft button[disabled]{opacity:.35;pointer-events:none}
.gf-dots{display:flex;gap:8px}.gf-dots i{width:8px;height:8px;border-radius:99px;background:rgba(190,80,115,.25);transition:width .35s,background .35s}
.gf-dots i.on{width:26px;background:linear-gradient(90deg,#F27AA3,#F2B830)}
@media(max-width:640px){.gf-res{grid-template-columns:1fr;text-align:center}.gf-mini{max-width:230px;margin:0 auto}.gf-s{min-height:300px}}

/* ---------- four stages: auto slider, active glass, rest transparent ---------- */
.gp{max-width:1040px;margin:0 auto}
.gp-bars{display:flex;gap:8px;margin:0 auto 22px;max-width:520px}
.gp-bars button{flex:1;height:18px;border:0;background:none;cursor:pointer;display:grid;align-items:center;padding:0}
.gp-bars u{position:relative;display:block;height:4px;border-radius:4px;background:rgba(190,80,115,.2);overflow:hidden}
.gp-bars u:after{content:"";position:absolute;inset:0;transform:scaleX(0);transform-origin:0 50%;background:linear-gradient(90deg,#F27AA3,#F2B830)}
.gp-bars button.done u:after{transform:scaleX(1)}
.gp-bars button.on u:after{animation:gpbar 6.5s linear forwards;animation-play-state:paused}
.gp.run:not(.hold) .gp-bars button.on u:after{animation-play-state:running}
@keyframes gpbar{to{transform:scaleX(1)}}
.gp-vp{overflow:hidden;padding:14px 0 26px;margin:0 calc(50% - 50vw);-webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent)}
.gp-tr{position:relative;display:flex;gap:22px;transition:transform .9s cubic-bezier(.16,1,.3,1);will-change:transform}
.gp-s{flex:0 0 min(780px,78%);display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(14px,3vw,34px);align-items:center;padding:14px;border-radius:30px;border:1px solid transparent;background:transparent;opacity:.3;transform:scale(.92);transition:opacity .7s,transform .8s cubic-bezier(.16,1,.3,1),background .6s,border-color .6s,box-shadow .6s;cursor:pointer}
.gp-s.on{opacity:1;transform:none;cursor:default;background:var(--glass);border-color:#fff;-webkit-backdrop-filter:blur(22px) saturate(1.6);backdrop-filter:blur(22px) saturate(1.6);box-shadow:0 26px 56px -32px rgba(190,80,115,.5),inset 0 1px 0 rgba(255,255,255,.95)}
.gp-s .im{position:relative;aspect-ratio:4/3;border-radius:22px;overflow:hidden}
.gp-s img{width:100%;height:100%;object-fit:cover;transition:transform 1.2s cubic-bezier(.16,1,.3,1)}.gp-s.on img{transform:scale(1.05)}
.gp-s .im span{position:absolute;left:12px;top:12px;font:700 .8rem var(--san);background:linear-gradient(135deg,#F3D27C,#C98F36);color:#2A1208;padding:5px 12px;border-radius:99px}
.gp-s .tx2{padding:6px 12px 6px 0}
.gp-s small{font:700 .7rem var(--san);letter-spacing:.18em;text-transform:uppercase;color:#C0507A}
.gp-s h3{font-size:clamp(1.6rem,3vw,2.2rem);margin:8px 0 10px}
.gp-s p{margin-bottom:16px}
.gp-s a{font:600 .88rem var(--san);color:var(--mar);text-decoration:none}.gp-s a:hover{text-decoration:underline}
.gp-ft{display:flex;align-items:center;justify-content:center;gap:18px}
.gp-ft b{font:700 .95rem var(--san);letter-spacing:.14em;color:var(--ink);min-width:78px;text-align:center}
@media(max-width:760px){
 .gp-tr{gap:14px}
 .gp-s{flex-basis:80%;grid-template-columns:1fr;padding:10px;border-radius:26px}
 .gp-s .tx2{padding:4px 8px 8px}
}
@media(prefers-reduced-motion:reduce){
 .gx-t.on u:after,.gp-bars button.on u:after{animation:none;transform:scaleX(1)}
 .gx-stage svg :is(path,rect,circle){animation:none}
}

/* ---------- v3: 4 products in a row (2x2 on phones), 13-step slider, warm footer, gate landing cover ---------- */
.grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:1021px){.grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
 .grid .pc h3{font-size:1.08rem}.grid .pc .pr b{font-size:1rem}.grid .pc .go{width:38px;height:38px}}
.pc.custom.wide{grid-column:1/-1}
.gp-bars{max-width:640px;gap:5px}
.gp-bars button{height:16px}
.gp-bars button.on u:after{animation-duration:4.2s}
.gp-s .im{position:relative}
@media(max-width:760px){.gp-bars{gap:3px}}
@media(min-width:701px){.pc.custom.wide{justify-content:space-between;gap:18px 28px}.pc.custom.wide .go{white-space:nowrap;flex:none}.pc.custom.wide>div{flex:1 1 320px}}

/* ===== v3: finder slide = white bg + light dots, glassy card; hero paragraph hidden on mobile ===== */
#finder{background:radial-gradient(rgba(65,102,140,.14) 1px,transparent 1.6px) 0 0/18px 18px,#fff}
#finder .gf{position:relative;isolation:isolate;overflow:hidden;
 background:linear-gradient(135deg,rgba(255,255,255,.72),rgba(255,255,255,.38) 55%,rgba(255,255,255,.6));
 border:1px solid rgba(255,255,255,.95);
 -webkit-backdrop-filter:blur(22px) saturate(1.6);backdrop-filter:blur(22px) saturate(1.6);
 box-shadow:0 26px 60px -30px rgba(40,70,110,.35),inset 0 1px 0 #fff,inset 0 -1px 0 rgba(255,255,255,.5)}
#finder .gf:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
 background:radial-gradient(60% 80% at 0 0,rgba(183,212,242,.45),transparent 70%),radial-gradient(60% 80% at 100% 100%,rgba(255,214,120,.45),transparent 70%)}
#finder .gf:after{content:"";position:absolute;left:-20%;right:-20%;top:0;height:46%;z-index:-1;pointer-events:none;
 background:linear-gradient(180deg,rgba(255,255,255,.55),transparent);border-radius:0 0 50% 50%}
@media(max-width:760px){.g-hero .g-tx>p{display:none}}
