/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    font-family: var(--font-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-brand-electric);
    color: var(--color-bg-dark);
    border-color: rgba(26, 26, 26, 0.18);
}

.btn-primary:hover {
    background-color: var(--color-brand-green-primary);
    transform: translateY(-2px);
    color: #FFFFFF;
    border-color: var(--color-brand-green-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-primary);
}

.btn-secondary:hover {
    border-color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 235, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 0;
    border-bottom-color: var(--color-border-primary);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    z-index: 101;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
    transition: filter var(--transition-fast);
}

.home-page .navbar:not(.scrolled) .logo-img {
    filter: brightness(0) invert(1);
}

.home-page.menu-open .navbar:not(.scrolled) .logo-img {
    filter: none;
}

.navbar.menu-open .logo-img {
    filter: none !important;
}

.nav-spacer, .menu-btn {
    width: 60px;
}

/* Nav Button */
.menu-btn {
    background: none;
    border: none;
    font-size: 32px; /* Large scale plus icon */
    line-height: 1;
    color: var(--color-text-primary);
    cursor: pointer;
    z-index: 105;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
}
.icon-plus {
    position: relative;
    width: 32px;
    height: 32px;
    display: inline-block;
    transition: transform 0.65s var(--ease-premium);
}
.icon-plus::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px; /* Thinner */
    background-color: var(--color-text-primary);
    transform: translateY(-50%);
    transition: background-color var(--transition-fast);
}
.icon-plus::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px; /* Thinner */
    height: 100%;
    background-color: var(--color-text-primary);
    transform: translateX(-50%);
    transition: background-color var(--transition-fast);
}

.home-page .navbar:not(.scrolled) .icon-plus::before,
.home-page .navbar:not(.scrolled) .icon-plus::after {
    background-color: #FFFFFF;
}

.home-page.menu-open .navbar:not(.scrolled) .icon-plus::before,
.home-page.menu-open .navbar:not(.scrolled) .icon-plus::after {
    background-color: var(--color-text-primary);
}

.navbar.menu-open .icon-plus::before,
.navbar.menu-open .icon-plus::after {
    background-color: var(--color-text-primary) !important;
}

.menu-btn.active .icon-plus {
    transform: rotate(45deg);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-bg-primary);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(100vh);
    transition: transform 0.75s var(--ease-premium);
}
.menu-overlay.is-active {
    transform: translateY(0);
}
.menu-overlay.closing .menu-nav {
    opacity: 0;
    transition: opacity 0.35s ease-out;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 800px;
    padding: 0 2rem;
    align-items: center;
    transition: opacity 0.45s ease-in;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--color-text-primary);
    text-decoration: none;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.75s var(--ease-out-premium),
                transform 0.75s var(--ease-out-premium);
}

