/* --- CORE STYLES (LIGHT THEME) --- */
:root {
    --c-bg: #f2f4f6;
    --c-text-main: #1a1a1a;
    --c-text-muted: #555;
    --font-display: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: auto; 
}

body {
    background-color: var(--c-bg);
    color: var(--c-text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    overflow-y: auto;
    width: 100vw;
    min-height: 100vh;
}

body::-webkit-scrollbar { display: none; }
body { -ms-overflow-style: none; scrollbar-width: none; }

/* --- PREMIUM LOADING EXPERIENCE --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0e0e0e; /* Deep dark stone */
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    overflow: hidden;
    /* Flex column to manage layout better */
    flex-direction: column;
}

/* Injected Brand Text Style */
.loader-brand {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.2em;
    color: #f2f4f6;
    display: flex;
    gap: 1.5rem;
    overflow: hidden; /* For reveal effect */
}

.loader-brand span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%); /* Start hidden below */
}

/* Minimalist Counter - Bottom Right */
.loader-counter {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    font-family: var(--font-body); /* Montserrat for numbers looks cleaner */
    font-size: 4rem; /* Large numerals */
    font-weight: 300;
    color: #555; /* Subtle grey, not pure white */
    font-feature-settings: "tnum"; /* Tabular figures to prevent jumping */
}

/* Add a suffix via CSS */
.loader-counter::after {
    content: '%';
    font-size: 1rem;
    vertical-align: top;
    margin-left: 5px;
    opacity: 0.5;
}

/* --- LAYERS --- */
#webgl {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    outline: none;
    pointer-events: none;
}

.ui-layer {
    position: relative;
    z-index: 20;
    width: 100%;
    min-height: 100vh;
}

.pointer-auto { pointer-events: auto; }

/* --- CURSOR --- */
#cursor-dot, #cursor-ring {
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
}

#cursor-dot {
    width: 8px; height: 8px;
    background: #1a1a1a;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#cursor-ring {
    width: 50px; height: 50px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}

body.hovering #cursor-ring {
    width: 80px; height: 80px;
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* --- KINETIC TYPOGRAPHY STYLES --- */
.display-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(3.5rem, 8vw, 8rem);
    line-height: 0.85;
    text-transform: uppercase;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    opacity: 1; 
    visibility: hidden; 
    mix-blend-mode: difference;
    color: #fff; 
}
.hero-subtitle {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 450px;
    letter-spacing: 0.02em;
    opacity: 0;
}

.line { overflow: hidden; }
.word { transform-origin: bottom left; }

/* --- PAW FLIP ANIMATION STYLES --- */
.paw-flip-text .char {
    position: relative;
    display: inline-block;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.paw-flip-text .char:hover {
    transform: rotateY(180deg);
}

.paw-flip-text .char-front {
    display: block;
    backface-visibility: hidden;
    color: inherit; 
}

.paw-flip-text .char-back {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(180deg);
    backface-visibility: hidden;
    font-size: 0.4em; 
    line-height: 1;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* --- NAVIGATION --- */
.brand-container {
    position: fixed;
    top: 2rem;
    left: 3rem;
    z-index: 101;
}

.brand {
    font-family: var(--font-display);
    font-size: 1.6rem; 
    letter-spacing: 0.15em;
    font-weight: 800; 
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    white-space: nowrap; /* Prevent wrapping on smaller screens */
    flex-shrink: 0; /* Ensure brand doesn't get crushed */
}

.brand::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: #1a1a1a;
    border-radius: 50%;
    margin-top: 2px;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem; 
    position: fixed; 
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(255, 255, 255, 0.65); 
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5); 
    border-radius: 100px; 
    box-shadow: 
        0 10px 40px -10px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 95%; /* Prevent nav from going off-screen on mobile/tablet */
}

nav:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 15px 50px -10px rgba(0, 0, 0, 0.08);
    transform: translateX(-50%) translateY(-2px);
}

.links { display: flex; gap: 1rem; }

.nav-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(26, 26, 26, 0.7); 
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    font-weight: 600;
    padding: 0.5rem 1rem;
}
.nav-link:hover { color: #1a1a1a; }

/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-left: 10%;
    position: relative;
}

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

