html {
    scroll-behavior: smooth;
    background-color: #1B263B;
    min-height: 100%;
    -webkit-overflow-scrolling: touch;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #1B263B;
    min-height: 100%;
    position: relative;
    font-family: 'Inter', sans-serif;
    -webkit-overflow-scrolling: touch;
}

/* Enable momentum scrolling on all scrollable containers for iOS Safari */
[class*="overflow-y-auto"],
[class*="overflow-x-auto"],
.overflow-y-auto,
.overflow-x-auto,
.no-scrollbar,
.events-container-touch {
    -webkit-overflow-scrolling: touch;
}

/* Promote backdrop-blur elements to hardware layers to prevent iOS WebKit scroll stutter */
.backdrop-blur-sm,
.backdrop-blur-md,
.backdrop-blur-lg,
[class*="backdrop-blur"] {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Montserrat', sans-serif;
}

/* Fixed full-viewport backstop: guarantees the deep-blue fill reaches the
   bottom edge of the screen even if sub-pixel zoom rounding (from the
   auto-scale script + browser zoom stacking at 110%/125%) leaves the
   document's computed height slightly taller than its rendered content. */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1B263B;
    z-index: -1;
}

/* Mobile/tablet nav auto-hide (< 1024px only). The scroll listener in
   index.js toggles this class on <header> — it already has
   transition-transform/duration-300/ease-in-out from its Tailwind classes,
   so this rule only needs to define the hidden position itself. Desktop
   (>= 1024px) never receives this class, so its nav is untouched. */
header.header-hidden {
    transform: translateY(-100%);
}

@keyframes sdb05 {
    0% {
        transform: translateY(0) rotate(-45deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(20px) rotate(-45deg);
        opacity: 0;
    }
}

.custom-card-title {
    color: #262626;
    font-size: 1.25rem;
    line-height: normal;
    font-weight: 700;
    margin-bottom: 0.5em;
}

.custom-small-desc {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5em;
    color: #452c2c;
}

.custom-go-corner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 2em;
    height: 2em;
    overflow: hidden;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #6293c8, #384c6c);
    border-radius: 0 4px 0 32px;
}

.custom-go-arrow {
    margin-top: -4px;
    margin-right: -4px;
    color: white;
    font-family: courier, sans;
}

.custom-card {
    display: block;
    position: relative;
    max-width: 300px;
    height: 100%;
    background-color: #f2f8f9;
    border-radius: 10px;
    padding: 2em 1.2em;
    margin: 12px;
    text-decoration: none;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(to bottom, #c3e6ec, #a7d1d9);
    font-family: 'Inter', sans-serif;
}

.custom-card:before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -16px;
    right: -16px;
    background: linear-gradient(135deg, #364a60, #384c6c);
    height: 32px;
    width: 32px;
    border-radius: 32px;
    transform: scale(1);
    transform-origin: 50% 50%;
    transition: transform 0.35s ease-out;
}

.custom-card:hover:before {
    transform: scale(28);
}

.custom-card:hover .custom-small-desc {
    transition: all 0.5s ease-out;
    color: rgba(255, 255, 255, 0.8);
}

.custom-card:hover .custom-card-title {
    transition: all 0.5s ease-out;
    color: #ffffff;
}

@media (min-width: 768px) {
    .hide-on-desktop {
        display: none !important;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-scaleIn {
    animation: scaleIn 0.3s ease-out forwards;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #4CAF50;
    animation: circle-scale-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes circle-scale-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.icon-line {
    height: 5px;
    background-color: #4CAF50;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

@keyframes icon-line-tip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }

    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }

    70% {
        width: 50px;
        left: -8px;
        top: 37px;
    }

    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }

    100% {
        width: 25px;
        left: 14px;
        top: 46px;
    }
}

@keyframes icon-line-long {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }

    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }

    84% {
        width: 55px;
        right: 0px;
        top: 35px;
    }

    100% {
        width: 47px;
        right: 8px;
        top: 38px;
    }
}

:root {
    --preloader-bg: #0c1929;
    --preloader-navy: #1A2B4C;
    --preloader-blue: #3A5578;
    --preloader-gold: #FFCA4B;
    --preloader-ring-size: 140px;
    --preloader-circumference: 339.29;

    --accent-blue: #1A2B4C;
    --accent-blue-hover: #0F1B30;
    --accent-gold: #D4AF37;
    --accent-gold-hover: #AA8B2C;
    --accent-teal: #00A88F;
    --accent-teal-hover: #008772;
    --accent-wine: #8B0000;
    --accent-wine-hover: #6B1D2F;

    --theme-accent: var(--accent-blue);
    --theme-accent-hover: var(--accent-blue-hover);
    --theme-accent-rgb: 26, 43, 76;
}

body.theme-corporate {
    --theme-accent: var(--accent-blue);
    --theme-accent-hover: var(--accent-blue-hover);
    --theme-accent-rgb: 26, 43, 76;
}

body.theme-banking {
    --theme-accent: var(--accent-gold);
    --theme-accent-hover: var(--accent-gold-hover);
    --theme-accent-rgb: 212, 175, 55;
}

body.theme-planning {
    --theme-accent: var(--accent-teal);
    --theme-accent-hover: var(--accent-teal-hover);
    --theme-accent-rgb: 0, 168, 143;
}

body.theme-legal {
    --theme-accent: var(--accent-wine);
    --theme-accent-hover: var(--accent-wine-hover);
    --theme-accent-rgb: 139, 0, 0;
}

#preloader {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, #132744 0%, var(--preloader-bg) 70%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    filter: blur(0px);
    touch-action: none;
    overflow: hidden;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.08);
    filter: blur(6px);
    pointer-events: none;
}

.preloader-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.preloader-ring-wrapper {
    position: relative;
    width: var(--preloader-ring-size);
    height: var(--preloader-ring-size);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(58, 85, 120, 0.3));
    will-change: transform;
    animation: ringSpin 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
    transform-origin: center;
    transform: translateZ(0);
}

@keyframes ringSpin {
    0% {
        transform: rotate(-90deg) translateZ(0);
    }

    100% {
        transform: rotate(270deg) translateZ(0);
    }
}

.preloader-ring-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 3;
}

.preloader-ring-progress {
    fill: none;
    stroke: var(--preloader-blue);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: var(--preloader-circumference);
    stroke-dashoffset: var(--preloader-circumference);
    transition: stroke-dashoffset 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    filter: drop-shadow(0 0 6px rgba(58, 85, 120, 0.5));
}