.menu-overlay.is-active .menu-item {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Logic — 0.25s apart, clearly sequential one-by-one feel */
.menu-overlay.is-active .menu-item:nth-child(1) { transition-delay: 0.35s; }
.menu-overlay.is-active .menu-item:nth-child(2) { transition-delay: 0.60s; }
.menu-overlay.is-active .menu-item:nth-child(3) { transition-delay: 0.85s; }
.menu-overlay.is-active .menu-item:nth-child(4) { transition-delay: 1.10s; }
.menu-overlay.is-active .menu-item:nth-child(5) { transition-delay: 1.35s; }

.menu-num {
    font-size: clamp(0.9rem, 1.5vw, 1.25rem);
    font-weight: 500;
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    width: clamp(35px, 5vw, 45px);
    height: clamp(35px, 5vw, 45px);
    border: 1px solid var(--color-text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Rolling Text Animation */
.menu-text-wrapper {
    position: relative;
    overflow: hidden;
    display: block;
    height: 1.1em;
    line-height: 1.1;
}
.text-top, .text-bottom {
    display: block;
    transition: transform 0.6s var(--ease-premium);
}
/* Default (resting): top layer is black, inherits from .menu-item */
.text-top {
    color: var(--color-text-primary);
}
/* Hover-in layer: Forest Green — slides up into view on hover */
.text-bottom {
    position: absolute;
    top: 100%;
    left: 0;
    color: var(--color-brand-green-primary);
}

.menu-item:hover .text-top { transform: translateY(-100%); }
.menu-item:hover .text-bottom { transform: translateY(-100%); }

/* Hero Section */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background-color: #000000;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 28%, rgba(196, 145, 75, 0.26), transparent 0 24%),
        radial-gradient(circle at 28% 76%, rgba(122, 166, 112, 0.24), transparent 0 30%),
        linear-gradient(135deg, #010201 0%, #071008 46%, #020202 100%);
    background-size: 130% 130%, 150% 150%, 100% 100%;
    animation: hero-canvas-breathe 12s ease-in-out infinite alternate;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: -8%;
    pointer-events: none;
    z-index: 4;
    background:
        radial-gradient(circle at 50% 50%, transparent 0 44%, rgba(0, 0, 0, 0.24) 76%, rgba(0, 0, 0, 0.56) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.22));
    opacity: 1;
    transition: opacity 0.8s ease;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transform: scale(1.04);
    filter: blur(10px) saturate(0.92) contrast(0.96);
    transition:
        opacity 1.15s ease,
        transform 1.55s var(--ease-out-premium),
        filter 1.55s var(--ease-out-premium);
}

.hero-bg.is-canvas-ready .hero-canvas {
    opacity: 1;
}

.hero-bg.is-canvas-ready::before {
    opacity: 0;
}

.hero-bg.is-canvas-ready .hero-liquid,
.hero-bg.is-canvas-ready .hero-orb {
    display: none;
}

.hero-liquid {
    position: absolute;
    inset: -22%;
    display: block;
    pointer-events: none;
    transform-origin: center;
    will-change: transform, border-radius, filter;
}

.hero-liquid-one {
    z-index: 1;
    background:
        linear-gradient(112deg, transparent 0 8%, rgba(152, 196, 134, 0.40) 16%, rgba(203, 151, 80, 0.50) 24%, transparent 34%),
        linear-gradient(18deg, transparent 0 10%, rgba(10, 22, 15, 0.92) 19%, rgba(169, 128, 67, 0.58) 33%, rgba(47, 74, 52, 0.70) 47%, transparent 62%),
        linear-gradient(142deg, transparent 0 17%, rgba(124, 47, 39, 0.42) 31%, rgba(213, 163, 88, 0.56) 40%, rgba(31, 68, 47, 0.78) 53%, transparent 69%),
        radial-gradient(circle at 74% 40%, rgba(210, 157, 84, 0.44), transparent 0 19%),
        radial-gradient(circle at 30% 72%, rgba(121, 164, 111, 0.30), transparent 0 24%);
    background-size: 175% 175%, 185% 185%, 210% 210%, 110% 110%, 120% 120%;
    background-position: 42% 48%, 50% 54%, 48% 46%, center, center;
    filter: blur(30px) saturate(1.04) contrast(1.12);
    opacity: 0.98;
    animation: hero-liquid-drift 8s ease-in-out infinite alternate;
}

.hero-liquid-two {
    z-index: 2;
    background:
        conic-gradient(
            from 90deg at 50% 50%,
            rgba(0, 0, 0, 0.88),
            rgba(112, 154, 101, 0.42),
            rgba(211, 158, 83, 0.54),
            rgba(8, 12, 9, 0.92),
            rgba(126, 52, 42, 0.34),
            rgba(0, 0, 0, 0.88)
        );
    mix-blend-mode: screen;
    filter: blur(46px) saturate(0.95);
    opacity: 0.62;
    animation: hero-liquid-fold 13s ease-in-out infinite alternate;
}

.hero-orb {
    position: absolute;
    z-index: 3;
    width: min(62vw, 760px);
    aspect-ratio: 1;
    inset: -16% 13% auto auto;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.22), transparent 0 13%),
        radial-gradient(circle at 58% 45%, rgba(198, 150, 82, 0.36), transparent 0 32%),
        linear-gradient(118deg, rgba(141, 180, 124, 0.52), rgba(21, 37, 26, 0.86) 36%, rgba(198, 145, 75, 0.42) 54%, rgba(3, 3, 3, 0.94) 78%);
    box-shadow:
        inset 30px 24px 76px rgba(255, 255, 255, 0.12),
        inset -54px -64px 120px rgba(0, 0, 0, 0.88),
        0 44px 120px rgba(0, 0, 0, 0.48);
    filter: blur(0.4px) saturate(0.88);
    opacity: 0.82;
    transform: rotate(-10deg);
    animation: hero-orb-float 11s ease-in-out infinite alternate;
    transform-style: preserve-3d;
    will-change: transform, filter;
}

