/* ASK SUMIT - experience layer */
#scrollProgress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; transform: scaleX(0); transform-origin: 0 50%;
    background: linear-gradient(90deg, #c7cf15, #e3ea6e, #209ccf); pointer-events: none; }
#cursorGlow { position: fixed; top: 0; left: 0; width: 400px; height: 400px; border-radius: 50%; pointer-events: none; z-index: 1; opacity: 0;
    background: radial-gradient(circle, rgba(32,156,207,.13), transparent 65%); transition: opacity .6s; mix-blend-mode: screen; }
.wrd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; }
.wrd-in { display: inline-block; will-change: transform; }
.bento-card, .case-modern-card, .award-box, .stat-card, .page-card { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, background .3s; will-change: transform; }
.bento-card:hover, .case-modern-card:hover, .award-box:hover { box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(32,156,207,.25); }

/* 3D gallery */
.gallery-section { position: relative; padding: 110px 0 90px; overflow: hidden; }
.gallery-head { text-align: center; max-width: 760px; margin: 0 auto 10px; }
.gallery-head p { opacity: .8; line-height: 1.7; margin-top: 14px; }
.gallery-stage { position: relative; height: min(78vh, 680px); margin-top: 10px; cursor: grab; touch-action: pan-y; user-select: none; }
.gallery-stage.is-dragging { cursor: grabbing; }
.gallery-stage canvas { width: 100%; height: 100%; display: block; }
.gallery-stage::before { content: ""; position: absolute; left: 50%; top: 52%; width: 520px; height: 520px; transform: translate(-50%,-50%); pointer-events: none;
    background: radial-gradient(circle, rgba(32,156,207,.18), transparent 65%); filter: blur(10px); }
.gallery-ui { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 980px; margin: 8px auto 0; padding: 0 24px; flex-wrap: wrap; }
.gallery-caption { flex: 1; min-width: 240px; }
.gallery-caption small { color: #c7cf15; letter-spacing: .18em; font-size: .75rem; font-weight: 600; }
.gallery-caption h3 { font-size: 1.6rem; margin: 6px 0; }
.gallery-caption p { opacity: .8; line-height: 1.6; }
.gallery-controls { display: flex; align-items: center; gap: 14px; }
.gallery-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(32,156,207,.45); background: rgba(255,255,255,.05); color: #e3ea6e;
    cursor: pointer; backdrop-filter: blur(10px); transition: .25s; }
.gallery-btn:hover { background: #209ccf; color: #ffffff; transform: scale(1.08); }
.gallery-dots { display: flex; gap: 8px; }
.gallery-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.25); cursor: pointer; transition: .3s; padding: 0; }
.gallery-dot.active { background: #209ccf; width: 26px; border-radius: 6px; }
.gallery-hint { text-align: center; font-size: .8rem; letter-spacing: .14em; opacity: .55; margin-top: 18px; }
@media (max-width: 700px) { .gallery-stage { height: 62vh; } .gallery-ui { justify-content: center; text-align: center; } }
@media (prefers-reduced-motion: reduce) { #cursorGlow { display: none; } }

/* ===== Photo system (uncropped, natural aspect so faces are never cut) ===== */
.photo-card { position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: #0e0e0f;
    border: 1px solid rgba(32,156,207,.22); box-shadow: 0 24px 50px -24px rgba(0,0,0,.7); transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s; }
.photo-card img { display: block; width: 100%; height: auto; transition: transform .9s cubic-bezier(.2,.8,.2,1), filter .5s; }
.photo-card:hover { transform: translateY(-6px); box-shadow: 0 34px 70px -24px rgba(0,0,0,.8), 0 0 0 1px rgba(32,156,207,.45); }
.photo-card:hover img { transform: scale(1.03); }
.photo-card figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: calc(100% - 24px);
    padding: 7px 14px; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: #fff;
    background: rgba(5,5,5,.62); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.16); }