.preloader-logo {
    width: 92px;
    height: auto;
    position: relative;
    z-index: 2;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes rayUnfurl {
    0% {
        opacity: 0;
        transform: translateY(6px) translateZ(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

@keyframes breathePulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.wing-ray {
    fill: #FFCA4B;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: 50% 100%;
    will-change: opacity, transform;
    transform: translateZ(0);
    animation: rayUnfurl 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards, breathePulse 2s ease-in-out infinite;
}

#ray-center,
#ray-l1,
#ray-r1 {
    animation-delay: 0.0s, 0.5s;
}

#ray-l2,
#ray-r2 {
    animation-delay: 0.1s, 0.6s;
}

#ray-l3,
#ray-r3 {
    animation-delay: 0.2s, 0.7s;
}

#ray-l4,
#ray-r4 {
    animation-delay: 0.3s, 0.8s;
}

#ray-l5,
#ray-r5 {
    animation-delay: 0.4s, 0.9s;
}

.preloader-wordmark {
    width: 250px;
    height: auto;
    overflow: visible !important;
    margin-top: 1.5rem;
    -webkit-mask-image: linear-gradient(115deg,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.6) 17%,
            rgba(255, 255, 255, 1) 25%,
            rgba(255, 255, 255, 0.6) 33%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0.6) 67%,
            rgba(255, 255, 255, 1) 75%,
            rgba(255, 255, 255, 0.6) 83%,
            rgba(255, 255, 255, 0.6) 100%);
    mask-image: linear-gradient(115deg,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.6) 17%,
            rgba(255, 255, 255, 1) 25%,
            rgba(255, 255, 255, 0.6) 33%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0.6) 67%,
            rgba(255, 255, 255, 1) 75%,
            rgba(255, 255, 255, 0.6) 83%,
            rgba(255, 255, 255, 0.6) 100%);
    -webkit-mask-size: 200% 100%;
    mask-size: 200% 100%;
    will-change: mask-position, opacity, transform;
    transform: translateZ(0);
    /* 入场动画与循环动画通过逗号链式结合：0.3s起步执行 0.7s 斜向擦除进场，随后无缝切换为 2s 连续 Sweep 循环 */
    animation: shimmerSweep 2s linear 1.2s infinite;
}


/* 2. 每一个字：只用 opacity 做淡入，千万不要碰 transform（保护 SVG 自带定位） */
.wm-letter {
    opacity: 1;
    /* 组保持可见，由内部 path 控制进场 */
}

/* 保留老板极其丝滑的逐字纵向展开进场 */
.wm-letter path {
    fill: #F0F4F8;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: letterRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes letterRise {
    from {
        opacity: 0;
        transform: scaleY(0.4);
    }

    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* 4. 逐字递进延迟（Stagger），让字从左到右依次显现 */
.preloader-wordmark .wm-letter:nth-child(1) path {
    animation-delay: 0.10s;
}

.preloader-wordmark .wm-letter:nth-child(2) path {
    animation-delay: 0.11s;
}

.preloader-wordmark .wm-letter:nth-child(3) path {
    animation-delay: 0.12s;
}

.preloader-wordmark .wm-letter:nth-child(4) path {
    animation-delay: 0.13s;
}

.preloader-wordmark .wm-letter:nth-child(5) path {
    animation-delay: 0.14s;
}

.preloader-wordmark .wm-letter:nth-child(6) path {
    animation-delay: 0.15s;
}

.preloader-wordmark .wm-letter:nth-child(7) path {
    animation-delay: 0.16s;
}

.preloader-wordmark .wm-letter:nth-child(8) path {
    animation-delay: 0.17s;
}

.preloader-wordmark .wm-letter:nth-child(9) path {
    animation-delay: 0.18s;
}

.preloader-wordmark .wm-letter:nth-child(10) path {
    animation-delay: 0.19s;
}

.preloader-wordmark .wm-letter:nth-child(11) path {
    animation-delay: 0.20s;
}

.preloader-wordmark .wm-letter:nth-child(12) path {
    animation-delay: 0.21s;
}

.preloader-wordmark .wm-letter:nth-child(13) path {
    animation-delay: 0.22s;
}

.preloader-wordmark .wm-letter:nth-child(14) path {
    animation-delay: 0.23s;
}

.preloader-wordmark .wm-letter:nth-child(15) path {
    animation-delay: 0.24s;
}

.preloader-wordmark .wm-letter:nth-child(16) path {
    animation-delay: 0.25s;
}

.preloader-wordmark .wm-letter:nth-child(17) path {
    animation-delay: 0.26s;
}

.preloader-wordmark .wm-letter:nth-child(18) path {
    animation-delay: 0.27s;
}

/* 5. 循环光束动画 */

@keyframes shimmerSweep {
    0% {
        background-position: 0% 0;
        -webkit-mask-position: 0% 0;
        mask-position: 0% 0;
    }

    100% {
        background-position: -100% 0;
        -webkit-mask-position: -100% 0;
        mask-position: -100% 0;
    }
}

@keyframes taglineEntrance {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.preloader-tagline {
    margin-top: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    background-image: linear-gradient(115deg,
            rgba(240, 244, 248, 0.6) 0%,
            rgba(240, 244, 248, 0.6) 17%,
            rgba(240, 244, 248, 1) 25%,
            rgba(240, 244, 248, 0.6) 33%,
            rgba(240, 244, 248, 0.6) 50%,
            rgba(240, 244, 248, 0.6) 67%,
            rgba(240, 244, 248, 1) 75%,
            rgba(240, 244, 248, 0.6) 83%,
            rgba(240, 244, 248, 0.6) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    will-change: background-position, opacity, transform;
    transform: translateZ(0);
    animation: taglineEntrance 0.5s cubic-bezier(0.25, 1, 0.5, 1) 0.6s forwards, shimmerSweep 2s linear 1.1s infinite;
}

#preloader.loaded .preloader-logo {
    transform: translateZ(0) scale(1.06);
    transition: transform 0.6s ease;
}

#preloader.loaded .preloader-ring-progress {
    stroke: var(--preloader-gold);
    filter: drop-shadow(0 0 12px rgba(255, 202, 75, 0.6));
    transition: stroke 0.4s ease, filter 0.4s ease;
}

#preloader.loaded .preloader-tagline {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 768px) {
    :root {
        --preloader-ring-size: 120px;
    }

    .preloader-logo {
        width: 72px;
    }

    .preloader-wordmark {
        width: 195px;
        margin-top: 1.1rem;
    }

    .preloader-tagline {
        font-size: 0.7rem;
        letter-spacing: 0.15em;
    }
}