.hero-orb::before,
.hero-orb::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.hero-orb::before {
    background:
        radial-gradient(ellipse at 30% 18%, rgba(255, 255, 255, 0.32), transparent 0 16%),
        linear-gradient(105deg, transparent 0 36%, rgba(255, 255, 255, 0.12) 44%, transparent 58%),
        radial-gradient(circle at 68% 74%, rgba(0, 0, 0, 0.55), transparent 0 34%);
    mix-blend-mode: screen;
    animation: hero-orb-shine 6.5s ease-in-out infinite alternate;
}

.hero-orb::after {
    inset: 2%;
    background:
        linear-gradient(68deg, transparent 0 28%, rgba(154, 189, 130, 0.28) 36%, rgba(211, 158, 83, 0.24) 48%, transparent 62%),
        radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(0, 0, 0, 0.52) 78%);
    filter: blur(10px);
    opacity: 0.75;
    animation: hero-orb-surface 9s ease-in-out infinite alternate;
}

.hero:hover .hero-liquid-one {
    animation-duration: 5.5s;
}

.hero:hover .hero-liquid-two {
    animation-duration: 8s;
}

.hero:hover .hero-orb {
    filter: blur(0.2px) saturate(1.02) contrast(1.05);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 52% 50%, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.18) 52%, rgba(0, 0, 0, 0.48) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.26));
}

.hero::after {
    content: '';
    position: absolute;
    inset: -18%;
    z-index: 1;
    pointer-events: none;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E"),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04), transparent 0 42%);
    opacity: 0.30;
    mix-blend-mode: overlay;
    animation: hero-film-grain 0.48s steps(2, end) infinite;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.home-page.hero-intro-pending .hero-bg.is-canvas-ready .hero-canvas {
    opacity: 0;
    transform: scale(1.10);
    filter: blur(18px) saturate(0.75) contrast(0.9);
}

.home-page.hero-intro-pending.hero-bg-intro .hero-bg.is-canvas-ready .hero-canvas,
.home-page:not(.hero-intro-pending) .hero-bg.is-canvas-ready .hero-canvas {
    opacity: 1;
    transform: scale(1);
    filter: blur(0) saturate(1) contrast(1);
}

.home-page.hero-intro-pending .hero-content {
    opacity: 1;
    transform: none;
}

.home-page.hero-intro-pending .hero h1 {
    opacity: 0;
    transform: translateY(20px) scale(1.32);
    filter: blur(18px);
}

.home-page.hero-copy-intro .hero h1 {
    animation: hero-heading-resolve 1.35s var(--ease-out-premium) forwards;
}

.home-page.hero-intro-pending .hero-subtext,
.home-page.hero-intro-pending .hero .hero-ctas,
.home-page.hero-intro-pending .hero .scroll-indicator {
    opacity: 0;
    transform: translateY(16px);
}

.home-page.hero-copy-intro .hero-subtext,
.home-page.hero-copy-intro .hero .hero-ctas,
.home-page.hero-copy-intro .hero .scroll-indicator {
    animation: hero-supporting-copy-in 0.95s var(--ease-out-premium) forwards;
}

.home-page.hero-copy-intro .hero .hero-ctas {
    animation-delay: 0.18s;
}

.home-page.hero-copy-intro .hero .scroll-indicator {
    animation-delay: 0.32s;
}

.hero h1 {
    /* Size and tracking set globally in main.css */
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    text-shadow: 0 18px 70px rgba(0, 0, 0, 0.52);
}

.hero-subtext {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.76);
}

.hero .scroll-indicator {
    color: rgba(255, 255, 255, 0.72);
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2.75rem;
}

/* Secondary hero button: legible on the dark hero background */
.hero-ctas .btn-secondary {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.55);
    background-color: rgba(255, 255, 255, 0.04);
}

