:root {
    --brand-primary: 27 196 201;
    --brand-secondary: 72 118 255;
    --brand-accent: 25 62 160;
    --surface-glass: 255 255 255 / 0.08;
    --surface-highlight: 255 255 255 / 0.25;
    --surface-border: 255 255 255 / 0.18;
    --text-main: 255 255 255 / 0.92;
    --text-muted: 255 255 255 / 0.65;
    --bg-gradient-start: #060621;
    --bg-gradient-end: #12013d;
    --font-stack: 'Poppins', 'Segoe UI', sans-serif;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-stack);
    background: radial-gradient(135% 135% at 12% -10%, rgba(var(--brand-secondary) / 0.28), rgba(6,11,32,1)),
                radial-gradient(120% 120% at 85% 15%, rgba(var(--brand-primary) / 0.3), rgba(4,8,24,1));
    color: rgba(var(--text-main));
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.08), transparent 40%);
    pointer-events: none;
    opacity: 0.7;
}

.noise-layer {
    position: fixed;
    inset: 0;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"%3E%3Cfilter id="n" x="0" y="0" width="200%25" height="200%25"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)" opacity="0.12"/%3E%3C/svg%3E');
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: -1;
    animation: noiseShift 6s steps(10) infinite;
}

@keyframes noiseShift {
    0% { transform: translate3d(0,0,0); }
    50% { transform: translate3d(-5%, -5%, 0); }
    100% { transform: translate3d(0,0,0); }
}

/* Optimize animations by using only transform and opacity properties */
.noise-layer {
    will-change: transform;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.hero {
    padding: 9rem 0 6rem;
    position: relative;
}

.hero-glow {
    position: absolute;
    inset: -20% -20% auto;
    height: 60%;
    background: radial-gradient(circle at 20% 20%, rgba(var(--brand-primary) / 0.5), transparent 60%),
                radial-gradient(circle at 80% 20%, rgba(var(--brand-secondary) / 0.45), transparent 65%);
    filter: blur(120px);
    z-index: -1;
    opacity: 0.8;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(var(--brand-primary) / 0.25), rgba(var(--brand-secondary) / 0.25));
    color: rgba(var(--text-main));
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.hero p {
    color: rgba(var(--text-muted));
    max-width: 32ch;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3.1rem;
    padding: 0 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
     word-wrap: break-word;
     overflow-wrap: break-word;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(var(--text-main) / 0.18);
    text-decoration: none;
}

.btn.primary {
    background: linear-gradient(135deg, rgba(var(--brand-primary) / 1), rgba(var(--brand-secondary) / 1));
    color: #fff;
    box-shadow: 0 15px 35px rgba(var(--brand-accent) / 0.35);
}

.btn.ghost {
    background: rgba(255,255,255,0.08);
    color: rgba(var(--text-main));
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(var(--brand-accent) / 0.25);
}

/* Optimize button hover animations */
.btn {
    will-change: transform;
}

.btn:active {
    transform: translateY(0);
}

.hero-stats {
    display: grid;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.hero-stats dt {
    font-weight: 600;
    letter-spacing: 0.08em;
     word-wrap: break-word;
     overflow-wrap: break-word;
    text-transform: uppercase;
    color: rgba(var(--text-muted));
}

.hero-stats dd {
    font-weight: 500;
    color: rgba(var(--text-main));
}

.hero-visual .glass-card {
    background: rgba(var(--surface-glass));
    border: 1px solid rgba(var(--surface-border));
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(24px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 35px 70px rgba(7,12,61,0.55);
    position: relative;
    overflow: hidden;
}

.hero-visual .glass-card::before {
    content: "";
    position: absolute;
    inset: -40% 10% 60%;
    background: linear-gradient(120deg, rgba(var(--brand-primary) / 0.35), rgba(var(--brand-secondary) / 0));
    filter: blur(45px);
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate3d(-10%, 0, 0); }
    50% { transform: translate3d(15%, 0, 0); }
}

/* Optimize animations by using only transform and opacity properties */
.hero-visual .glass-card::before {
    will-change: transform;
}

.hero-visual .glass-card .card-label {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(var(--text-muted));
}

.hero-visual .glass-card h2 {
    font-size: 1.4rem;
    margin: 1.2rem 0;
}

.hero-visual .glass-card ul {
    list-style: none;
    display: grid;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.hero-visual .glass-card li {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 2, 23, 0.35);
    backdrop-filter: blur(18px);
     -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.35s ease, box-shadow 0.35s ease;
    will-change: background, box-shadow;
}

.site-header.is-condensed {
    background: rgba(2, 2, 24, 0.82);
    box-shadow: 0 12px 30px rgba(3, 4, 28, 0.45);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.2rem;
}

.site-header.is-condensed .container {
    min-height: 3.4rem;
}

.logo {
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
    text-decoration: none;
}

.logo span {
    color: rgb(var(--brand-secondary));
}

.site-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-list a {
    color: rgba(var(--text-muted));
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(var(--brand-primary) / 0.8), rgba(var(--brand-secondary) / 0.8));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s ease;
}

.nav-list a:hover,
.nav-list a:focus {
    color: rgba(var(--text-main));
}

.nav-list a:hover::after,
.nav-list a.active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.nav-toggle .bar {
    width: 24px;
    height: 2px;
    background: #fff;
    display: block;
    margin: 6px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.services,
.approach,
.work,
.testimonials,
.quote {
    padding: clamp(5rem, 9vw, 7rem) 0;
}

.section-head {
    max-width: 620px;
    margin-bottom: 3rem;
}

.section-head h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 1rem;
}

.section-head p {
    color: rgba(var(--text-muted));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
}
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: rgba(var(--surface-glass));
    border: 1px solid rgba(var(--surface-border));
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(18px);
     -webkit-backdrop-filter: blur(18px);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0 40% 60% -20%;
    background: linear-gradient(120deg, rgba(var(--brand-secondary) / 0.3), transparent);
    transform: translateY(10%);
    filter: blur(45px);
    transition: opacity 0.35s ease;
    opacity: 0.4;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,0.35);
    box-shadow: 0 25px 45px rgba(12,20,60,0.5);
}