.line-acc {
    width: 60px; height: 3px;
    background: #1a1a1a;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.cta-btn {
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.2);
    padding: 1rem 2.5rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.4s ease;
    opacity: 0;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.cta-btn:hover {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

/* --- CONTENT SECTIONS --- */
.content-section {
    padding: 10rem 10%;
    position: relative;
    background: linear-gradient(180deg, rgba(242, 244, 246, 0.0) 0%, rgba(242, 244, 246, 0.8) 20%, rgba(242, 244, 246, 0.95) 100%);
    backdrop-filter: blur(5px);
}

/* OVERRIDE FOR ARCHITECT SECTION: PORTAL EFFECT */
#architect {
    background: transparent !important;
    backdrop-filter: none;
    position: relative;
}

/* The Background Layer with the Hole */
#architect::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1; 
    
    /* The Section Background */
    background: linear-gradient(180deg, rgba(242, 244, 246, 0.0) 0%, rgba(242, 244, 246, 0.9) 15%, rgba(242, 244, 246, 0.98) 100%);
    
    /* The Mask (Mobile Default: Fade out bottom) */
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

@media (min-width: 1024px) {
    #architect::before {
        /* Desktop: Radial Hole centered on the right column */
        /* Horizontal: 70% (aligned with column center) */
        /* Vertical: 55% (Lowered from 50% to account for top section label pushing content down) */
        -webkit-mask-image: radial-gradient(circle at 70% 55%, transparent 0px, transparent 250px, black 450px);
        mask-image: radial-gradient(circle at 70% 55%, transparent 0px, transparent 250px, black 450px);
    }
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #1a1a1a;
    opacity: 0.6;
    margin-bottom: 4rem;
    font-family: var(--font-body);
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 1rem;
    display: inline-block;
}

h2 {
    font-family: var(--font-display);
    font-size: 4rem;
    color: #1a1a1a;
    margin-bottom: 3rem;
    line-height: 1;
    mix-blend-mode: difference;
}

/* --- MANIFESTO --- */
.manifesto-container { max-width: 900px; margin-left: auto; }
.text-block p { font-size: 1.5rem; line-height: 1.6; color: #333; font-weight: 300; }
.text-block .lead { font-size: 2rem; font-weight: 400; color: #111; }

/* --- CAPABILITIES --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 4rem 2.5rem;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.glass-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.icon { font-size: 3rem; margin-bottom: 2rem; display: block; opacity: 0.8; }
.glass-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 2rem; margin-bottom: 0.5rem; color: #1a1a1a; }
.glass-card h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; color: #666; margin-bottom: 2rem; font-weight: 500; }
.glass-card p { font-size: 1rem; line-height: 1.7; color: #444; margin-bottom: 3rem; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.tags li { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; border: 1px solid rgba(0,0,0,0.1); padding: 0.5rem 1rem; color: #555; transition: 0.3s; }
.glass-card:hover .tags li { border-color: #1a1a1a; color: #1a1a1a; }

/* --- THE ARCHITECT --- */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.role-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 2rem; color: #1a1a1a; border-left: 2px solid #1a1a1a; padding-left: 1rem; }
.stat-row { display: flex; gap: 4rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgba(0,0,0,0.1); }
.stat { display: flex; flex-direction: column; }
.stat .num { font-family: var(--font-display); font-size: 2.5rem; color: #1a1a1a; }
.stat .lbl { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: #666; margin-top: 0.5rem; }

/* UPDATED GLASS STYLE: VISION PRO / APPLE GLASS AESTHETIC */
.visual-content { 
    height: 500px; 
    width: 100%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    position: relative;
    
    /* Ultra-clear base with high blur */
    background: rgba(255, 255, 255, 0.02); /* Almost invisible fill */
    backdrop-filter: blur(20px) saturate(180%); /* Strong blur for the sea behind */
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    /* Refined Border Lighting */
    border-radius: 40px; 
    border: 1px solid rgba(255, 255, 255, 0.3);
    
    /* Complex Shadowing for Depth */
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.1), /* Drop Shadow */
        inset 0 1px 1px rgba(255, 255, 255, 0.7), /* Top Inner Highlight */
        inset 0 -1px 1px rgba(0, 0, 0, 0.1); /* Bottom Inner Shadow */
        
    overflow: hidden;
    transform: translateZ(0); /* Hardware Acceleration */
}

/* The Glossy Sheen (Light Reflection) */
.visual-content::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    background: linear-gradient(
        125deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.1) 30%, 
        rgba(255, 255, 255, 0.0) 40%, 
        rgba(255, 255, 255, 0.0) 100%
    );
    pointer-events: none;
    z-index: 10;
}

.placeholder-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 20; /* Ensure text is above the sheen */
}

.placeholder-graphic span { 
    font-family: var(--font-display); 
    font-size: 8rem; 
    line-height: 1;
}

