/* =====================================================================
   FOOTER - 3D
   · CTA card that tilts with the pointer
   · link columns + 3D social tiles
   · a perspective grid "stage floor" with a giant gold wordmark that
     stands up as the footer scrolls into view
   ===================================================================== */
.site-footer.f3d { position: relative; overflow: hidden; padding: 110px 0 0 !important; margin: 0; border-top: 1px solid rgba(32,156,207,.15);
    background: radial-gradient(70% 60% at 50% 100%, rgba(32,156,207,.12), transparent 70%), linear-gradient(180deg, #030303 0%, #050505 100%) !important; }
.f3-wrap { position: relative; z-index: 1; }

/* perspective grid floor */
.f3-floor {
    position: absolute; left: -25%; right: -25%; bottom: -10%; height: 70%; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(32,156,207,.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32,156,207,.22) 1px, transparent 1px);
    background-size: 70px 70px;
    transform: perspective(700px) rotateX(68deg); transform-origin: 50% 100%;
    -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 75%); mask-image: linear-gradient(0deg, #000 10%, transparent 75%);
    animation: f3grid 6s linear infinite;
}
@keyframes f3grid { to { background-position: 0 70px, 0 0; } }

/* ---- CTA card ---- */
.f3-cta {
    position: relative; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
    padding: clamp(30px, 4vw, 54px) clamp(28px, 4vw, 60px); border-radius: 30px;
    background: linear-gradient(130deg, rgba(32,156,207,.16), rgba(20,20,22,.85) 45%, rgba(6,6,7,.9));
    border: 1px solid rgba(32,156,207,.35); box-shadow: 0 60px 120px -50px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.08);
    transform: perspective(1400px) rotateX(calc(var(--py, 0) * -5deg)) rotateY(calc(var(--px, 0) * 6deg));
    transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.f3-cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(400px circle at calc((var(--px, 0) + .5) * 100%) calc((var(--py, 0) + .5) * 100%), rgba(232,242,160,.12), transparent 60%); }
.f3-eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #c7cf15; }
.f3-cta-title { margin: 10px 0 0; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1; color: #fff; }
.f3-cta-title em { font-style: italic; color: #c7cf15; }
.f3-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

/* ---- columns ---- */
.f3-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: clamp(28px, 4vw, 60px); margin-top: clamp(60px, 7vw, 90px); }
.f3-brand .logo-footer-img { height: 54px; width: auto; }
.f3-tagline { margin: 18px 0 0; max-width: 340px; font-size: .98rem; line-height: 1.7; color: rgba(255,255,255,.65); }
.f3-loc { margin: 14px 0 0; font-size: .9rem; color: rgba(255,255,255,.55); }
.f3-loc i { color: #c7cf15; margin-right: 6px; }
.f3-col h4 { margin: 0 0 18px; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #c7cf15; }
.f3-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.f3-col a { position: relative; color: rgba(255,255,255,.72); text-decoration: none; font-size: .98rem; transition: color .3s, padding .3s; }
.f3-col ul a::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 1px; background: #209ccf; transition: width .3s; }
.f3-col ul a:hover { color: #fff; padding-left: 20px; }
.f3-col ul a:hover::before { width: 12px; }

/* 3D social tiles */
.f3-social { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; perspective: 600px; }
.f3-tile {
    display: flex; align-items: center; gap: 10px; padding: 13px 14px !important; border-radius: 14px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: #fff !important; font-size: .88rem;
    transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2,.8,.2,1), background .3s, border-color .3s, box-shadow .3s;
}
.f3-tile i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: .9rem; color: #ffffff;
    background: linear-gradient(145deg, #4fc0ec, #209ccf 55%, #15729a); transform: translateZ(18px); }
.f3-tile:hover { transform: rotateX(14deg) rotateY(-10deg) translateZ(10px); background: rgba(32,156,207,.1); border-color: rgba(32,156,207,.5);
    box-shadow: 0 20px 34px -16px rgba(0,0,0,.9); padding-left: 14px !important; }
.f3-tile::before { display: none; }

/* ---- giant wordmark on the floor ---- */
.f3-word-stage { position: relative; margin-top: clamp(50px, 6vw, 80px); perspective: 900px; perspective-origin: 50% 0%; height: clamp(110px, 17vw, 260px); }
.f3-word {
    position: absolute; left: 50%; bottom: 0; transform: translateX(-50%) rotateX(var(--lay, 0deg)); transform-origin: 50% 100%;
    white-space: nowrap; font-family: 'Instrument Serif', serif; font-size: clamp(5rem, 17vw, 17rem); line-height: .82; letter-spacing: -.03em;
    background: linear-gradient(180deg, #f1f5c8 0%, #c7cf15 45%, rgba(32,156,207,.25) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 -10px 40px rgba(32,156,207,.25));
}

/* ---- bottom bar ---- */
.f3-bottom { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
    padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.1); }
.f3-bottom p { margin: 0; font-size: .86rem; color: rgba(255,255,255,.5); }
.f3-top { display: inline-flex; align-items: center; gap: 12px; color: rgba(255,255,255,.75); text-decoration: none; font-size: .86rem; }
.f3-top i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(32,156,207,.5); color: #c7cf15; transition: .35s; }
.f3-top:hover i { background: #209ccf; color: #ffffff; transform: translateY(-4px) rotateX(20deg); box-shadow: 0 14px 24px -8px rgba(32,156,207,.6); }

@media (max-width: 1000px) { .f3-cols { grid-template-columns: 1fr 1fr; } .f3-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) {
    .site-footer.f3d { padding-top: 80px !important; }
    .f3-cols { grid-template-columns: 1fr; }
    .f3-cta-actions .btn { width: 100%; justify-content: center; }
    .f3-bottom { flex-direction: column-reverse; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .f3-floor { animation: none; } .f3-cta { transform: none; transition: none; } }

/* ===== wordmark: bold, edge to edge ===== */
.f3-word-stage {
    width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
    height: auto; padding-top: 10px; overflow: hidden;
}
.f3-word {
    position: relative; left: 0; bottom: auto; display: block; width: 100%; text-align: center;
    transform: rotateX(var(--lay, 0deg));
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; letter-spacing: -.045em; text-transform: uppercase;
    font-size: 15.2vw;            /* refined to an exact edge-to-edge fit in experience.js */
    line-height: .78; padding-bottom: .04em;
}

/* ===== wordmark: no glow shadow; bottom dissolves into a soft blur ===== */
.f3-word {
    filter: none !important;
    background: linear-gradient(180deg, #f1f5c8 0%, #c7cf15 40%, #7cbf3a 75%, #15729a 100%);
    -webkit-background-clip: text; background-clip: text;
}
.f3-word-stage { position: relative; }
/* frosted strip over the lower part of the letters, fading in from the middle down */
.f3-word-stage::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; pointer-events: none; z-index: 1;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    background: linear-gradient(180deg, rgba(3,3,3,0) 0%, rgba(3,3,3,.35) 60%, rgba(3,3,3,.8) 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%); mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
}

/* ===== lighter, softer blur at the bottom of the wordmark ===== */
.f3-word-stage::after {
    height: 48%;
    backdrop-filter: blur(5px) saturate(1.1); -webkit-backdrop-filter: blur(5px) saturate(1.1);
    background: linear-gradient(180deg, rgba(3,3,3,0) 0%, rgba(3,3,3,.12) 55%, rgba(3,3,3,.38) 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.6) 45%, #000 100%);
            mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.6) 45%, #000 100%);
}