@media (max-width: 480px) {
    :root {
        --preloader-ring-size: 130px;
    }

    .preloader-wordmark {
        width: 165px;
        margin-top: 1rem;
    }

    .preloader-tagline {
        font-size: 0.65rem;
        letter-spacing: 0.12em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wing-ray {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .preloader-wordmark {
        animation: none !important;
        opacity: 1 !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    .preloader-tagline {
        animation: none !important;
        opacity: 1 !important;
        background-image: none !important;
        -webkit-background-clip: initial !important;
        background-clip: initial !important;
        color: rgba(240, 244, 248, 0.9) !important;
    }

    .preloader-ring {
        animation: none !important;
        transform: rotate(-90deg) !important;
    }

    #preloader {
        transition-duration: 0.3s;
    }

    #preloader.loaded {
        transform: none;
        filter: none;
    }
}

.font-arial {
    font-family: Arial, sans-serif;
}

.clip-v-bottom {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
}

/* Testimonials — "Trust Us" section: right-pointing arrow icon anchored to
   the bottom-left corner of the two small/right-side cards (same inset as
   the card's own p-6/md:p-8 padding, so it lines up with the quote mark
   above it). Always visible (no blink) with a very subtle side-to-side
   slide. Purely decorative — pointer-events: none so it never intercepts
   the click that already swaps the card into the active/large position. */
.testimonial-view-more-hint {
    position: absolute;
    left: 24px;
    bottom: 24px;
    color: #B0B8C6;
    pointer-events: none;
    user-select: none;
}

@media (min-width: 768px) {
    .testimonial-view-more-hint {
        left: 32px;
        bottom: 32px;
    }
}

.testimonial-view-more-hint svg {
    width: 28px;
    height: 28px;
    animation: testimonialHintSlide 1.6s ease-in-out infinite;
}

@keyframes testimonialHintSlide {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

/* Testimonials — bulletproof mobile rounded-corner compositing fix.
   Fixes a bug where the card's top/side corners render clipped, squared-off,
   or missing on mobile during scroll. Root cause: mobile browsers (WebKit
   AND many Chromium/WebView-based browsers) rasterize a transformed element
   into its own composite layer using an integer-rounded layer rect BEFORE
   the border-radius clip is applied — so the corners get compositied as if
   they were square, then the radius "catches up" a frame later (or not at
   all on some engines). Scoped ONLY to .testimonial-card — no other
   elements, carousels, or forms are touched. */
.testimonial-card {
    /* Explicit GPU layer isolation, as requested: promote the card to its
       own hardware-accelerated layer up front so the browser never has to
       improvise a layer boundary mid-scroll. */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
    isolation: isolate;

    /* Keep border-radius + overflow so this still works as a normal clip
       for browsers/engines that handle the combo correctly. */
    border-radius: 30px;
    overflow: hidden;

    /* clip-path is the actual bulletproof fix for the corner-squaring bug:
       unlike overflow+border-radius, clip-path is evaluated as a vector
       mask at paint time on the SAME layer as the transform, so it can
       never be "out of sync" with the composited layer rect the way
       overflow-clipping can. This is what makes corners survive scroll
       compositing on both WebKit and Chromium/WebView engines. */
    clip-path: inset(0 round 30px);
    -webkit-clip-path: inset(0 round 30px);

    /* Extra safety net for older WebKit builds that still mis-time the
       clip-path/overflow combo during compositing. */
    -webkit-mask-image: -webkit-radial-gradient(white, black);

    /* Tells the browser the card's paint never escapes its own box, so it
       doesn't need to consider siblings when deciding the layer's clip
       boundary — removes another source of the "square flash". */
    contain: paint;
}

/* Inner video/media must inherit the radius and stay on the same layer
   as the card — do NOT give these their own will-change, or they can be
   promoted to an independent layer that ignores the parent's mask/clip. */
.testimonial-card video,
.testimonial-card img,
.testimonial-card iframe {
    border-radius: inherit;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes spin-pause {
    0% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.animate-spin-pause {
    display: inline-block;
    animation: spin-pause 4s ease-in-out infinite;
    transform-origin: center;
}

.hero-gradient-custom {
    background: linear-gradient(90deg,
            #FFFFFF 0%,
            #FFFFFF 25%,
            rgba(255, 255, 255, 0.99) 30%,
            rgba(255, 255, 255, 0.95) 35%,
            rgba(255, 255, 255, 0.88) 40%,
            rgba(255, 255, 255, 0.78) 45%,
            rgba(255, 255, 255, 0.65) 50%,
            rgba(255, 255, 255, 0.5) 55%,
            rgba(255, 255, 255, 0.35) 60%,
            rgba(255, 255, 255, 0.22) 65%,
            rgba(255, 255, 255, 0.12) 70%,
            rgba(255, 255, 255, 0.05) 75%,
            rgba(255, 255, 255, 0) 85%) !important;
}

@media (min-width: 1280px) {
    .hero-gradient-custom {
        background: linear-gradient(90deg, #FFFFFF 0%, #FFFFFF 48%, rgba(255, 255, 255, 0) 75%) !important;
    }
}

@media (orientation: landscape) and (min-width: 768px) and (max-width: 1440px) {
    .hero-image-wrapper {
        width: 60% !important;
    }

    .hero-content-wrapper {
        width: 40% !important;
        padding-left: 0 !important;
        max-width: none !important;
    }
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* "Life at Wish Group" event carousel — the track is moved with
   transform: translate3d() (GPU-composited) instead of native scrollLeft,
   so it never triggers layout. will-change + backface-visibility hidden
   promote it to its own compositor layer and avoid flicker on Safari/iOS. */
#events-track {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.event-item {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

body.no-scroll #backToTop {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.perspective-1000 {
    perspective: 1000px;
}

.ease-out-back {
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wish-card {
    will-change: transform, opacity, z-index;
    transform-origin: bottom center;
}

.wish-card.pos-front {
    z-index: 30;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.wish-card.pos-left {
    z-index: 20;
    transform: translate3d(-40px, -20px, -50px) rotate(-10deg) scale(0.92);
    opacity: 0.9;
    pointer-events: none;
}

.wish-card.pos-right {
    z-index: 10;
    transform: translate3d(40px, -20px, -50px) rotate(10deg) scale(0.92);
    opacity: 0.9;
    pointer-events: none;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wish-card.sliding-out-right {
    transform: translate3d(120%, -50px, 0) rotate(15deg) scale(0.9) !important;
    opacity: 0 !important;
    z-index: 100 !important;
}

.wish-card.sliding-out-left {
    transform: translate3d(-120%, -50px, 0) rotate(-15deg) scale(0.9) !important;
    opacity: 0 !important;
    z-index: 100 !important;
}

@keyframes swipeHintPulseLeft {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(0, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-5px, -50%) scale(1.1);
    }
}

@keyframes swipeHintPulseRight {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(0, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(5px, -50%) scale(1.1);
    }
}

.swipe-hint-left {
    animation: swipeHintPulseLeft 2s infinite ease-in-out;
}

.swipe-hint-right {
    animation: swipeHintPulseRight 2s infinite ease-in-out;
}

.wish-card button {
    transition: all 0.3s ease;
}

.wish-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.wish-card button:active {
    transform: translateY(0);
}

.wish-card img {
    filter: saturate(1.1) brightness(0.95);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Services Section — Card v2 (hover / tap reveal design, full breakpoint set)

   Grid columns (matches services_full_breakpoint_states.html):
     - Mobile portrait   (<640px):           1 column
     - Mobile landscape  (640–1023px):       2 columns
     - iPad portrait     (640–1023px):       2 columns  (same rule as above)
     - iPad landscape    (>=1024px):         3 columns
     - Desktop           (>=1024px):         3 columns  (same rule as above)
   Tailwind's sm(640)/lg(1024) breakpoints line up exactly with the above
   pairs, so column count only needs "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3"
   in the HTML — no separate md/xl override is needed for column count.

   Card states (identical structure on every breakpoint — mobile, iPad and
   desktop all use the same full-photo tile with a bottom bar):
     - Rest: bottom bar (~75% opacity navy) with gold service name + "Learn
       More" and a downward arrow, over the fully-visible background photo.
     - Hover (desktop/tablet pointer) or tap (touch, via .active toggled in
       index.js): an ~85%-opacity drawer covers the bottom of the card,
       replacing the bar with the service name and its bullet list, while
       the photo stays visible above it.
   ========================================================================== */

.service-card-v2 {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 0.5px solid rgba(255, 255, 255, 0.14);
    background-color: #1B263B;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 190px;
    display: block;
    cursor: pointer;
    outline: none;
    transition: height 0.35s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Textured deep-blue background photo, one per service (order matches the
   markup: Banking, Risk, Legal, Tax, Investment, Estate) */
.services-grid-v2 .service-card-v2:nth-child(1) { background-image: url('../images/banking_finance.webp'); }
.services-grid-v2 .service-card-v2:nth-child(2) { background-image: url('../images/risk_management.webp'); }
.services-grid-v2 .service-card-v2:nth-child(3) { background-image: url('../images/legal_advisory.webp'); }
.services-grid-v2 .service-card-v2:nth-child(4) { background-image: url('../images/tax_advisory.webp'); }
.services-grid-v2 .service-card-v2:nth-child(5) { background-image: url('../images/investment.webp'); }
.services-grid-v2 .service-card-v2:nth-child(6) { background-image: url('../images/estate_planning.webp'); }

@media (min-width: 640px) {
    .service-card-v2 {
        height: 230px;
        border-radius: 12px;
    }
}

@media (min-width: 1024px) {
    .service-card-v2 {
        height: auto;
        aspect-ratio: 6 / 5;
    }
}

/* Lift + shadow on hover is only meaningful on devices that truly support
   hover (mouse/trackpad). Gated behind (hover: hover) so touch devices
   don't get a "stuck" hover state after a tap. */
@media (hover: hover) and (pointer: fine) {
    .service-card-v2:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    }
}

.service-card-v2:focus-visible,
.service-card-v2.active {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* Top-left faint index number watermark */
.service-v2-number {
    position: absolute;
    top: 6px;
    left: 10px;
    font-size: 30px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.06);
    margin: 0;
    line-height: 1;
    pointer-events: none;
    z-index: 1;
}

@media (min-width: 640px) {
    .service-v2-number {
        font-size: 42px;
    }
}

@media (min-width: 1024px) {
    .service-v2-number {
        font-size: 52px;
    }
}

/* Rest state: bottom title bar, shown on every breakpoint */
.service-v2-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: rgba(27, 38, 59, 0.75);
    z-index: 2;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

@media (min-width: 640px) {
    .service-v2-bar {
        padding: 14px 16px;
    }
}

.service-v2-title {
    color: #FFCA4B;
    font-size: 16px;
    margin: 0 0 3px;
    font-weight: 500;
}

.service-v2-badge {
    display: block;
    color: rgba(255, 202, 75, 0.8);
    font-size: 9px;
    font-weight: 400;
}

@media (min-width: 640px) {
    .service-v2-badge {
        font-size: 10px;
    }
}

/* "Learn More" + downward arrow — shown at rest on every breakpoint */
.service-v2-cta {
    display: flex;
    align-items: center;
    gap: 3px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

.service-v2-cta i {
    font-size: 14px;
}

/* Hover / tap reveal drawer */
.service-v2-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 70%;
    padding: 10px 14px;
    background: rgba(27, 38, 59, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 3;
    overflow-y: auto;
}

@media (min-width: 640px) {
    .service-v2-panel {
        padding: 14px 16px;
    }
}

/* Panel reveal: on real hover-capable devices, :hover opens it. On touch
   devices (no true hover), only .active — toggled by index.js on tap —
   controls it, so a second tap on an already-open card correctly closes it
   instead of getting stuck open via a "sticky" touch-simulated :hover. */
@media (hover: hover) and (pointer: fine) {
    .service-card-v2:hover .service-v2-panel {
        opacity: 1;
        visibility: visible;
    }

    .service-card-v2:hover .service-v2-bar {
        opacity: 0;
        visibility: hidden;
    }
}

.service-card-v2:focus-visible .service-v2-panel,
.service-card-v2.active .service-v2-panel {
    opacity: 1;
    visibility: visible;
}

.service-card-v2:focus-visible .service-v2-bar,
.service-card-v2.active .service-v2-bar {
    opacity: 0;
    visibility: hidden;
}

.service-v2-panel-title {
    color: #FFCA4B;
    font-size: 16px;
    margin: 0 0 5px;
    font-weight: 500;
}

.service-v2-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-v2-list li {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin: 0 0 3px;
}

.service-v2-list li::before {
    content: '\00b7\00a0';
}

/* ==========================================================================
   Hero background sphere — mobile portrait "arch" treatment
   Scope: ONLY <768px width AND portrait orientation.

   ROOT CAUSE OF THE PREVIOUS FAILED ATTEMPT:
   hero-orb.js calls renderer.setSize(container.clientWidth, container.clientHeight)
   both on load AND on every 'resize' event. Three.js's setSize() writes
   inline style.width / style.height directly onto <canvas id="hero-orb-canvas">.
   Inline styles beat ANY external stylesheet selector (including #id
   selectors) unless the stylesheet rule carries !important. That's why the
   canvas snapped straight back to 100% of the container and nothing visibly
   changed. Every property below that Three.js can touch (width/height) is
   now flagged !important so it always wins, no matter how many times the
   JS re-applies its inline style on resize/orientation change.

   Nothing in hero-orb.js, index.js, or any other breakpoint is touched.
   ========================================================================== */
@media (max-width: 767px) and (orientation: portrait) {

    #hero-canvas-container {
        position: relative !important;
        overflow: hidden !important;
        /* height and margin-top create a clean top gap below header and clip to top half of dome */
        height: 32vh !important;
        min-height: 220px !important;
        margin-top: 1.75rem !important;

        /* Soft top fade: the mask is painted AFTER the overflow clip, on the
           container (not the canvas), so it fades the already-cropped arch
           rather than fighting the enlarge/position rules on #hero-orb-canvas
           above. transparent at the very top -> fully opaque by 22% down,
           so the peak of the arch dissolves into the white background
           instead of ending in a hard line. */
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 10%, #000 22%, #000 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 10%, #000 22%, #000 100%);
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
    }

    #hero-orb-canvas {
        width: 100% !important;
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }
}

/* =============================================================
   Styles migrated from <style> blocks and inline style="" attributes
   previously embedded in index.html
   ============================================================= */

/* ===== Extracted inline <style> block 1 from index.html ===== */
    body {
      font-family: 'Inter', sans-serif;
    }

    /* Scroll Float Animation Removed */

    /* Carousel Animation */
    .carousel {
      --items: 8;
      --carousel-duration: 40s;
      --carousel-width: 100%;
      --carousel-item-width: 280px;
      --carousel-item-height: 200px;
      --carousel-item-gap: 2rem;

      position: relative;
      width: var(--carousel-width);
      height: var(--carousel-item-height);
      overflow: hidden;
      /* mask-image: linear-gradient(to right, transparent, black 10% 90%, transparent); */
    }

    @media (width > 600px) {
      .carousel {
        --carousel-duration: 30s;
      }
    }

    .carousel:hover .carousel-item {
      animation-play-state: paused;
    }

    .carousel-item {
      position: absolute;
      top: 0;
      left: calc(100% + var(--carousel-item-gap));
      width: var(--carousel-item-width);
      height: var(--carousel-item-height);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      cursor: pointer;
      transition: transform 0.3s;

      /* animation optimization */
      will-change: transform;
      transform: translate3d(0, 0, 0);
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      -webkit-perspective: 1000px;
      perspective: 1000px;
      image-rendering: -webkit-optimize-contrast;
      animation-name: marquee;
      animation-duration: var(--carousel-duration);
      animation-timing-function: linear;
      animation-iteration-count: infinite;
      animation-delay: calc(var(--carousel-duration) / var(--items) * 1 * var(--i) * -1);
    }

    .carousel-item:hover {
      transform: translateY(-5px);
    }

    /* Active Menu Item State */
    .nav-link.active {
      background-color: rgba(var(--theme-accent-rgb), 0.1) !important;
      /* Soft backdrop */
      color: var(--theme-accent) !important;
      /* Dynamic theme accent text */
      font-weight: 600;
      text-decoration: underline;
      text-decoration-thickness: 2px;
      text-underline-offset: 4px;
    }

    .nav-link:hover {
      color: var(--theme-accent) !important;
      text-decoration: underline;
      text-decoration-thickness: 2px;
      text-underline-offset: 4px;
    }

    /* Unified Main Nav Link Styling
       One shared class for every top-level nav item (About, Services,
       Why Us, Contact, Careers, Reach Us) so font size, padding, and
       typography are identical across all of them, on every breakpoint. */
    .main-nav-link {
      display: block;
      width: 100%;
      box-sizing: border-box;
      text-align: left;
      text-decoration: none;
      font-family: inherit;
      font-weight: 400;
      font-size: 1.5rem;
      /* mobile size, matches previous text-2xl */
      color: #333333;
      padding: 0.75rem 0.875rem;
      /* matches previous py-3 px-3.5 */
      border-radius: 0;
      transition: all 0.3s ease-in-out;
    }

    .main-nav-link:hover,
    .main-nav-link:active {
      background-color: #e0f0ff;
      color: #1A2B4C;
    }

    @media (min-width: 1024px) {
      .main-nav-link {
        display: inline-block;
        width: auto;
        font-size: 16px;
        padding: 0.5rem 0.875rem;
        /* matches previous py-2 px-3.5 */
        border-radius: 0.5rem;
      }
    }

    /* Hamburger Animation & Mobile Menu */
    .hamburger.active span:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
    }

    body.no-scroll {
      overflow: hidden;
    }

    @media (max-width: 1023px) {
      nav {
        position: fixed !important;
        top: 70px !important;
        /* Header height offset */
        left: 0 !important;
        width: 100vw !important;
        height: calc(100vh - 70px) !important;
        height: calc(100dvh - 70px) !important;
        background-color: white;
        z-index: 40 !important;
        overflow-y: auto;

        /* Transition Logic */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;

        /* Layout */
        display: flex;
        flex-direction: column;
        justify-content: flex-start !important;
        align-items: center;
        padding-top: 30px !important;
        /* Reduced from 100px since we offset top */
        padding-left: 0 !important;
      }

      nav.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
      }
    }

    /* Hide Floating Menu when Mobile Menu is open */
    body.no-scroll #floatingWrapper {
      display: none !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }

    .carousel-item:nth-child(1) {
      --i: 0;
    }

    .carousel-item:nth-child(2) {
      --i: 1;
    }

    .carousel-item:nth-child(3) {
      --i: 2;
    }

    .carousel-item:nth-child(4) {
      --i: 3;
    }

    .carousel-item:nth-child(5) {
      --i: 4;
    }

    .carousel-item:nth-child(6) {
      --i: 5;
    }

    .carousel-item:nth-child(7) {
      --i: 6;
    }

    .carousel-item:nth-child(8) {
      --i: 7;
    }

    @keyframes marquee {
      100% {
        transform: translate3d(calc((var(--items) * (var(--carousel-item-width) + var(--carousel-item-gap))) * -1), 0, 0);
      }
    }

    @media (min-width: 1024px) {
      #hero {
        /* Force hero to physical 100dvh by compensating for document zoom */
        height: calc(100dvh / var(--zoom-level, 1)) !important;
        min-height: calc(100dvh / var(--zoom-level, 1)) !important;
      }
    }


    /* --- "Life at Wish Group" Event Tabs Customization --- */
    .event-tab {
      position: relative;
    }

    /* Active State Colors - Unified Brand Yellow */
    .event-tab.active {
      background: linear-gradient(135deg, #FFD54F 0%, #FFB300 100%) !important;
      /* Brand Yellow Gradient */
      color: #1A2B4C !important;
      /* Dark Navy Text for contrast */
      border: none !important;
      box-shadow: 0 10px 20px -5px rgba(255, 179, 0, 0.4);
    }

    /* Icon Pop-up Animation */
    .event-tab.active::after {
      font-family: "Font Awesome 6 Free";
      font-weight: 900;
      position: absolute;
      right: -8px;
      top: -12px;
      transform: scale(0);
      background-color: #1A2B4C;
      /* Professional Dark Navy to contrast the yellow */
      color: #FFCA4B;
      /* Yellow icon */
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.85rem;
      animation: popIcon 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
      pointer-events: none;
      z-index: 10;
      box-shadow: 0 4px 6px rgba(99, 102, 241, 0.3);
    }

    .event-tab.active[data-category="charity"]::after {
      content: "\f4c4";
      /* hand-holding-heart */
    }

    .event-tab.active[data-category="celebration"]::after {
      content: "\f005";
      /* star */
    }

    .event-tab.active[data-category="team"]::after {
      content: "\f0c0";
      /* users */
    }

    .event-tab.active[data-category="training"]::after {
      content: "\f0eb";
      /* lightbulb */
    }

    @keyframes popIcon {
      0% {
        transform: scale(0) translateY(10px);
        opacity: 0;
      }

      100% {
        transform: scale(1) translateY(0);
        opacity: 1;
      }
    }


    @media (max-width: 767px) {
      #wishStoriesStack {
        max-width: 260px !important;
        aspect-ratio: 3/4 !important;
        /* Balanced 3:4 ratio */
        margin-bottom: 30px;
      }

      .wish-card {
        border-radius: 28px !important;
      }

      .wish-card h3 {
        font-size: 1rem !important;
        margin-bottom: 4px !important;
      }

      .wish-card p {
        font-size: 9px !important;
        line-height: 1.3 !important;
        margin-bottom: 2px !important;
      }

      .wish-card .p-6 {
        padding: 1rem 0.8rem !important;
      }

      .wish-card .wish-progress-bar-container {
        margin-bottom: 6px !important;
      }

      .wish-card button {
        padding: 0.5rem !important;
        /* Very thin to fit */
        font-size: 11px !important;
        margin-bottom: 2px !important;
      }

      /* Fix fan-style overflow - tight spread */
      .wish-card.pos-left {
        transform: translate3d(-15px, -10px, -50px) rotate(-5deg) scale(0.9) !important;
      }

      .wish-card.pos-right {
        transform: translate3d(15px, -10px, -50px) rotate(5deg) scale(0.9) !important;
      }
    }

    @media (max-width: 480px) {
      #wishStoriesStack {
        max-width: 240px !important;
        aspect-ratio: 3/5.2 !important;
        /* Made significantly taller to fit "Know More" */
      }

      /* Mobile Only Split: 45% Image / 55% Content */
      .wish-card-img {
        height: 45% !important;
      }

      .wish-card-content {
        height: 55% !important;
        padding-top: 0.8rem !important;
        padding-bottom: 1rem !important;
      }

      .wish-card-content h3 {
        font-size: 0.95rem !important;
        margin-bottom: 3px !important;
      }

      .wish-card-content p {
        font-size: 9px !important;
        line-height: 1.25 !important;
        margin-bottom: 0px !important;
      }

      /* Thinner Progress Bar */
      .wish-card .wish-progress-bar-container {
        height: 3px !important;
        margin-bottom: 8px !important;
        margin-top: auto !important;
        /* Push towards bottom content */
      }

      /* Smaller Button */
      .wish-card-know-more-btn {
        padding: 0.45rem 1rem !important;
        font-size: 10px !important;
        max-width: 85% !important;
        margin: 0 auto 4px auto !important;
        /* Added bottom margin safety */
      }
    }
  

/* ===== Extracted inline <style> block 2 from index.html ===== */
    /* Guarantees step panels hide correctly even if the Tailwind CDN
       stylesheet loads after this page's own styles are parsed. */
    #joinForm [data-step-panel].hidden {
      display: none !important;
    }

    input[type="range"].lang-slider {
      -webkit-appearance: none;
      appearance: none;
      width: 100%;
      height: 6px;
      border-radius: 9999px;
      background: #eee;
      outline: none;
      cursor: pointer;
    }

    input[type="range"].lang-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: #1a1a1a;
      border: 3px solid #D4AF37;
      cursor: pointer;
      margin-top: -6px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    input[type="range"].lang-slider::-moz-range-thumb {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: #1a1a1a;
      border: 3px solid #D4AF37;
      cursor: pointer;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    input[type="range"].lang-slider::-moz-range-track {
      height: 6px;
      border-radius: 9999px;
      background: transparent;
    }

    .join-slider-row {
      position: relative;
      padding-top: 26px;
    }

    .join-slider-scale {
      display: flex;
      justify-content: space-between;
      margin-top: 8px;
      padding: 0 1px;
    }

    .join-slider-scale span {
      font-size: 10px;
      font-weight: 600;
      color: #b3b3b3;
      width: 14px;
      text-align: center;
    }

    .join-slider-bubble {
      position: absolute;
      top: -4px;
      transform: translateX(-50%);
      background: #D4AF37;
      color: #1a1a1a;
      font-size: 12px;
      font-weight: 800;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
      z-index: 2;
    }

    .join-slider-bubble::after {
      content: "";
      position: absolute;
      bottom: -4px;
      left: 50%;
      transform: translateX(-50%);
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      border-top: 4px solid #D4AF37;
    }

    /* Guarantees the privacy policy modal shows/hides correctly even if the
       Tailwind CDN stylesheet loads after this page's own styles are parsed. */
    #privacyPolicyModal.hidden {
      display: none !important;
    }

    #privacyPolicyModal:not(.hidden) {
      display: flex !important;
    }
  

