:root {
    --bg-primary: #E7E4D3; /* Beige from reference */
    --bg-secondary: #000000; /* Black from reference */
    --text-primary: #000000;
    --text-secondary: #E7E4D3;
    --accent: #FF5F1F;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition: cubic-bezier(0.77, 0, 0.175, 1);
}

/* Texture Overlay */
.grain {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
    animation: noise 0.2s infinite;
}

@keyframes noise {
    0%, 100% { transform:translate(0, 0) }
    10% { transform:translate(-1%, -1%) }
    20% { transform:translate(-2%, 1%) }
    30% { transform:translate(1%, -2%) }
    40% { transform:translate(-1%, 3%) }
    50% { transform:translate(-2%, 1%) }
    60% { transform:translate(3%, 0) }
    70% { transform:translate(0, 2%) }
    80% { transform:translate(-3%, 1%) }
    90% { transform:translate(1%, 2%) }
}

/* Custom Cursor */
#cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, opacity 0.3s;
}

@media (pointer: coarse) {
    #cursor, #cursor-follower { display: none; }
    * { cursor: auto !important; }
}

#cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, width 0.3s, height 0.3s, background 0.3s;
}

.cursor-hover #cursor {
    width: 40px;
    height: 40px;
    opacity: 0.1;
}

.cursor-hover #cursor-follower {
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important; /* Hide original cursor */
}


/* Ensure sections have relative positioning for the grain */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

main {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

body.page-loaded main {
    opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb:hover {
    background: #333;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    gap: 2rem;
    animation: fadeOut 1s ease-in-out forwards 2.5s; /* Increased duration for longer animation */
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

.loader-beetle {
    width: clamp(100px, 40vw, 150px);
    height: clamp(100px, 40vw, 150px);
}

.loader-text {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.5rem;
    animation: textBlur 2s ease-in-out infinite;
}

@keyframes textBlur {
    0%, 100% { filter: blur(0); opacity: 1; }
    50% { filter: blur(4px); opacity: 0.5; }
}

/* Beetle Forming Animation */
.body-base {
    opacity: 0;
    transform: scale(0.5);
    animation: bodyForm 0.8s ease-out forwards 0.2s;
}

.head {
    opacity: 0;
    transform: translateY(-20px);
    animation: partIn 0.6s ease-out forwards 0.4s;
}

.antenna {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawLine 0.5s ease-out forwards 0.8s;
}

.wing {
    opacity: 0;
}

.wing-l {
    transform: translateX(-40px);
    animation: wingIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.6s;
}

.wing-r {
    transform: translateX(40px);
    animation: wingIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.6s;
}

.leg {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
}

.l-1, .l-2, .l-3 { animation: drawLine 0.4s ease-out forwards 1s; }
.r-1, .r-2, .r-3 { animation: drawLine 0.4s ease-out forwards 1.2s; }

@keyframes bodyForm {
    to { opacity: 0.2; transform: scale(1); }
}

@keyframes partIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes wingIn {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    overflow: hidden;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1rem, 4vw, 1.2rem);
    letter-spacing: 2px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

.nav-toggle.active span:first-child {
    transform: rotate(45deg) translateY(6px);
}

.nav-toggle.active span:last-child {
    transform: rotate(-45deg) translateY(-6px);
}

.nav-links {
    display: flex;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    margin-left: clamp(1rem, 3vw, 2rem);
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    font-weight: 700;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.6;
}

#navbar {
    background: transparent;
    transition: all 0.4s var(--transition);
}

#scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--text-primary);
    width: 0%;
    transition: width 0.1s linear;
}

/* Hero Split-Screen */
.hero-wrapper {
    height: 300vh; /* Scroll space for the animation */
    position: relative;
}

.hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: var(--bg-secondary); /* Dark background that gets revealed */
}

.hero-bg-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}

.hero-cycle-wrapper {
    position: relative;
    overflow: hidden;
    text-align: center;
    /* height set by JS after measuring first phrase */
}

.cycle-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.cycle-phrase {
    flex-shrink: 0;
    width: 100%;
    text-align: center;
}

