/* =====================================================================
   RECOGNITION - 3D award shelf
   Four award plaques stand on a glowing glass shelf in a gentle arc,
   with a reflection below. On scroll they stand up one by one;
   the whole shelf turns with the pointer.
   ===================================================================== */
.recog3d { position: relative; padding: 120px 0 90px; overflow: hidden; }
.recog3d::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(55% 45% at 50% 78%, rgba(32,156,207,.12), transparent 70%); }

.r3-head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.r3-heading { margin: 12px 0 0; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(3rem, 6vw, 6.2rem); line-height: .95; letter-spacing: -.02em; color: #fff; }
.r3-heading em { font-style: italic; color: #c7cf15; }
.r3-link { flex: none; display: inline-flex; gap: 10px; align-items: center; padding-bottom: 12px; color: #c7cf15; font-weight: 600; text-decoration: none; }
.r3-link i { transition: transform .3s; } .r3-link:hover i { transform: translateX(6px); }

/* ---- stage ---- */
.r3-stage { position: relative; perspective: 1800px; perspective-origin: 50% 20%; padding: 30px 24px 0; }
.r3-shelf {
    position: relative; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 30px);
    transform-style: preserve-3d; transform: rotateX(6deg) rotateY(calc(var(--px, 0) * 10deg)); transition: transform .7s cubic-bezier(.2,.8,.2,1);
}

/* ---- award plaque ---- */
.r3-card {
    position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 22px; overflow: hidden;
    background: linear-gradient(165deg, #171719 0%, #0c0c0d 100%);
    border: 1px solid rgba(32,156,207,.35);
    box-shadow: 0 50px 90px -40px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.08);
    transform-origin: 50% 100%; will-change: transform, opacity;
    -webkit-box-reflect: below 10px linear-gradient(transparent 72%, rgba(255,255,255,.16));
}
/* arc: outer plaques turn inward and sit a little further back */
.r3-card:nth-child(1) { transform: rotateY(16deg) translateZ(-60px); }
.r3-card:nth-child(2) { transform: rotateY(6deg) translateZ(10px); }
.r3-card:nth-child(3) { transform: rotateY(-6deg) translateZ(10px); }
.r3-card:nth-child(4) { transform: rotateY(-16deg) translateZ(-60px); }

.r3-media { position: relative; margin: 0; aspect-ratio: 4 / 4.2; overflow: hidden; }
.r3-media img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.r3-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(9,9,10,0) 55%, rgba(9,9,10,.95) 100%); }
/* gold light sweep across the plaque on hover */
.r3-card::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(-130%); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.r3-card:hover::after { transform: translateX(130%); }
.r3-card:hover .r3-media img { transform: scale(1.1); }
.r3-card:hover { border-color: rgba(32,156,207,.7); }

.r3-body { position: relative; margin-top: -46px; padding: 0 22px 24px; display: grid; gap: 10px; align-content: start; }
.r3-year {
    display: inline-flex; gap: 8px; align-items: center; width: fit-content; padding: 7px 14px; border-radius: 999px;
    font: 700 .78rem 'Space Grotesk', sans-serif; letter-spacing: .12em; color: #ffffff;
    background: linear-gradient(145deg, #4fc0ec, #209ccf 55%, #15729a); box-shadow: 0 10px 24px -8px rgba(32,156,207,.6);
}
.r3-title { margin: 4px 0 0; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(1.45rem, 1.9vw, 1.9rem); line-height: 1.08; color: #fff; }
.r3-org { font-size: .86rem; line-height: 1.45; color: rgba(255,255,255,.6); }

/* ---- glowing glass shelf + floor ---- */
.r3-floor { position: relative; max-width: 1300px; height: 120px; margin: 8px auto 0; pointer-events: none; }
.r3-floor::before { content: ""; position: absolute; left: 2%; right: 2%; top: 0; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, #c7cf15 20%, #eef3b4 50%, #c7cf15 80%, transparent); box-shadow: 0 0 30px rgba(32,156,207,.7); }
.r3-floor::after { content: ""; position: absolute; left: 6%; right: 6%; top: 2px; height: 110px;
    background: radial-gradient(60% 100% at 50% 0%, rgba(32,156,207,.18), transparent 70%); }

@media (max-width: 1000px) {
    .r3-head { flex-direction: column; align-items: flex-start; }
    .r3-shelf { grid-template-columns: repeat(2, 1fr); transform: none; }
    .r3-card:nth-child(n) { transform: none; -webkit-box-reflect: unset; }
    .r3-floor { display: none; }
}
@media (max-width: 560px) {
    .recog3d { padding: 90px 0 60px; }
    .r3-shelf { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .r3-shelf { transition: none; transform: none; } }

/* ---- removed: reflection under the plaques and the glowing shelf/floor ---- */
.r3-card { -webkit-box-reflect: unset !important; }
.r3-floor { display: none !important; }
.recog3d::before { background: radial-gradient(55% 45% at 50% 60%, rgba(32,156,207,.07), transparent 70%); }
.recog3d { padding-bottom: 110px; }

/* ===== pinned mode (desktop): the whole section fits one screen while the plaques stand up ===== */
.recog3d.is-pinned {
    height: 100vh; height: 100svh; box-sizing: border-box; padding: 100px 0 32px !important;
    display: flex; flex-direction: column; justify-content: center;
}
.recog3d.is-pinned > .r3-head { width: 100%; flex: none; margin-bottom: clamp(18px, 3.2vh, 40px); }
.recog3d.is-pinned .r3-heading { font-size: clamp(2.6rem, 8.6vh, 6rem); }
.recog3d.is-pinned .r3-stage { flex: none; padding-top: 10px; }
.recog3d.is-pinned .r3-media { aspect-ratio: auto; height: clamp(150px, 33vh, 330px); }
.recog3d.is-pinned .r3-body { padding-bottom: clamp(16px, 2.6vh, 24px); gap: clamp(6px, 1.2vh, 10px); }
.recog3d.is-pinned .r3-title { font-size: clamp(1.25rem, 3.4vh, 1.9rem); }
