/* Work row: three independent vertical cards (CamSoda, GP tours, MAZI).
   Loaded last; the #professional-work prefix wins over the earlier split-banner rules. */
#professional-work{--card-gap:var(--frame,24px);--card-r:38px;--card-pad:clamp(28px,2.6vw,44px);--card-title:clamp(40px,3.55vw,64px);--card-top:calc(var(--card-pad) + 92px)}
#professional-work .professional-split{display:flex;gap:var(--card-gap);background:transparent;border-radius:0;overflow:hidden;height:calc(100svh - 2 * var(--frame,24px));min-height:640px}
#professional-work .work-panel{border-radius:var(--card-r);min-height:0;height:100%;container-type:size;flex:0 0 calc((100% - 3 * var(--card-gap)) / 4)}
#professional-work .mazi-card{background:#000}

/* Titles sit at the bottom of each card; the tours title stacks above its CTA. */
#professional-work .professional-title{left:var(--card-pad);right:var(--card-pad);top:auto;bottom:var(--card-pad);max-width:none;font-size:min(calc((100cqw - 2 * var(--card-pad)) * .178),13cqh);line-height:1;letter-spacing:-.06em}
#professional-work .tour-copy{left:var(--card-pad);right:auto;top:auto;bottom:var(--card-pad);max-width:calc(100% - 2 * var(--card-pad));width:max-content;display:grid;gap:28px;pointer-events:none}
#professional-work .tour-copy .professional-title{position:static}
#professional-work .tour-cta{position:relative;height:var(--cta-h,64px)}

/* Each card gets its own CTA in its brand color (visual only for now; no destination yet for CamSoda or MAZI). */
#professional-work .cta-soda{background:linear-gradient(135deg,#3fc4ff,#05affa 55%,#0388cc)}
#professional-work .cta-mazi{background:linear-gradient(135deg,#2a2a2a,#111 60%,#000)}
#professional-work .soda-panel:hover .tour-cta,#professional-work .mazi-card:hover .tour-cta{filter:brightness(1.1)}
.motion-paused #professional-work .tour-cta:after,#professional-work .project-slide:not(.is-visible) .tour-cta:after{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){#professional-work .tour-cta:after{animation:none}}

/* CTA finish: hairline translucent rim, inner top light, brand-tinted lift, medium weight.
   The shimmer runs card by card (CamSoda, GP, MAZI), then rests. */
#professional-work .tour-cta{border:1px solid #ffffff59;font-family:'Plus Jakarta Sans',var(--sans);font-weight:600;letter-spacing:-.01em;padding:0 40px;box-shadow:inset 0 1px 0 #ffffff47,inset 0 -1px 0 #0000002e,0 10px 26px -10px var(--cta-glow,#0000008c);transition:filter .2s ease,translate .25s ease,box-shadow .25s ease}
#professional-work .tours-panel .tour-cta{--cta-glow:#5e0820}
#professional-work .cta-soda{--cta-glow:#0a5f99}
#professional-work .cta-mazi{--cta-glow:#000;border-color:#ffffff4d}
#professional-work .work-panel:hover .tour-cta{filter:brightness(1.08);translate:0 -1px}
#professional-work .tour-cta:after{animation:work-cta-shimmer 7.5s ease-in-out infinite;animation-delay:var(--shine-delay,1.5s)}
#professional-work .cta-soda{--shine-delay:1.5s}
#professional-work .tours-panel .tour-cta{--shine-delay:2.3s}
#professional-work .cta-mazi{--shine-delay:3.1s}
@keyframes work-cta-shimmer{0%{transform:translateX(-120%)}18%,100%{transform:translateX(120%)}}