.hero-ctas .btn-secondary:hover {
    color: var(--color-text-primary);
    background-color: #FFFFFF;
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

@keyframes hero-gradient-drift {
    0% {
        transform: translate3d(-4%, -3%, 0) rotate(-4deg) scale(1.06);
        background-position: 42% 48%, 50% 54%, 48% 46%, center, center;
    }
    50% {
        transform: translate3d(3%, 4%, 0) rotate(5deg) scale(1.12);
        background-position: 64% 42%, 28% 62%, 72% 57%, center, center;
    }
    100% {
        transform: translate3d(5%, -2%, 0) rotate(-3deg) scale(1.08);
        background-position: 28% 58%, 68% 44%, 36% 62%, center, center;
    }
}

@keyframes hero-liquid-drift {
    0% {
        transform: translate3d(-5%, -4%, 0) rotate(-6deg) scale(1.05);
        border-radius: 42% 58% 56% 44% / 48% 40% 60% 52%;
        background-position: 42% 48%, 50% 54%, 48% 46%, center, center;
    }
    35% {
        transform: translate3d(4%, 3%, 0) rotate(5deg) scale(1.15);
        border-radius: 58% 42% 38% 62% / 44% 62% 38% 56%;
        background-position: 68% 36%, 28% 68%, 72% 58%, center, center;
    }
    70% {
        transform: translate3d(-1%, 6%, 0) rotate(2deg) scale(1.10);
        border-radius: 36% 64% 52% 48% / 62% 44% 56% 38%;
        background-position: 28% 64%, 70% 42%, 34% 72%, center, center;
    }
    100% {
        transform: translate3d(6%, -3%, 0) rotate(-4deg) scale(1.08);
        border-radius: 54% 46% 64% 36% / 40% 58% 42% 60%;
        background-position: 54% 38%, 58% 60%, 38% 44%, center, center;
    }
}

@keyframes hero-liquid-fold {
    0% {
        transform: translate3d(3%, -5%, 0) rotate(0deg) scale(1.02);
        opacity: 0.48;
    }
    50% {
        transform: translate3d(-4%, 4%, 0) rotate(18deg) scale(1.18);
        opacity: 0.74;
    }
    100% {
        transform: translate3d(5%, 2%, 0) rotate(-12deg) scale(1.08);
        opacity: 0.58;
    }
}

@keyframes hero-orb-float {
    0% {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(-10deg) rotateZ(-12deg) scale(1);
    }
    45% {
        transform: translate3d(-6%, 8%, 0) rotateX(8deg) rotateY(13deg) rotateZ(8deg) scale(1.09);
    }
    100% {
        transform: translate3d(4%, 12%, 0) rotateX(-5deg) rotateY(7deg) rotateZ(2deg) scale(1.04);
    }
}

@keyframes hero-orb-shine {
    0% {
        transform: translate3d(-5%, -3%, 0) rotate(-8deg);
        opacity: 0.55;
    }
    100% {
        transform: translate3d(8%, 6%, 0) rotate(16deg);
        opacity: 0.9;
    }
}

@keyframes hero-orb-surface {
    0% {
        transform: rotate(-12deg) scale(1.02);
    }
    50% {
        transform: rotate(15deg) scale(1.08);
    }
    100% {
        transform: rotate(4deg) scale(1.04);
    }
}

@keyframes hero-canvas-breathe {
    0% {
        background-position: 62% 28%, 28% 76%, center;
        filter: saturate(0.9) contrast(1);
    }
    100% {
        background-position: 46% 42%, 42% 58%, center;
        filter: saturate(1.08) contrast(1.08);
    }
}

@keyframes hero-film-grain {
    0% {
        transform: translate3d(0, 0, 0);
    }
    25% {
        transform: translate3d(-2%, 1%, 0);
    }
    50% {
        transform: translate3d(1%, -2%, 0);
    }
    75% {
        transform: translate3d(2%, 2%, 0);
    }
    100% {
        transform: translate3d(-1%, -1%, 0);
    }
}

@keyframes hero-heading-resolve {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(1.32);
        filter: blur(18px);
        text-shadow: 0 28px 90px rgba(255, 255, 255, 0.28), 0 18px 70px rgba(0, 0, 0, 0.52);
    }
    48% {
        opacity: 0.95;
        transform: translateY(4px) scale(1.07);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
        text-shadow: 0 18px 70px rgba(0, 0, 0, 0.52);
    }
}