.photo-card figcaption i { color: #c7cf15; font-size: .72rem; }

.stage-proof-section { padding: 90px 0; }
.photo-masonry { column-count: 3; column-gap: 22px; margin-top: 44px; }
.photo-masonry .photo-card { break-inside: avoid; margin-bottom: 22px; }
@media (max-width: 980px) { .photo-masonry { column-count: 2; } }
@media (max-width: 560px) { .photo-masonry { column-count: 1; } }

.human-section { padding: 90px 0; }
.human-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.human-copy p { line-height: 1.8; opacity: .85; margin-top: 18px; max-width: 460px; }
.human-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: center; }
.human-photos .tilt-l { transform: rotate(-2.5deg); } .human-photos .tilt-r { transform: rotate(2.5deg) translateY(18px); }
.human-photos .photo-card:hover { transform: rotate(0) translateY(-6px) scale(1.02); }
@media (max-width: 900px) { .human-grid { grid-template-columns: 1fr; } .human-photos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .human-photos { grid-template-columns: 1fr 1fr; } .human-photos .photo-card:nth-child(3) { display: none; } }

.award-photo-ribbon { display: flex; gap: 18px; justify-content: center; align-items: stretch; margin: 40px 0 10px; flex-wrap: wrap; }
.award-photo-ribbon .photo-card { flex: 1 1 260px; max-width: 360px; }

.cta-with-photo { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 56px; align-items: center; text-align: left; }
.cta-with-photo .cta-portrait .photo-card { border-radius: 28px; box-shadow: 0 0 0 8px rgba(32,156,207,.08), 0 40px 80px -30px rgba(0,0,0,.8); }
.cta-with-photo .cta-action-buttons, .cta-with-photo .cta-trust-strip { justify-content: flex-start; }
@media (max-width: 860px) { .cta-with-photo { grid-template-columns: 1fr; text-align: center; } .cta-with-photo .cta-portrait { max-width: 300px; margin: 0 auto; } .cta-with-photo .cta-action-buttons, .cta-with-photo .cta-trust-strip { justify-content: center; } }

.about-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.about-photos { display: grid; gap: 20px; }
.about-photos .tilt-r { transform: rotate(1.5deg); }
@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; } }


/* ===== Stage proof: 3D scroll flip-in (cards driven by GSAP ScrollTrigger) ===== */
.photo-masonry { perspective: 1600px; perspective-origin: 50% 40%; }
.photo-masonry .photo-card { transform-style: preserve-3d; backface-visibility: hidden; will-change: transform, opacity; }
/* GSAP owns the card transform, so hover effects live on the image, shadow and a light sweep */
.photo-masonry .photo-card:hover { transform: none; }
.photo-masonry .photo-card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    background: linear-gradient(115deg, transparent 30%, rgba(232,242,160,.28) 48%, transparent 66%);
    transform: translateX(-120%); transition: transform .9s cubic-bezier(.2,.8,.2,1);
}
.photo-masonry .photo-card:hover::after { transform: translateX(120%); }
.photo-masonry .photo-card:hover img { transform: scale(1.06); }
.photo-masonry .photo-card figcaption { transform: translateZ(40px); }
/* gold edge glow that lights up as each card lands */
.photo-masonry .photo-card.is-landed { box-shadow: 0 30px 60px -28px rgba(0,0,0,.85), 0 0 0 1px rgba(32,156,207,.4), 0 0 40px -10px rgba(32,156,207,.25); }

/* ===== Areas of Work: 3D scroll build ===== */
.bento-grid { perspective: 1800px; perspective-origin: 50% 30%; }
.bento-grid .bento-card { transform-style: preserve-3d; will-change: transform, opacity; }
.bento-grid .bento-icon-box, .bento-grid .bento-title { transform-style: preserve-3d; }
.bento-grid .bento-card.is-landed { box-shadow: 0 40px 80px -36px rgba(0,0,0,.9), 0 0 0 1px rgba(32,156,207,.3), 0 0 50px -16px rgba(32,156,207,.22); }
.section-header-editorial { perspective: 1400px; }
/* GSAP drives these transforms on scroll: a CSS transform transition would make them lag */
.bento-grid .bento-card, .photo-masonry .photo-card { transition: box-shadow .4s, background .3s; }

