@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;1,8..60,600;1,8..60,700&display=swap');

/* My Stack — flip cards. Colors come from Settings → Expert Theme; Elementor Style tab values override per widget. */
.exp-st{
	--l-bg:var(--exp-l-bg,#fff);--l-text:var(--exp-l-text,#1a1a1a);--l-muted:var(--exp-l-muted,#555);--l-surface:var(--exp-l-surface,#fff);--l-border:var(--exp-l-border,#e7e7ee);--l-ring:var(--exp-l-ring,#f1f0fb);
	--d-bg:var(--exp-d-bg,#0a0a0b);--d-text:var(--exp-d-text,#f4f4f5);--d-muted:var(--exp-d-muted,#a1a1aa);--d-surface:var(--exp-d-surface,#141416);--d-border:var(--exp-d-border,#55555e);--d-ring:var(--exp-d-ring,#222226);
	--st-cols:3;--st-max:1000px;--st-gap:16px;--st-headgap:56px;--st-ringw:14px;--st-radius:38px;--st-logo:120px;--st-ratio:.9;--st-speed:600ms;
	--st-deco-w:500px;
	position:relative;box-sizing:border-box;width:100%;padding:100px 24px;overflow:hidden;overflow:clip;
	font-family:'Public Sans',system-ui,sans-serif;background:var(--bg);color:var(--text);
	transition:background-color .35s,color .35s;-webkit-text-size-adjust:100%;
}
.exp-st,.exp-st *{box-sizing:border-box}
.exp-st h1,.exp-st h2,.exp-st h3,.exp-st h4,.exp-st p{margin:0;padding:0}

.exp-st{
	--bg:var(--l-bg);--c-head:var(--l-heading,var(--l-text));--ring:var(--l-ring);--card:var(--l-card,var(--l-surface));
	--c-name:var(--l-name,var(--l-text));--c-back:var(--l-back,var(--l-muted));--c-backline:var(--l-backline,var(--l-border));
	--hint-bg:var(--l-hint-bg,#fff);--hint-fg:var(--l-hint-text,#555);--shadow:0 6px 24px rgba(30,20,80,.07);
}
html[data-exp-theme=dark] .exp-st{
	--bg:var(--d-bg);--c-head:var(--d-heading,var(--d-text));--ring:var(--d-ring);--card:var(--d-card,var(--d-surface));
	--c-name:var(--d-name,var(--d-text));--c-back:var(--d-back,var(--d-muted));--c-backline:var(--d-backline,var(--d-border));
	--hint-bg:var(--d-hint-bg,#2a2a30);--hint-fg:var(--d-hint-text,#d4d4d8);--shadow:0 6px 24px rgba(0,0,0,.5);
}

.exp-st-inner{max-width:var(--st-max);margin:0 auto}
.exp-st .exp-st-h{
	text-align:center;margin-bottom:var(--st-headgap);
	font-family:'Source Serif 4',Georgia,serif;font-style:italic;font-weight:700;
	font-size:clamp(36px,4.4vw,64px);line-height:1.1;letter-spacing:-.01em;color:var(--c-head);
}

.exp-st-grid{position:relative;display:grid;grid-template-columns:repeat(var(--st-cols),minmax(0,1fr));gap:var(--st-gap)}
.exp-st .exp-st-decowrap{
	--st-deco-x:0px;--st-deco-y:0px;
	position:absolute;left:0;top:0;right:0;bottom:0;z-index:0;pointer-events:none;
}
/* keep the shape inside the card grid */
.exp-st .exp-st-decowrap.is-clip{overflow:hidden;overflow:clip}
/* the shape itself: JS sets --sy so it stays on screen (sticky) while the grid scrolls past; without JS it sits in the grid centre */
.exp-st .exp-st-decowrap .exp-st-sticky{
	position:absolute;left:50%;top:50%;width:var(--st-deco-w,500px);max-width:none;
	transform:translate3d(calc(-50% + var(--st-deco-x)),calc(-50% + var(--st-deco-y)),0);will-change:transform;
}
.exp-st .exp-st-decowrap.is-js .exp-st-sticky{top:0;transform:translate3d(calc(-50% + var(--st-deco-x)),calc(var(--sy,0px) + var(--st-deco-y)),0)}
.exp-st .exp-st-decowrap img.exp-st-deco{display:block;width:100%!important;max-width:none!important;height:auto!important;opacity:var(--st-deco-op,1);border:0;box-shadow:none;border-radius:0}
.exp-st .exp-st-decowrap img.exp-st-deco.is-float{animation:exp-st-float 9s ease-in-out infinite;filter:drop-shadow(0 18px 28px rgba(20,120,108,.25))}
@keyframes exp-st-float{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-16px) rotate(2.5deg)}}

/* ---- Fixed mode (default): the cube stays put on screen while the cards scroll past it, like the reference site.
   Pure CSS position:sticky — no JS easing, no float, no drift — so it never lags or wobbles. ---- */
.exp-st .exp-st-decowrap.is-fixed{display:flex;justify-content:center;align-items:flex-start;overflow:visible;clip-path:none}
.exp-st .exp-st-decowrap.is-fixed.is-clip{overflow:visible;clip-path:inset(0)}
.exp-st .exp-st-decowrap.is-fixed .exp-st-sticky{
	position:sticky;left:auto;flex:none;
	top:max(0px,calc(var(--st-at,38) * 1vh - var(--st-deco-h,0px) / 2));
	transform:translate3d(var(--st-deco-x),var(--st-deco-y),0);will-change:auto;
}
.exp-st .exp-st-decowrap.is-fixed img.exp-st-deco{animation:none!important;filter:none}

/* ---------- Card ---------- */
.exp-st-card{position:relative;z-index:1;perspective:1400px;cursor:pointer;outline:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}
.exp-st-flip{display:grid;aspect-ratio:1/var(--st-ratio);width:100%;transform-style:preserve-3d;transition:transform var(--st-speed) cubic-bezier(.4,.2,.2,1)}
.exp-st-card.is-flipped .exp-st-flip{transform:rotateX(180deg)}
.exp-st-face{
	grid-area:1/1;position:relative;min-height:0;overflow:hidden;
	background:var(--ring);background:color-mix(in srgb,var(--ring) var(--ring-o,45%),transparent);border-radius:var(--st-radius);padding:var(--st-ringw);box-shadow:var(--shadow);
	-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:background-color .35s;
}
html[data-exp-theme=dark] .exp-st-face{background:color-mix(in srgb,var(--ring) var(--ring-o,35%),transparent)}
/* Dark mode only: inner card is semi-transparent (default 25% transparent; Elementor → Style → Dark Mode Colors → Card Transparency) */
html[data-exp-theme=dark] .exp-st .exp-st-in{background:color-mix(in srgb,var(--card) calc(100% - var(--d-card-t,25) * 1%),transparent)}
.exp-st-backface{transform:rotateX(180deg)}
.exp-st-in{
	height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;
	background:var(--card);border-radius:calc(var(--st-radius) - var(--st-ringw) * .4);padding:20px;transition:background-color .35s;
}
.exp-st .exp-st-in img.exp-st-logo{display:block;height:var(--st-logo)!important;width:auto!important;max-width:80%!important;min-height:0;object-fit:contain;pointer-events:none;border:0;border-radius:0;box-shadow:none}
html[data-exp-theme=dark] .exp-st .exp-st-in img.exp-st-logo.is-inv{filter:invert(1) brightness(1.1)}
.exp-st .exp-st-name{font-size:clamp(17px,1.7vw,24px);font-weight:400;line-height:1.2;color:var(--c-name)}

.exp-st-back{border:1px solid var(--c-backline);background:var(--card);overflow:auto;gap:12px}
.exp-st .exp-st-text{font-size:clamp(13px,1.15vw,16px);line-height:1.75;color:var(--c-back)}
.exp-st .exp-st-link{font-size:13px;font-weight:600;color:var(--c-name)!important;text-decoration:underline!important;text-underline-offset:3px}

/* "Tap to flip" hint — follows the mouse while hovering a card (position set by JS via --hx / --hy) */
.exp-st .exp-st-hint{
	position:absolute;left:0;top:0;z-index:5;
	transform:translate(calc(var(--hx,50%) - 50%),calc(var(--hy,50%) + 22px));
	padding:4px 10px;border-radius:999px;background:var(--hint-bg);color:var(--hint-fg);
	font-size:11px;line-height:1.4;white-space:nowrap;box-shadow:0 2px 10px rgba(0,0,0,.14);
	opacity:0;pointer-events:none;transition:opacity .4s ease;will-change:transform,opacity;
}
.exp-st-card.is-hover .exp-st-hint{opacity:1}
/* touch screens have no cursor: show it fixed at the bottom of the card */
@media (hover:none){
	.exp-st .exp-st-hint{left:50%;top:auto;bottom:calc(var(--st-ringw) + 12px);transform:translateX(-50%);opacity:.85}
	.exp-st-card.is-flipped .exp-st-hint{opacity:.85}
}
/* "Tap to flip" is hidden on mobile and tablet (touch devices / screens up to 1024px) — cards still flip on tap */
@media (max-width:1024px),(hover:none){
	.exp-st .exp-st-hint,.exp-st-card.is-hover .exp-st-hint,.exp-st-card.is-flipped .exp-st-hint{display:none!important}
}
.exp-st-card:focus-visible .exp-st-face{outline:2px solid var(--c-head);outline-offset:3px}

/* Scroll reveal */
.exp-st.is-reveal .exp-st-card{opacity:0;transform:translateY(22px);transition:opacity .6s ease,transform .6s ease}
.exp-st.is-reveal .exp-st-card.is-in{opacity:1;transform:none}

@media(max-width:1024px){.exp-st{--st-radius:30px;--st-ringw:11px}}
@media(max-width:767px){
	.exp-st{padding:64px 16px;--st-headgap:36px;--st-radius:24px;--st-ringw:8px;--st-logo:72px;--st-gap:10px;--st-ratio:1}
	.exp-st-in{padding:12px;gap:10px}
	.exp-st .exp-st-text{font-size:12px;line-height:1.55}
}
@media (prefers-reduced-motion:reduce){.exp-st .exp-st-decowrap:not(.is-force) img.exp-st-deco.is-float{animation:none}.exp-st-flip,.exp-st.is-reveal .exp-st-card{transition-duration:.01ms}}