@keyframes hero-supporting-copy-in {
    0% {
        opacity: 0;
        transform: translateY(16px);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
    }

    .hero-bg::before {
        inset: -28%;
        filter: blur(34px) saturate(1.08);
    }

    .hero-liquid {
        inset: -34%;
    }

    .hero-orb {
        width: 96vw;
        right: -26%;
        top: 3%;
        bottom: auto;
        opacity: 0.62;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg,
    .hero-liquid,
    .hero-orb,
    .hero-orb::before,
    .hero-orb::after,
    .home-page.hero-copy-intro .hero h1,
    .home-page.hero-copy-intro .hero-subtext,
    .home-page.hero-copy-intro .hero .scroll-indicator {
        animation: none;
    }

    .home-page.hero-intro-pending .hero h1,
    .home-page.hero-intro-pending .hero-subtext,
    .home-page.hero-intro-pending .hero .scroll-indicator {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* Larger button variant */
.btn-lg {
    font-size: 1.125rem;
    padding: 1.125rem 2.5rem;
}

/* Metrics Bar */
.metrics {
    padding: 4rem 0;
    background-color: var(--color-bg-primary);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.metric-item h3 {
    color: var(--color-text-primary);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 0.5rem;
}

.metric-item span {
    color: var(--color-brand-green-primary);
}

.metric-item p {
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;   /* Small all-caps label — open tracking is correct here */
    margin: 0;
}

@media (max-width: 768px) {
    .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
}
@media (max-width: 480px) {
    .metrics-grid { grid-template-columns: 1fr; }
}

/* What We Do */
.section-alternate {
    background-color: var(--color-bg-green-tint); /* Subtle forest green tint */
}

.bento-grid {
    display: none; /* Retired */
}

/* Services Editorial Section */
.services-editorial-section {
    background-color: var(--color-bg-primary);
    padding: 5rem 0;
}

.services-header-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

.services-main-title {
    /* Size, weight, tracking, line-height inherit from global h2 */
    text-align: center;
    margin: 0;
}

.service-columns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.service-col {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-card);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 235, 0.64) 42%, rgba(228, 228, 208, 0.30)),
        var(--color-bg-primary);
    border: 1px solid rgba(3, 79, 70, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        0 24px 70px rgba(26, 26, 26, 0.06);
    transition: transform 0.45s var(--ease-out-premium),
                border-color 0.45s ease,
                background 0.45s ease;
}

.service-col::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--border-radius-card) - 1px);
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.78), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(190, 242, 100, 0.16), transparent 0 30%),
        radial-gradient(circle at 18% 88%, rgba(240, 215, 255, 0.18), transparent 0 34%);
    opacity: 0.72;
}

.service-col:hover {
    transform: translateY(-8px);
    border-color: rgba(3, 79, 70, 0.34);
}

.service-col-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--border-radius-badge);
    background-color: var(--color-brand-green-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.service-col-icon svg path {
    fill: #FFFFFF;
}

.service-col-heading {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}

.service-num {
    color: var(--color-brand-green-primary);
    font-weight: 400;
    font-size: 0.85em;
}

.service-col-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

.service-col-list li {
    font-size: 0.9rem;
    color: var(--color-text-primary);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border-primary);
    line-height: 1.5;
    text-align: left;
}

.service-col-list li:first-child {
    border-top: none;
}

@media (max-width: 992px) {
    .service-columns-grid { grid-template-columns: 1fr; }
    .service-col { padding: 2rem; }
}

/* Google Reviews Section */
.reviews-section {
    background-color: var(--color-bg-primary);
}

.section-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.section-intro .section-heading {
    margin-left: auto;
    margin-right: auto;
}

/* Compact inline rating badge below carousel dots */
.google-rating-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.google-compact-stars {
    display: flex;
    gap: 2px;
    align-items: center;
}

.google-compact-score {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1;
}

.google-compact-divider {
    font-size: 13px;
    color: var(--color-border-secondary);
    line-height: 1;
}

.google-compact-text {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1;
}

/* Legacy compatibility */
.service-cards-grid { display: none; }
.services-hybrid-section { display: none; }



/* Portfolio Gallery — full viewport width, outside container */
.portfolio-gallery {
    margin-top: 3rem;
    width: 100%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px; /* Tight seam — cards feel like one unified surface */
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background-color: var(--color-bg-secondary);
    border-radius: 0; /* No radius — full-bleed grid */
}