/* ===== Scroll-animation stability =====
   1. CSS smooth scrolling fights GSAP ScrollTrigger pinning (page jumps when the pin starts/ends).
      Anchor links still scroll smoothly through main.js.
   2. overflow-x:hidden on body turns it into its own scroll box, which makes pinned sections jitter;
      overflow-x:clip hides sideways overflow without that side effect. */
html { scroll-behavior: auto !important; }
html, body { overflow-x: clip !important; }

/* ===== 3D gallery ring: whole section fits one screen ===== */
.gallery-section {
    height: 100vh; height: 100svh; min-height: 600px; box-sizing: border-box;
    display: flex; flex-direction: column; padding: 96px 0 24px !important;
}
.gallery-section > .section-container { width: 100%; flex: none; }
.gallery-section .gallery-head { margin-bottom: 0; }
.gallery-section .section-title-large { font-size: clamp(2.2rem, 6.6vh, 4.4rem); margin-top: 8px; }
.gallery-section .gallery-head p { margin-top: 8px; font-size: .95rem; }
.gallery-section .gallery-stage { flex: 1; min-height: 0; height: auto; margin-top: 0; }
.gallery-section .gallery-ui { flex: none; width: 100%; margin-top: 4px; }
.gallery-section .gallery-caption h3 { font-size: clamp(1.2rem, 3vh, 1.6rem); margin: 4px 0; }
@media (max-width: 760px) {
    .gallery-section { height: auto; min-height: 0; padding: 80px 0 40px !important; }
    .gallery-section .gallery-stage { flex: none; height: 62vh; }
}

