/* =====================================================================
   WHAT I DO - sticky intro + four chapters with 3D photo stacks
   (formation + depth parallax driven by GSAP in experience.js)
   ===================================================================== */
.work3d { position: relative; padding: 130px 0 110px; }
.work3d::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(60% 40% at 80% 10%, rgba(32,156,207,.07), transparent 70%), radial-gradient(50% 40% at 0% 80%, rgba(32,156,207,.05), transparent 70%); }
.w3-grid { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(0, 1.6fr); gap: clamp(40px, 6vw, 110px); align-items: start; }

/* ---- sticky intro ---- */
.w3-intro { position: sticky; top: 120px; display: grid; gap: 20px; }
.w3-heading { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(2.6rem, 4.4vw, 4.6rem); line-height: 1; letter-spacing: -.02em; margin: 0; color: #fff; }
.w3-bridge { margin: 0; font-size: 1.02rem; line-height: 1.7; color: rgba(255,255,255,.7); padding-left: 18px; border-left: 2px solid rgba(32,156,207,.6); }
.w3-index { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; counter-reset: none; }
.w3-index a { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; color: rgba(255,255,255,.45); text-decoration: none; font-size: .95rem; line-height: 1.35;
    border-bottom: 1px solid rgba(255,255,255,.07); transition: color .35s, padding .35s; }
.w3-index a span { font-family: 'Space Grotesk', sans-serif; font-size: .75rem; letter-spacing: .1em; color: rgba(32,156,207,.55); min-width: 22px; }
.w3-index a:hover, .w3-index a.is-active { color: #fff; padding-left: 8px; }
.w3-index a.is-active span { color: #c7cf15; }
.w3-link { display: inline-flex; gap: 10px; align-items: center; color: #c7cf15; text-decoration: none; font-weight: 600; font-size: .95rem; margin-top: 6px; }
.w3-link i { transition: transform .3s; } .w3-link:hover i { transform: translateX(6px); }

/* ---- chapters ---- */
.w3-list { display: grid; gap: clamp(90px, 12vw, 170px); }
.w3-media {
    position: relative; perspective: 1400px; transform-style: preserve-3d; padding: 6% 0 0;
    transform: rotateX(calc(var(--my, 0) * -6deg)) rotateY(calc(var(--mx, 0) * 8deg)); transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.w3-num {
    position: absolute; z-index: 0; left: -2%; top: -14%; font-family: 'Instrument Serif', serif; font-size: clamp(8rem, 15vw, 15rem); line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(32,156,207,.35); pointer-events: none; user-select: none;
}
.w3-media figure { margin: 0; border-radius: 22px; overflow: hidden; background: #0d0d0e; will-change: transform, opacity; }
.w3-media img { display: block; width: 100%; height: auto; }
.w3-back { position: absolute; z-index: 1; left: 0; top: 0; width: 46%; box-shadow: 0 30px 60px -25px rgba(0,0,0,.8); filter: saturate(.8) brightness(.8); }
.w3-back.is-portrait { width: 31%; }
.w3-front { position: relative; z-index: 2; width: 72%; margin-left: 28%;
    box-shadow: 0 50px 90px -35px rgba(0,0,0,.9), 0 0 0 1px rgba(32,156,207,.28); }
.w3-front figcaption { position: absolute; left: 14px; bottom: 14px; display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 999px;
    font-size: .78rem; font-weight: 600; color: #fff; background: rgba(4,4,4,.6); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.16); }
.w3-front figcaption i { color: #c7cf15; font-size: .72rem; }
/* light sweep on hover */
.w3-front::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(232,242,160,.22) 48%, transparent 66%);
    transform: translateX(-120%); transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.w3-item:hover .w3-front::after { transform: translateX(120%); }
.w3-icon {
    position: absolute; z-index: 3; left: 22%; bottom: -26px; width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center;
    font-size: 1.4rem; color: #ffffff; background: linear-gradient(145deg, #4fc0ec, #209ccf 55%, #15729a);
    box-shadow: 0 20px 40px -12px rgba(32,156,207,.55), inset 0 1px 0 rgba(255,255,255,.6);
}

.w3-copy { max-width: 620px; margin: 56px 0 0 28%; display: grid; gap: 14px; }
.w3-kicker { font-family: 'Space Grotesk', sans-serif; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: #c7cf15; }
.w3-title { margin: 0; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(1.9rem, 2.8vw, 2.8rem); line-height: 1.05; color: #fff; letter-spacing: -.01em; }
.w3-text { margin: 0; font-size: 1.02rem; line-height: 1.75; color: rgba(255,255,255,.72); }
.w3-tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.w3-tags li { padding: 7px 14px; border-radius: 999px; font-size: .8rem; color: rgba(255,255,255,.85); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); }
.w3-cta { justify-self: start; margin-top: 8px; display: inline-flex; gap: 10px; align-items: center; padding: 13px 22px; border-radius: 999px; cursor: pointer;
    font: 600 .9rem 'Plus Jakarta Sans', sans-serif; color: #fff; background: transparent; border: 1px solid rgba(32,156,207,.5); transition: .3s; }
.w3-cta:hover { background: #209ccf; color: #ffffff; }
.w3-cta i { transition: transform .3s; } .w3-cta:hover i { transform: translateX(4px); }

/* alternate stacks so the column zig-zags */
.w3-item:nth-child(even) .w3-back { left: auto; right: 0; }
.w3-item:nth-child(even) .w3-front { margin-left: 0; }
.w3-item:nth-child(even) .w3-num { left: auto; right: -2%; }
.w3-item:nth-child(even) .w3-icon { left: auto; right: 22%; }
.w3-item:nth-child(even) .w3-copy { margin-left: 0; }

@media (max-width: 1000px) {
    .w3-grid { grid-template-columns: 1fr; }
    .w3-intro { position: static; }
    .w3-index { display: none; }
}
@media (max-width: 640px) {
    .work3d { padding: 90px 0 70px; }
    .w3-front { width: 84%; margin-left: 16%; }
    .w3-item:nth-child(even) .w3-front { margin-left: 0; }
    .w3-back { width: 52%; } .w3-back.is-portrait { width: 36%; }
    .w3-copy, .w3-item:nth-child(even) .w3-copy { margin: 50px 0 0; }
    .w3-icon { width: 54px; height: 54px; border-radius: 16px; font-size: 1.15rem; bottom: -22px; left: 10%; }
    .w3-item:nth-child(even) .w3-icon { right: 10%; }
}
@media (prefers-reduced-motion: reduce) { .w3-media { transform: none; transition: none; } }

/* single photo per chapter */
.w3-media { padding-top: 4%; }
.w3-front { width: 86%; margin-left: 14%; }
.w3-item:nth-child(even) .w3-front { margin-left: 0; }
.w3-copy { margin: 40px 0 0 14%; }
.w3-item:nth-child(even) .w3-copy { margin-left: 0; }
@media (max-width: 640px) {
    .w3-front, .w3-item:nth-child(even) .w3-front { width: 100%; margin-left: 0; }
    .w3-copy, .w3-item:nth-child(even) .w3-copy { margin: 32px 0 0; }
}