.portfolio-item img,
.portfolio-item video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0%) brightness(1);
    transition: transform 0.9s var(--ease-out-premium),
                filter 0.75s var(--ease-premium);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    /* Dramatic vignette: heavy at bottom, significant darkness across whole card */
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.55) 40%,
        rgba(0, 0, 0, 0.15) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.55s var(--ease-premium);
}

.portfolio-overlay h3, .portfolio-overlay p {
    color: white;
    margin: 0;
    transform: translateY(20px);
    transition: transform 0.7s var(--ease-out-premium);
}

.portfolio-overlay h3 {
    font-size: clamp(1rem, 1.4vw, 1.3rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.4rem;
}

.portfolio-overlay p {
    font-size: clamp(0.75rem, 0.9vw, 0.875rem);
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* Hover: dramatic B&W + deep overlay + text centered and lifted */
.portfolio-item:hover img,
.portfolio-item:hover video {
    transform: scale(1.06);
    filter: grayscale(100%) brightness(0.65) contrast(1.1);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p { transform: translateY(0); }

/* Mobile Portfolio Swiper overrides */
@media (max-width: 768px) {
    .portfolio-gallery {
        margin-top: 2rem;
        padding: 0 1rem;
    }

    .portfolio-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .swiper-portfolio {
        display: none !important;
    }

    .portfolio-item {
        aspect-ratio: 1;
        border-radius: 18px;
        cursor: pointer;
    }

    .portfolio-item img,
    .portfolio-item video {
        filter: saturate(0.92) contrast(1.02);
    }

    .portfolio-overlay {
        justify-content: flex-end;
        align-items: flex-start;
        text-align: left;
        padding: 0.65rem;
        opacity: 1;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.68) 0%,
            rgba(0, 0, 0, 0.18) 54%,
            rgba(0, 0, 0, 0.02) 100%
        );
    }

    .portfolio-overlay h3 {
        font-size: clamp(0.62rem, 2.6vw, 0.78rem);
        line-height: 1.08;
        letter-spacing: 0;
        margin: 0;
        transform: none;
    }

    .portfolio-overlay p {
        display: none;
    }
}
@media (min-width: 769px) {
    .swiper-portfolio { display: none !important; }
}

/* GSAP Portfolio Cinematic Animation — desktop initial states */
@media (min-width: 769px) {
    /* Surrounding cards start hidden; GSAP reveals them on scroll */
    .portfolio-card:not(.featured) {
        opacity: 0;
        will-change: transform, opacity;
    }
    /* Featured card sits above siblings during scale animation */
    .portfolio-card.featured {
        will-change: transform;
        position: relative;
        z-index: 2;
    }
    /* Let the scaled featured card overflow the gallery so it can truly fill the screen */
    .portfolio-grid,
    .portfolio-gallery {
        overflow: visible;
    }
}

/* Marquee / Logos */
.marquee-section {
    padding: 0;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 2.5rem 0;
    background-color: var(--color-bg-primary);
    user-select: none;
    touch-action: pan-y;
}

.marquee-track {
    display: flex;
    width: fit-content;
    animation: marquee 27.5s linear infinite;
    will-change: transform;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-track.is-js-marquee {
    animation: none;
    cursor: grab;
}

.marquee-track.is-dragging {
    cursor: grabbing;
}

.marquee-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-shrink: 0;
}

.marquee-content img {
    height: clamp(168px, 21vw, 264px);
    width: auto;
    object-fit: contain;
    margin: 0 clamp(2.5rem, 5vw, 5rem);
    opacity: 0.65;
    filter: grayscale(100%);
    transition: filter var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.marquee-content img:hover {
    filter: grayscale(0%);
    opacity: 0.9;
    transform: scale(1.05);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Reviews */
.review-card {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 235, 0.64) 42%, rgba(228, 228, 208, 0.30)),
        var(--color-bg-primary);
    border: 1px solid rgba(3, 79, 70, 0.16);
    padding: 2.5rem;
    border-radius: var(--border-radius-card);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        0 24px 70px rgba(26, 26, 26, 0.06);
    transition: transform 0.45s var(--ease-out-premium),
                border-color 0.45s ease;
}

.review-card::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--border-radius-card) - 1px);
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.78), transparent 28%),
        radial-gradient(circle at 84% 16%, rgba(190, 242, 100, 0.14), transparent 0 30%),
        radial-gradient(circle at 16% 86%, rgba(240, 215, 255, 0.16), transparent 0 34%);
    opacity: 0.72;
}