/* ===== Extracted inline <style> block 3 from index.html ===== */
  /* Scroll down button animation */
  @keyframes sdb05 {
    0% {
      transform: translateY(0) rotate(-45deg);
      opacity: 0;
    }

    50% {
      opacity: 1;
    }

    100% {
      transform: translateY(20px) rotate(-45deg);
      opacity: 0;
    }
  }



  @media (max-width: 1023px) {
    nav {
      display: none;
    }

    nav.show {
      display: flex !important;
    }

    .hamburger {
      display: flex !important;
    }
  }

  /* Desktop - show nav, hide hamburger */
  @media (min-width: 1024px) {
    nav {
      display: flex !important;
    }

    .hamburger {
      display: none !important;
    }
  }



  /* Manual Fallback for Dynamic Tailwind Classes (Fixes GitHub Pages issue) */
  @media (min-width: 768px) {
    .md\:col-span-4 {
      grid-column: span 4 / span 4;
    }

    .md\:col-span-6 {
      grid-column: span 6 / span 6;
    }

    .md\:col-span-8 {
      grid-column: span 8 / span 8;
    }

    .md\:col-span-12 {
      grid-column: span 12 / span 12;
    }

    .md\:row-span-2 {
      grid-row: span 2 / span 2;
    }
  }

  .cursor-default {
    cursor: default;
  }

  .cursor-pointer {
    cursor: pointer;
  }

  /* Custom Utilities for Slider */
  .scrollbar-hide::-webkit-scrollbar {
    display: none;
  }

  .scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .cursor-grab {
    cursor: grab;
  }

  .cursor-grabbing {
    cursor: grabbing;
  }