.reveal-h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 0.9;
    color: var(--text-secondary);
    text-transform: uppercase;
    transition: transform 0.1s linear;
}

/* Curtains */
.curtain-top, .curtain-bottom {
    position: absolute;
    width: 100%;
    height: 50.5vh; /* Slight overlap to avoid gaps */
    background: var(--bg-primary);
    z-index: 2;
    overflow: hidden;
    transition: transform 0.1s linear; /* Responsive to scroll */
}

.curtain-top {
    top: 0;
}

.curtain-bottom {
    bottom: 0;
}

.curtain-content {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100vh; /* Full viewport height container for the text */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Position text correctly within curtains */
.curtain-top .curtain-content {
    top: 0;
}

.curtain-bottom .curtain-content {
    bottom: 0;
}

.split-text {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 13.5vw, 15rem); /* Match the reveal size */
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 10rem 0;
    background: var(--bg-primary);
    position: relative;
    z-index: 5;
    overflow-x: hidden; /* clip horizontal bleed only — keeps card y-animations intact */
}

.subheading {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    opacity: 0.5;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.2rem;
    max-width: 600px;
    opacity: 0.8;
}

.img-reveal-wrapper {
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 4px;
}

.img-reveal-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s;
}

.img-reveal-wrapper:hover img {
    filter: grayscale(0%);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    padding: 4rem 2rem;
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.4s var(--transition);
}

.service-card:hover {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    transform: translateY(-10px);
}