/* Optimize card hover animations */
.service-card {
    will-change: transform;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(var(--brand-primary) / 0.9), rgba(var(--brand-secondary) / 0.9));
    display: grid;
    place-items: center;
    font-weight: 700;
    letter-spacing: 0.08em;
     word-wrap: break-word;
     overflow-wrap: break-word;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: rgba(var(--text-muted));
    margin-bottom: 1.25rem;
}

.service-card ul {
    list-style: none;
    display: grid;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: rgba(var(--text-main));
}

.approach-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step-card {
    padding: 2rem;
    border-radius: 20px;
    background: rgba(var(--surface-glass));
    border: 1px solid rgba(var(--surface-border));
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

/* Reserve space for step numbers on approach cards to prevent any overlap */
.approach-grid .step-card {
    padding-right: 6.5rem; /* original padding is 2rem; this adds a right gutter for the number */
}

/* Reintroduce step numbers, positioned in their own right gutter */
.approach-grid .step-card::before {
    content: attr(data-step);
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 700;
    color: rgba(var(--text-muted) / 0.12);
    pointer-events: none;
}




.work-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
    .work-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .work-grid {
        grid-template-columns: 1fr;
    }
}

.work-card {
    background: rgba(var(--surface-glass));
    border: 1px solid rgba(var(--surface-border));
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(18px);
     -webkit-backdrop-filter: blur(18px);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.work-card::before {
    content: "";
    position: absolute;
    inset: 0 40% 60% -20%;
    background: linear-gradient(120deg, rgba(var(--brand-secondary) / 0.3), transparent);
    transform: translateY(10%);
    filter: blur(45px);
    transition: opacity 0.35s ease;
    opacity: 0.4;
}

.work-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,0.35);
    box-shadow: 0 25px 45px rgba(12,20,60,0.5);
}

/* Optimize card hover animations */
.work-card {
    will-change: transform;
}

.work-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.work-card .badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: 0.4rem 0.8rem;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
     justify-content: center;
    border-radius: 999px;
    background: rgba(var(--brand-secondary) / 0.25);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
     word-wrap: break-word;
     overflow-wrap: break-word;
}

.metric {
    font-size: 0.9rem;
    color: rgba(var(--text-muted));
}