/* ===== Utility classes for previously inline style="" attributes (index.html) ===== */
.page-header-vt {
  view-transition-name: page-header;
}

.icon-fs-14 {
  font-size: 14px;
}

.events-container-touch {
  touch-action: pan-x pan-y;
}

.growth-stack-wrap {
  padding-bottom: 20px;
}

.growth-stick-1 {
  position: sticky;
  top: 90px;
  z-index: 10;
  margin-bottom: 30px;
}

.growth-stick-2 {
  position: sticky;
  top: 110px;
  z-index: 20;
  margin-bottom: 30px;
}

.growth-stick-3 {
  position: sticky;
  top: 130px;
  z-index: 30;
  margin-bottom: 30px;
}

.growth-stick-4 {
  position: sticky;
  top: 150px;
  z-index: 40;
  margin-bottom: 10px;
}

.iframe-noborder {
  border: 0;
}

.social-icon-50 {
  width: 50px;
  height: 50px;
}

.floating-menu-vt {
  view-transition-name: floating-menu;
}

/* =============================================================
   Styles migrated from <style> blocks and inline style="" attributes
   previously embedded in contact.html
   (page-header-vt, floating-menu-vt, iframe-noborder, social-icon-50
   classes above are reused here too)
   ============================================================= */

/* ===== Extracted <style> block 1 from contact.html ===== */
    body {
      font-family: 'Inter', sans-serif;
    }

    /* Carousel Animation */
    .carousel {
      --items: 8;
      --carousel-duration: 40s;
      --carousel-width: 100%;
      --carousel-item-width: 280px;
      --carousel-item-height: 200px;
      --carousel-item-gap: 2rem;

      position: relative;
      width: var(--carousel-width);
      height: var(--carousel-item-height);
      overflow: hidden;
      /* mask-image: linear-gradient(to right, transparent, black 10% 90%, transparent); */
    }

    @media (width > 600px) {
      .carousel {
        --carousel-duration: 30s;
      }
    }

    .carousel:hover .carousel-item {
      animation-play-state: paused;
    }

    .carousel-item {
      position: absolute;
      top: 0;
      left: calc(100% + var(--carousel-item-gap));
      width: var(--carousel-item-width);
      height: var(--carousel-item-height);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      cursor: pointer;
      transition: transform 0.3s;

      /* animation */
      will-change: transform;
      animation-name: marquee;
      animation-duration: var(--carousel-duration);
      animation-timing-function: linear;
      animation-iteration-count: infinite;
      animation-delay: calc(var(--carousel-duration) / var(--items) * 1 * var(--i) * -1);
    }

    .carousel-item:hover {
      transform: translateY(-5px);
    }

    /* Active Menu Item State */
    .nav-link.active {
      background-color: rgba(var(--theme-accent-rgb), 0.1) !important;
      /* Soft backdrop */
      color: var(--theme-accent) !important;
      /* Dynamic theme accent text */
      font-weight: 600;
      text-decoration: underline;
      text-decoration-thickness: 2px;
      text-underline-offset: 4px;
    }

    .nav-link:hover {
      color: var(--theme-accent) !important;
      text-decoration: underline;
      text-decoration-thickness: 2px;
      text-underline-offset: 4px;
    }

    /* Unified Main Nav Link Styling
       One shared class for every top-level nav item (About, Services,
       Why Us, Contact, Careers, Reach Us) so font size, padding, and
       typography are identical across all of them, on every breakpoint. */
    .main-nav-link {
      display: block;
      width: 100%;
      box-sizing: border-box;
      text-align: left;
      text-decoration: none;
      font-family: inherit;
      font-weight: 400;
      font-size: 1.5rem;
      /* mobile size, matches previous text-2xl */
      color: #333333;
      padding: 0.75rem 0.875rem;
      /* matches previous py-3 px-3.5 */
      border-radius: 0;
      transition: all 0.3s ease-in-out;
    }

    .main-nav-link:hover,
    .main-nav-link:active {
      background-color: #e0f0ff;
      color: #1A2B4C;
    }

    @media (min-width: 1024px) {
      .main-nav-link {
        display: inline-block;
        width: auto;
        font-size: 16px;
        padding: 0.5rem 0.875rem;
        /* matches previous py-2 px-3.5 */
        border-radius: 0.5rem;
      }
    }

    .carousel-item:nth-child(1) {
      --i: 0;
    }

    .carousel-item:nth-child(2) {
      --i: 1;
    }

    .carousel-item:nth-child(3) {
      --i: 2;
    }

    .carousel-item:nth-child(4) {
      --i: 3;
    }

    .carousel-item:nth-child(5) {
      --i: 4;
    }

    .carousel-item:nth-child(6) {
      --i: 5;
    }

    .carousel-item:nth-child(7) {
      --i: 6;
    }

    .carousel-item:nth-child(8) {
      --i: 7;
    }

    @keyframes marquee {
      100% {
        transform: translateX(calc((var(--items) * (var(--carousel-item-width) + var(--carousel-item-gap))) * -1));
      }
    }
  