.review-card:hover {
    transform: translateY(-8px);
    border-color: rgba(3, 79, 70, 0.34);
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 1.5rem;
    color: #FBBC04;
    position: relative;
    z-index: 1;
}

.stars svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.review-text {
    font-size: 1.0rem;
    font-style: normal;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--color-text-secondary);
    position: relative;
    z-index: 1;
}

.reviewer {
    font-weight: 600;
    font-family: var(--font-primary);   /* Inter — distinct from review body text */
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    color: var(--color-text-primary);
    position: relative;
    z-index: 1;
}

/* Scroll Indicator (replaces hero CTA button) */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-top: 2rem;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    letter-spacing: 0.06em;
}

.scroll-arrow {
    display: block;
    font-size: 1.5rem;
    animation: bounce-arrow 1.8s ease-in-out infinite;
}

@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0);    opacity: 0.3; }
    60%       { transform: translateY(14px); opacity: 1;   }
}

/* Portfolio section subtext */
.portfolio-subtext {
    font-size: 1rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-weight: 400;
}

/* CTA Section */
.cta-section {
    background-color: var(--color-bg-dark);
    color: var(--color-bg-primary);
    text-align: center;
    border-radius: 32px;
    padding: 6rem 2rem;
    margin: 0 2rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.cta-motion-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
}

.cta-section.is-canvas-ready .cta-motion-canvas {
    opacity: 1;
}

.cta-section::before,
.cta-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-section::before {
    z-index: 1;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 255, 235, 0.08), transparent 42%),
        rgba(26, 26, 26, 0.28);
}

.cta-section::after {
    inset: -18%;
    z-index: 2;
    opacity: 0.12;
    mix-blend-mode: soft-light;
    animation: hero-film-grain 0.7s steps(2, end) infinite;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.22) 0 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(0,0,0,0.20) 0 1px, transparent 1px),
        radial-gradient(circle at 50% 80%, rgba(255,255,255,0.12) 0 1px, transparent 1px);
    background-size: 3px 3px, 4px 4px, 5px 5px;
}

.cta-content {
    position: relative;
    z-index: 3;
}

.cta-section h2 {
    color: var(--color-bg-primary);
    /* font-size controlled by global h2 scale in main.css */
    font-weight: 500;
    max-width: 760px;
    margin: 0 auto 1rem;
    line-height: 1.1;
}

.cta-section .cta-subtext {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin: 0 auto 2.5rem;
    max-width: 440px;
}

.cta-section .btn-primary {
    background-color: var(--color-brand-electric);
    color: var(--color-bg-dark);
    border-radius: 100px;
}

.cta-section .btn-primary:hover {
    background-color: #96C93D;
    color: var(--color-bg-dark);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .cta-section { margin: 0 1rem; padding: 4rem 1.5rem; }
}

/* Custom Portfolio Cursor */
#portfolio-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease;
    opacity: 0;
}

/* Target reticle — center dot + 4 cardinal dots via box-shadow */
#portfolio-cursor::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
        0   -10px 0 rgba(255, 255, 255, 0.7),
        10px  0   0 rgba(255, 255, 255, 0.7),
        0    10px 0 rgba(255, 255, 255, 0.7),
        -10px 0   0 rgba(255, 255, 255, 0.7);
}

#portfolio-cursor::after {
    display: none;
}

.cursor-label {
    display: none;
}

#portfolio-cursor.is-active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Hide default cursor over portfolio items on desktop where the custom cursor is active */
@media (min-width: 769px) {
    .portfolio-item {
        cursor: none;
    }
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.footer-tagline {
    max-width: 280px;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
    margin: 0;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li { margin-bottom: 0.75rem; }

.footer-links a {
    display: inline-block;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.footer-links a:hover {
    color: var(--color-brand-green-primary);
}

.footer-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border-primary);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.social-links a {
    display: flex;
    align-items: center;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--color-brand-green-primary);
}

.social-icon {
    width: 18px;
    height: 18px;
    display: block;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .social-links { justify-content: center; }
}
