/* ==========================================================================
   Custom UI Enhancements
   ========================================================================== */

/* 1. Preloader */
#site-preloader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#site-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader-content {
    width: 60px;
    height: 60px;
    border: 4px solid var(--line);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 2. Hero Glassmorphism & Animated Orbs */
.home-hero {
    position: relative;
    overflow: hidden;
}
.ambient-orbs {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: floatOrb 15s infinite alternate ease-in-out;
}
.orb-1 {
    width: 400px;
    height: 400px;
    background: #ffaa77;
    top: -10%;
    left: 10%;
}
.orb-2 {
    width: 500px;
    height: 500px;
    background: #ffe3d4;
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
}
.orb-3 {
    width: 300px;
    height: 300px;
    background: #ffd5c2;
    top: 40%;
    left: 50%;
    animation-delay: -10s;
}
@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, -50px) scale(1.1); }
}

/* Elevate hero content above orbs */
.hero-layout {
    position: relative;
    z-index: 1;
}

/* Enhance product scene glassmorphism */
.product-scene {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
}

/* 3. Magnetic Buttons / Micro-animations */
/* Note: The transform is handled by GSAP, we just ensure it animates smoothly when GSAP is not active and preserve 3D */
.magnetic-btn {
    display: inline-block;
    transform-style: preserve-3d;
    will-change: transform;
}
.magnetic-btn-text {
    display: inline-block;
    pointer-events: none;
    transition: transform 0.2s ease;
}

/* 4. Testimonial Swiper Enhancements */
.testimonial-swiper {
    padding-bottom: 50px;
    overflow: hidden;
}
.testimonial-swiper .swiper-pagination-bullet {
    background: var(--muted);
    opacity: 0.5;
}
.testimonial-swiper .swiper-pagination-bullet-active {
    background: var(--orange);
    opacity: 1;
}

/* 5. Page Transitions (Swup) */
html.is-animating .transition-fade {
    opacity: 0;
    transform: translateY(10px);
}
.transition-fade {
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

/* 7. Header Centered & Blue Buttons */
:root {
    --hero-blue: #2d5bff;
    --hero-light-blue: #eef2ff;
}

.centered-nav {
    display: flex;
    justify-content: center;
    flex: 1;
    gap: 30px;
}
.centered-nav a {
    position: relative;
    color: var(--ink);
    font-weight: 500;
}
.centered-nav a.current-menu-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 20%;
    width: 60%;
    height: 3px;
    background: var(--hero-blue);
    border-radius: 3px;
}

.btn-hero-blue {
    background: var(--hero-blue) !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 12px 28px !important;
    border: none !important;
}
.btn-hero-blue:hover {
    box-shadow: 0 4px 15px rgba(45, 91, 255, 0.3);
}

/* 8. Light 3D Hero Layout */
.light-hero-layout {
    background: #fff;
    padding: clamp(3.5rem, 8vw, 6rem) 20px;
    overflow: hidden;
}
.hero-layout-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.light-eyebrow {
    color: #6c8aff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}
.hero-layout-new h1 {
    font-size: clamp(1.8rem, 4.5vw, 4rem);
    line-height: 1.12;
    color: var(--ink);
    margin-bottom: 20px;
    word-break: break-word;
}
.hero-layout-new .text-blue {
    color: var(--hero-blue);
}
.hero-layout-new p {
    color: #555;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 35px;
}

.hero-actions-new {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 45px;
    position: relative;
    z-index: 20;
}
.play-btn-link {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, color 0.3s ease;
    gap: 15px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 10;
}
.play-circle {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: var(--hero-blue);
    transition: transform 0.3s;
    animation: pulse-play-blue 2s ease-in-out infinite;
    pointer-events: none;
}
.play-btn-link:hover {
    transform: translateX(5px);
    color: #2563eb;
}
.play-btn-link:hover .play-circle {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.15), 0 8px 20px rgba(37, 99, 235, 0.2);
}
/* ✅ Play button pulse animation */
@keyframes pulse-play-blue {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(0,0,0,0.1), 0 0 0 4px rgba(37, 99, 235, 0.1);
    }
    50% {
        box-shadow: 0 5px 15px rgba(0,0,0,0.1), 0 0 0 8px rgba(37, 99, 235, 0.12), 0 0 0 12px rgba(37, 99, 235, 0.04);
    }
}