/* ===== Extracted <style> block 2 from contact.html ===== */
    /* Scroll down button animation */
    @keyframes sdb05 {
      0% {
        transform: translateY(0) rotate(-45deg);
        opacity: 0;
      }

      50% {
        opacity: 1;
      }

      100% {
        transform: translateY(20px) rotate(-45deg);
        opacity: 0;
      }
    }



    /* Hamburger Animation & Mobile Menu */
    .hamburger.active span:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
    }

    body.no-scroll {
      overflow: hidden;
    }

    @media (max-width: 1023px) {
      nav {
        position: fixed !important;
        top: 70px !important;
        /* Header height offset */
        left: 0 !important;
        width: 100vw !important;
        height: calc(100vh - 70px) !important;
        height: calc(100dvh - 70px) !important;
        background-color: white;
        z-index: 40 !important;
        overflow-y: auto;

        /* Transition Logic */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;

        /* Layout */
        display: flex;
        flex-direction: column;
        justify-content: flex-start !important;
        align-items: center;
        padding-top: 30px !important;
        padding-left: 0 !important;
      }

      nav.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
      }
    }

    /* Hide Floating Menu when Mobile Menu is open */
    body.no-scroll #floatingWrapper {
      display: none !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }

    /* Tablet & Desktop - ensure main section fills viewport */
    @media (min-width: 768px) {
      #contact {
        /* Compensate for zoom-scaling and subtract 100px spacer to fill physical height */
        min-height: calc(100vh / var(--zoom-level, 1) - 100px) !important;
      }
    }

    /* Desktop - show nav, hide hamburger */
    @media (min-width: 1024px) {
      nav {
        /* Reset mobile styles for desktop */
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        z-index: auto;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        padding-top: 0 !important;
      }

      .hamburger {
        display: none !important;
      }
    }
  