/* Emoji after each CTA label; a small hop on card hover. */
#professional-work .cta-emoji{display:inline-block;margin-left:.45em;font-style:normal;font-size:1.05em;line-height:1;transition:transform .35s cubic-bezier(.3,1.8,.5,1)}
#professional-work .work-panel:hover .cta-emoji{transform:translateY(-2px) rotate(-8deg) scale(1.12)}
#professional-work .soda-panel:hover .cta-emoji{transform:translateY(-2px) scale(1.12)}
@media(prefers-reduced-motion:reduce){#professional-work .cta-emoji{transition:none}}

/* Elastic squeeze when the card is hovered: squash wide, stretch tall, settle. */
#professional-work .work-panel:hover .tour-cta{animation:cta-jelly .75s cubic-bezier(.3,.7,.4,1) both}
@keyframes cta-jelly{0%{scale:1 1}22%{scale:1.14 .86}40%{scale:.92 1.1}58%{scale:1.05 .96}76%{scale:.98 1.02}100%{scale:1 1}}
@media(prefers-reduced-motion:reduce){#professional-work .work-panel:hover .tour-cta{animation:none}}

/* Desnuda card: the site's red-room clip, the record spins, the script stays put. */
#professional-work .desnuda-card{background:#2a0505}
#professional-work .desnuda-card .tour-portrait img,#professional-work .desnuda-card .tour-portrait video{object-position:50% 50%}
#professional-work .desnuda-shade{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(0deg,#140000f2 0%,#2a0303c7 26%,#3a050540 55%,transparent 72%),linear-gradient(180deg,#14000066 0%,transparent 30%)}
#professional-work .desnuda-logo{position:absolute;z-index:4;left:9%;right:9%;top:11%;opacity:.8;pointer-events:none}
#professional-work .desnuda-mark{display:block;width:100%;height:auto;overflow:visible;filter:drop-shadow(0 18px 30px #0000008c)}
#professional-work .d-record{fill:#0b0b0b;transform-box:view-box;transform-origin:568px 536px;animation:d-spin 14s 3s infinite}
#professional-work .d-script{fill:#fff}
/* Three slow turns that ease up and settle, then a pause; 1080deg = 0 so the loop is seamless. */
@keyframes d-spin{0%{transform:rotate(0deg);animation-timing-function:cubic-bezier(.45,0,.3,1)}65%{transform:rotate(1080deg)}100%{transform:rotate(1080deg)}}
.motion-paused #professional-work .d-record,#professional-work .project-slide:not(.is-visible) .d-record{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){#professional-work .d-record{animation:none}}
/* Desnuda CTA: black, so the Fling red stays unique to card 2. */
#professional-work .cta-desnuda{--cta-glow:#000;--shine-delay:3.1s;color:#fff;border-color:#ffffff4d;background:linear-gradient(135deg,#2e2e2e,#111 55%,#000)}
#professional-work .desnuda-card:hover .tour-cta{filter:brightness(1.08)}

/* Arrow circle, matching the homepage "Explore the project" pills: label left, arrow in a white disc
   that flies out top-right and is replaced on card hover. Arrow ink is each pill's own dark tone. */
#professional-work .tour-cta{justify-content:flex-start;gap:18px;padding:0 10px 0 30px}
#professional-work .cta-soda{--arrow-ink:#0377b3}
#professional-work .tours-panel .tour-cta{--arrow-ink:#8c0f2d}
#professional-work .cta-desnuda{--arrow-ink:#111}
#professional-work .tour-cta .link-arrow{position:relative;display:block;flex:0 0 auto;width:44px;height:44px;border-radius:50%;background:#fff;overflow:hidden;font-size:0;box-shadow:0 2px 6px #0000002e}
#professional-work .tour-cta .link-arrow svg{position:absolute;inset:0;margin:auto;width:22px;height:22px;fill:none;stroke:var(--arrow-ink,#111);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .55s cubic-bezier(.65,0,.25,1)}
#professional-work .tour-cta .link-arrow svg+svg{transform:translate(-160%,160%)}
#professional-work .work-panel:hover .tour-cta .link-arrow svg:first-child,#professional-work .work-panel:focus-within .tour-cta .link-arrow svg:first-child{transform:translate(160%,-160%)}
#professional-work .work-panel:hover .tour-cta .link-arrow svg+svg,#professional-work .work-panel:focus-within .tour-cta .link-arrow svg+svg{transform:none}
@media(max-width:900px){#professional-work .tour-cta{padding:0 8px 0 24px;gap:14px}#professional-work .tour-cta .link-arrow{width:40px;height:40px}#professional-work .tour-cta .link-arrow svg{width:20px;height:20px}}
@media(prefers-reduced-motion:reduce){#professional-work .tour-cta .link-arrow svg{transition:none}}

/* Fling flame pinned to the tours card corner: the tour-lander "hot" badge. */
#professional-work .tour-flame{position:absolute;z-index:6;right:-33%;bottom:-17%;width:122%;aspect-ratio:740/970;opacity:.3;translate:100px 0;pointer-events:none;rotate:-9deg;transform-origin:70% 90%}
#professional-work .tour-flame-glow{position:absolute;inset:-18% -22% -10% -14%;border-radius:50%;background:radial-gradient(closest-side,#ff3f6c99,#e0264f40 55%,transparent);filter:blur(18px);animation:flame-glow 3.2s ease-in-out infinite}
#professional-work .tour-flame-mark{position:relative;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 18px 34px #4a0016a6) drop-shadow(0 0 1px #ffffff80)}
#professional-work .tour-flame-outer{transform-box:fill-box;transform-origin:50% 100%;animation:flame-sway 3.2s ease-in-out infinite}
@keyframes flame-sway{0%,100%{transform:rotate(-1.4deg) scale(1)}50%{transform:rotate(1.4deg) scale(1.025,1.04)}}
@keyframes flame-glow{0%,100%{opacity:.75;transform:scale(1)}50%{opacity:1;transform:scale(1.06)}}
/* Entrance: the flame pops in after its card lands. */
#professional-work .work-armed .tour-flame{opacity:0;scale:.6;transition:opacity .5s ease .9s,scale .8s cubic-bezier(.3,1.6,.5,1) .9s}
#professional-work .work-armed.work-in .tour-flame{opacity:.3;scale:1}

/* Art */
#professional-work .soda-art{inset:0;padding:12% 14% 52%;place-items:center}
/* Card fields get darker toward the bottom, behind the copy. */
#professional-work .soda-panel{background:linear-gradient(180deg,#f841b5 0%,#f841b5 38%,#d92e9c 70%,#b01f7e 100%)}
#professional-work .tours-panel .tour-shade{background:linear-gradient(0deg,#5e0820f5 0%,#7d0d2dd9 22%,#ae133866 55%,#ae133814 80%,transparent 100%)}
#professional-work .soda-art img{max-height:100%}
#professional-work .work-mazi-logo{position:absolute;z-index:1;left:50%;top:50%;width:min(68%,380px);height:auto;translate:-50% -50%}

/* Sequenced entrance: cards rise in one after another the first time the row is seen. */
#professional-work .work-armed .work-panel{opacity:0;translate:0 44px;transition:opacity .9s cubic-bezier(.2,.7,.2,1),translate .9s cubic-bezier(.2,.7,.2,1)}
#professional-work .work-armed.work-in .work-panel{opacity:1;translate:0 0}
#professional-work .work-armed.work-in .work-panel:nth-child(2){transition-delay:.22s}
#professional-work .work-armed.work-in .work-panel:nth-child(3){transition-delay:.44s}

#professional-work>.work-dots{display:none}

/* Phones and narrow tablets: one card in view, sliding automatically in order. */
@media(max-width:900px){
 #professional-work .professional-split{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;gap:var(--card-gap);height:max(560px,calc(100svh - 2 * var(--frame,12px) - 24px));min-height:0;border-radius:var(--card-r)}
 #professional-work .professional-split::-webkit-scrollbar{display:none}
 #professional-work .professional-split.is-sliding{scroll-snap-type:none}
 #professional-work .work-panel{flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always}
 #professional-work{--card-r:26px;--card-pad:28px;--card-title:clamp(52px,14.5vw,76px);--cta-h:56px}
 #professional-work .professional-title,#professional-work .tour-copy{bottom:60px}
 #professional-work .tour-copy .professional-title{position:static}
 #professional-work .tour-copy{gap:22px}
 #professional-work .tour-flame{width:120%;right:-33%;bottom:-15%}
 #professional-work .work-armed .work-panel{translate:0 0;opacity:1;transition:none}
 #professional-work>.work-dots{position:absolute;z-index:9;left:0;right:0;bottom:22px;display:flex;justify-content:center;gap:8px;pointer-events:none}
 #professional-work>.work-dots i{width:7px;height:7px;border-radius:50%;background:#fff;opacity:.4;transition:opacity .3s,width .3s,border-radius .3s}
 #professional-work>.work-dots i.is-on{opacity:1;width:22px;border-radius:4px}
}
@media(prefers-reduced-motion:reduce){#professional-work .work-armed .work-panel,#professional-work .work-armed .tour-flame{transition:none}#professional-work .tour-flame *{animation:none!important}}
.motion-paused #professional-work .tour-flame *,#professional-work .project-slide:not(.is-visible) .tour-flame *{animation-play-state:paused}

/* Work copy reveal: masked line rise, then the CTA. Delays come from --wt-delay (per card) and --j (per line). */
#professional-work .wt-line{display:block;overflow:hidden;padding:0 .04em .12em;margin:0 -.04em -.12em}
#professional-work .wt-armed .wt-inner{display:block;transform:translate3d(0,108%,0) rotate(2deg);transform-origin:0 100%;transition:transform 1.05s cubic-bezier(.19,1,.22,1);transition-delay:calc(var(--wt-delay,0s) + var(--j,0) * .11s)}
#professional-work .wt-armed .wt-in .wt-inner{transform:none}
#professional-work .wt-armed .tour-cta{opacity:0;translate:0 18px;filter:blur(6px);transition:opacity .7s ease,translate .9s cubic-bezier(.19,1,.22,1),filter .7s ease,box-shadow .25s ease;transition-delay:calc(var(--wt-delay,0s) + var(--lines,2) * .11s + .28s)}
#professional-work .wt-armed .wt-in .tour-cta{opacity:1;translate:0 0;filter:none}
#professional-work .wt-armed .wt-done .tour-cta{transition:filter .2s ease,translate .25s ease,box-shadow .25s ease;transition-delay:0s}
#professional-work .wt-armed .wt-done:hover .tour-cta{filter:brightness(1.08);translate:0 -1px}
@media(prefers-reduced-motion:reduce){#professional-work .wt-armed .wt-inner,#professional-work .wt-armed .tour-cta{transform:none;translate:none;opacity:1;filter:none;transition:none}}

#professional-work .tour-online{
 position:absolute;isolation:isolate;z-index:7;top:clamp(14px,1.4vw,24px);right:clamp(16px,1.7vw,28px);
 display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:99px;
 color:#fff;font-size:12px;font-weight:550;line-height:1.25;letter-spacing:.015em;pointer-events:none;
}
#professional-work .tour-online::before{
 content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;
 border:1px solid #ffffff38;background:#261f2b73;backdrop-filter:blur(10px);
}
#professional-work .tour-online-light{
 width:8px;height:8px;flex:none;border-radius:50%;background:#69ff9c;
 box-shadow:0 0 9px #69ff9c85;
}
@media(prefers-reduced-motion:no-preference){
 #professional-work .wt-armed .tour-online-light,
 #professional-work .wt-armed .tour-online-label,
 #professional-work .wt-armed .tour-online::before{opacity:0}
 #professional-work .wt-armed .wt-done .tour-online-light{
  animation:tour-online-pop .36s ease-out both,tour-online-blink 7s 1.5s infinite;
 }
 #professional-work .wt-armed .wt-done .tour-online-label,
 #professional-work .wt-armed .wt-done .tour-online::before{
  animation:tour-online-fade .42s .36s ease-out both;
 }
 .motion-paused #professional-work .wt-done .tour-online-light,
 #professional-work .project-slide:not(.is-visible) .wt-done .tour-online-light{animation-play-state:running,paused}
}
@keyframes tour-online-pop{
 0%{opacity:0;transform:scale(.35)}
 65%{opacity:1;transform:scale(1.18)}
 100%{opacity:1;transform:scale(1)}
}
@keyframes tour-online-fade{to{opacity:1}}
@keyframes tour-online-blink{
 0%,68%,78%,100%{opacity:1}
 73%{opacity:.38}
}

/* Nov 12 (job-search design pass): one button style across the three Work cards. Translucent dark glass, so each card's own
   colour shows through instead of three different fills. Per-card fills above (.cta-soda, .tours-panel, .cta-desnuda) are superseded. */
#professional-work .work-panel .tour-cta{background:#0a0a0c59;-webkit-backdrop-filter:blur(16px) saturate(1.3);backdrop-filter:blur(16px) saturate(1.3);border-color:#ffffff59;color:#fff;--cta-glow:#00000080;--arrow-ink:#111}