.hero-stats-row {
    display: flex;
    align-items: center;
    gap: 30px;
}
.stat-block {
    display: flex;
    align-items: center;
    gap: 15px;
}
.stat-icon {
    width: 45px;
    height: 45px;
    background: var(--hero-light-blue);
    color: var(--hero-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-info {
    display: flex;
    flex-direction: column;
}
.stat-info strong {
    font-size: 1.2rem;
    color: var(--ink);
    line-height: 1.2;
}
.stat-info span {
    font-size: 0.75rem;
    color: #777;
    white-space: normal;
}

.hero-3d-scene {
    text-align: right;
}
.hero-3d-scene img {
    width: 100%;
    max-width: 850px;
    max-height: 70vh;
    height: auto;
    object-fit: contain;
    animation: float3D 6s ease-in-out infinite alternate;
}

/* Dedicated Home Page Hero Tablet Rule (768px - 1050px) */
@media (min-width: 768px) and (max-width: 1050px) {
    .light-hero-layout {
        padding: clamp(6.5rem, 8vw, 8.5rem) 20px 2.5rem !important;
        overflow: hidden !important;
    }
    .hero-layout-new {
        display: grid !important;
        grid-template-columns: 1.05fr 0.95fr !important;
        align-items: center !important;
        text-align: left !important;
        gap: 20px !important;
    }
    .hero-copy {
        max-width: 100% !important;
        margin-inline: 0 !important;
        display: block !important;
        text-align: left !important;
        align-items: flex-start !important;
    }
    .hero-layout-new h1 {
        font-size: clamp(2rem, 3.4vw, 2.8rem) !important;
        line-height: 1.12 !important;
        text-align: left !important;
        margin-inline: 0 !important;
    }
    .hero-layout-new p {
        font-size: clamp(0.85rem, 1.1vw, 0.95rem) !important;
        text-align: left !important;
        margin-inline: 0 !important;
    }
    .hero-actions-new {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 16px !important;
    }
    .hero-stats-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: clamp(6px, 1.1vw, 14px) !important;
        width: 100% !important;
        margin-top: 24px !important;
        padding-top: 24px !important;
        border-top: 1px solid rgba(0,0,0,0.06) !important;
    }
    .stat-block {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }
    .stat-info strong,
    .stat-info span {
        white-space: nowrap !important;
    }
    .hero-3d-scene {
        max-width: 360px !important;
        margin: 0 0 0 auto !important;
    }
}

/* Home Hero Mobile Media Query (320px - 767px) */
@media (max-width: 767px) {
    .light-hero-layout {
        padding: 50px 20px;
    }
    .hero-layout-new {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 36px;
    }
    .hero-copy {
        max-width: 680px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-layout-new h1 {
        font-size: clamp(2rem, 6vw, 3.2rem);
    }
    .hero-layout-new p {
        margin-inline: auto;
    }
    .hero-actions-new {
        justify-content: center;
    }
    .hero-stats-row {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    .hero-3d-scene {
        text-align: center;
        max-width: 540px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .light-hero-layout {
        padding: 40px 16px;
    }
    .hero-layout-new h1 {
        font-size: clamp(1.75rem, 8vw, 2.4rem);
    }
    .hero-actions-new {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 16px;
        margin-bottom: 35px;
    }
    .hero-actions-new .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        text-align: center;
        padding: 14px 20px !important;
        font-size: 0.95rem;
    }
    .play-btn-link {
        width: auto;
        justify-content: center;
        font-size: 0.95rem;
    }
    .hero-stats-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
        flex-wrap: wrap; /* ✅ FIX: Allow wrapping on very small screens */
        width: 100%;
        gap: 8px; /* ✅ FIX: Increased from 5px for better spacing */
        padding: 12px 8px;
        background: #f8fafc;
        border-radius: 16px;
        border: 1px solid rgba(0, 0, 0, 0.06);
    }
    .stat-block {
        flex: 1;
        min-width: 0;
        gap: 6px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .stat-icon {
        width: 32px;
        height: 32px;
    }
    .stat-icon svg {
        width: 16px;
        height: 16px;
    }
    .stat-info {
        align-items: center;
    }
    .stat-info strong {
        font-size: 0.9rem;
    }
    .stat-info span {
        font-size: 0.6rem;
    }
}

/* ✅ FIX: Ultra-small device support for stat blocks (380px and below) */
@media (max-width: 380px) {
    .hero-stats-row {
        gap: 10px;
    }
    .stat-block {
        flex: 1 1 100% !important;
        max-width: 100%;
    }
    .stat-icon {
        width: 36px !important;
        height: 36px !important;
    }
    .stat-icon svg {
        width: 18px !important;
        height: 18px !important;
    }
    .stat-info strong {
        font-size: 1rem !important;
    }
    .stat-info span {
        font-size: 0.65rem !important;
    }
}

/* ==========================================================================
   Modern Connecting Timeline (How we work)
   ========================================================================== */
.process-section {
    background: #f8fafc !important; 
    padding: 100px 0;
    overflow: hidden;
}

.modern-timeline {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0;
    padding: 20px 0;
}

.modern-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, rgba(124, 58, 237, 0) 0%, rgba(124, 58, 237, 0.2) 10%, rgba(124, 58, 237, 0.2) 90%, rgba(124, 58, 237, 0) 100%);
    transform: translateX(-50%);
}

.timeline-step {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    width: 100%;
}

.timeline-step:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-connector {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 2px;
    background: #7c3aed;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.timeline-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: #ffffff;
    border: 2px solid #7c3aed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #7c3aed;
    box-shadow: 0 0 0 6px #f8fafc, 0 4px 12px rgba(124, 58, 237, 0.15);
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-content {
    width: calc(50% - 60px);
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    position: relative;
}

/* Arrow */
.timeline-step:nth-child(odd) .timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    border-width: 10px 0 10px 10px;
    border-style: solid;
    border-color: transparent transparent transparent #ffffff;
}

.timeline-step:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent #ffffff transparent transparent;
}