.service-num {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2rem;
    opacity: 0.5;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Projects */
.projects-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.project-item {
    cursor: pointer;
}

.project-img {
    height: 500px;
    background: #000;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.project-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.4s;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--transition), filter 1s;
    filter: grayscale(1);
}

.project-item:hover .project-img img {
    transform: scale(1.1);
    filter: grayscale(0);
}

.project-item:hover .project-img::after {
    opacity: 1;
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.process-step {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 2rem;
}

.process-step .step-num {
    font-weight: 700;
    margin-bottom: 2rem;
    opacity: 0.5;
}

.process-step h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.price-card {
    padding: 4rem 3rem;
    border: 1px solid rgba(0,0,0,0.1);
    position: relative;
    background: transparent;
    transition: all 0.4s var(--transition);
}

.price-card.featured {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    transform: scale(1.05);
    z-index: 10;
}

.price-card .badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.price-card .price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.price-card .price span {
    font-size: 1rem;
    opacity: 0.6;
}

.price-card ul {
    list-style: none;
    margin-bottom: 3rem;
}

.price-card ul li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.95rem;
}

.price-card.featured ul li {
    border-color: rgba(255,255,255,0.1);
}

.btn-outline, .btn-solid {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s;
}

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

.btn-solid {
    background: var(--text-secondary);
    color: var(--bg-secondary);
}

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

/* Testimonials Slider */
.testimonial-slider {
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
}

.testimonial-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

.testimonial-slide {
    min-width: 100%;
    padding-right: 2rem;
}

.testimonial-slide .quote {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 3rem;
    font-weight: 700;
}

.testimonial-slide .client {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.testimonial-slide .client strong {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.testimonial-slide .client span {
    opacity: 0.5;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
}

.t-arrow {
    background: none;
    border: 1px solid rgba(0,0,0,0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.t-arrow svg {
    width: 18px;
    height: 18px;
}

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

.t-dots {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.t-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    transition: all 0.4s;
    padding: 0;
}

.t-dot.active {
    background: var(--bg-secondary);
    width: 24px;
    border-radius: 4px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

.team-card {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: transform 0.4s var(--transition);
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-monogram {
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-monogram span {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.team-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.team-role {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.team-info p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.7;
}

.team-name-link {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.4s ease;
}

.team-name-link:hover {
    background-size: 100% 1px;
}

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

/* Projects Info Fix */
.project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.project-info span {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Contact */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 10vw, 10rem);
}

.contact-left h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 7vw, 5rem);
    line-height: 1;
    margin-bottom: 2rem;
}

.contact-link {
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-family: var(--font-heading);
    text-decoration: underline;
    color: inherit;
    font-weight: 700;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

input, textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    padding: 1rem 0;
    font-family: inherit;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    border-color: var(--bg-secondary);
}

.submit-btn {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: none;
    padding: 1.5rem 3rem;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s;
}

.submit-btn:hover {
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.footer-cta {
    padding: 10rem 0;
    border-bottom: 1px solid rgba(231, 228, 211, 0.1);
    text-align: center;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 8vw, 6rem);
    line-height: 1;
    font-weight: 900;
    margin-bottom: 3rem;
    color: var(--text-secondary);
}

.cta-title span {
    opacity: 0.3;
}

.cta-btn {
    display: inline-block;
    padding: 1.5rem 4rem;
    background: var(--text-secondary);
    color: var(--bg-secondary);
    text-decoration: none;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 2px;
    transition: all 0.4s var(--transition);
    border-radius: 100px;
}

.cta-btn:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
}

.footer-top {
    padding: 8rem 0 6rem;
}

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

.brand-col .footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.footer-description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.7;
    max-width: 400px;
    margin-bottom: 2.5rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(231, 228, 211, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.4s var(--transition);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s var(--transition);
}

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

.social-icon:hover svg {
    transform: rotate(10deg) scale(1.1);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    opacity: 0.5;
    letter-spacing: 2px;
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    text-align: left;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-trigger .chevron {
    display: none;
    width: 16px;
    height: 16px;
    transition: transform 0.4s var(--transition);
}

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

.footer-links li, .footer-contact li {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    font-weight: 500;
}

.footer-links a, .footer-contact a {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
    display: inline-block;
}

.footer-links a:hover, .footer-contact a:hover {
    opacity: 1;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .accordion-col {
        border-bottom: 1px solid rgba(231, 228, 211, 0.1);
    }
    
    .footer-heading {
        margin-bottom: 0;
        padding: 1.5rem 0;
        cursor: pointer;
        opacity: 0.8;
    }
    
    .accordion-trigger .chevron {
        display: block;
    }
    
    .accordion-trigger[aria-expanded="true"] .chevron {
        transform: rotate(180deg);
    }
    
    .footer-content-wrapper {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.5s var(--transition);
        overflow: hidden;
    }
    
    .accordion-trigger[aria-expanded="true"] + .footer-content-wrapper {
        grid-template-rows: 1fr;
    }

    .footer-content-wrapper > * {
        min-height: 0;
    }

    .footer-links, .footer-contact {
        padding-bottom: 2rem;
    }
}

.footer-bottom {
    padding: 3rem 0;
    border-top: 1px solid rgba(231, 228, 211, 0.1);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.5;
}

.footer-legal {
    display: flex;
    gap: 3rem;
}

.footer-legal a {
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.5;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-legal a:hover {
    opacity: 1;
}

.footer-bg-text {
    position: absolute;
    bottom: -10%;
    left: 0;
    width: 100%;
    font-size: clamp(10rem, 30vw, 40rem);
    font-weight: 950;
    color: rgba(231, 228, 211, 0.02);
    text-align: center;
    pointer-events: none;
    z-index: -1;
    line-height: 0.8;
    letter-spacing: -0.05em;
    user-select: none;
}

/* Back to Top */
.back-to-top {
    position: absolute;
    right: 5%;
    bottom: 2rem;
    width: 60px;
    height: 60px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s var(--transition);
    z-index: 100;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

.back-to-top:hover {
    background: var(--accent);
    color: white;
}

.back-to-top:hover svg {
    transform: translateY(-5px);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1.5fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-cta {
        padding: 6rem 0;
    }
    
    .footer-bottom-flex {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
        gap: 1.5rem;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .container { padding: 0 8%; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
}

.mobile-close {
    position: absolute;
    top: 2rem;
    right: 5%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
    z-index: 1002;
}

.mobile-close span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    display: block;
}

.mobile-close span:first-child {
    transform: rotate(45deg) translateY(4px);
}

.mobile-close span:last-child {
    transform: rotate(-45deg) translateY(-4px);
}

.mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-links a {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links { display: none; }
    nav { padding: 1rem 5%; }
    
    .about-grid, .contact-split, .services-grid, .projects-list, .pricing-grid, .process-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .section { padding: 6rem 0; }
    
    .hero-wrapper { height: 250vh; }
    
    .price-card.featured { transform: scale(1); }
    
    .testimonial-content .quote { font-size: 1.8rem; }
    
    .pricing-grid { grid-template-columns: 1fr; }
    
    .process-grid { grid-template-columns: 1fr; }
    
    .img-reveal-wrapper { height: 400px; }
    
    .project-img { height: 350px; }
}

@media (max-width: 480px) {
    .reveal-h1 { 
        font-size: 13vw; /* Fluid scaling to fit mobile width */
        width: 100%;
        text-align: center;
    }
    .split-text { 
        font-size: 13vw; /* Fluid scaling to fit mobile width */
    }
    .logo { font-size: 0.9rem; }
    .subheading { font-size: 0.7rem; }
    .hero-bg-content { 
        width: 100%;
        padding: 0 5%;
    }
}

/* Animations for Intersection Observer */
.section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.4, 0, 1), transform 1.2s cubic-bezier(0.2, 0.4, 0, 1);
}

.section.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Reveals */
.service-card, .process-step, .price-card, .project-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.4, 0, 1), transform 0.8s cubic-bezier(0.2, 0.4, 0, 1);
}

.reveal-active .service-card, 
.reveal-active .process-step, 
.reveal-active .price-card, 
.reveal-active .project-item {
    opacity: 1;
    transform: translateY(0);
}

.reveal-active .service-card:nth-child(2), 
.reveal-active .process-step:nth-child(2), 
.reveal-active .price-card:nth-child(2) { transition-delay: 0.2s; }

.reveal-active .service-card:nth-child(3), 
.reveal-active .process-step:nth-child(3), 
.reveal-active .price-card:nth-child(3) { transition-delay: 0.4s; }

.reveal-active .process-step:nth-child(4) { transition-delay: 0.6s; }

/* Heading Reveal */
.subheading, h2 {
    overflow: hidden;
}

.subheading span, h2 span {
    display: block;
    transform: translateY(100%);
    transition: transform 1s cubic-bezier(0.2, 0.4, 0, 1);
}

.reveal-active .subheading span, 
.reveal-active h2 span {
    transform: translateY(0);
}

/* Image Mask Reveal */
.img-reveal-wrapper, .project-img {
    position: relative;
    overflow: hidden;
}

.img-reveal-wrapper::after, .project-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    transform: translateX(0);
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 2;
}

.reveal-active .img-reveal-wrapper::after, 
.reveal-active .project-img::after {
    transform: translateX(101%);
}

/* ---------- Per-element direction-aware reveals ---------- */
[class*="reveal-from"] {
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-from-left   { opacity: 0; transform: translateX(-70px); }
.reveal-from-right  { opacity: 0; transform: translateX( 70px); }
.reveal-from-bottom { opacity: 0; transform: translateY( 60px); }
.reveal-scale-in    { opacity: 0; transform: scale(0.75); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }

.in-view.reveal-from-left,
.in-view.reveal-from-right,
.in-view.reveal-from-bottom {
    opacity: 1;
    transform: translate(0);
}

.in-view.reveal-scale-in {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delay utilities */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.25s; }
.delay-3 { transition-delay: 0.4s; }
.delay-4 { transition-delay: 0.55s; }
.delay-5 { transition-delay: 0.7s; }

/* Team enhanced stagger */
.team-card { opacity: 0; transform: translateY(30px); }
.reveal-active .team-card { opacity: 1; transform: translateY(0); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal-active .team-card:nth-child(1) { transition-delay: 0.1s; }
.reveal-active .team-card:nth-child(2) { transition-delay: 0.3s; }

/* Animated line grow on elements */
.line-grow { position: relative; }
.line-grow::after { content: ''; position: absolute; bottom: -0.5rem; left: 0; width: 0; height: 1px; background: currentColor; opacity: 0.15; transition: width 1.4s cubic-bezier(0.16,1,0.3,1); }
.in-view.line-grow::after { width: 100%; }