/* Specific coloring for R & B letters */
.placeholder-graphic span:nth-child(1) { color: #5a6473; text-shadow: 0 4px 12px rgba(0,0,0,0.1); } /* R - Slightly darker grey for contrast on clear glass */
.placeholder-graphic span:nth-child(2) { color: #a0aec0; margin: 0 1rem; opacity: 0.7; font-size: 6rem; font-weight: 300; } /* & */
.placeholder-graphic span:nth-child(3) { color: #06b6d4; text-shadow: 0 0 40px rgba(6,182,212,0.6); } /* B - Enhanced Cyan Glow */

/* --- THE CREW --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2px; background: rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.1); }
.team-member { background: var(--c-bg); padding: 3rem; transition: 0.3s; }
.team-member:hover { background: #fff; z-index: 1; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.member-role { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; color: #888; margin-bottom: 1rem; }
.member-name { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 1rem; color: #1a1a1a; }

/* --- CLIENTS --- */
#clients { overflow: hidden; padding: 10rem 0; background: linear-gradient(180deg, rgba(242, 244, 246, 0.0) 0%, rgba(242, 244, 246, 0.5) 100%); }
#clients .section-label { margin-left: 10%; }
.marquee-container { display: flex; overflow: hidden; user-select: none; gap: 6rem; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.marquee-content { flex-shrink: 0; display: flex; gap: 6rem; min-width: 100%; animation: scroll 30s linear infinite; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.client-logo { font-size: 2.5rem; font-weight: 600; white-space: nowrap; color: rgba(26, 26, 26, 0.3); transition: all 0.4s ease; font-family: var(--font-display); cursor: default; }
.client-logo:hover { color: #1a1a1a; transform: scale(1.05); text-shadow: 0 0 30px rgba(26, 26, 26, 0.1); }
.marquee-container:hover .marquee-content { animation-play-state: paused; }

/* --- INITIATION --- */
.initiation-section { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: var(--c-bg); }
.cta-container { max-width: 700px; }
.cta-btn.large { padding: 1.5rem 4rem; font-size: 1rem; margin-top: 3rem; opacity: 0; border: 1px solid #1a1a1a; }

/* --- FOOTER --- */
footer { 
    display: flex; 
    flex-direction: column; 
    background: #fff; 
    color: var(--c-text-muted); 
    position: relative; 
    z-index: 30; 
    padding: 6rem 10% 2rem; 
    border-top: 1px solid rgba(0,0,0,0.05); 
}

/* Updated for 1/3 weight distribution with centered content */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack on mobile */
    gap: 4rem;
    width: 100%;
    margin-bottom: 4rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr); /* Equal 1/3 width on desktop */
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center; /* Ensures flex children are centered */
}

.footer-col h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: #555;
}

.footer-col a {
    color: #1a1a1a;
    text-decoration: none;
    transition: opacity 0.3s;
}
.footer-col a:hover { opacity: 0.7; }

/* Styles for the verification link */
.verify-link {
    display: inline-block;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.verify-link:hover {
    border-bottom-color: #1a1a1a;
}

.verify-link.small {
    font-size: 0.75rem;
    margin-top: 5px;
    opacity: 0.8;
}

.legal-note {
    font-size: 0.9rem;
    margin-top: 0;
}

.copyright-bar {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* --- RESPONSIVE --- */
/* Mid-range / Tablet Breakpoint (Landscape iPad & Small Laptops) */
@media (min-width: 769px) and (max-width: 1200px) {
    nav {
        padding: 0.6rem 1.5rem;
    }
    .brand {
        font-size: 1.2rem;
    }
    .nav-link {
        font-size: 0.65rem;
        padding: 0.5rem 0.5rem;
    }
    .links {
        gap: 0.5rem;
    }
}

@media (max-width: 1024px) { 
    .split-layout { grid-template-columns: 1fr; gap: 3rem; } 
    /* Ensure visual content is visible and sized appropriately */
    .visual-content { display: flex; height: 400px; margin-top: 2rem; }
}

@media (max-width: 768px) { nav { padding: 1rem 1.5rem; width: 95%; top: 1rem; flex-direction: row; gap: 0; } .links { display: none; } .brand-container { left: 1.5rem; top: 1.5rem; } .brand { font-size: 1.2rem; } .display-title { font-size: 3.5rem; } .content-section { padding: 6rem 5%; } h2 { font-size: 2.5rem; } .text-block p { font-size: 1.1rem; } }

/* --- UTILITIES --- */
.lil-gui { display: none !important; }