/* =============================================================
   Styles migrated from <style> block previously embedded in privacy.html
   ============================================================= */

/* ===== Extracted <style> block 1 from privacy.html ===== */
        body {
            font-family: 'Inter', sans-serif;
        }

        /* Reuse styles from index.html if needed here, mostly handled by main.css / inline */
        .prose h2 {
            font-size: 1.25rem;
            /* 20px */
            font-weight: 700;
            margin-top: 2rem;
            margin-bottom: 1rem;
            color: #1a1a1a;
        }

        .prose p {
            font-size: 10px;
            margin-bottom: 1rem;
            line-height: 1.7;
            color: #555;
        }

        .prose ul {
            font-size: 10px;
            list-style-type: disc;
            padding-left: 1.5rem;
            margin-bottom: 1rem;
            color: #555;
        }

        /* Active Menu Item State */
        .nav-link.active {
            background-color: rgba(var(--theme-accent-rgb), 0.1) !important;
            /* Soft backdrop */
            color: var(--theme-accent) !important;
            /* Dynamic theme accent text */
            font-weight: 600;
            text-decoration: underline;
            text-decoration-thickness: 2px;
            text-underline-offset: 4px;
        }

        .nav-link:hover {
            color: var(--theme-accent) !important;
            text-decoration: underline;
            text-decoration-thickness: 2px;
            text-underline-offset: 4px;
        }

        /* Unified Main Nav Link Styling
           One shared class for every top-level nav item (About, Services,
           Why Us, Contact, Careers, Reach Us) so font size, padding, and
           typography are identical across all of them, on every breakpoint. */
        .main-nav-link {
            display: block;
            width: 100%;
            box-sizing: border-box;
            text-align: left;
            text-decoration: none;
            font-family: inherit;
            font-weight: 400;
            font-size: 1.5rem;
            /* mobile size, matches previous text-2xl */
            color: #333333;
            padding: 0.75rem 0.875rem;
            /* matches previous py-3 px-3.5 */
            border-radius: 0;
            transition: all 0.3s ease-in-out;
        }

        .main-nav-link:hover,
        .main-nav-link:active {
            background-color: #e0f0ff;
            color: #1A2B4C;
        }

        @media (min-width: 1024px) {
            .main-nav-link {
                display: inline-block;
                width: auto;
                font-size: 16px;
                padding: 0.5rem 0.875rem;
                /* matches previous py-2 px-3.5 */
                border-radius: 0.5rem;
            }
        }

        /* Hamburger Animation & Mobile Menu */
        .hamburger.active span:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active span:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
        }

        body.no-scroll {
            overflow: hidden;
        }

        @media (max-width: 1023px) {
            nav {
                position: fixed !important;
                top: 70px !important;
                /* Header height offset */
                left: 0 !important;
                width: 100vw !important;
                height: calc(100vh - 70px) !important;
                height: calc(100dvh - 70px) !important;
                background-color: white;
                z-index: 40 !important;
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
                transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;

                display: flex;
                flex-direction: column;
                justify-content: flex-start !important;
                align-items: center;
                padding-top: 30px !important;
                padding-left: 0 !important;
                overflow-y: auto;
            }

            nav.show {
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
            }
        }

        /* Hide Floating Menu when Mobile Menu is open */
        body.no-scroll #floatingWrapper {
            display: none !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }
    


/* ===== Footer Brand Logo (unified across mobile/tablet + desktop, all pages) ===== */
.footer-brand-logo {
    display: block;
    width: 140px;
}

.footer-brand-logo img {
    width: 100%;
    height: auto;
    display: block;
}

@media (min-width: 1024px) {
    .footer-brand-logo {
        width: 160px;
    }
}