.timeline-step:hover .timeline-number {
    background: #7c3aed;
    color: #ffffff;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.1), 0 8px 20px rgba(124, 58, 237, 0.3);
}

.timeline-step:hover .timeline-connector {
    opacity: 1;
}

.timeline-step:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.15);
}

.timeline-content h3 {
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
}

.timeline-content p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
}

.timeline-content strong {
    display: inline-block;
    padding: 6px 14px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.timeline-step:hover .timeline-content strong {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

/* Mobile responsive timeline */
@media (max-width: 768px) {
    .modern-timeline::before {
        left: 30px;
    }
    .timeline-step, .timeline-step:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 80px;
        position: relative;
    }
    .timeline-connector {
        display: none;
    }
    .timeline-number {
        left: 30px;
        transform: translate(-50%, -50%);
        top: 40px; /* Align near top of card */
    }
    .timeline-step:hover .timeline-number {
        transform: translate(-50%, -50%) scale(1.1);
    }
    .timeline-content {
        width: 100%;
        margin-top: 0;
    }
    /* Hide arrows on mobile for cleaner look */
    .timeline-step:nth-child(odd) .timeline-content::before,
    .timeline-step:nth-child(even) .timeline-content::before {
        display: none;
    }
}

/* Drawer SVG Icons Alignment */
.menu-toggle {
    align-items: center;
    justify-content: center;
    color: var(--ink);
}
.drawer-top button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--ink);
}
.menu-toggle svg, .drawer-top button svg {
    transition: transform 0.3s ease;
}
.menu-toggle:hover svg, .drawer-top button:hover svg {
    transform: scale(1.1);
}
@media(max-width:900px) {
    .menu-toggle {
        display: flex !important;
    }
}

/* Original Process Grid */
.process-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    list-style: none !important;
    margin: 0;
    border-top: none !important;
    gap: 30px;
    padding: 40px 0 !important;
    perspective: 2000px; /* For GSAP Flip Animation */
}

/* Premium Card UI for Process Grid */
.process-grid li {
    background: #ffffff;
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.process-grid li:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.3);
}
.process-grid li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    color: #7c3aed;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}
.process-grid li h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
}
.process-grid li p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}
.process-grid li strong {
    display: inline-block;
    padding: 6px 14px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
}