/* ===== 3D gallery: three columns - intro | ring | current photo + controls ===== */
@media (min-width: 1001px) {
    .gallery-section {
        display: grid !important; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.55fr) minmax(260px, 1fr);
        grid-template-areas: "head stage ui"; align-items: center; column-gap: clamp(20px, 3vw, 50px);
        padding: 96px max(28px, calc((100vw - 1320px) / 2)) 28px !important;
    }
    .gallery-section > .section-container { grid-area: head; padding: 0; max-width: none; margin: 0; }
    .gallery-section .gallery-stage { grid-area: stage; height: 100%; min-height: 0; }
    .gallery-section .gallery-stage::before { width: 420px; height: 420px; }
    .gallery-section .gallery-ui {
        grid-area: ui; display: grid; gap: 26px; margin: 0; padding: 0; justify-items: start; align-content: center;
    }
    .gallery-section .gallery-head { text-align: left; margin: 0; max-width: 380px; display: grid; gap: 16px; }
    .gallery-section .gallery-caption { min-width: 0; padding-left: 22px; border-left: 2px solid rgba(32,156,207,.55); }
    .gallery-section .gallery-caption small { font-size: .8rem; }
    .gallery-section .gallery-caption h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(2rem, 5vh, 3rem); line-height: 1; margin: 10px 0 12px; color: #fff; }
    .gallery-section .gallery-caption p { font-size: 1rem; line-height: 1.65; }
}
.g3-heading { margin: 0; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(2.6rem, 7.6vh, 4.8rem); line-height: .98; letter-spacing: -.02em; color: #fff; }
.g3-heading em { font-style: italic; color: #c7cf15; }
.g3-intro { margin: 0 !important; font-size: 1rem !important; line-height: 1.7; color: rgba(255,255,255,.72); opacity: 1 !important; }
.g3-link { display: inline-flex; gap: 10px; align-items: center; width: fit-content; color: #c7cf15; font-weight: 600; text-decoration: none; }
.g3-link i { transition: transform .3s; } .g3-link:hover i { transform: translateX(6px); }
.g3-hint { margin: 6px 0 0 !important; font-size: .78rem !important; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); opacity: 1 !important; }
.g3-hint i { color: #c7cf15; margin-right: 6px; }
@media (max-width: 1000px) {
    .gallery-section .gallery-head { text-align: center; display: grid; gap: 12px; justify-items: center; }
}

/* =====================================================================
   BEYOND THE STAGE - three photos stacked like a hand of cards that fan
   out in 3D as you scroll (GSAP), tilt with the pointer, lift on hover
   ===================================================================== */
.beyond3d { position: relative; padding: 130px 0 130px; overflow: hidden; }
.beyond3d::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(45% 55% at 72% 50%, rgba(32,156,207,.12), transparent 70%), radial-gradient(35% 45% at 10% 30%, rgba(199,207,21,.05), transparent 70%); }
.b3-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 5vw, 90px); align-items: center; }
.b3-copy { display: grid; gap: 20px; }
.b3-heading { margin: 6px 0 0; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(3rem, 5.6vw, 5.8rem); line-height: .95; letter-spacing: -.02em; color: #fff; }
.b3-heading em { font-style: italic; color: #c7cf15; }
.b3-text { margin: 0; max-width: 520px; font-size: 1.08rem; line-height: 1.75; color: rgba(255,255,255,.7); }
.b3-moments { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.b3-moments li { display: inline-flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 999px; font-size: .9rem; color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.04); border: 1px solid rgba(32,156,207,.35); transition: .35s; cursor: default; }
.b3-moments li b { font-family: 'Space Grotesk', sans-serif; font-size: .72rem; letter-spacing: .1em; color: #c7cf15; }
.b3-moments li:hover, .b3-moments li.is-on { background: rgba(32,156,207,.14); border-color: #209ccf; color: #fff; }

/* scene */
.b3-scene { position: relative; height: clamp(420px, 42vw, 560px); perspective: 1600px; perspective-origin: 50% 40%; }
.b3-glow { position: absolute; left: 50%; top: 55%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
    background: radial-gradient(circle, rgba(32,156,207,.28), transparent 65%); filter: blur(30px); pointer-events: none; }
.b3-fan { position: absolute; inset: 0; transform-style: preserve-3d;
    transform: rotateX(calc(var(--py, 0) * -8deg)) rotateY(calc(var(--px, 0) * 12deg)); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.b3-card {
    position: absolute; left: 50%; top: 50%; width: clamp(200px, 17vw, 270px); aspect-ratio: 3 / 4; margin: 0;
    border-radius: 24px; overflow: hidden; background: #0d0d0e; cursor: pointer;
    border: 5px solid #f4f6f7; box-shadow: 0 50px 90px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(0,0,0,.3);
    transform: translate(-50%, -50%); transform-origin: 50% 100%; will-change: transform;
}
.b3-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.b3-card:hover img { transform: scale(1.08); }
.b3-card figcaption {
    position: absolute; left: 10px; right: 10px; bottom: 10px; display: inline-flex; gap: 8px; align-items: center; justify-content: center;
    padding: 9px 12px; border-radius: 14px; font-size: .8rem; font-weight: 600; color: #fff;
    background: rgba(0,0,0,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18);
}
.b3-card figcaption i { color: #c7cf15; }
/* static fan for no-JS / reduced motion */
.b3-card[data-i="0"] { transform: translate(-50%, -50%) translateX(-78%) rotate(-10deg); }
.b3-card[data-i="1"] { transform: translate(-50%, -50%) translateY(-6%); z-index: 2; }
.b3-card[data-i="2"] { transform: translate(-50%, -50%) translateX(78%) rotate(10deg); }

@media (max-width: 1000px) { .b3-grid { grid-template-columns: 1fr; } .b3-scene { height: 460px; } }
@media (max-width: 560px) {
    .beyond3d { padding: 90px 0; }
    .b3-scene { height: 380px; }
    .b3-card { width: 46vw; border-width: 4px; }
    .b3-card figcaption { font-size: .68rem; padding: 7px 8px; }
}
@media (prefers-reduced-motion: reduce) { .b3-fan { transform: none; transition: none; } }
.b3-card.is-hot { border-color: #209ccf; box-shadow: 0 60px 100px -30px rgba(0,0,0,.95), 0 0 50px -10px rgba(32,156,207,.6); }

/* =====================================================================
   SEEN ON PUBLIC STAGES - 3D fly-through (no cards)
   The section pins; as you scroll you move forward through space and
   the stage photos come from the distance, pass left/right and go behind.
   Mobile / no JS: a simple column of photos.
   ===================================================================== */
.stage3d { position: relative; overflow: hidden; }
.sp-pin { position: relative; padding: 110px 0 80px; }
.sp-intro { position: relative; z-index: 5; max-width: 900px; margin: 0 auto; padding: 0 24px; text-align: center; display: grid; gap: 18px; justify-items: center; }
.sp-heading { margin: 0; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(3rem, 6.6vw, 7rem); line-height: .95; letter-spacing: -.02em; color: #fff; }
.sp-heading em { font-style: italic; color: #c7cf15; }
.sp-sub { margin: 0; max-width: 640px; font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,.65); }
.sp-cue { display: none; }

/* fallback list */
.sp-world { display: grid; gap: 28px; max-width: 760px; margin: 50px auto 0; padding: 0 20px; }
.sp-item { margin: 0; }
.sp-item img { display: block; width: 100%; height: auto; border-radius: 6px; }
.sp-item figcaption { margin-top: 12px; font-family: 'Instrument Serif', serif; font-size: 1.4rem; color: #fff; line-height: 1.1; }
.sp-item figcaption span { display: block; margin-bottom: 4px; font-family: 'Space Grotesk', sans-serif; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #c7cf15; }
.sp-outro, .sp-progress { display: none; }

/* ---- 3D fly-through (class added by JS on desktop) ---- */
.stage3d.is-fly .sp-pin { height: 100vh; height: 100svh; padding: 0; perspective: 900px; perspective-origin: 50% 50%; }
.stage3d.is-fly .sp-intro { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 100%; pointer-events: none; }
.stage3d.is-fly .sp-cue { display: inline-flex; gap: 10px; align-items: center; margin-top: 10px; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.stage3d.is-fly .sp-cue i { color: #209ccf; animation: spcue 1.6s ease-in-out infinite; }
@keyframes spcue { 50% { transform: translateY(6px); } }
.stage3d.is-fly .sp-world { position: absolute; inset: 0; margin: 0; padding: 0; max-width: none; display: block; transform-style: preserve-3d; }
.stage3d.is-fly .sp-item {
    position: absolute; left: 50%; top: 50%; width: clamp(300px, 30vw, 520px); will-change: transform, opacity; opacity: 0;
    transform-origin: 50% 50%;
}
.stage3d.is-fly .sp-item img {
    border-radius: 4px;
    box-shadow: 0 60px 120px -40px rgba(0,0,0,1);
    -webkit-mask-image: radial-gradient(130% 130% at 50% 50%, #000 60%, transparent 100%); mask-image: radial-gradient(130% 130% at 50% 50%, #000 60%, transparent 100%);
}
.stage3d.is-fly .sp-item figcaption { position: absolute; top: calc(100% + 10px); left: 0; font-size: clamp(1.1rem, 1.5vw, 1.6rem); white-space: nowrap; }
.stage3d.is-fly .sp-item[data-right] figcaption { left: auto; right: 0; text-align: right; }
/* light haze far away */
.stage3d.is-fly .sp-pin::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4;
    background: radial-gradient(40% 40% at 50% 50%, rgba(32,156,207,.10), transparent 70%), radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.85) 100%); }
.stage3d.is-fly .sp-outro { display: grid; justify-items: center; gap: 6px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; opacity: 0; pointer-events: none; text-align: center; }
.stage3d.is-fly .sp-outro b { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(5rem, 14vw, 13rem); line-height: .85; color: #c7cf15; }
.stage3d.is-fly .sp-outro span { font-size: .85rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.stage3d.is-fly .sp-progress { display: block; position: absolute; left: 50%; bottom: 34px; width: min(320px, 50vw); height: 2px; transform: translateX(-50%); z-index: 5; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.stage3d.is-fly .sp-progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #c7cf15, #209ccf); }
