:root {
    --bg: #030708;
    --surface: #0a0e10;
    --accent-gold: #c5a47e;
    --prism-1: rgba(255, 0, 128, 0.2);
    --prism-2: rgba(0, 255, 255, 0.2);
    --prism-3: rgba(255, 255, 0, 0.2);
    --text-main: #e0e0e0;
    --text-dim: #888;
    --refraction: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Prismatic Grain Overlay */
.prism-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0.15;
    background:
        radial-gradient(circle at 20% 30%, var(--prism-1), transparent 40%),
        radial-gradient(circle at 80% 70%, var(--prism-2), transparent 40%),
        radial-gradient(circle at 50% 50%, var(--prism-3), transparent 50%);
    mix-blend-mode: screen;
    filter: contrast(120%);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 180px;
    /* Much much bigger */
    width: auto;
    object-fit: contain;
    /* CSS Filter to turn black logo into Gold (#c5a47e) */
    filter: invert(69%) sepia(45%) saturate(464%) hue-rotate(345deg) brightness(94%) contrast(88%);
    transition: filter 0.3s ease;
}

.logo-img:hover {
    filter: brightness(1.2);
    /* Brighter gold on hover */
}

.brand-name {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    color: #fff;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-weight: 500;
    transition: color 0.4s ease;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
    position: fixed;
    top: 2.5rem;
    right: 4%;
    padding: 10px;
    /* larger touch target */
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: var(--accent-gold);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg);
    z-index: 1900;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu a {
    font-family: 'Bodoni Moda', serif;
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-bg-text {
    position: absolute;
    font-family: 'Bodoni Moda', serif;
    font-size: 30vw;
    color: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    z-index: -1;
    left: -5%;
    bottom: -5%;
}

.hero h1 {
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(3rem, 8vw, 10rem);
    line-height: 0.9;
    font-weight: 400;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #fff, var(--accent-gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
}

.hero-subtext {
    max-width: 500px;
    font-size: 1rem;
    color: var(--text-dim);
    margin-left: 0.5rem;
    border-left: 1px solid var(--accent-gold);
    padding-left: 2rem;
}

/* The Crystalline Grid */
.prism-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 5rem 0;
}

.prism-item {
    grid-column: span 4;
    height: 600px;
    background: var(--surface);
    position: relative;
    overflow: hidden;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.prism-item:hover {
    transform: translateY(-10px);
    z-index: 2;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.prism-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--refraction);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 10;
    pointer-events: none;
}

.prism-item:hover::before {
    opacity: 1;
}

.prism-item .data-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    display: block;
    position: relative;
    z-index: 20;
}

.prism-item h3 {
    font-family: 'Bodoni Moda', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 20;
}

.prism-item p {
    font-size: 0.9rem;
    color: var(--text-dim);
    max-width: 80%;
    position: relative;
    z-index: 20;
}

/* Updated Image Visuals */
.item-visual-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 70%;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 70%);
    transition: all 0.8s ease;
    filter: brightness(0.6) sepia(0.2);
    z-index: 1;
}

.prism-item:hover .item-visual-img {
    transform: scale(1.05);
    filter: brightness(1) sepia(0);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%);
}


/* Impact Section */
.impact {
    padding: 10rem 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
}

.impact-content h2 {
    font-family: 'Bodoni Moda', serif;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.impact-card {
    background: linear-gradient(135deg, #111 0%, #050505 100%);
    padding: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.impact-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 40px;
    height: 40px;
    border-top: 2px solid var(--accent-gold);
    border-left: 2px solid var(--accent-gold);
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item .value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    color: #fff;
    display: block;
}

.stat-item .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--accent-gold);
}

/* Footer Refraction */
footer {
    padding: 5rem 10%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    height: 250px;
    /* Massive footer logo */
    align-self: flex-start;
}

.footer-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

.links-col h4 {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
}

.links-col a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.links-col a:hover {
    color: var(--accent-gold);
}

.copyright-text,
.office-loc {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.cta-button {
    padding: 1.5rem 3rem;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.cta-button:hover {
    background: var(--accent-gold);
    color: #000;
}

.prism-flare {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--prism-2), transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    animation: float 10s infinite alternate;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(100px, 50px);
    }
}

/* GSAP Utils */
.gsap-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.char {
    display: inline-block;
}

/* Laptop / Smaller Screens */
@media (max-width: 1440px), (max-height: 900px) {
    nav {
        padding: 1rem 4%;
    }

    .logo-img {
        height: 110px;
    }

    .info-col .cta-button {
      padding: 1rem 2rem;
    }

    .hero {
         padding-top: 120px; /* Ensure content clears the nav */
         justify-content: center; /* Keep centering but with top padding offset if needed */
    }
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Hero Refinements */
    .hero {
        padding: 0 5%;
        text-align: left;
        /* Ensure left alignment */
    }

    .hero-bg-text {
        font-size: 20vw;
        /* Reduced from 30vw */
        opacity: 0.05;
        /* Slightly more visible but subtle */
        top: 20%;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 12vw, 4.5rem);
        /* Pro clamp */
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }

    .hero-subtext {
        font-size: 0.95rem;
        padding-left: 1.5rem;
        border-left: 2px solid var(--accent-gold);
        line-height: 1.6;
    }

    /* Card Optimizations */
    .prism-grid {
        gap: 1.5rem;
        /* Real gap for mobile */
        margin: 3rem 0;
        background: transparent;
        /* Remove the grid line bg on mobile */
    }

    .prism-item {
        grid-column: span 12;
        height: 400px;
        /* Reduced specific height */
        padding: 2rem;
        border: 1px solid rgba(255, 255, 255, 0.05);
        /* Individual borders */
    }

    /* Legibility Text Gradient */
    .prism-item::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
        pointer-events: none;
        z-index: 5;
    }

    /* Adjust clip path for mobile to show more image */
    .item-visual-img {
        height: 100%;
        clip-path: none;
        opacity: 0.6;
    }

    /* Impact Polish */
    .impact {
        grid-template-columns: 1fr;
        padding: 5rem 5%;
        gap: 4rem;
    }

    .impact-content h2 {
        font-size: 2.5rem;
    }

    .impact-card {
        padding: 2.5rem;
        background: linear-gradient(135deg, #111 0%, #080808 100%);
    }

    .stat-grid {
        gap: 2.5rem 1rem;
        /* Row gap, Col gap */
    }

    .stat-item .value {
        font-size: 1.8rem;
    }

    footer {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
        padding: 4rem 5%;
    }

    .footer-col {
        align-items: flex-start;
    }
}

/* Contact Section */
.contact-section {
    padding: 10rem 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-visual h2 {
    font-family: 'Bodoni Moda', serif;
    font-size: 3.5rem;
    line-height: 1.1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.input-group {
    display: flex;
    gap: 2rem;
}

.contact-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 1rem 0;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    outline: none;
    transition: all 0.4s ease;
    border-radius: 0;
}

.contact-input:focus {
    border-bottom: 1px solid var(--accent-gold);
    padding-left: 1rem;
    background: linear-gradient(to right, rgba(197, 164, 126, 0.05), transparent);
}

.select-input {
    color: var(--text-dim);
}

.select-input option {
    background: var(--surface);
    color: #fff;
}

@media (max-width: 900px) {
    .contact-section {
        grid-template-columns: 1fr;
        padding: 5rem 5%;
        gap: 4rem;
    }

    .contact-visual h2 {
        font-size: 2.5rem;
    }

    .input-group {
        flex-direction: column;
        gap: 2rem;
    }
}