@media (min-width: 769px) {
    .process-grid .swiper-slide {
        width: auto !important;
        margin-right: 0 !important;
    }
}
@media (max-width: 768px) {
    .process-grid {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* ==========================================================================
   Our Perspective Section UI
   ========================================================================== */
.perspective-section-wrapper {
    padding-top: 20px !important; /* Move closer to hero */
}
.perspective-card {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 60px 80px;
    box-shadow: 0 30px 60px rgba(124, 58, 237, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    overflow: hidden;
    margin: 0 auto;
    max-width: 1100px;
}
.perspective-bg-orb {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(124, 58, 237, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}
.perspective-content {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}
.perspective-header {
    flex: 1;
}
.perspective-header span {
    display: inline-block;
    color: #7c3aed;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    background: #f5f3ff;
    padding: 8px 16px;
    border-radius: 50px;
}
.perspective-header h2 {
    font-size: 3rem;
    line-height: 1.1;
    color: #0f172a;
    font-weight: 800;
    margin: 0;
}
.perspective-body {
    flex: 1;
    padding-top: 10px;
}
.perspective-body p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 24px;
}
.perspective-body p:last-child {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: #64748b;
}

@media (max-width: 992px) {
    .perspective-content {
        flex-direction: column;
        gap: 40px;
    }
    .perspective-card {
        padding: 40px;
    }
    .perspective-header h2 {
        font-size: 2.5rem;
    }
}
@media (max-width: 768px) {
    .perspective-card {
        padding: 30px 20px;
        border-radius: 24px;
    }
    .perspective-header h2 {
        font-size: 2rem;
    }
    .perspective-body p {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Global Hero Fluid Typography & Viewport Alignment (Industry Standard)
   ========================================================================== */
.home-hero,
.about-page-hero,
.work-page-hero,
.shopify-page-hero,
.contact-page-hero,
.blog-hero,
.page-template-page-services .services-hero,
.case-hero {
    min-height: 100vh !important;
    min-height: 100svh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding-top: 84px !important; /* Exactly the height of the fixed header */
    padding-bottom: 0 !important;
}

/* Ensure inner container grows and handles the layout natively */
.home-hero .container,
.about-page-hero .container,
.work-page-hero .container,
.shopify-page-hero .container,
.contact-page-hero .container,
.blog-hero .container,
.page-template-page-services .services-hero .container,
.case-hero .container {
    display: grid !important;
    align-items: center !important;
    align-content: center !important;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Fluid Typography for Hero Headings */
.home-hero h1,
.about-page-hero h1,
.work-page-hero h1,
.shopify-page-hero h1,
.contact-page-hero h1,
.blog-hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 5.5rem) !important;
    line-height: 1.05 !important;
    margin-top: 0 !important;
    max-width: 800px;
}
.page-template-page-services .services-hero h1 {
    font-size: clamp(2.5rem, 4.5vw, 4.8rem) !important;
    line-height: 1.05 !important;
    margin-top: 0 !important;
    max-width: 700px;
}

/* Fluid Typography for Hero Descriptions */
.home-hero__copy > p,
.about-page-hero__copy > p,
.work-page-hero__copy > p,
.shopify-page-hero__copy > p,
.contact-page-hero__copy > p,
.blog-hero__copy > p,
.page-template-page-services .services-hero__copy > p {
    font-size: clamp(1rem, 1.4vw, 1.4rem) !important;
    margin-bottom: 40px !important;
    max-width: 650px;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .home-hero,
    .about-page-hero,
    .work-page-hero,
    .shopify-page-hero,
    .contact-page-hero,
    .blog-hero,
    .page-template-page-services .services-hero,
    .case-hero {
        padding-top: 85px !important; /* Slightly tighter on mobile to clear 72px header */
    }
}
/* Fix Services visual composition tearing apart on tall/100vh screens */
@media (min-width: 901px) {
    .page-template-page-services .services-hero__visual {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .page-template-page-services .services-hero__halo {
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
    }
    .page-template-page-services .services-hero__character {
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -35%) !important;
    }
    .page-template-page-services .services-hero__chrome--ring {
        top: 15% !important;
        left: 15% !important;
    }
    .page-template-page-services .services-hero__chrome--star {
        bottom: 15% !important;
        right: 15% !important;
    }
    .page-template-page-services .services-hero__spring {
        bottom: 20% !important;
        left: 15% !important;
    }
}

/* Prevent Contact Hero Visual from stretching vertically and tearing composition */
.page-template-page-contact .contact-hero-visual {
    max-height: 450px !important;
}
@media (max-width: 1100px) {
    .page-template-page-contact .contact-hero-visual {
        transform: scale(0.95) !important; /* Scale it down slightly on tablets to prevent overlapping text */
    }
}
/* Prevent Blog Hero Visual from stretching vertically and tearing composition */
.page-template-page-blog .blog-hero-visual {
    max-height: 450px !important;
}
@media (max-width: 1100px) {
    .page-template-page-blog .blog-hero-visual {
        transform: scale(0.95) !important; /* Scale it down slightly on tablets to prevent overlapping text */
    }
}