.metric strong {
    font-size: 1.2rem;
    color: rgba(var(--text-main));
}

.testimonials {
    position: relative;
}

.testimonials::before {
    content: "";
    position: absolute;
    inset: 10% 15% 0 15%;
    background: radial-gradient(circle at top, rgba(var(--brand-accent) / 0.25), transparent 65%);
    filter: blur(85px);
    z-index: -1;
}

.testimonials-slider {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, 1fr);
}

.testimonial-card {
    padding: 2rem;
    background: rgba(var(--surface-glass));
    border: 1px solid rgba(var(--surface-border));
    border-radius: 20px;
    backdrop-filter: blur(16px);
    position: relative;
}

.testimonial-card p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.testimonial-card footer {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.9rem;
    color: rgba(var(--text-muted));
}

.testimonial-card .name {
    color: rgba(var(--text-main));
    font-weight: 600;
}

.quote {
    position: relative;
}

.quote::before {
    content: "";
    position: absolute;
    inset: 15% 5% 15%;
    background: radial-gradient(ellipse at top left, rgba(var(--brand-primary) / 0.35), transparent 65%);
    filter: blur(95px);
    z-index: -1;
}

.quote-wrapper {
    display: grid;
    gap: 2.4rem;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    padding: 2.8rem;
    border-radius: 28px;
    border: 1px solid rgba(var(--surface-border));
    background: linear-gradient(135deg, rgba(var(--surface-glass)), rgba(255,255,255,0.05));
    backdrop-filter: blur(22px);
    position: relative;
    overflow: hidden;
}

/* Add a vertical separator line between the quote copy and the form/success message */
.quote-wrapper::before {
    content: "";
    position: absolute;
    top: 2.8rem;
    left: calc(0.85 / (0.85 + 1.15) * 100%);
    bottom: 2.8rem;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(var(--surface-highlight)), transparent);
    z-index: 1;
}

@media (max-width: 960px) {
    .quote-wrapper::before {
        display: none;
    }
}

.quote-wrapper::after {
    content: "";
    position: absolute;
    inset: -30% 40% 60% -10%;
    background: linear-gradient(130deg, rgba(var(--brand-secondary) / 0.28), transparent);
    filter: blur(120px);
    opacity: 0.7;
    pointer-events: none;
}

.quote-copy h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin: 1rem 0 1.5rem;
}

.quote-copy p {
    color: rgba(var(--text-muted));
    max-width: 32ch;
}

.quote-form label span {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
     word-wrap: break-word;
     overflow-wrap: break-word;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.6rem;
}

