/* WORK SIMPLY OPTICAL CRYSTAL (base provided by Kagen).
   Tweaks: site fonts instead of generic monospace, overflow clip instead of hidden. */
#ws-crystal-experience{--glass-size:280px;--glass-depth:16px;position:relative;min-height:100svh;background:#030405;color:#f5f7fa;overflow:hidden;overflow:clip;isolation:isolate;font-family:var(--display)}
#ws-crystal-experience *{box-sizing:border-box}
.ws-ambient{position:absolute;inset:-15%;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 70% 45%,rgba(85,125,170,.22),transparent 48%),radial-gradient(ellipse at 85% 75%,rgba(75,65,110,.12),transparent 45%);animation:ambientLight 18s ease-in-out infinite alternate}
@keyframes ambientLight{from{transform:translate(0,0) scale(1)}to{transform:translate(-4%,3%) scale(1.12)}}
.ws-crystal-layout{width:min(1400px,100%);min-height:100svh;margin:auto;padding:60px 7%;display:grid;grid-template-columns:.85fr 1.15fr;grid-template-areas:"copy stage" "steps stage";align-content:center;align-items:center;gap:40px}
.ws-crystal-copy{position:relative;z-index:10;grid-area:copy}
.ws-eyebrow{font-family:var(--mono);font-size:11px;letter-spacing:2.5px;color:#a6b9cd;margin-bottom:24px}
#ws-layer-title{font-size:clamp(42px,5.5vw,84px);font-weight:400;line-height:1.04;letter-spacing:-.045em;margin:0 0 24px}
#ws-layer-description{font-size:17px;line-height:1.7;color:#a5afbb;max-width:400px;min-height:85px}
.ws-crystal-stage{grid-area:stage;position:relative;min-height:560px;display:flex;align-items:center;justify-content:center;perspective:1400px}
.ws-crystal-halo{position:absolute;width:420px;height:420px;max-width:100%;border-radius:50%;background:radial-gradient(circle,rgba(150,200,255,.10),transparent 65%);filter:blur(30px);pointer-events:none}
#ws-crystal-stack{position:relative;width:var(--glass-size);height:var(--glass-size);transform-style:preserve-3d;transform:rotateX(55deg) rotateZ(-28deg);will-change:transform}
.ws-glass-pane,.ws-glass-float{position:absolute;inset:0;transform-style:preserve-3d}
.ws-glass-pane{will-change:transform,opacity}
.ws-glass-face{position:absolute;inset:0;border-radius:12px;transform:translateZ(calc(var(--glass-depth)/2));border:1px solid rgba(235,248,255,.85);background:linear-gradient(135deg,rgba(240,250,255,.22) 0%,rgba(200,225,245,.025) 28%,rgba(255,255,255,.008) 48%,rgba(200,230,255,.06) 75%,rgba(245,252,255,.24) 100%);box-shadow:inset 0 0 0 3px rgba(210,235,255,.08),inset 0 0 22px rgba(210,235,255,.05),0 0 18px rgba(170,210,255,.08);overflow:hidden}
.ws-glass-base{position:absolute;inset:0;border-radius:12px;border:1px solid rgba(190,220,245,.45);background:rgba(195,225,255,.012);transform:translateZ(calc(var(--glass-depth)/-2))}
.ws-glass-edge{position:absolute;border:1px solid rgba(220,240,255,.35);background:linear-gradient(180deg,rgba(245,252,255,.75),rgba(170,205,230,.10) 30%,rgba(220,240,255,.04) 60%,rgba(215,235,255,.55))}
.ws-edge-front,.ws-edge-back{width:calc(100% - 16px);height:var(--glass-depth);left:8px;transform:rotateX(90deg)}
.ws-edge-front{bottom:calc(var(--glass-depth)/-2)}
.ws-edge-back{top:calc(var(--glass-depth)/-2)}
.ws-edge-left,.ws-edge-right{width:var(--glass-depth);height:calc(100% - 16px);top:8px;transform:rotateY(90deg)}
.ws-edge-left{left:calc(var(--glass-depth)/-2)}
.ws-edge-right{right:calc(var(--glass-depth)/-2)}
.ws-glass-engraving{position:absolute;top:26px;left:26px;color:#e8f3fc;text-shadow:0 0 8px rgba(180,220,255,.25)}
.ws-glass-engraving small{font-family:var(--mono);font-size:11px;letter-spacing:3px;color:#c5d7e8}
.ws-glass-engraving span{display:block;margin-top:10px;font-size:30px;font-weight:300;letter-spacing:-1px}
.ws-glass-number{position:absolute;bottom:18px;right:22px;font-family:var(--mono);font-size:56px;color:rgba(220,240,255,.14)}
.ws-glass-etch-line{position:absolute;bottom:28px;left:26px;width:75px;height:1px;background:linear-gradient(90deg,rgba(220,240,255,.65),transparent)}
.ws-glass-float{animation:crystalFloat 6s ease-in-out infinite;animation-delay:calc(var(--i,0) * -.7s)}
@keyframes crystalFloat{0%,100%{transform:translateZ(0)}50%{transform:translateZ(7px)}}
.ws-glass-reflection{position:absolute;inset:-100%;pointer-events:none;background:linear-gradient(115deg,transparent 45%,rgba(240,250,255,.04) 48%,rgba(255,255,255,.16) 50%,transparent 54%);animation:crystalReflection 10s ease-in-out infinite;animation-delay:calc(var(--i,0) * -.4s)}
@keyframes crystalReflection{0%,20%{transform:translateX(-35%)}75%,100%{transform:translateX(35%)}}
.ws-progress{width:160px;height:2px;background:rgba(255,255,255,.10);margin-top:28px}
#ws-progress-fill{width:100%;height:100%;background:#c7def2;transform:scaleX(0);transform-origin:left center;box-shadow:0 0 12px rgba(170,210,255,.4)}
.ws-scroll-hint{margin-top:16px;font-family:var(--mono);font-size:10px;letter-spacing:2px;color:#8797a8}
@media (max-width:768px){#ws-crystal-experience{--glass-size:195px;--glass-depth:12px}.ws-crystal-layout{grid-template-columns:1fr;grid-template-areas:"copy" "stage" "steps";padding:36px 24px;gap:0;align-content:center}.ws-crystal-copy{text-align:center}#ws-layer-title{font-size:clamp(30px,8vw,44px);margin-bottom:12px}#ws-layer-description{font-size:14px;min-height:45px;margin:auto}.ws-crystal-stage{min-height:340px}.ws-glass-engraving{top:18px;left:18px}.ws-glass-engraving span{font-size:22px}.ws-glass-number{font-size:40px}.ws-progress{margin:20px auto 0}}
@media (prefers-reduced-motion:reduce){.ws-ambient,.ws-glass-float,.ws-glass-reflection{animation:none!important}}

/* ---------- consolidated experience (Kagen's layer; font-family monospace swapped for the site mono font) ---------- */
#ws-crystal-experience{--active-glow:rgba(190,225,255,.24);--inactive-opacity:.35}
.ws-crystal-layout{grid-template-columns:.85fr 1.15fr;gap:clamp(24px,5vw,80px)}
.ws-crystal-stage{perspective:1600px}
#ws-crystal-stack{transform-style:preserve-3d;will-change:transform}
.ws-glass-face{transition:box-shadow .45s ease,border-color .45s ease}
.ws-glass-pane.is-active .ws-glass-face{border-color:rgba(245,252,255,.98);box-shadow:inset 0 0 0 3px rgba(220,240,255,.13),inset 0 0 25px rgba(210,235,255,.10),0 0 30px var(--active-glow)}
.ws-glass-pane.is-inactive .ws-glass-face{border-color:rgba(210,230,250,.55)}
.ws-layer-navigation{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-top:36px;width:100%;max-width:460px}
.ws-layer-nav-button{position:relative;appearance:none;border:0;border-top:1px solid rgba(255,255,255,.15);background:transparent;padding:12px 0;text-align:left;color:#7d8998;font:inherit;font-size:11px;cursor:pointer;transition:color .3s ease,border-color .3s ease}
.ws-layer-nav-button::before{content:"";position:absolute;top:-1px;left:0;width:100%;height:1px;background:#d9ecff;transform:scaleX(0);transform-origin:left;transition:transform .4s ease}
.ws-layer-nav-button:hover,.ws-layer-nav-button.is-active{color:#f2f7fc}
.ws-layer-nav-button.is-active::before{transform:scaleX(1)}
.ws-layer-nav-button:focus-visible{outline:1px solid #d9ecff;outline-offset:5px}
.ws-layer-nav-number{display:block;font-family:var(--mono);font-size:9px;letter-spacing:1px;margin-bottom:7px;color:#8799ad}
.ws-progress{width:100%;max-width:460px;height:1px;margin-top:24px}
#ws-progress-fill{background:linear-gradient(90deg,#7894af,#e1efff)}
.ws-final-cta{display:inline-flex;align-items:center;justify-content:center;margin-top:24px;padding:14px 24px;border:1px solid rgba(220,240,255,.35);border-radius:6px;background:rgba(220,240,255,.06);color:#f5f7fa;text-decoration:none;font-size:14px;transition:background .3s ease,border-color .3s ease}
.ws-final-cta:hover{background:rgba(220,240,255,.12);border-color:rgba(220,240,255,.75)}
.ws-static-layers{color:#a5afbb;line-height:1.7;padding-left:20px}
.ws-static-layers li{margin-bottom:12px}
@media (max-width:768px){.ws-crystal-layout{grid-template-columns:1fr;gap:12px;padding:28px 20px}.ws-crystal-stage{min-height:300px}.ws-layer-navigation{gap:6px;margin:20px auto 0}.ws-layer-nav-button{text-align:center;font-size:10px}.ws-progress{margin:16px auto 0}.ws-final-cta{margin-top:16px}}
@media (prefers-reduced-motion:reduce){#ws-crystal-experience *,#ws-crystal-experience *::before,#ws-crystal-experience *::after{animation:none!important;transition:none!important}}

/* ---------- site additions ---------- */
.ws-anchor{position:relative;top:0;height:0}
.ws-visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
#ws-layer-title{color:#f5f7fa}
.ws-crystal-layout{grid-template-areas:"copy stage" "controls stage"}
.ws-crystal-copy{grid-area:copy;align-self:end}
.ws-crystal-stage{grid-area:stage}
.ws-crystal-controls{grid-area:controls;align-self:start;position:relative;z-index:10}
.ws-crystal-tilt{position:relative;width:var(--glass-size);height:var(--glass-size);transform-style:preserve-3d}
.ws-final-title{font-size:20px;color:#f5f7fa;margin:24px 0 0}
.ws-final-cta{min-height:44px}
.ws-final-cta:focus-visible{outline:1px solid #d9ecff;outline-offset:4px}
.ws-static-layers{margin:8px 0 0;max-width:460px}
.ws-static-layers strong{color:#f5f7fa;font-weight:500}

/* Static mode (default, no JS, reduced motion): every layer is listed, nothing moves. */
#ws-crystal-experience:not(.ws-animated) .ws-layer-navigation,
#ws-crystal-experience:not(.ws-animated) .ws-progress{display:none}
#ws-crystal-experience:not(.ws-animated) .ws-crystal-layout{padding-block:96px}

/* Animated mode (set by the controller): one pinned instrument. Pinned with CSS sticky, so pinning causes no layout shift.
   Section height = 1 screen + the scroll distance (1.6 desktop, 1.2 phone). */
#ws-crystal-experience.ws-animated{overflow:visible;overflow-x:clip;height:260vh}
#ws-crystal-experience.ws-animated .ws-crystal-layout{position:sticky;top:0;height:100svh;overflow:hidden;overflow:clip;padding-top:calc(var(--ws-nav-h,0px) + 24px)}
#ws-crystal-experience.ws-animated .ws-static-layers{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
#ws-crystal-experience.ws-animated .ws-final-title{display:none}
#ws-crystal-experience.ws-animated #ws-layer-title{font-size:clamp(40px,4.4vw,64px);min-height:2.1em;margin-bottom:20px}
#ws-crystal-experience.ws-animated #ws-layer-description{min-height:5.2em}
#ws-crystal-experience.ws-animated .ws-final{visibility:hidden;opacity:0;transform:translateY(8px);transition:opacity .4s ease,transform .4s ease,visibility 0s linear .4s}
#ws-crystal-experience.ws-animated.is-final .ws-final{visibility:visible;opacity:1;transform:none;transition:opacity .4s ease,transform .4s ease,visibility 0s}
.ws-dynamic{will-change:opacity}

@media (max-width:768px){
  #ws-crystal-experience{--glass-size:180px;--glass-depth:12px}
  .ws-crystal-layout{grid-template-areas:"copy" "stage" "controls";align-content:start}
  .ws-crystal-copy{text-align:left;align-self:start}
  #ws-layer-title{font-size:clamp(28px,8vw,40px)}
  #ws-layer-description{margin:0}
  .ws-layer-navigation{margin:12px 0 0;max-width:none}
  .ws-progress{margin:12px 0 0;max-width:none}
  .ws-final{margin-top:0}
  .ws-final-cta{margin-top:12px}
  #ws-crystal-experience.ws-animated{height:220vh}
  #ws-crystal-experience.ws-animated .ws-crystal-layout{padding:calc(var(--ws-nav-h,0px) + 12px) 20px 16px;align-content:start}
  #ws-crystal-experience.ws-animated .ws-crystal-copy{text-align:center}
  #ws-crystal-experience.ws-animated #ws-layer-title{font-size:clamp(28px,8vw,36px);margin-bottom:10px}
  #ws-crystal-experience.ws-animated #ws-layer-description{min-height:4.9em;max-width:none;line-height:1.6}
  #ws-crystal-experience.ws-animated .ws-crystal-stage{min-height:0;height:clamp(180px,29svh,280px)}
  #ws-crystal-experience.ws-animated .ws-final{text-align:center}
  #ws-crystal-experience:not(.ws-animated) .ws-crystal-layout{padding-block:64px}
  #ws-crystal-experience:not(.ws-animated) .ws-crystal-stage{min-height:300px}
}
@media (prefers-reduced-motion:reduce){
  .ws-ambient,.ws-glass-float,.ws-glass-reflection{animation:none!important}
}