.quote-form input,
.quote-form textarea,
.quote-form select {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(var(--surface-border));
    background: rgba(12, 14, 45, 0.35);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.quote-form input:focus,
.quote-form textarea:focus,
.quote-form select:focus {
    border-color: rgba(var(--brand-secondary) / 0.7);
    box-shadow: 0 0 0 3px rgba(var(--brand-secondary) / 0.25);
}

.form-grid {
    display: grid;
    gap: 1.1rem 1.4rem;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    align-items: start;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.35rem 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: rgba(var(--text-main));
    line-height: 1.35;
    width: 100%;
    min-height: 1.5rem;
    cursor: pointer;
    margin-bottom: 0;
    padding: 0;
    text-align: left;
}

.checkbox-item input {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: rgb(var(--brand-secondary));
    margin: 0 0.75rem 0 0;
    flex-shrink: 0;
    position: relative;
    top: 0;
}

.checkbox-item span {
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.quote-form label {
    display: flex;
    flex-direction: column;
}

/* Override for labels containing checkbox groups */
.quote-form label:has(.checkbox-group),
.quote-form label.services-label {
    display: block !important;
}

.quote-form .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

/* Force checkbox items to align properly */
.quote-form .checkbox-group .checkbox-item,
.quote-form .checkbox-group div.checkbox-item {
    display: flex !important;
    align-items: center !important;
    font-size: 0.95rem !important;
    color: rgba(var(--text-main)) !important;
    line-height: 1.35 !important;
    cursor: pointer !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    width: 100% !important;
    min-height: 1.5rem !important;
}

.quote-form .checkbox-group .checkbox-item input[type="checkbox"],
.quote-form .checkbox-group div.checkbox-item input[type="checkbox"] {
    width: 1.2rem !important;
    height: 1.2rem !important;
    accent-color: rgb(var(--brand-secondary)) !important;
    margin: 0 0.75rem 0 0 !important;
    flex-shrink: 0 !important;
    position: relative !important;
    top: 0 !important;
}

.quote-form .checkbox-group .checkbox-item span,
.quote-form .checkbox-group div.checkbox-item span {
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

.error {
    display: block;
    margin-top: 0.5rem;
    color: #ff9a9a;
    font-size: 0.75rem;
    min-height: 1rem;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn .spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    margin-left: 0.75rem;
    display: inline-flex;
    animation: spin 0.8s linear infinite;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn.loading .spinner {
    opacity: 1;
    transform: scale(1);
}

.btn.loading .label {
    opacity: 0.6;
}

@keyframes spin {
    0% { transform: rotate(0turn); }
    100% { transform: rotate(1turn); }
}

.form-feedback {
    font-size: 0.9rem;
    color: rgba(var(--text-muted));
    min-height: 1.5rem;
}

.quote-content-container {
    width: 100%;
}

.quote-success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
     justify-content: center;
    padding: 2rem 1rem;
    min-height: 400px;
}

.success-content {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.success-icon {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4ade80; /* Tailwind's green-400, matches the success color */
}

.success-icon svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.quote-success-message h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 1rem;
    color: rgba(var(--text-main));
}

.success-message-text {
    font-size: 1.2rem;
    color: rgba(var(--text-muted));
    line-height: 1.6;
    margin: 0;
    text-align: center;
     justify-content: center;
}

.site-footer {
    padding: 4rem 0 3rem;
    background: rgba(0,0,10,0.55);
    border-top: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 2rem;
}

.footer-nav,
.footer-contact {
    display: grid;
    gap: 0.6rem;
}

.footer-nav a,
.footer-contact a {
    color: rgba(var(--text-muted));
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
    color: rgba(var(--text-main));
}

.footer-meta {
    font-size: 0.8rem;
    color: rgba(var(--text-muted));
    text-align: center;
     justify-content: center;
}

.bg-aurora {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.35;
    z-index: -2;
}

.aurora {
    transform-origin: center;
    animation: auroraMove 16s ease-in-out infinite;
}

.aurora-2 {
    animation-delay: -5s;
}

.aurora-3 {
    animation-delay: -9s;
}

@keyframes auroraMove {
    0%, 100% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(1%, -1%, 0) scale(1.05); }
}

/* Optimize animations by using only transform and opacity properties */
.aurora {
    will-change: transform;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .hero-grid,
    .quote-wrapper {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 7.5rem;
    }

    .hero-cta {
        flex-wrap: wrap;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        background: rgba(2, 2, 24, 0.78);
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        right: 5vw;
        width: min(240px, 80vw);
        background: rgba(0, 0, 22, 0.9);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 16px;
        padding: 1.2rem;
        flex-direction: column;
        gap: 1rem;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-list.is-open {
        transform: translateY(10px);
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: clamp(2.2rem, 9vw, 2.8rem);
    }

    .services,
    .approach,
    .work,
    .testimonials,
    .quote {
        padding: 4rem 0;
    }

    .quote-wrapper {
        padding: 2.4rem;
    }

    .hero-visual .glass-card {
        padding: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* Disable all animations on mobile to prevent flickering */
@media (max-width: 768px) {
     *,
     *::before,
     *::after {
         animation-duration: 0.01ms !important;
         animation-iteration-count: 1 !important;
         transition-duration: 0.01ms !important;
     }
}
/* Mobile anti-flickering fixes */
@media (max-width: 768px) {
     /* Disable backdrop-filter on older mobile devices to prevent flickering */
     .service-card,
     .work-card,
     .step-card,
     .testimonial-card,
     .quote-wrapper,
     .site-header {
         backdrop-filter: none;
         -webkit-backdrop-filter: none;
     }

     /* Force hardware acceleration on key elements */
     .service-card,
     .work-card,
     .hero-visual .glass-card {
         transform: translateZ(0);
         -webkit-transform: translate3d(0, 0, 0);
         will-change: transform;
     }
}

